diff --git a/DiscoveryJson/aiplatform.v1.json b/DiscoveryJson/aiplatform.v1.json index b21f72dac87..526bccef74d 100644 --- a/DiscoveryJson/aiplatform.v1.json +++ b/DiscoveryJson/aiplatform.v1.json @@ -431,362 +431,315 @@ } } }, - "datasets": { - "methods": { - "create": { - "description": "Creates a Dataset.", - "flatPath": "v1/datasets", - "httpMethod": "POST", - "id": "aiplatform.datasets.create", - "parameterOrder": [], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", - "location": "query", - "type": "string" - } - }, - "path": "v1/datasets", - "request": { - "$ref": "GoogleCloudAiplatformV1Dataset" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a Dataset.", - "flatPath": "v1/datasets/{datasetsId}", - "httpMethod": "DELETE", - "id": "aiplatform.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": "^datasets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets a Dataset.", - "flatPath": "v1/datasets/{datasetsId}", - "httpMethod": "GET", - "id": "aiplatform.datasets.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the Dataset resource.", - "location": "path", - "pattern": "^datasets/[^/]+$", - "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" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists Datasets in a Location.", - "flatPath": "v1/datasets", - "httpMethod": "GET", - "id": "aiplatform.datasets.list", - "parameterOrder": [], - "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 name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", - "location": "query", - "type": "string" - }, - "readMask": { - "description": "Mask specifying which fields to read.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/datasets", - "response": { - "$ref": "GoogleCloudAiplatformV1ListDatasetsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates a Dataset.", - "flatPath": "v1/datasets/{datasetsId}", - "httpMethod": "PATCH", - "id": "aiplatform.datasets.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. Identifier. The resource name of the Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", - "location": "path", - "pattern": "^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": "GoogleCloudAiplatformV1Dataset" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, + "customJobs": { "resources": { - "datasetVersions": { + "operations": { "methods": { - "create": { - "description": "Create a version from a Dataset.", - "flatPath": "v1/datasets/{datasetsId}/datasetVersions", + "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/customJobs/{customJobsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.datasets.datasetVersions.create", + "id": "aiplatform.customJobs.operations.cancel", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "name": { + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^datasets/[^/]+$", + "pattern": "^customJobs/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/datasetVersions", - "request": { - "$ref": "GoogleCloudAiplatformV1DatasetVersion" - }, + "path": "v1/{+name}:cancel", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { - "description": "Deletes a Dataset version.", - "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "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/customJobs/{customJobsId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.datasets.datasetVersions.delete", + "id": "aiplatform.customJobs.operations.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": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "pattern": "^customJobs/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets a Dataset version.", - "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "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/customJobs/{customJobsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.datasets.datasetVersions.get", + "id": "aiplatform.customJobs.operations.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": "The name of the operation resource.", "location": "path", - "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "pattern": "^customJobs/[^/]+/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": "GoogleCloudAiplatformV1DatasetVersion" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists DatasetVersions in a Dataset.", - "flatPath": "v1/datasets/{datasetsId}/datasetVersions", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/customJobs/{customJobsId}/operations", "httpMethod": "GET", - "id": "aiplatform.datasets.datasetVersions.list", + "id": "aiplatform.customJobs.operations.list", "parameterOrder": [ - "parent" + "name" ], "parameters": { "filter": { - "description": "Optional. The standard list filter.", + "description": "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", + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^customJobs/[^/]+$", + "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.", + "description": "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}`", + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/customJobs/{customJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.customJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^datasets/[^/]+$", + "pattern": "^customJobs/[^/]+/operations/[^/]+$", "required": true, "type": "string" }, - "readMask": { - "description": "Optional. 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": "v1/{+parent}/datasetVersions", + "path": "v1/{+name}:wait", "response": { - "$ref": "GoogleCloudAiplatformV1ListDatasetVersionsResponse" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "patch": { - "description": "Updates a DatasetVersion.", - "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", - "httpMethod": "PATCH", - "id": "aiplatform.datasets.datasetVersions.patch", + } + } + } + } + }, + "dataLabelingJobs": { + "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/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.dataLabelingJobs.operations.cancel", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "pattern": "^dataLabelingJobs/[^/]+/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`", - "format": "google-fieldmask", - "location": "query", + } + }, + "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/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.dataLabelingJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^dataLabelingJobs/[^/]+/operations/[^/]+$", + "required": true, "type": "string" } }, "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1DatasetVersion" + "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/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.dataLabelingJobs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^dataLabelingJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1DatasetVersion" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "restore": { - "description": "Restores a dataset version.", - "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", + "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/dataLabelingJobs/{dataLabelingJobsId}/operations", "httpMethod": "GET", - "id": "aiplatform.datasets.datasetVersions.restore", + "id": "aiplatform.dataLabelingJobs.operations.list", "parameterOrder": [ "name" ], "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, "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's parent resource.", "location": "path", - "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", + "pattern": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.dataLabelingJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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}:restore", + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, @@ -798,426 +751,700 @@ } } }, - "endpoints": { + "datasets": { "methods": { - "computeTokens": { - "description": "Return a list of tokens based on the input text.", - "flatPath": "v1/endpoints/{endpointsId}:computeTokens", + "create": { + "description": "Creates a Dataset.", + "flatPath": "v1/datasets", "httpMethod": "POST", - "id": "aiplatform.endpoints.computeTokens", - "parameterOrder": [ - "endpoint" - ], + "id": "aiplatform.datasets.create", + "parameterOrder": [], "parameters": { - "endpoint": { - "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", - "location": "path", - "pattern": "^endpoints/[^/]+$", - "required": true, + "parent": { + "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", + "location": "query", "type": "string" } }, - "path": "v1/{+endpoint}:computeTokens", + "path": "v1/datasets", "request": { - "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + "$ref": "GoogleCloudAiplatformV1Dataset" }, "response": { - "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "countTokens": { - "description": "Perform a token counting.", - "flatPath": "v1/endpoints/{endpointsId}:countTokens", - "httpMethod": "POST", - "id": "aiplatform.endpoints.countTokens", + "delete": { + "description": "Deletes a Dataset.", + "flatPath": "v1/datasets/{datasetsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.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": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", "location": "path", - "pattern": "^endpoints/[^/]+$", + "pattern": "^datasets/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:countTokens", - "request": { - "$ref": "GoogleCloudAiplatformV1CountTokensRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "fetchPredictOperation": { - "description": "Fetch an asynchronous online prediction operation.", - "flatPath": "v1/endpoints/{endpointsId}:fetchPredictOperation", - "httpMethod": "POST", - "id": "aiplatform.endpoints.fetchPredictOperation", + "get": { + "description": "Gets a Dataset.", + "flatPath": "v1/datasets/{datasetsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.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}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "name": { + "description": "Required. The name of the Dataset resource.", "location": "path", - "pattern": "^endpoints/[^/]+$", + "pattern": "^datasets/[^/]+$", "required": true, "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, - "path": "v1/{+endpoint}:fetchPredictOperation", - "request": { - "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleCloudAiplatformV1Dataset" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "generateContent": { - "description": "Generate content with multimodal inputs.", - "flatPath": "v1/endpoints/{endpointsId}:generateContent", - "httpMethod": "POST", - "id": "aiplatform.endpoints.generateContent", - "parameterOrder": [ - "model" - ], + "list": { + "description": "Lists Datasets in a Location.", + "flatPath": "v1/datasets", + "httpMethod": "GET", + "id": "aiplatform.datasets.list", + "parameterOrder": [], "parameters": { - "model": { - "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", - "location": "path", - "pattern": "^endpoints/[^/]+$", - "required": true, + "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 name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", "type": "string" } }, - "path": "v1/{+model}:generateContent", - "request": { - "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" - }, + "path": "v1/datasets", "response": { - "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + "$ref": "GoogleCloudAiplatformV1ListDatasetsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "predict": { - "description": "Perform an online prediction.", - "flatPath": "v1/endpoints/{endpointsId}:predict", - "httpMethod": "POST", - "id": "aiplatform.endpoints.predict", + "patch": { + "description": "Updates a Dataset.", + "flatPath": "v1/datasets/{datasetsId}", + "httpMethod": "PATCH", + "id": "aiplatform.datasets.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": "Output only. Identifier. The resource name of the Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", "location": "path", - "pattern": "^endpoints/[^/]+$", + "pattern": "^datasets/[^/]+$", "required": true, "type": "string" - } - }, - "path": "v1/{+endpoint}:predict", - "request": { - "$ref": "GoogleCloudAiplatformV1PredictRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1PredictResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "predictLongRunning": { - "description": "", - "flatPath": "v1/endpoints/{endpointsId}:predictLongRunning", - "httpMethod": "POST", - "id": "aiplatform.endpoints.predictLongRunning", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "endpoint": { - "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", - "location": "path", - "pattern": "^endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}:predictLongRunning", - "request": { - "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "streamGenerateContent": { - "description": "Generate content with multimodal inputs with streaming support.", - "flatPath": "v1/endpoints/{endpointsId}:streamGenerateContent", - "httpMethod": "POST", - "id": "aiplatform.endpoints.streamGenerateContent", - "parameterOrder": [ - "model" - ], - "parameters": { - "model": { - "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", - "location": "path", - "pattern": "^endpoints/[^/]+$", - "required": true, + }, + "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/{+model}:streamGenerateContent", + "path": "v1/{+name}", "request": { - "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + "$ref": "GoogleCloudAiplatformV1Dataset" }, "response": { - "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + "$ref": "GoogleCloudAiplatformV1Dataset" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] } }, "resources": { - "chat": { - "methods": { - "completions": { - "description": "Exposes an OpenAI-compatible endpoint for chat completions.", - "flatPath": "v1/endpoints/{endpointsId}/chat/completions", - "httpMethod": "POST", - "id": "aiplatform.endpoints.chat.completions", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "endpoint": { - "description": "Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", - "location": "path", - "pattern": "^endpoints/[^/]+$", - "required": true, - "type": "string" + "annotationSpecs": { + "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/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.datasets.annotationSpecs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^datasets/[^/]+/annotationSpecs/[^/]+/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/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.annotationSpecs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^datasets/[^/]+/annotationSpecs/[^/]+/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/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.annotationSpecs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^datasets/[^/]+/annotationSpecs/[^/]+/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/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.datasets.annotationSpecs.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.datasets.annotationSpecs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } - }, - "path": "v1/{+endpoint}/chat/completions", - "request": { - "$ref": "GoogleApiHttpBody" - }, - "response": { - "$ref": "GoogleApiHttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - } - } - } - } - }, - "media": { - "methods": { - "upload": { - "description": "Upload a file into a RagCorpus.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/ragCorpora/{ragCorporaId}/ragFiles:upload", - "httpMethod": "POST", - "id": "aiplatform.media.upload", - "mediaUpload": { - "accept": [ - "*/*" - ], - "protocols": { - "simple": { - "multipart": true, - "path": "/upload/v1/{+parent}/ragFiles:upload" } } - }, - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The name of the RagCorpus resource into which to upload the file. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/ragFiles:upload", - "request": { - "$ref": "GoogleCloudAiplatformV1UploadRagFileRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1UploadRagFileResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ], - "supportsMediaUpload": true - } - } - }, - "projects": { - "methods": { - "getCacheConfig": { - "description": "Gets a GenAI cache config.", - "flatPath": "v1/projects/{projectsId}/cacheConfig", - "httpMethod": "GET", - "id": "aiplatform.projects.getCacheConfig", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`.", - "location": "path", - "pattern": "^projects/[^/]+/cacheConfig$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1CacheConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, - "updateCacheConfig": { - "description": "Updates a cache config.", - "flatPath": "v1/projects/{projectsId}/cacheConfig", - "httpMethod": "PATCH", - "id": "aiplatform.projects.updateCacheConfig", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.", - "location": "path", - "pattern": "^projects/[^/]+/cacheConfig$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1CacheConfig" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "locations": { - "methods": { - "augmentPrompt": { - "description": "Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:augmentPrompt", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.augmentPrompt", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location from which to augment prompt. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" + "dataItems": { + "resources": { + "annotations": { + "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/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.datasets.dataItems.annotations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.dataItems.annotations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.dataItems.annotations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.datasets.dataItems.annotations.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": "^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.datasets.dataItems.annotations.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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" + ] + } + } } - }, - "path": "v1/{+parent}:augmentPrompt", - "request": { - "$ref": "GoogleCloudAiplatformV1AugmentPromptRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1AugmentPromptResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } }, - "corroborateContent": { - "description": "Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:corroborateContent", + "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/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.datasets.dataItems.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^datasets/[^/]+/dataItems/[^/]+/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/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.dataItems.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^datasets/[^/]+/dataItems/[^/]+/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/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.dataItems.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^datasets/[^/]+/dataItems/[^/]+/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/datasets/{datasetsId}/dataItems/{dataItemsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.datasets.dataItems.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.datasets.dataItems.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "datasetVersions": { + "methods": { + "create": { + "description": "Create a version from a Dataset.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions", "httpMethod": "POST", - "id": "aiplatform.projects.locations.corroborateContent", + "id": "aiplatform.datasets.datasetVersions.create", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`.", + "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^datasets/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}:corroborateContent", + "path": "v1/{+parent}/datasetVersions", "request": { - "$ref": "GoogleCloudAiplatformV1CorroborateContentRequest" + "$ref": "GoogleCloudAiplatformV1DatasetVersion" }, "response": { - "$ref": "GoogleCloudAiplatformV1CorroborateContentResponse" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "deploy": { - "description": "Deploys a model to a new endpoint.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:deploy", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.deploy", + "delete": { + "description": "Deletes a Dataset version.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.datasetVersions.delete", "parameterOrder": [ - "destination" + "name" ], "parameters": { - "destination": { - "description": "Required. The resource name of the Location to deploy the model in. Format: `projects/{project}/locations/{location}`", + "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/[^/]+$", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+destination}:deploy", - "request": { - "$ref": "GoogleCloudAiplatformV1DeployRequest" - }, + "path": "v1/{+name}", "response": { "$ref": "GoogleLongrunningOperation" }, @@ -1225,264 +1452,297 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "evaluateDataset": { - "description": "Evaluates a dataset based on a set of given metrics.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:evaluateDataset", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.evaluateDataset", + "get": { + "description": "Gets a Dataset version.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.get", "parameterOrder": [ - "location" + "name" ], "parameters": { - "location": { - "description": "Required. The resource name of the Location to evaluate the dataset. Format: `projects/{project}/locations/{location}`", + "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/[^/]+$", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", "required": true, "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, - "path": "v1/{+location}:evaluateDataset", - "request": { - "$ref": "GoogleCloudAiplatformV1EvaluateDatasetRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleCloudAiplatformV1DatasetVersion" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "evaluateInstances": { - "description": "Evaluates instances based on a given metric.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:evaluateInstances", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.evaluateInstances", + "list": { + "description": "Lists DatasetVersions in a Dataset.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.list", "parameterOrder": [ - "location" + "parent" ], "parameters": { - "location": { - "description": "Required. The resource name of the Location to evaluate the instances. Format: `projects/{project}/locations/{location}`", + "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}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^datasets/[^/]+$", "required": true, "type": "string" + }, + "readMask": { + "description": "Optional. Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, - "path": "v1/{+location}:evaluateInstances", - "request": { - "$ref": "GoogleCloudAiplatformV1EvaluateInstancesRequest" - }, + "path": "v1/{+parent}/datasetVersions", "response": { - "$ref": "GoogleCloudAiplatformV1EvaluateInstancesResponse" + "$ref": "GoogleCloudAiplatformV1ListDatasetVersionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "generateInstanceRubrics": { - "description": "Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:generateInstanceRubrics", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.generateInstanceRubrics", + "patch": { + "description": "Updates a DatasetVersion.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "PATCH", + "id": "aiplatform.datasets.datasetVersions.patch", "parameterOrder": [ - "location" + "name" ], "parameters": { - "location": { - "description": "Required. The resource name of the Location to generate rubrics from. Format: `projects/{project}/locations/{location}`", + "name": { + "description": "Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", "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`", + "format": "google-fieldmask", + "location": "query", + "type": "string" } }, - "path": "v1/{+location}:generateInstanceRubrics", + "path": "v1/{+name}", "request": { - "$ref": "GoogleCloudAiplatformV1GenerateInstanceRubricsRequest" + "$ref": "GoogleCloudAiplatformV1DatasetVersion" }, "response": { - "$ref": "GoogleCloudAiplatformV1GenerateInstanceRubricsResponse" + "$ref": "GoogleCloudAiplatformV1DatasetVersion" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "generateSyntheticData": { - "description": "Generates synthetic data based on the provided configuration.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:generateSyntheticData", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.generateSyntheticData", + "restore": { + "description": "Restores a dataset version.", + "flatPath": "v1/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", + "httpMethod": "GET", + "id": "aiplatform.datasets.datasetVersions.restore", "parameterOrder": [ - "location" + "name" ], "parameters": { - "location": { - "description": "Required. The resource name of the Location to run the job. Format: `projects/{project}/locations/{location}`", + "name": { + "description": "Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^datasets/[^/]+/datasetVersions/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+location}:generateSyntheticData", - "request": { - "$ref": "GoogleCloudAiplatformV1GenerateSyntheticDataRequest" + "path": "v1/{+name}:restore", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/datasets/{datasetsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.datasets.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^datasets/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } }, + "path": "v1/{+name}:cancel", "response": { - "$ref": "GoogleCloudAiplatformV1GenerateSyntheticDataResponse" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets information about a location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.get", + "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/datasets/{datasetsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.datasets.operations.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Resource name for the location.", + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^datasets/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudLocationLocation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getRagEngineConfig": { - "description": "Gets a RagEngineConfig.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig", + "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/datasets/{datasetsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.getRagEngineConfig", + "id": "aiplatform.datasets.operations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the RagEngineConfig resource. Format: `projects/{project}/locations/{location}/ragEngineConfig`", + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + "pattern": "^datasets/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1RagEngineConfig" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "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/datasets/{datasetsId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.list", + "id": "aiplatform.datasets.operations.list", "parameterOrder": [ "name" ], "parameters": { - "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", - "location": "query", - "repeated": true, - "type": "string" - }, "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": "^datasets/[^/]+$", "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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+name}/locations", + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudLocationListLocationsResponse" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "retrieveContexts": { - "description": "Retrieves relevant contexts for a query.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:retrieveContexts", + "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/datasets/{datasetsId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.retrieveContexts", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location from which to retrieve RagContexts. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}:retrieveContexts", - "request": { - "$ref": "GoogleCloudAiplatformV1RetrieveContextsRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1RetrieveContextsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "updateRagEngineConfig": { - "description": "Updates a RagEngineConfig.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig", - "httpMethod": "PATCH", - "id": "aiplatform.projects.locations.updateRagEngineConfig", + "id": "aiplatform.datasets.operations.wait", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Identifier. The name of the RagEngineConfig. Format: `projects/{project}/locations/{location}/ragEngineConfig`", + "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + "pattern": "^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": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1RagEngineConfig" - }, + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, @@ -1490,31 +1750,30 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - }, + } + }, + "savedQueries": { "resources": { - "batchPredictionJobs": { + "operations": { "methods": { "cancel": { - "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": "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/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.batchPredictionJobs.cancel", + "id": "aiplatform.datasets.savedQueries.operations.cancel", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the BatchPredictionJob to cancel. 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": "^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}:cancel", - "request": { - "$ref": "GoogleCloudAiplatformV1CancelBatchPredictionJobRequest" - }, "response": { "$ref": "GoogleProtobufEmpty" }, @@ -1522,98 +1781,77 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "create": { - "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" - ] - }, "delete": { - "description": "Deletes a BatchPredictionJob. Can only be called on jobs that already finished.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + "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/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.batchPredictionJobs.delete", + "id": "aiplatform.datasets.savedQueries.operations.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": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + "pattern": "^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets a BatchPredictionJob", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + "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/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.batchPredictionJobs.get", + "id": "aiplatform.datasets.savedQueries.operations.get", "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.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + "pattern": "^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists BatchPredictionJobs in a Location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.batchPredictionJobs.list", + "id": "aiplatform.datasets.savedQueries.operations.list", "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 `=`, `!=`,`<`, `<=`,`>`, `>=` 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:*`", + "description": "The standard list filter.", "location": "query", "type": "string" }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^datasets/[^/]+/savedQueries/[^/]+$", + "required": true, + "type": "string" + }, "pageSize": { "description": "The standard list page size.", "format": "int32", @@ -1621,626 +1859,692 @@ "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}`", - "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" - ] - } - } - }, - "cachedContents": { - "methods": { - "create": { - "description": "Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.cachedContents.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource where the cached content will be created", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/cachedContents", - "request": { - "$ref": "GoogleCloudAiplatformV1CachedContent" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1CachedContent" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes cached content", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.cachedContents.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name referring to the cached content", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleProtobufEmpty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets cached content configurations", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.cachedContents.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The resource name referring to the cached content", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1CachedContent" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists cached contents in a project", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.cachedContents.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.", + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent, which owns this collection of cached contents.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" + "type": "boolean" } }, - "path": "v1/{+parent}/cachedContents", + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudAiplatformV1ListCachedContentsResponse" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "patch": { - "description": "Updates cached content configurations", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", - "httpMethod": "PATCH", - "id": "aiplatform.projects.locations.cachedContents.patch", + "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/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.datasets.savedQueries.operations.wait", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}", + "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + "pattern": "^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", "required": true, "type": "string" }, - "updateMask": { - "description": "Required. The list of fields to update.", - "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": "GoogleCloudAiplatformV1CachedContent" - }, + "path": "v1/{+name}:wait", "response": { - "$ref": "GoogleCloudAiplatformV1CachedContent" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } } + } + } + } + } + }, + "deploymentResourcePools": { + "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/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.deploymentResourcePools.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^deploymentResourcePools/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "customJobs": { - "methods": { - "cancel": { - "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" - ] + "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/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.deploymentResourcePools.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^deploymentResourcePools/[^/]+/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/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.deploymentResourcePools.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^deploymentResourcePools/[^/]+/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/deploymentResourcePools/{deploymentResourcePoolsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.deploymentResourcePools.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "create": { - "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" - ] + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^deploymentResourcePools/[^/]+$", + "required": true, + "type": "string" }, - "delete": { - "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" - ] + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" }, - "get": { - "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" - ] + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" }, - "list": { - "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 `=`, `!=`,`<`, `<=`,`>`, `>=` 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:*`", - "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" - ] + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "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}/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" - ] - }, - "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}/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" - ] - }, - "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}/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" - ] - }, - "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}/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" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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" - ] - } - } + "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/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.deploymentResourcePools.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^deploymentResourcePools/[^/]+/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" + ] + } + } + } + } + }, + "endpoints": { + "methods": { + "computeTokens": { + "description": "Return a list of tokens based on the input text.", + "flatPath": "v1/endpoints/{endpointsId}:computeTokens", + "httpMethod": "POST", + "id": "aiplatform.endpoints.computeTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:computeTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "countTokens": { + "description": "Perform a token counting.", + "flatPath": "v1/endpoints/{endpointsId}:countTokens", + "httpMethod": "POST", + "id": "aiplatform.endpoints.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": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:countTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1CountTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchPredictOperation": { + "description": "Fetch an asynchronous online prediction operation.", + "flatPath": "v1/endpoints/{endpointsId}:fetchPredictOperation", + "httpMethod": "POST", + "id": "aiplatform.endpoints.fetchPredictOperation", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:fetchPredictOperation", + "request": { + "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "generateContent": { + "description": "Generate content with multimodal inputs.", + "flatPath": "v1/endpoints/{endpointsId}:generateContent", + "httpMethod": "POST", + "id": "aiplatform.endpoints.generateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:generateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "predict": { + "description": "Perform an online prediction.", + "flatPath": "v1/endpoints/{endpointsId}:predict", + "httpMethod": "POST", + "id": "aiplatform.endpoints.predict", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predict", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1PredictResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "predictLongRunning": { + "description": "", + "flatPath": "v1/endpoints/{endpointsId}:predictLongRunning", + "httpMethod": "POST", + "id": "aiplatform.endpoints.predictLongRunning", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predictLongRunning", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1/endpoints/{endpointsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.endpoints.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + }, + "resources": { + "chat": { + "methods": { + "completions": { + "description": "Exposes an OpenAI-compatible endpoint for chat completions.", + "flatPath": "v1/endpoints/{endpointsId}/chat/completions", + "httpMethod": "POST", + "id": "aiplatform.endpoints.chat.completions", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/chat/completions", + "request": { + "$ref": "GoogleApiHttpBody" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "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/endpoints/{endpointsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.endpoints.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^endpoints/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "dataLabelingJobs": { - "methods": { - "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.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": "v1/{+name}:cancel", - "request": { - "$ref": "GoogleCloudAiplatformV1CancelDataLabelingJobRequest" - }, - "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/endpoints/{endpointsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.endpoints.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^endpoints/[^/]+/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/endpoints/{endpointsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.endpoints.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^endpoints/[^/]+/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/endpoints/{endpointsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.endpoints.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "create": { - "description": "Creates a DataLabelingJob.", - "flatPath": "v1/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": "v1/{+parent}/dataLabelingJobs", - "request": { - "$ref": "GoogleCloudAiplatformV1DataLabelingJob" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1DataLabelingJob" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/endpoints/{endpointsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.endpoints.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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" + ] + } + } + } + } + }, + "featureGroups": { + "resources": { + "features": { + "resources": { + "operations": { + "methods": { "delete": { - "description": "Deletes a DataLabelingJob.", - "flatPath": "v1/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": "v1/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.dataLabelingJobs.delete", + "id": "aiplatform.featureGroups.features.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": "^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets a DataLabelingJob.", - "flatPath": "v1/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": "v1/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.dataLabelingJobs.get", + "id": "aiplatform.featureGroups.features.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": "^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1DataLabelingJob" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "list": { - "description": "Lists DataLabelingJobs in a Location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", + "listWait": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", "httpMethod": "GET", - "id": "aiplatform.projects.locations.dataLabelingJobs.list", + "id": "aiplatform.featureGroups.features.operations.listWait", "parameterOrder": [ - "parent" + "name" ], "parameters": { "filter": { - "description": "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:*`", + "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": "^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + "required": true, "type": "string" }, "pageSize": { @@ -2254,37 +2558,471 @@ "location": "query", "type": "string" }, - "parent": { - "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:wait", + "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/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.featureGroups.features.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", "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", + "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}/dataLabelingJobs", + "path": "v1/{+name}:wait", "response": { - "$ref": "GoogleCloudAiplatformV1ListDataLabelingJobsResponse" + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.featureGroups.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^featureGroups/[^/]+/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/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.featureGroups.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listWait": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + "httpMethod": "GET", + "id": "aiplatform.featureGroups.operations.listWait", + "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": "^featureGroups/[^/]+/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:wait", + "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/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.featureGroups.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "featureOnlineStores": { + "resources": { + "featureViews": { + "resources": { + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.featureOnlineStores.featureViews.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^featureOnlineStores/[^/]+/featureViews/[^/]+/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/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.featureOnlineStores.featureViews.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listWait": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", + "httpMethod": "GET", + "id": "aiplatform.featureOnlineStores.featureViews.operations.listWait", + "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": "^featureOnlineStores/[^/]+/featureViews/[^/]+/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:wait", + "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/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.featureOnlineStores.featureViews.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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" ] } + } + } + } + }, + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.featureOnlineStores.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^featureOnlineStores/[^/]+/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/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.featureOnlineStores.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^featureOnlineStores/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listWait": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", + "httpMethod": "GET", + "id": "aiplatform.featureOnlineStores.operations.listWait", + "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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:wait", + "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/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.featureOnlineStores.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "featurestores": { + "resources": { + "entityTypes": { + "resources": { + "features": { "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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:cancel", + "flatPath": "v1/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.dataLabelingJobs.operations.cancel", + "id": "aiplatform.featurestores.entityTypes.features.operations.cancel", "parameterOrder": [ "name" ], @@ -2292,7 +3030,7 @@ "name": { "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -2307,9 +3045,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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + "flatPath": "v1/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.dataLabelingJobs.operations.delete", + "id": "aiplatform.featurestores.entityTypes.features.operations.delete", "parameterOrder": [ "name" ], @@ -2317,7 +3055,7 @@ "name": { "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -2332,9 +3070,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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + "flatPath": "v1/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.dataLabelingJobs.operations.get", + "id": "aiplatform.featurestores.entityTypes.features.operations.get", "parameterOrder": [ "name" ], @@ -2342,7 +3080,7 @@ "name": { "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -2357,9 +3095,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}/dataLabelingJobs/{dataLabelingJobsId}/operations", + "flatPath": "v1/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.dataLabelingJobs.operations.list", + "id": "aiplatform.featurestores.entityTypes.features.operations.list", "parameterOrder": [ "name" ], @@ -2372,7 +3110,7 @@ "name": { "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", "required": true, "type": "string" }, @@ -2403,9 +3141,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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:wait", + "flatPath": "v1/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.dataLabelingJobs.operations.wait", + "id": "aiplatform.featurestores.entityTypes.features.operations.wait", "parameterOrder": [ "name" ], @@ -2413,7 +3151,7 @@ "name": { "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", "required": true, "type": "string" }, @@ -2436,82 +3174,76 @@ } } }, - "datasets": { + "operations": { "methods": { - "create": { - "description": "Creates a Dataset.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets", + "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/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.create", + "id": "aiplatform.featurestores.entityTypes.operations.cancel", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", + "name": { + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/datasets", - "request": { - "$ref": "GoogleCloudAiplatformV1Dataset" - }, + "path": "v1/{+name}:cancel", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { - "description": "Deletes a Dataset.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + "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/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.datasets.delete", + "id": "aiplatform.featurestores.entityTypes.operations.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "export": { - "description": "Exports data from a Dataset.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:export", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.export", + "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/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.featurestores.entityTypes.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": "^featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}:export", - "request": { - "$ref": "GoogleCloudAiplatformV1ExportDataRequest" - }, + "path": "v1/{+name}", "response": { "$ref": "GoogleLongrunningOperation" }, @@ -2519,4290 +3251,8722 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "get": { - "description": "Gets a Dataset.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + "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/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.get", + "id": "aiplatform.featurestores.entityTypes.operations.list", "parameterOrder": [ "name" ], "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, "name": { - "description": "Required. The name of the Dataset resource.", + "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + "pattern": "^featurestores/[^/]+/entityTypes/[^/]+$", "required": true, "type": "string" }, - "readMask": { - "description": "Mask specifying which fields to read.", - "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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+name}", + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudAiplatformV1Dataset" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "import": { - "description": "Imports data into a Dataset.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:import", + "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/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.import", + "id": "aiplatform.featurestores.entityTypes.operations.wait", "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 wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + "pattern": "^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/{+name}:import", - "request": { - "$ref": "GoogleCloudAiplatformV1ImportDataRequest" - }, + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/featurestores/{featurestoresId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.featurestores.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^featurestores/[^/]+/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/featurestores/{featurestoresId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.featurestores.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^featurestores/[^/]+/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/featurestores/{featurestoresId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.featurestores.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^featurestores/[^/]+/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/featurestores/{featurestoresId}/operations", + "httpMethod": "GET", + "id": "aiplatform.featurestores.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "list": { - "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 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", - "response": { - "$ref": "GoogleCloudAiplatformV1ListDatasetsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "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": "Output only. Identifier. The resource name of the Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", - "location": "path", - "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": "GoogleCloudAiplatformV1Dataset" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^featurestores/[^/]+$", + "required": true, + "type": "string" }, - "searchDataItems": { - "description": "Searches DataItems in a Dataset.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:searchDataItems", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.searchDataItems", - "parameterOrder": [ - "dataset" - ], - "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}`", - "location": "path", - "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/{+dataset}:searchDataItems", - "response": { - "$ref": "GoogleCloudAiplatformV1SearchDataItemsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "resources": { - "annotationSpecs": { - "methods": { - "get": { - "description": "Gets an AnnotationSpec.", - "flatPath": "v1/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": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1AnnotationSpec" - }, - "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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.annotationSpecs.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/[^/]+/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" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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": "v1/{+name}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } + "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/featurestores/{featurestoresId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.featurestores.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^featurestores/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" }, - "dataItems": { - "methods": { - "list": { - "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 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": "v1/{+parent}/dataItems", - "response": { - "$ref": "GoogleCloudAiplatformV1ListDataItemsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "annotations": { - "methods": { - "list": { - "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": [ - "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 DataItem to list Annotations from. Format: `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`", - "location": "path", - "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/{+parent}/annotations", - "response": { - "$ref": "GoogleCloudAiplatformV1ListAnnotationsResponse" - }, - "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.dataItems.annotations.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - }, - "timeout": { - "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - "format": "google-duration", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "operations": { - "methods": { - "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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" - ] - }, - "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.datasets.dataItems.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.dataItems.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/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}/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's parent resource.", - "location": "path", - "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" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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 wait on.", - "location": "path", - "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}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } + "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" + ] + } + } + } + } + }, + "hyperparameterTuningJobs": { + "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/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.hyperparameterTuningJobs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^hyperparameterTuningJobs/[^/]+/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/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.hyperparameterTuningJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^hyperparameterTuningJobs/[^/]+/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/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.hyperparameterTuningJobs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^hyperparameterTuningJobs/[^/]+/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/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.hyperparameterTuningJobs.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "datasetVersions": { - "methods": { - "create": { - "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": [ - "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": "v1/{+parent}/datasetVersions", - "request": { - "$ref": "GoogleCloudAiplatformV1DatasetVersion" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "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": { - "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": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "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": "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" - }, - "readMask": { - "description": "Mask specifying which fields to read.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1DatasetVersion" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists DatasetVersions in a Dataset.", - "flatPath": "v1/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 Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", - "location": "path", - "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": "v1/{+parent}/datasetVersions", - "response": { - "$ref": "GoogleCloudAiplatformV1ListDatasetVersionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates a DatasetVersion.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", - "httpMethod": "PATCH", - "id": "aiplatform.projects.locations.datasets.datasetVersions.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", - "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`", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1DatasetVersion" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1DatasetVersion" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "restore": { - "description": "Restores a dataset version.", - "flatPath": "v1/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 name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:restore", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^hyperparameterTuningJobs/[^/]+$", + "required": true, + "type": "string" }, - "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}/datasets/{datasetsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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}/datasets/{datasetsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.datasets.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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}/datasets/{datasetsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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}/datasets/{datasetsId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.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/[^/]+/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" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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": "v1/{+name}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" }, - "savedQueries": { - "methods": { - "delete": { - "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" - ] - }, - "list": { - "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" - ] - } - }, - "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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.savedQueries.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.datasets.savedQueries.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.savedQueries.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.datasets.savedQueries.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.datasets.savedQueries.operations.wait", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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" - ] - } - } - } - } + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } - } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "deploymentResourcePools": { + "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/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.hyperparameterTuningJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^hyperparameterTuningJobs/[^/]+/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" + ] + } + } + } + } + }, + "indexEndpoints": { + "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/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.indexEndpoints.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^indexEndpoints/[^/]+/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/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.indexEndpoints.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^indexEndpoints/[^/]+/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/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.indexEndpoints.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^indexEndpoints/[^/]+/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/indexEndpoints/{indexEndpointsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.indexEndpoints.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.indexEndpoints.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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" + ] + } + } + } + } + }, + "indexes": { + "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/indexes/{indexesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.indexes.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^indexes/[^/]+/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/indexes/{indexesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.indexes.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^indexes/[^/]+/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/indexes/{indexesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.indexes.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^indexes/[^/]+/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/indexes/{indexesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.indexes.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/indexes/{indexesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.indexes.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "media": { + "methods": { + "upload": { + "description": "Upload a file into a RagCorpus.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/ragCorpora/{ragCorporaId}/ragFiles:upload", + "httpMethod": "POST", + "id": "aiplatform.media.upload", + "mediaUpload": { + "accept": [ + "*/*" + ], + "protocols": { + "simple": { + "multipart": true, + "path": "/upload/v1/{+parent}/ragFiles:upload" + } + } + }, + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the RagCorpus resource into which to upload the file. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/ragFiles:upload", + "request": { + "$ref": "GoogleCloudAiplatformV1UploadRagFileRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1UploadRagFileResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ], + "supportsMediaUpload": true + } + } + }, + "metadataStores": { + "resources": { + "artifacts": { + "resources": { + "operations": { "methods": { - "create": { - "description": "Create a DeploymentResourcePool.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", + "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/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.deploymentResourcePools.create", + "id": "aiplatform.metadataStores.artifacts.operations.cancel", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}`", + "name": { + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/deploymentResourcePools", - "request": { - "$ref": "GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest" - }, + "path": "v1/{+name}:cancel", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "delete": { - "description": "Delete a DeploymentResourcePool.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", + "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/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.deploymentResourcePools.delete", + "id": "aiplatform.metadataStores.artifacts.operations.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + "pattern": "^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Get a DeploymentResourcePool.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", + "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/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.deploymentResourcePools.get", + "id": "aiplatform.metadataStores.artifacts.operations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + "pattern": "^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1DeploymentResourcePool" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "List DeploymentResourcePools in a location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.deploymentResourcePools.list", + "id": "aiplatform.metadataStores.artifacts.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": "^metadataStores/[^/]+/artifacts/[^/]+$", + "required": true, + "type": "string" + }, "pageSize": { - "description": "The maximum number of DeploymentResourcePools to return. The service may return fewer than this value.", + "description": "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": "The standard list 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" + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+parent}/deploymentResourcePools", + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "patch": { - "description": "Update a DeploymentResourcePool.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", - "httpMethod": "PATCH", - "id": "aiplatform.projects.locations.deploymentResourcePools.patch", + "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/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.metadataStores.artifacts.operations.wait", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + "pattern": "^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", "required": true, "type": "string" }, - "updateMask": { - "description": "Required. The list of fields to update.", - "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": "GoogleCloudAiplatformV1DeploymentResourcePool" - }, + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + } + } + } + } + }, + "contexts": { + "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/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.metadataStores.contexts.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "queryDeployedModels": { - "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", + "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/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.metadataStores.contexts.operations.delete", "parameterOrder": [ - "deploymentResourcePool" + "name" ], "parameters": { - "deploymentResourcePool": { - "description": "Required. The name of the target DeploymentResourcePool to query. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + "name": { + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + "pattern": "^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", "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", + } + }, + "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/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.metadataStores.contexts.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, "type": "string" } }, - "path": "v1/{+deploymentResourcePool}:queryDeployedModels", + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1QueryDeployedModelsResponse" - }, - "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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.deploymentResourcePools.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.deploymentResourcePools.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.deploymentResourcePools.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.deploymentResourcePools.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/[^/]+/deploymentResourcePools/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.deploymentResourcePools.operations.wait", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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" - ] - } - } - } - } - }, - "endpoints": { - "methods": { - "computeTokens": { - "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": [ - "endpoint" - ], - "parameters": { - "endpoint": { - "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}:computeTokens", - "request": { - "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "countTokens": { - "description": "Perform a token counting.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:countTokens", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}:countTokens", - "request": { - "$ref": "GoogleCloudAiplatformV1CountTokensRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "create": { - "description": "Creates an Endpoint.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.create", + "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/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.metadataStores.contexts.operations.list", "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.", + "filter": { + "description": "The standard list filter.", "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's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+parent}/endpoints", - "request": { - "$ref": "GoogleCloudAiplatformV1Endpoint" - }, + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "delete": { - "description": "Deletes an Endpoint.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.endpoints.delete", + "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/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.metadataStores.contexts.operations.wait", "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 to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "pattern": "^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", "required": true, "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "deployModel": { - "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": [ - "endpoint" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, + }, + "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}:deployModel", - "request": { - "$ref": "GoogleCloudAiplatformV1DeployModelRequest" - }, + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "directPredict": { - "description": "Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directPredict", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.directPredict", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}:directPredict", - "request": { - "$ref": "GoogleCloudAiplatformV1DirectPredictRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1DirectPredictResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "directRawPredict": { - "description": "Perform an unary online prediction request to a gRPC model server for custom containers.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directRawPredict", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.directRawPredict", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}:directRawPredict", - "request": { - "$ref": "GoogleCloudAiplatformV1DirectRawPredictRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1DirectRawPredictResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "explain": { - "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": [ - "endpoint" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}:explain", - "request": { - "$ref": "GoogleCloudAiplatformV1ExplainRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1ExplainResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "fetchPredictOperation": { - "description": "Fetch an asynchronous online prediction operation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:fetchPredictOperation", + } + } + } + } + }, + "executions": { + "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/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.fetchPredictOperation", + "id": "aiplatform.metadataStores.executions.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}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "name": { + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "pattern": "^metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:fetchPredictOperation", - "request": { - "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" - }, + "path": "v1/{+name}:cancel", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "generateContent": { - "description": "Generate content with multimodal inputs.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:generateContent", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.generateContent", + "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/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.metadataStores.executions.operations.delete", "parameterOrder": [ - "model" + "name" ], "parameters": { - "model": { - "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint 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": "^metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+model}:generateContent", - "request": { - "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets an Endpoint.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + "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/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.endpoints.get", + "id": "aiplatform.metadataStores.executions.operations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the Endpoint resource. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "pattern": "^metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1Endpoint" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists Endpoints in a Location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/metadataStores/{metadataStoresId}/executions/{executionsId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.endpoints.list", + "id": "aiplatform.metadataStores.executions.operations.list", "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\"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", - "location": "query", - "type": "string" - }, - "gdcZone": { - "description": "Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set this field when the Endpoint is to be deployed in a GDC environment.", + "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` Example: `display_name, create_time desc`.", - "location": "query", + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^metadataStores/[^/]+/executions/[^/]+$", + "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 ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call.", + "description": "The standard list 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}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "readMask": { - "description": "Optional. Mask specifying which fields to read.", - "format": "google-fieldmask", + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", "location": "query", - "type": "string" + "type": "boolean" } }, - "path": "v1/{+parent}/endpoints", + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudAiplatformV1ListEndpointsResponse" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "mutateDeployedModel": { - "description": "Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `required_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", + "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/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.mutateDeployedModel", + "id": "aiplatform.metadataStores.executions.operations.wait", "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}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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/{+endpoint}:mutateDeployedModel", - "request": { - "$ref": "GoogleCloudAiplatformV1MutateDeployedModelRequest" - }, + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/metadataStores/{metadataStoresId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.metadataStores.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^metadataStores/[^/]+/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/metadataStores/{metadataStoresId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.metadataStores.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^metadataStores/[^/]+/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/metadataStores/{metadataStoresId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.metadataStores.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^metadataStores/[^/]+/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/metadataStores/{metadataStoresId}/operations", + "httpMethod": "GET", + "id": "aiplatform.metadataStores.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "patch": { - "description": "Updates an Endpoint.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", - "httpMethod": "PATCH", - "id": "aiplatform.projects.locations.endpoints.patch", + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/metadataStores/{metadataStoresId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.metadataStores.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^metadataStores/[^/]+/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" + ] + } + } + } + } + }, + "migratableResources": { + "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/migratableResources/{migratableResourcesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.migratableResources.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^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/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.migratableResources.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^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/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.migratableResources.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^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/migratableResources/{migratableResourcesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/migratableResources/{migratableResourcesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.migratableResources.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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": { + "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/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.modelDeploymentMonitoringJobs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^modelDeploymentMonitoringJobs/[^/]+/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/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.modelDeploymentMonitoringJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^modelDeploymentMonitoringJobs/[^/]+/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/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.modelDeploymentMonitoringJobs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^modelDeploymentMonitoringJobs/[^/]+/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/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.modelDeploymentMonitoringJobs.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.modelDeploymentMonitoringJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "models": { + "resources": { + "evaluations": { + "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/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.models.evaluations.operations.cancel", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Output only. The resource name of the Endpoint.", + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "pattern": "^models/[^/]+/evaluations/[^/]+/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": "GoogleCloudAiplatformV1Endpoint" - }, + "path": "v1/{+name}:cancel", "response": { - "$ref": "GoogleCloudAiplatformV1Endpoint" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "predict": { - "description": "Perform an online prediction.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predict", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.predict", + "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/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.models.evaluations.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": "^models/[^/]+/evaluations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:predict", - "request": { - "$ref": "GoogleCloudAiplatformV1PredictRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1PredictResponse" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "predictLongRunning": { - "description": "", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predictLongRunning", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.predictLongRunning", + "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/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.models.evaluations.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}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "name": { + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "pattern": "^models/[^/]+/evaluations/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:predictLongRunning", - "request": { - "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" - }, + "path": "v1/{+name}", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "rawPredict": { - "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", + "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/models/{modelsId}/evaluations/{evaluationsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.models.evaluations.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": "^models/[^/]+/evaluations/[^/]+$", "required": true, "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+endpoint}:rawPredict", - "request": { - "$ref": "GoogleCloudAiplatformV1RawPredictRequest" - }, + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleApiHttpBody" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "serverStreamingPredict": { - "description": "Perform a server-side streaming online prediction request for Vertex LLM streaming.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:serverStreamingPredict", + "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/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.serverStreamingPredict", + "id": "aiplatform.models.evaluations.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": "^models/[^/]+/evaluations/[^/]+/operations/[^/]+$", "required": true, "type": "string" - } - }, - "path": "v1/{+endpoint}:serverStreamingPredict", - "request": { - "$ref": "GoogleCloudAiplatformV1StreamingPredictRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1StreamingPredictResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "streamGenerateContent": { - "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", - "parameterOrder": [ - "model" - ], - "parameters": { - "model": { - "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+model}:streamGenerateContent", - "request": { - "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "streamRawPredict": { - "description": "Perform a streaming online prediction with an arbitrary HTTP payload.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamRawPredict", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.streamRawPredict", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}:streamRawPredict", - "request": { - "$ref": "GoogleCloudAiplatformV1StreamRawPredictRequest" - }, - "response": { - "$ref": "GoogleApiHttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "undeployModel": { - "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", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, + }, + "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}:undeployModel", - "request": { - "$ref": "GoogleCloudAiplatformV1UndeployModelRequest" - }, + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/models/{modelsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.models.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^models/[^/]+/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/models/{modelsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.models.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^models/[^/]+/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/models/{modelsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.models.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^models/[^/]+/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/models/{modelsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.models.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "update": { - "description": "Updates an Endpoint with a long running operation.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:update", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.update", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Output only. The resource name of the Endpoint.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:update", - "request": { - "$ref": "GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "resources": { - "chat": { - "methods": { - "completions": { - "description": "Exposes an OpenAI-compatible endpoint for chat completions.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/chat/completions", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.chat.completions", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}/chat/completions", - "request": { - "$ref": "GoogleApiHttpBody" - }, - "response": { - "$ref": "GoogleApiHttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - } - } + "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/models/{modelsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.models.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^models/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" }, - "deployedModels": { - "resources": { - "invoke": { - "methods": { - "invoke": { - "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/deployedModels/{deployedModelId}/invoke/{invokeId}", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.deployedModels.invoke.invoke", - "parameterOrder": [ - "endpoint", - "deployedModelId", - "invokeId" - ], - "parameters": { - "deployedModelId": { - "description": "ID of the DeployedModel that serves the invoke request.", - "location": "path", - "required": true, - "type": "string" - }, - "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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - }, - "invokeId": { - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}", - "request": { - "$ref": "GoogleCloudAiplatformV1InvokeRequest" - }, - "response": { - "$ref": "GoogleApiHttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - } - } - } - } + "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" + ] + } + } + } + } + }, + "notebookExecutionJobs": { + "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/notebookExecutionJobs/{notebookExecutionJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.notebookExecutionJobs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^notebookExecutionJobs/[^/]+/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/notebookExecutionJobs/{notebookExecutionJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.notebookExecutionJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^notebookExecutionJobs/[^/]+/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/notebookExecutionJobs/{notebookExecutionJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.notebookExecutionJobs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^notebookExecutionJobs/[^/]+/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/notebookExecutionJobs/{notebookExecutionJobsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.notebookExecutionJobs.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "invoke": { - "methods": { - "invoke": { - "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/invoke/{invokeId}", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.invoke.invoke", - "parameterOrder": [ - "endpoint", - "invokeId" - ], - "parameters": { - "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/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - }, - "invokeId": { - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}/invoke/{+invokeId}", - "request": { - "$ref": "GoogleCloudAiplatformV1InvokeRequest" - }, - "response": { - "$ref": "GoogleApiHttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - } - } + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^notebookExecutionJobs/[^/]+$", + "required": true, + "type": "string" }, - "openapi": { - "methods": { - "embeddings": { - "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/openapi/embeddings", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.openapi.embeddings", - "parameterOrder": [ - "endpoint" - ], - "parameters": { - "deployedModelId": { - "description": "ID of the DeployedModel that serves the invoke request.", - "location": "query", - "type": "string" - }, - "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/[^/]+/endpoints/openapi$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+endpoint}/embeddings", - "request": { - "$ref": "GoogleApiHttpBody" - }, - "response": { - "$ref": "GoogleApiHttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - } - } + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" }, - "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}/endpoints/{endpointsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.endpoints.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "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}/endpoints/{endpointsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.endpoints.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "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}/endpoints/{endpointsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.endpoints.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "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}/endpoints/{endpointsId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.endpoints.operations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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" - ] - } - } + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } - } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "evaluationItems": { - "methods": { - "create": { - "description": "Creates an Evaluation Item.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.evaluationItems.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the Evaluation Item in. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/evaluationItems", - "request": { - "$ref": "GoogleCloudAiplatformV1EvaluationItem" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1EvaluationItem" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes an Evaluation Item.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems/{evaluationItemsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.evaluationItems.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the EvaluationItem resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets an Evaluation Item.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems/{evaluationItemsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.evaluationItems.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the EvaluationItem resource. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1EvaluationItem" - }, - "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/notebookExecutionJobs/{notebookExecutionJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.notebookExecutionJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^notebookExecutionJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" }, - "list": { - "description": "Lists Evaluation Items.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.evaluationItems.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Filter expression that matches a subset of the EvaluationItems to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of Evaluation Items to return.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to retrieve the subsequent page.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the Location from which to list the Evaluation Items. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/evaluationItems", - "response": { - "$ref": "GoogleCloudAiplatformV1ListEvaluationItemsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "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" + ] + } + } + } + } + }, + "notebookRuntimeTemplates": { + "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/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.notebookRuntimeTemplates.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "evaluationRuns": { - "methods": { - "cancel": { - "description": "Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.evaluationRuns.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the EvaluationRun resource to be cancelled. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:cancel", - "request": { - "$ref": "GoogleCloudAiplatformV1CancelEvaluationRunRequest" - }, - "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/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.notebookRuntimeTemplates.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^notebookRuntimeTemplates/[^/]+/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/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.notebookRuntimeTemplates.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^notebookRuntimeTemplates/[^/]+/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/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.notebookRuntimeTemplates.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "create": { - "description": "Creates an Evaluation Run.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.evaluationRuns.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the Evaluation Run in. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/evaluationRuns", - "request": { - "$ref": "GoogleCloudAiplatformV1EvaluationRun" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1EvaluationRun" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^notebookRuntimeTemplates/[^/]+$", + "required": true, + "type": "string" }, - "delete": { - "description": "Deletes an Evaluation Run.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.evaluationRuns.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the EvaluationRun resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" }, - "get": { - "description": "Gets an Evaluation Run.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.evaluationRuns.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the EvaluationRun resource. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1EvaluationRun" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" }, - "list": { - "description": "Lists Evaluation Runs.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.evaluationRuns.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of Evaluation Runs to return.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to retrieve the subsequent page.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the Location from which to list the Evaluation Runs. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/evaluationRuns", - "response": { - "$ref": "GoogleCloudAiplatformV1ListEvaluationRunsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } - } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "evaluationSets": { - "methods": { - "create": { - "description": "Creates an Evaluation Set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.evaluationSets.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the Evaluation Set in. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/evaluationSets", - "request": { - "$ref": "GoogleCloudAiplatformV1EvaluationSet" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1EvaluationSet" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes an Evaluation Set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.evaluationSets.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the EvaluationSet resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets an Evaluation Set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.evaluationSets.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the EvaluationSet resource. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1EvaluationSet" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists Evaluation Sets.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.evaluationSets.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of Evaluation Sets to return.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to retrieve the subsequent page.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the Location from which to list the Evaluation Sets. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/evaluationSets", - "response": { - "$ref": "GoogleCloudAiplatformV1ListEvaluationSetsResponse" - }, - "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/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.notebookRuntimeTemplates.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" }, - "patch": { - "description": "Updates an Evaluation Set.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", - "httpMethod": "PATCH", - "id": "aiplatform.projects.locations.evaluationSets.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Optional. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1EvaluationSet" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1EvaluationSet" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "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" + ] + } + } + } + } + }, + "notebookRuntimes": { + "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/notebookRuntimes/{notebookRuntimesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.notebookRuntimes.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^notebookRuntimes/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "featureGroups": { - "methods": { - "create": { - "description": "Creates a new FeatureGroup in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.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 128 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/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/featureGroups", - "request": { - "$ref": "GoogleCloudAiplatformV1FeatureGroup" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a single FeatureGroup.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", - "httpMethod": "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": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets details of a single FeatureGroup.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureGroups.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the FeatureGroup resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1FeatureGroup" - }, - "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/notebookRuntimes/{notebookRuntimesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.notebookRuntimes.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^notebookRuntimes/[^/]+/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/notebookRuntimes/{notebookRuntimesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.notebookRuntimes.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^notebookRuntimes/[^/]+/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/notebookRuntimes/{notebookRuntimesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.notebookRuntimes.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "getIamPolicy": { - "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}/featureGroups/{featureGroupsId}:getIamPolicy", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "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.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^notebookRuntimes/[^/]+$", + "required": true, + "type": "string" }, - "list": { - "description": "Lists FeatureGroups in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureGroups.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "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\".", - "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", - "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.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureRegistryService.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": "v1/{+parent}/featureGroups", - "response": { - "$ref": "GoogleCloudAiplatformV1ListFeatureGroupsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" }, - "patch": { - "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": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", - "location": "path", - "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` * `description` * `big_query` * `big_query.entity_id_columns` * `service_agent_type`", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1FeatureGroup" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" }, - "setIamPolicy": { - "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}/featureGroups/{featureGroupsId}:setIamPolicy", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.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/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "GoogleIamV1SetIamPolicyRequest" - }, - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/notebookRuntimes/{notebookRuntimesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.notebookRuntimes.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^notebookRuntimes/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}:testIamPermissions", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "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.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "response": { - "$ref": "GoogleIamV1TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "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" } }, - "resources": { - "features": { - "methods": { - "batchCreate": { - "description": "Creates a batch of Features in a given FeatureGroup.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features:batchCreate", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.features.batchCreate", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/features:batchCreate", - "request": { - "$ref": "GoogleCloudAiplatformV1BatchCreateFeaturesRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "create": { - "description": "Creates a new Feature in a given FeatureGroup.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.features.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.", - "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/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/features", - "request": { - "$ref": "GoogleCloudAiplatformV1Feature" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "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": [ - "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}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "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": [ - "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}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1Feature" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "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": [ - "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 =, !=, <, >, >=, 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.", - "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 < 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/[^/]+/featureGroups/[^/]+$", - "required": true, - "type": "string" - }, - "readMask": { - "description": "Mask specifying which fields to read.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/features", - "response": { - "$ref": "GoogleCloudAiplatformV1ListFeaturesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "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": "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 FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService FeatureStore)", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1Feature" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "operations": { - "methods": { - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "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}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureGroups.features.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "listWait": { - "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", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/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" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}:wait", - "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}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - }, - "timeout": { - "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - "format": "google-duration", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "operations": { - "methods": { - "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.featureGroups.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "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}/featureGroups/{featureGroupsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureGroups.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "listWait": { - "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", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "The standard list filter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/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" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}:wait", - "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}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.operations.wait", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - "required": true, - "type": "string" - }, - "timeout": { - "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - "format": "google-duration", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "featureOnlineStores": { - "methods": { - "create": { - "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", - "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.", - "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/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/featureOnlineStores", - "request": { - "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "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.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 FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets details of a single FeatureOnlineStore.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureOnlineStores.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the FeatureOnlineStore resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^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/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^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/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^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/operations", + "httpMethod": "GET", + "id": "aiplatform.operations.list", + "parameterOrder": [], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/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/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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" + ] + } + } + }, + "persistentResources": { + "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/persistentResources/{persistentResourcesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.persistentResources.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^persistentResources/[^/]+/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/persistentResources/{persistentResourcesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.persistentResources.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^persistentResources/[^/]+/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/persistentResources/{persistentResourcesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.persistentResources.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^persistentResources/[^/]+/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/persistentResources/{persistentResourcesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.persistentResources.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "getIamPolicy": { - "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}/featureOnlineStores/{featureOnlineStoresId}:getIamPolicy", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureOnlineStores.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "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.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^persistentResources/[^/]+$", + "required": true, + "type": "string" }, - "list": { - "description": "Lists FeatureOnlineStores in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureOnlineStores.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "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\".", - "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", - "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.", - "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.", - "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", - "response": { - "$ref": "GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" }, - "patch": { - "description": "Updates the parameters of a single FeatureOnlineStore.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", - "httpMethod": "PATCH", - "id": "aiplatform.projects.locations.featureOnlineStores.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - "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: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica`", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" }, - "setIamPolicy": { - "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}/featureOnlineStores/{featureOnlineStoresId}:setIamPolicy", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureOnlineStores.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/[^/]+/featureOnlineStores/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "GoogleIamV1SetIamPolicyRequest" - }, - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/persistentResources/{persistentResourcesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.persistentResources.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^persistentResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:testIamPermissions", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureOnlineStores.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "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.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "response": { - "$ref": "GoogleIamV1TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "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" } }, - "resources": { - "featureViews": { - "methods": { - "create": { - "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": [ - "parent" - ], - "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}`", - "location": "path", - "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/{+parent}/featureViews", - "request": { - "$ref": "GoogleCloudAiplatformV1FeatureView" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "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": "Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "pipelineJobs": { + "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/pipelineJobs/{pipelineJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.pipelineJobs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^pipelineJobs/[^/]+/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/pipelineJobs/{pipelineJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.pipelineJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^pipelineJobs/[^/]+/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/pipelineJobs/{pipelineJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.pipelineJobs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^pipelineJobs/[^/]+/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/pipelineJobs/{pipelineJobsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.pipelineJobs.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/pipelineJobs/{pipelineJobsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.pipelineJobs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "projects": { + "methods": { + "getCacheConfig": { + "description": "Gets a GenAI cache config.", + "flatPath": "v1/projects/{projectsId}/cacheConfig", + "httpMethod": "GET", + "id": "aiplatform.projects.getCacheConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`.", + "location": "path", + "pattern": "^projects/[^/]+/cacheConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1CacheConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateCacheConfig": { + "description": "Updates a cache config.", + "flatPath": "v1/projects/{projectsId}/cacheConfig", + "httpMethod": "PATCH", + "id": "aiplatform.projects.updateCacheConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.", + "location": "path", + "pattern": "^projects/[^/]+/cacheConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1CacheConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "locations": { + "methods": { + "augmentPrompt": { + "description": "Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:augmentPrompt", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.augmentPrompt", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location from which to augment prompt. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:augmentPrompt", + "request": { + "$ref": "GoogleCloudAiplatformV1AugmentPromptRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1AugmentPromptResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "corroborateContent": { + "description": "Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:corroborateContent", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.corroborateContent", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location from which to corroborate text. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:corroborateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1CorroborateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CorroborateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "deploy": { + "description": "Deploys a model to a new endpoint.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:deploy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.deploy", + "parameterOrder": [ + "destination" + ], + "parameters": { + "destination": { + "description": "Required. The resource name of the Location to deploy the model in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+destination}:deploy", + "request": { + "$ref": "GoogleCloudAiplatformV1DeployRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "evaluateDataset": { + "description": "Evaluates a dataset based on a set of given metrics.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:evaluateDataset", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluateDataset", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The resource name of the Location to evaluate the dataset. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:evaluateDataset", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluateDatasetRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "evaluateInstances": { + "description": "Evaluates instances based on a given metric.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:evaluateInstances", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluateInstances", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The resource name of the Location to evaluate the instances. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:evaluateInstances", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluateInstancesRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluateInstancesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateInstanceRubrics": { + "description": "Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:generateInstanceRubrics", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.generateInstanceRubrics", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The resource name of the Location to generate rubrics from. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:generateInstanceRubrics", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateInstanceRubricsRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateInstanceRubricsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generateSyntheticData": { + "description": "Generates synthetic data based on the provided configuration.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:generateSyntheticData", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.generateSyntheticData", + "parameterOrder": [ + "location" + ], + "parameters": { + "location": { + "description": "Required. The resource name of the Location to run the job. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+location}:generateSyntheticData", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateSyntheticDataRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateSyntheticDataResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "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" + ] + }, + "getRagEngineConfig": { + "description": "Gets a RagEngineConfig.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.getRagEngineConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the RagEngineConfig resource. Format: `projects/{project}/locations/{location}/ragEngineConfig`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1RagEngineConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "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": { + "extraLocationTypes": { + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "location": "query", + "repeated": true, + "type": "string" + }, + "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" + ] + }, + "retrieveContexts": { + "description": "Retrieves relevant contexts for a query.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:retrieveContexts", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.retrieveContexts", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location from which to retrieve RagContexts. The users must have permission to make a call in the project. Format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:retrieveContexts", + "request": { + "$ref": "GoogleCloudAiplatformV1RetrieveContextsRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1RetrieveContextsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "updateRagEngineConfig": { + "description": "Updates a RagEngineConfig.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/ragEngineConfig", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.updateRagEngineConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The name of the RagEngineConfig. Format: `projects/{project}/locations/{location}/ragEngineConfig`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1RagEngineConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "batchPredictionJobs": { + "methods": { + "cancel": { + "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" + ] + }, + "create": { + "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" + ] + }, + "delete": { + "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" + ] + }, + "get": { + "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" + ] + }, + "list": { + "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 `=`, `!=`,`<`, `<=`,`>`, `>=` 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:*`", + "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" + ] + } + } + }, + "cachedContents": { + "methods": { + "create": { + "description": "Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.cachedContents.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where the cached content will be created", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/cachedContents", + "request": { + "$ref": "GoogleCloudAiplatformV1CachedContent" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CachedContent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes cached content", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.cachedContents.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name referring to the cached content", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets cached content configurations", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.cachedContents.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name referring to the cached content", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1CachedContent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists cached contents in a project", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.cachedContents.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of cached contents.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/cachedContents", + "response": { + "$ref": "GoogleCloudAiplatformV1ListCachedContentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates cached content configurations", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cachedContents/{cachedContentsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.cachedContents.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1CachedContent" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CachedContent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "customJobs": { + "methods": { + "cancel": { + "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" + ] + }, + "create": { + "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" + ] + }, + "delete": { + "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" + ] + }, + "get": { + "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" + ] + }, + "list": { + "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 `=`, `!=`,`<`, `<=`,`>`, `>=` 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:*`", + "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" + ] + } + }, + "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}/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" + ] + }, + "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}/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" + ] + }, + "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}/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" + ] + }, + "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}/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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" + ] + } + } + } + } + }, + "dataLabelingJobs": { + "methods": { + "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.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": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleCloudAiplatformV1CancelDataLabelingJobRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a DataLabelingJob.", + "flatPath": "v1/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": "v1/{+parent}/dataLabelingJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1DataLabelingJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1DataLabelingJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a DataLabelingJob.", + "flatPath": "v1/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": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a DataLabelingJob.", + "flatPath": "v1/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": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1DataLabelingJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists DataLabelingJobs in a Location.", + "flatPath": "v1/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 `=`, `!=`,`<`, `<=`,`>`, `>=` 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:*`", + "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": "v1/{+parent}/dataLabelingJobs", + "response": { + "$ref": "GoogleCloudAiplatformV1ListDataLabelingJobsResponse" + }, + "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}/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": "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}/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": "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}/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": "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}/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "datasets": { + "methods": { + "create": { + "description": "Creates a Dataset.", + "flatPath": "v1/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": "v1/{+parent}/datasets", + "request": { + "$ref": "GoogleCloudAiplatformV1Dataset" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "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": "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": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "export": { + "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": { + "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": "v1/{+name}:export", + "request": { + "$ref": "GoogleCloudAiplatformV1ExportDataRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "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": "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": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "import": { + "description": "Imports data into a Dataset.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:import", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.datasets.import", + "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": "v1/{+name}:import", + "request": { + "$ref": "GoogleCloudAiplatformV1ImportDataRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "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 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", + "response": { + "$ref": "GoogleCloudAiplatformV1ListDatasetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "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": "Output only. Identifier. The resource name of the Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "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": "GoogleCloudAiplatformV1Dataset" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "searchDataItems": { + "description": "Searches DataItems in a Dataset.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:searchDataItems", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.searchDataItems", + "parameterOrder": [ + "dataset" + ], + "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}`", + "location": "path", + "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/{+dataset}:searchDataItems", + "response": { + "$ref": "GoogleCloudAiplatformV1SearchDataItemsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "annotationSpecs": { + "methods": { + "get": { + "description": "Gets an AnnotationSpec.", + "flatPath": "v1/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": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1AnnotationSpec" + }, + "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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.annotationSpecs.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/[^/]+/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "dataItems": { + "methods": { + "list": { + "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 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": "v1/{+parent}/dataItems", + "response": { + "$ref": "GoogleCloudAiplatformV1ListDataItemsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "annotations": { + "methods": { + "list": { + "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": [ + "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 DataItem to list Annotations from. Format: `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`", + "location": "path", + "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/{+parent}/annotations", + "response": { + "$ref": "GoogleCloudAiplatformV1ListAnnotationsResponse" + }, + "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.dataItems.annotations.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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" + ] + }, + "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.datasets.dataItems.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.dataItems.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/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}/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's parent resource.", + "location": "path", + "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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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 wait on.", + "location": "path", + "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}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "datasetVersions": { + "methods": { + "create": { + "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": [ + "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": "v1/{+parent}/datasetVersions", + "request": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "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": { + "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": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "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": "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" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists DatasetVersions in a Dataset.", + "flatPath": "v1/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 Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + "location": "path", + "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": "v1/{+parent}/datasetVersions", + "response": { + "$ref": "GoogleCloudAiplatformV1ListDatasetVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a DatasetVersion.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.datasets.datasetVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + "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`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1DatasetVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restore": { + "description": "Restores a dataset version.", + "flatPath": "v1/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 name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:restore", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.datasets.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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}/datasets/{datasetsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.datasets.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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}/datasets/{datasetsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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}/datasets/{datasetsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.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/[^/]+/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "savedQueries": { + "methods": { + "delete": { + "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" + ] + }, + "list": { + "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" + ] + } + }, + "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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.datasets.savedQueries.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.datasets.savedQueries.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.savedQueries.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.datasets.savedQueries.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/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.datasets.savedQueries.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/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" + ] + } + } + } + } + } + } + }, + "deploymentResourcePools": { + "methods": { + "create": { + "description": "Create a DeploymentResourcePool.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.deploymentResourcePools.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/deploymentResourcePools", + "request": { + "$ref": "GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a DeploymentResourcePool.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.deploymentResourcePools.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a DeploymentResourcePool.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.deploymentResourcePools.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1DeploymentResourcePool" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List DeploymentResourcePools in a location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.deploymentResourcePools.list", + "parameterOrder": [ + "parent" + ], + "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}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/deploymentResourcePools", + "response": { + "$ref": "GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update a DeploymentResourcePool.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.deploymentResourcePools.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1DeploymentResourcePool" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryDeployedModels": { + "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", + "parameterOrder": [ + "deploymentResourcePool" + ], + "parameters": { + "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/[^/]+/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/{+deploymentResourcePool}:queryDeployedModels", + "response": { + "$ref": "GoogleCloudAiplatformV1QueryDeployedModelsResponse" + }, + "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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.deploymentResourcePools.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.deploymentResourcePools.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.deploymentResourcePools.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.deploymentResourcePools.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/[^/]+/deploymentResourcePools/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.deploymentResourcePools.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/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" + ] + } + } + } + } + }, + "endpoints": { + "methods": { + "computeTokens": { + "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": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:computeTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "countTokens": { + "description": "Perform a token counting.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:countTokens", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:countTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1CountTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates an Endpoint.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.create", + "parameterOrder": [ + "parent" + ], + "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}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/endpoints", + "request": { + "$ref": "GoogleCloudAiplatformV1Endpoint" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "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": "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": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "deployModel": { + "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": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:deployModel", + "request": { + "$ref": "GoogleCloudAiplatformV1DeployModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "directPredict": { + "description": "Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directPredict", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.directPredict", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:directPredict", + "request": { + "$ref": "GoogleCloudAiplatformV1DirectPredictRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1DirectPredictResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "directRawPredict": { + "description": "Perform an unary online prediction request to a gRPC model server for custom containers.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directRawPredict", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.directRawPredict", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:directRawPredict", + "request": { + "$ref": "GoogleCloudAiplatformV1DirectRawPredictRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1DirectRawPredictResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "explain": { + "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": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:explain", + "request": { + "$ref": "GoogleCloudAiplatformV1ExplainRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1ExplainResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "fetchPredictOperation": { + "description": "Fetch an asynchronous online prediction operation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:fetchPredictOperation", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.fetchPredictOperation", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:fetchPredictOperation", + "request": { + "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "generateContent": { + "description": "Generate content with multimodal inputs.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:generateContent", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.generateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:generateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "get": { + "description": "Gets an Endpoint.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.endpoints.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Endpoint resource. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1Endpoint" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Endpoints in a Location.", + "flatPath": "v1/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\"`. * `base_model_name` only supports `=`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `baseModelName=\"text-bison\"`", + "location": "query", + "type": "string" + }, + "gdcZone": { + "description": "Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only set this field when the Endpoint is to be deployed in a GDC environment.", + "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": "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}`", + "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", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEndpointsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "mutateDeployedModel": { + "description": "Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `required_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" + ] + }, + "patch": { + "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" + ] + }, + "predict": { + "description": "Perform an online prediction.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predict", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.predict", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predict", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1PredictResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "predictLongRunning": { + "description": "", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predictLongRunning", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.predictLongRunning", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predictLongRunning", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "rawPredict": { + "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": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:rawPredict", + "request": { + "$ref": "GoogleCloudAiplatformV1RawPredictRequest" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "serverStreamingPredict": { + "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": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:serverStreamingPredict", + "request": { + "$ref": "GoogleCloudAiplatformV1StreamingPredictRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1StreamingPredictResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "streamGenerateContent": { + "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", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "streamRawPredict": { + "description": "Perform a streaming online prediction with an arbitrary HTTP payload.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamRawPredict", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.streamRawPredict", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:streamRawPredict", + "request": { + "$ref": "GoogleCloudAiplatformV1StreamRawPredictRequest" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "undeployModel": { + "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", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:undeployModel", + "request": { + "$ref": "GoogleCloudAiplatformV1UndeployModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "update": { + "description": "Updates an Endpoint with a long running operation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:update", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.update", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name of the Endpoint.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:update", + "request": { + "$ref": "GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "chat": { + "methods": { + "completions": { + "description": "Exposes an OpenAI-compatible endpoint for chat completions.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/chat/completions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.chat.completions", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/chat/completions", + "request": { + "$ref": "GoogleApiHttpBody" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "deployedModels": { + "resources": { + "invoke": { + "methods": { + "invoke": { + "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/deployedModels/{deployedModelId}/invoke/{invokeId}", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.deployedModels.invoke.invoke", + "parameterOrder": [ + "endpoint", + "deployedModelId", + "invokeId" + ], + "parameters": { + "deployedModelId": { + "description": "ID of the DeployedModel that serves the invoke request.", + "location": "path", + "required": true, + "type": "string" + }, + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + }, + "invokeId": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}", + "request": { + "$ref": "GoogleCloudAiplatformV1InvokeRequest" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + } + } + }, + "invoke": { + "methods": { + "invoke": { + "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/invoke/{invokeId}", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.invoke.invoke", + "parameterOrder": [ + "endpoint", + "invokeId" + ], + "parameters": { + "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/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + }, + "invokeId": { + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/invoke/{+invokeId}", + "request": { + "$ref": "GoogleCloudAiplatformV1InvokeRequest" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "openapi": { + "methods": { + "embeddings": { + "description": "Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/openapi/embeddings", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.openapi.embeddings", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "deployedModelId": { + "description": "ID of the DeployedModel that serves the invoke request.", + "location": "query", + "type": "string" + }, + "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/[^/]+/endpoints/openapi$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}/embeddings", + "request": { + "$ref": "GoogleApiHttpBody" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + }, + "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}/endpoints/{endpointsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.endpoints.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "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}/endpoints/{endpointsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.endpoints.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "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}/endpoints/{endpointsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.endpoints.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "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}/endpoints/{endpointsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.endpoints.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/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" + ] + } + } + } + } + }, + "evaluationItems": { + "methods": { + "create": { + "description": "Creates an Evaluation Item.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationItems.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Evaluation Item in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationItems", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationItem" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationItem" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Evaluation Item.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems/{evaluationItemsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationItems.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationItem resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an Evaluation Item.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems/{evaluationItemsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationItems.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationItem resource. Format: `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationItem" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Evaluation Items.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationItems", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationItems.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the EvaluationItems to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of Evaluation Items to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the Evaluation Items. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationItems", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEvaluationItemsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "evaluationRuns": { + "methods": { + "cancel": { + "description": "Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run can be checked via GetEvaluationRun.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationRuns.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationRun resource to be cancelled. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleCloudAiplatformV1CancelEvaluationRunRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates an Evaluation Run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationRuns.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Evaluation Run in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationRuns", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationRun" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationRun" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Evaluation Run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationRuns.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationRun resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an Evaluation Run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns/{evaluationRunsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationRuns.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationRun resource. Format: `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationRun" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Evaluation Runs.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationRuns", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationRuns.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of Evaluation Runs to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the Evaluation Runs. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationRuns", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEvaluationRunsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "evaluationSets": { + "methods": { + "create": { + "description": "Creates an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.evaluationSets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Evaluation Set in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationSets", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.evaluationSets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationSet resource to be deleted. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationSets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EvaluationSet resource. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Evaluation Sets.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.evaluationSets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names both snake_case and camelCase are supported. For more information about filter syntax, see [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of Evaluation Sets to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location from which to list the Evaluation Sets. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/evaluationSets", + "response": { + "$ref": "GoogleCloudAiplatformV1ListEvaluationSetsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an Evaluation Set.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/evaluationSets/{evaluationSetsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.evaluationSets.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the EvaluationSet. Format: `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1EvaluationSet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "featureGroups": { + "methods": { + "create": { + "description": "Creates a new FeatureGroup in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.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 128 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/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/featureGroups", + "request": { + "$ref": "GoogleCloudAiplatformV1FeatureGroup" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single FeatureGroup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + "httpMethod": "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": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single FeatureGroup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureGroup resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1FeatureGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "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}/featureGroups/{featureGroupsId}:getIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "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.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists FeatureGroups in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "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\".", + "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", + "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.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureRegistryService.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": "v1/{+parent}/featureGroups", + "response": { + "$ref": "GoogleCloudAiplatformV1ListFeatureGroupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "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": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", + "location": "path", + "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` * `description` * `big_query` * `big_query.entity_id_columns` * `service_agent_type`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1FeatureGroup" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "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}/featureGroups/{featureGroupsId}:setIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.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/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}:testIamPermissions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "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.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "features": { + "methods": { + "batchCreate": { + "description": "Creates a batch of Features in a given FeatureGroup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features:batchCreate", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.features.batchCreate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/features:batchCreate", + "request": { + "$ref": "GoogleCloudAiplatformV1BatchCreateFeaturesRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new Feature in a given FeatureGroup.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.features.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.", + "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/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/features", + "request": { + "$ref": "GoogleCloudAiplatformV1Feature" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "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": [ + "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}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "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": [ + "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}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1Feature" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "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": [ + "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 =, !=, <, >, >=, 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.", + "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 < 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/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/features", + "response": { + "$ref": "GoogleCloudAiplatformV1ListFeaturesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "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": "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 FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService FeatureStore)", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1Feature" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "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}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.features.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listWait": { + "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", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:wait", + "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}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "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}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "listWait": { + "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", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}:wait", + "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}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "featureOnlineStores": { + "methods": { + "create": { + "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", + "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.", + "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/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/featureOnlineStores", + "request": { + "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "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.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 FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single FeatureOnlineStore.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureOnlineStores.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureOnlineStore resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "getIamPolicy": { + "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}/featureOnlineStores/{featureOnlineStoresId}:getIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "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.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:getIamPolicy", + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists FeatureOnlineStores in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureOnlineStores.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "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\".", + "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", + "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.", + "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.", + "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", + "response": { + "$ref": "GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single FeatureOnlineStore.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.featureOnlineStores.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "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: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "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}/featureOnlineStores/{featureOnlineStoresId}:setIamPolicy", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.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/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}:testIamPermissions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "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.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "response": { + "$ref": "GoogleIamV1TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "featureViews": { + "methods": { + "create": { + "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": [ + "parent" + ], + "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}`", + "location": "path", + "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/{+parent}/featureViews", + "request": { + "$ref": "GoogleCloudAiplatformV1FeatureView" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "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": "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, @@ -19988,191 +25152,2382 @@ } } } - } + } + } + } + }, + "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}/tensorboards/{tensorboardsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tensorboards.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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}/tensorboards/{tensorboardsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.tensorboards.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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}/tensorboards/{tensorboardsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tensorboards.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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}/tensorboards/{tensorboardsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tensorboards.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/[^/]+/tensorboards/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tensorboards.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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" + ] + } + } + } + } + }, + "trainingPipelines": { + "methods": { + "cancel": { + "description": "Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use PipelineService.GetTrainingPipeline or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the TrainingPipeline is not deleted; instead it becomes a pipeline with a TrainingPipeline.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TrainingPipeline.state is set to `CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.trainingPipelines.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the TrainingPipeline to cancel. Format: `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleCloudAiplatformV1CancelTrainingPipelineRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.trainingPipelines.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the TrainingPipeline in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/trainingPipelines", + "request": { + "$ref": "GoogleCloudAiplatformV1TrainingPipeline" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1TrainingPipeline" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a TrainingPipeline.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.trainingPipelines.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the TrainingPipeline resource to be deleted. Format: `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a TrainingPipeline.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.trainingPipelines.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the TrainingPipeline resource. Format: `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1TrainingPipeline" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists TrainingPipelines in a Location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.trainingPipelines.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * `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=\"PIPELINE_STATE_SUCCEEDED\" AND display_name:\"my_pipeline_*\"` * `state!=\"PIPELINE_STATE_FAILED\" OR display_name=\"my_pipeline\"` * `NOT display_name=\"my_pipeline\"` * `create_time>\"2021-05-18T00:00:00Z\"` * `training_task_definition:\"*automl_text_classification*\"`", + "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 ListTrainingPipelinesResponse.next_page_token of the previous PipelineService.ListTrainingPipelines call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the TrainingPipelines 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}/trainingPipelines", + "response": { + "$ref": "GoogleCloudAiplatformV1ListTrainingPipelinesResponse" + }, + "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}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.trainingPipelines.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.trainingPipelines.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.trainingPipelines.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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}/trainingPipelines/{trainingPipelinesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.trainingPipelines.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/[^/]+/trainingPipelines/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.trainingPipelines.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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" + ] + } + } + } + } + }, + "tuningJobs": { + "methods": { + "cancel": { + "description": "Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the TuningJob is not deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TuningJob.state is set to `CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the TuningJob to cancel. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleCloudAiplatformV1CancelTuningJobRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a TuningJob. A created TuningJob right away will be attempted to be run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the TuningJob in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/tuningJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1TuningJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1TuningJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a TuningJob.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tuningJobs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the TuningJob resource. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1TuningJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists TuningJobs in a Location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tuningJobs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The standard list filter.", + "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 ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the TuningJobs from. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/tuningJobs", + "response": { + "$ref": "GoogleCloudAiplatformV1ListTuningJobsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "rebaseTunedModel": { + "description": "Rebase a TunedModel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs:rebaseTunedModel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.rebaseTunedModel", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/tuningJobs:rebaseTunedModel", + "request": { + "$ref": "GoogleCloudAiplatformV1RebaseTunedModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "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}/tuningJobs/{tuningJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/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}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.tuningJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/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}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tuningJobs.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/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}/tuningJobs/{tuningJobsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.tuningJobs.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/[^/]+/tuningJobs/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + }, + "publishers": { + "resources": { + "models": { + "methods": { + "computeTokens": { + "description": "Return a list of tokens based on the input text.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:computeTokens", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.computeTokens", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:computeTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "countTokens": { + "description": "Perform a token counting.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:countTokens", + "httpMethod": "POST", + "id": "aiplatform.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": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:countTokens", + "request": { + "$ref": "GoogleCloudAiplatformV1CountTokensRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchPredictOperation": { + "description": "Fetch an asynchronous online prediction operation.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:fetchPredictOperation", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.fetchPredictOperation", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:fetchPredictOperation", + "request": { + "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "generateContent": { + "description": "Generate content with multimodal inputs.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:generateContent", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.generateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:generateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "get": { + "description": "Gets a Model Garden publisher model.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}", + "httpMethod": "GET", + "id": "aiplatform.publishers.models.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "huggingFaceToken": { + "description": "Optional. Token used to access Hugging Face gated models.", + "location": "query", + "type": "string" + }, + "isHuggingFaceModel": { + "description": "Optional. Boolean indicates whether the requested model is a Hugging Face model.", + "location": "query", + "type": "boolean" + }, + "languageCode": { + "description": "Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the PublisherModel resource. Format: `publishers/{publisher}/models/{publisher_model}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. PublisherModel view specifying which fields to read.", + "enum": [ + "PUBLISHER_MODEL_VIEW_UNSPECIFIED", + "PUBLISHER_MODEL_VIEW_BASIC", + "PUBLISHER_MODEL_VIEW_FULL", + "PUBLISHER_MODEL_VERSION_VIEW_BASIC" + ], + "enumDescriptions": [ + "The default / unset value. The API will default to the BASIC view.", + "Include basic metadata about the publisher model, but not the full contents.", + "Include everything.", + "Include: VersionId, ModelVersionExternalName, and SupportedActions." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1PublisherModel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "predict": { + "description": "Perform an online prediction.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:predict", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.predict", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predict", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1PredictResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "predictLongRunning": { + "description": "", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:predictLongRunning", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.predictLongRunning", + "parameterOrder": [ + "endpoint" + ], + "parameters": { + "endpoint": { + "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+endpoint}:predictLongRunning", + "request": { + "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + }, + "streamGenerateContent": { + "description": "Generate content with multimodal inputs with streaming support.", + "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", + "httpMethod": "POST", + "id": "aiplatform.publishers.models.streamGenerateContent", + "parameterOrder": [ + "model" + ], + "parameters": { + "model": { + "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + "location": "path", + "pattern": "^publishers/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+model}:streamGenerateContent", + "request": { + "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only" + ] + } + } + } + } + }, + "ragCorpora": { + "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/ragCorpora/{ragCorporaId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.ragCorpora.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/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/ragCorpora/{ragCorporaId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.ragCorpora.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/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/ragCorpora/{ragCorporaId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.ragCorpora.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/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/ragCorpora/{ragCorporaId}/operations", + "httpMethod": "GET", + "id": "aiplatform.ragCorpora.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": "^ragCorpora/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/ragCorpora/{ragCorporaId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.ragCorpora.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/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" + ] + } + } + }, + "ragFiles": { + "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/ragCorpora/{ragCorporaId}/ragFiles/{ragFilesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.ragCorpora.ragFiles.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/ragFiles/[^/]+/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/ragCorpora/{ragCorporaId}/ragFiles/{ragFilesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.ragCorpora.ragFiles.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/ragFiles/[^/]+/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/ragCorpora/{ragCorporaId}/ragFiles/{ragFilesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.ragCorpora.ragFiles.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/ragFiles/[^/]+/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/ragCorpora/{ragCorporaId}/ragFiles/{ragFilesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.ragCorpora.ragFiles.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": "^ragCorpora/[^/]+/ragFiles/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/ragCorpora/{ragCorporaId}/ragFiles/{ragFilesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.ragCorpora.ragFiles.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^ragCorpora/[^/]+/ragFiles/[^/]+/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" + ] + } + } + } + } + } + } + }, + "ragEngineConfig": { + "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/ragEngineConfig/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.ragEngineConfig.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^ragEngineConfig/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/ragEngineConfig/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.ragEngineConfig.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^ragEngineConfig/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/ragEngineConfig/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.ragEngineConfig.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^ragEngineConfig/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/ragEngineConfig/operations", + "httpMethod": "GET", + "id": "aiplatform.ragEngineConfig.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": "^ragEngineConfig$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/ragEngineConfig/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.ragEngineConfig.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^ragEngineConfig/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" + ] + } + } + } + } + }, + "reasoningEngines": { + "methods": { + "create": { + "description": "Creates a reasoning engine.", + "flatPath": "v1/reasoningEngines", + "httpMethod": "POST", + "id": "aiplatform.reasoningEngines.create", + "parameterOrder": [], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the ReasoningEngine in. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + } + }, + "path": "v1/reasoningEngines", + "request": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngine" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a reasoning engine.", + "flatPath": "v1/reasoningEngines/{reasoningEnginesId}", + "httpMethod": "DELETE", + "id": "aiplatform.reasoningEngines.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, child resources of this reasoning engine will also be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error when the reasoning engine has undeleted child resources.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the ReasoningEngine resource to be deleted. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", + "location": "path", + "pattern": "^reasoningEngines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a reasoning engine.", + "flatPath": "v1/reasoningEngines/{reasoningEnginesId}", + "httpMethod": "GET", + "id": "aiplatform.reasoningEngines.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReasoningEngine resource. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", + "location": "path", + "pattern": "^reasoningEngines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngine" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists reasoning engines in a location.", + "flatPath": "v1/reasoningEngines", + "httpMethod": "GET", + "id": "aiplatform.reasoningEngines.list", + "parameterOrder": [], + "parameters": { + "filter": { + "description": "Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list the ReasoningEngines from. Format: `projects/{project}/locations/{location}`", + "location": "query", + "type": "string" + } + }, + "path": "v1/reasoningEngines", + "response": { + "$ref": "GoogleCloudAiplatformV1ListReasoningEnginesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a reasoning engine.", + "flatPath": "v1/reasoningEngines/{reasoningEnginesId}", + "httpMethod": "PATCH", + "id": "aiplatform.reasoningEngines.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the ReasoningEngine. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", + "location": "path", + "pattern": "^reasoningEngines/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. Mask specifying which fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngine" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "query": { + "description": "Queries using a reasoning engine.", + "flatPath": "v1/reasoningEngines/{reasoningEnginesId}:query", + "httpMethod": "POST", + "id": "aiplatform.reasoningEngines.query", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReasoningEngine resource to use. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", + "location": "path", + "pattern": "^reasoningEngines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:query", + "request": { + "$ref": "GoogleCloudAiplatformV1QueryReasoningEngineRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1QueryReasoningEngineResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "streamQuery": { + "description": "Streams queries using a reasoning engine.", + "flatPath": "v1/reasoningEngines/{reasoningEnginesId}:streamQuery", + "httpMethod": "POST", + "id": "aiplatform.reasoningEngines.streamQuery", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the ReasoningEngine resource to use. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", + "location": "path", + "pattern": "^reasoningEngines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:streamQuery", + "request": { + "$ref": "GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest" + }, + "response": { + "$ref": "GoogleApiHttpBody" + }, + "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/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.reasoningEngines.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^reasoningEngines/[^/]+/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/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.reasoningEngines.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^reasoningEngines/[^/]+/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/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.reasoningEngines.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^reasoningEngines/[^/]+/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/reasoningEngines/{reasoningEnginesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.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": "^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" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.reasoningEngines.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^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": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "schedules": { + "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/schedules/{schedulesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.schedules.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^schedules/[^/]+/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/schedules/{schedulesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.schedules.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^schedules/[^/]+/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/schedules/{schedulesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.schedules.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^schedules/[^/]+/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/schedules/{schedulesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.schedules.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": "^schedules/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/schedules/{schedulesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.schedules.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^schedules/[^/]+/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" + ] + } + } + } + } + }, + "specialistPools": { + "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/specialistPools/{specialistPoolsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.specialistPools.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^specialistPools/[^/]+/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/specialistPools/{specialistPoolsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.specialistPools.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^specialistPools/[^/]+/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/specialistPools/{specialistPoolsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.specialistPools.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^specialistPools/[^/]+/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/specialistPools/{specialistPoolsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.specialistPools.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": "^specialistPools/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/specialistPools/{specialistPoolsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.specialistPools.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^specialistPools/[^/]+/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" + ] + } + } + } + } + }, + "studies": { + "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/studies/{studiesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.studies.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^studies/[^/]+/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/studies/{studiesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.studies.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^studies/[^/]+/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/studies/{studiesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.studies.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^studies/[^/]+/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/studies/{studiesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.studies.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" }, - "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}/tensorboards/{tensorboardsId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.tensorboards.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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}/tensorboards/{tensorboardsId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.tensorboards.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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}/tensorboards/{tensorboardsId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.tensorboards.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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}/tensorboards/{tensorboardsId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.tensorboards.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/[^/]+/tensorboards/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorboards/{tensorboardsId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.tensorboards.operations.wait", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/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" - ] - } - } + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^studies/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } - } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "trainingPipelines": { + "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/studies/{studiesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.studies.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^studies/[^/]+/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" + ] + } + } + }, + "trials": { + "resources": { + "operations": { "methods": { "cancel": { - "description": "Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use PipelineService.GetTrainingPipeline or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the TrainingPipeline is not deleted; instead it becomes a pipeline with a TrainingPipeline.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TrainingPipeline.state is set to `CANCELLED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}: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/studies/{studiesId}/trials/{trialsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.trainingPipelines.cancel", + "id": "aiplatform.studies.trials.operations.cancel", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the TrainingPipeline to cancel. Format: `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`", + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + "pattern": "^studies/[^/]+/trials/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}:cancel", - "request": { - "$ref": "GoogleCloudAiplatformV1CancelTrainingPipelineRequest" - }, "response": { "$ref": "GoogleProtobufEmpty" }, @@ -20180,98 +27535,77 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "create": { - "description": "Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.trainingPipelines.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the TrainingPipeline in. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/trainingPipelines", - "request": { - "$ref": "GoogleCloudAiplatformV1TrainingPipeline" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1TrainingPipeline" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "delete": { - "description": "Deletes a TrainingPipeline.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}", + "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/studies/{studiesId}/trials/{trialsId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.trainingPipelines.delete", + "id": "aiplatform.studies.trials.operations.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the TrainingPipeline resource to be deleted. Format: `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`", + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + "pattern": "^studies/[^/]+/trials/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets a TrainingPipeline.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}", + "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/studies/{studiesId}/trials/{trialsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.trainingPipelines.get", + "id": "aiplatform.studies.trials.operations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the TrainingPipeline resource. Format: `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}`", + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + "pattern": "^studies/[^/]+/trials/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1TrainingPipeline" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists TrainingPipelines in a Location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/studies/{studiesId}/trials/{trialsId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.trainingPipelines.list", + "id": "aiplatform.studies.trials.operations.list", "parameterOrder": [ - "parent" + "name" ], "parameters": { "filter": { - "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * `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=\"PIPELINE_STATE_SUCCEEDED\" AND display_name:\"my_pipeline_*\"` * `state!=\"PIPELINE_STATE_FAILED\" OR display_name=\"my_pipeline\"` * `NOT display_name=\"my_pipeline\"` * `create_time>\"2021-05-18T00:00:00Z\"` * `training_task_definition:\"*automl_text_classification*\"`", + "description": "The standard list filter.", "location": "query", "type": "string" }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^studies/[^/]+/trials/[^/]+$", + "required": true, + "type": "string" + }, "pageSize": { "description": "The standard list page size.", "format": "int32", @@ -20279,215 +27613,85 @@ "type": "integer" }, "pageToken": { - "description": "The standard list page token. Typically obtained via ListTrainingPipelinesResponse.next_page_token of the previous PipelineService.ListTrainingPipelines call.", + "description": "The standard list page token.", "location": "query", "type": "string" }, - "parent": { - "description": "Required. The resource name of the Location to list the TrainingPipelines from. Format: `projects/{project}/locations/{location}`", + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/studies/{studiesId}/trials/{trialsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.studies.trials.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^studies/[^/]+/trials/[^/]+/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": "v1/{+parent}/trainingPipelines", + "path": "v1/{+name}:wait", "response": { - "$ref": "GoogleCloudAiplatformV1ListTrainingPipelinesResponse" + "$ref": "GoogleLongrunningOperation" }, "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}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}:cancel", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.trainingPipelines.operations.cancel", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be cancelled.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.trainingPipelines.operations.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to be deleted.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.trainingPipelines.operations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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}/trainingPipelines/{trainingPipelinesId}/operations", - "httpMethod": "GET", - "id": "aiplatform.projects.locations.trainingPipelines.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/[^/]+/trainingPipelines/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "The standard list page token.", - "location": "query", - "type": "string" - }, - "returnPartialSuccess": { - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1/{+name}/operations", - "response": { - "$ref": "GoogleLongrunningListOperationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.trainingPipelines.operations.wait", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the operation resource to wait on.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/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" - ] - } - } - } } - }, - "tuningJobs": { + } + } + } + } + }, + "tensorboards": { + "resources": { + "experiments": { + "resources": { + "operations": { "methods": { "cancel": { - "description": "Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the TuningJob is not deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TuningJob.state is set to `CANCELLED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}: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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.tuningJobs.cancel", + "id": "aiplatform.tensorboards.experiments.operations.cancel", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the TuningJob to cancel. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`", + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}:cancel", - "request": { - "$ref": "GoogleCloudAiplatformV1CancelTuningJobRequest" - }, "response": { "$ref": "GoogleProtobufEmpty" }, @@ -20495,121 +27699,126 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "create": { - "description": "Creates a TuningJob. A created TuningJob right away will be attempted to be run.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.tuningJobs.create", + "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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.tensorboards.experiments.operations.delete", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the TuningJob in. Format: `projects/{project}/locations/{location}`", + "name": { + "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/tuningJobs", - "request": { - "$ref": "GoogleCloudAiplatformV1TuningJob" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1TuningJob" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets a TuningJob.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}", + "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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.tuningJobs.get", + "id": "aiplatform.tensorboards.experiments.operations.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the TuningJob resource. Format: `projects/{project}/locations/{location}/tuningJobs/{tuning_job}`", + "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1TuningJob" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists TuningJobs in a Location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/tensorboards/{tensorboardsId}/experiments/{experimentsId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.tuningJobs.list", + "id": "aiplatform.tensorboards.experiments.operations.list", "parameterOrder": [ - "parent" + "name" ], "parameters": { "filter": { - "description": "Optional. The standard list filter.", + "description": "The standard list filter.", "location": "query", "type": "string" }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+$", + "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 ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.", + "description": "The standard list page token.", "location": "query", "type": "string" }, - "parent": { - "description": "Required. The resource name of the Location to list the TuningJobs from. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+parent}/tuningJobs", + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudAiplatformV1ListTuningJobsResponse" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "rebaseTunedModel": { - "description": "Rebase a TunedModel.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs:rebaseTunedModel", + "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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.tuningJobs.rebaseTunedModel", + "id": "aiplatform.tensorboards.experiments.operations.wait", "parameterOrder": [ - "parent" + "name" ], "parameters": { - "parent": { - "description": "Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}`", + "name": { + "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/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}/tuningJobs:rebaseTunedModel", - "request": { - "$ref": "GoogleCloudAiplatformV1RebaseTunedModelRequest" - }, + "path": "v1/{+name}:wait", "response": { "$ref": "GoogleLongrunningOperation" }, @@ -20617,15 +27826,17 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - }, + } + }, + "runs": { "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}/tuningJobs/{tuningJobsId}/operations/{operationsId}:cancel", + "flatPath": "v1/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.tuningJobs.operations.cancel", + "id": "aiplatform.tensorboards.experiments.runs.operations.cancel", "parameterOrder": [ "name" ], @@ -20633,7 +27844,7 @@ "name": { "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -20648,9 +27859,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}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "flatPath": "v1/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.tuningJobs.operations.delete", + "id": "aiplatform.tensorboards.experiments.runs.operations.delete", "parameterOrder": [ "name" ], @@ -20658,7 +27869,7 @@ "name": { "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -20673,9 +27884,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}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "flatPath": "v1/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.tuningJobs.operations.get", + "id": "aiplatform.tensorboards.experiments.runs.operations.get", "parameterOrder": [ "name" ], @@ -20683,7 +27894,7 @@ "name": { "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -20698,9 +27909,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}/tuningJobs/{tuningJobsId}/operations", + "flatPath": "v1/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.tuningJobs.operations.list", + "id": "aiplatform.tensorboards.experiments.runs.operations.list", "parameterOrder": [ "name" ], @@ -20713,7 +27924,7 @@ "name": { "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", "required": true, "type": "string" }, @@ -20741,493 +27952,653 @@ "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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.tensorboards.experiments.runs.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/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" + ] + } + } + }, + "timeSeries": { + "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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries/{timeSeriesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.tensorboards.experiments.runs.timeSeries.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries/{timeSeriesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.tensorboards.experiments.runs.timeSeries.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries/{timeSeriesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.tensorboards.experiments.runs.timeSeries.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/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/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries/{timeSeriesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.tensorboards.experiments.runs.timeSeries.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": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/tensorboards/{tensorboardsId}/experiments/{experimentsId}/runs/{runsId}/timeSeries/{timeSeriesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.tensorboards.experiments.runs.timeSeries.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/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" + ] + } + } } } } } } } - } - } - }, - "publishers": { - "resources": { - "models": { + }, + "operations": { "methods": { - "computeTokens": { - "description": "Return a list of tokens based on the input text.", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:computeTokens", + "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/tensorboards/{tensorboardsId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.publishers.models.computeTokens", + "id": "aiplatform.tensorboards.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": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^tensorboards/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:computeTokens", - "request": { - "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + "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/tensorboards/{tensorboardsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.tensorboards.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^tensorboards/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "countTokens": { - "description": "Perform a token counting.", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:countTokens", - "httpMethod": "POST", - "id": "aiplatform.publishers.models.countTokens", + "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/tensorboards/{tensorboardsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.tensorboards.operations.get", "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.", "location": "path", - "pattern": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^tensorboards/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:countTokens", - "request": { - "$ref": "GoogleCloudAiplatformV1CountTokensRequest" + "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/tensorboards/{tensorboardsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.tensorboards.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": "^tensorboards/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } }, + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "fetchPredictOperation": { - "description": "Fetch an asynchronous online prediction operation.", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:fetchPredictOperation", + "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/tensorboards/{tensorboardsId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.publishers.models.fetchPredictOperation", + "id": "aiplatform.tensorboards.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}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "name": { + "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^tensorboards/[^/]+/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}:fetchPredictOperation", - "request": { - "$ref": "GoogleCloudAiplatformV1FetchPredictOperationRequest" + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "trainingPipelines": { + "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/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.trainingPipelines.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^trainingPipelines/[^/]+/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/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.trainingPipelines.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^trainingPipelines/[^/]+/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/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.trainingPipelines.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^trainingPipelines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } }, + "path": "v1/{+name}", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "generateContent": { - "description": "Generate content with multimodal inputs.", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:generateContent", - "httpMethod": "POST", - "id": "aiplatform.publishers.models.generateContent", + "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/trainingPipelines/{trainingPipelinesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.trainingPipelines.operations.list", "parameterOrder": [ - "model" + "name" ], "parameters": { - "model": { - "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint 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": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^trainingPipelines/[^/]+$", "required": true, "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+model}:generateContent", - "request": { - "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + "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/trainingPipelines/{trainingPipelinesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.trainingPipelines.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^trainingPipelines/[^/]+/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": "GoogleCloudAiplatformV1GenerateContentResponse" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] - }, - "get": { - "description": "Gets a Model Garden publisher model.", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}", - "httpMethod": "GET", - "id": "aiplatform.publishers.models.get", + } + } + } + } + }, + "tuningJobs": { + "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/tuningJobs/{tuningJobsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.tuningJobs.operations.cancel", "parameterOrder": [ "name" ], "parameters": { - "huggingFaceToken": { - "description": "Optional. Token used to access Hugging Face gated models.", - "location": "query", - "type": "string" - }, - "isHuggingFaceModel": { - "description": "Optional. Boolean indicates whether the requested model is a Hugging Face model.", - "location": "query", - "type": "boolean" - }, - "languageCode": { - "description": "Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in.", - "location": "query", - "type": "string" - }, "name": { - "description": "Required. The name of the PublisherModel resource. Format: `publishers/{publisher}/models/{publisher_model}`", + "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^tuningJobs/[^/]+/operations/[^/]+$", "required": true, "type": "string" - }, - "view": { - "description": "Optional. PublisherModel view specifying which fields to read.", - "enum": [ - "PUBLISHER_MODEL_VIEW_UNSPECIFIED", - "PUBLISHER_MODEL_VIEW_BASIC", - "PUBLISHER_MODEL_VIEW_FULL", - "PUBLISHER_MODEL_VERSION_VIEW_BASIC" - ], - "enumDescriptions": [ - "The default / unset value. The API will default to the BASIC view.", - "Include basic metadata about the publisher model, but not the full contents.", - "Include everything.", - "Include: VersionId, ModelVersionExternalName, and SupportedActions." - ], - "location": "query", - "type": "string" } }, - "path": "v1/{+name}", + "path": "v1/{+name}:cancel", "response": { - "$ref": "GoogleCloudAiplatformV1PublisherModel" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "predict": { - "description": "Perform an online prediction.", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:predict", - "httpMethod": "POST", - "id": "aiplatform.publishers.models.predict", + "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/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.tuningJobs.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": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^tuningJobs/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:predict", - "request": { - "$ref": "GoogleCloudAiplatformV1PredictRequest" - }, + "path": "v1/{+name}", "response": { - "$ref": "GoogleCloudAiplatformV1PredictResponse" + "$ref": "GoogleProtobufEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "predictLongRunning": { - "description": "", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:predictLongRunning", - "httpMethod": "POST", - "id": "aiplatform.publishers.models.predictLongRunning", + "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/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.tuningJobs.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}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`", + "name": { + "description": "The name of the operation resource.", "location": "path", - "pattern": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^tuningJobs/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+endpoint}:predictLongRunning", - "request": { - "$ref": "GoogleCloudAiplatformV1PredictLongRunningRequest" - }, + "path": "v1/{+name}", "response": { "$ref": "GoogleLongrunningOperation" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] }, - "streamGenerateContent": { - "description": "Generate content with multimodal inputs with streaming support.", - "flatPath": "v1/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", - "httpMethod": "POST", - "id": "aiplatform.publishers.models.streamGenerateContent", + "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/tuningJobs/{tuningJobsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.tuningJobs.operations.list", "parameterOrder": [ - "model" + "name" ], "parameters": { - "model": { - "description": "Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint 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": "^publishers/[^/]+/models/[^/]+$", + "pattern": "^tuningJobs/[^/]+$", "required": true, "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, - "path": "v1/{+model}:streamGenerateContent", - "request": { - "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" - }, + "path": "v1/{+name}/operations", "response": { - "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + "$ref": "GoogleLongrunningListOperationsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" + "https://www.googleapis.com/auth/cloud-platform" ] } } } } - }, - "reasoningEngines": { - "methods": { - "create": { - "description": "Creates a reasoning engine.", - "flatPath": "v1/reasoningEngines", - "httpMethod": "POST", - "id": "aiplatform.reasoningEngines.create", - "parameterOrder": [], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the ReasoningEngine in. Format: `projects/{project}/locations/{location}`", - "location": "query", - "type": "string" - } - }, - "path": "v1/reasoningEngines", - "request": { - "$ref": "GoogleCloudAiplatformV1ReasoningEngine" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a reasoning engine.", - "flatPath": "v1/reasoningEngines/{reasoningEnginesId}", - "httpMethod": "DELETE", - "id": "aiplatform.reasoningEngines.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "force": { - "description": "Optional. If set to true, child resources of this reasoning engine will also be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error when the reasoning engine has undeleted child resources.", - "location": "query", - "type": "boolean" - }, - "name": { - "description": "Required. The name of the ReasoningEngine resource to be deleted. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", - "location": "path", - "pattern": "^reasoningEngines/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets a reasoning engine.", - "flatPath": "v1/reasoningEngines/{reasoningEnginesId}", - "httpMethod": "GET", - "id": "aiplatform.reasoningEngines.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the ReasoningEngine resource. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", - "location": "path", - "pattern": "^reasoningEngines/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleCloudAiplatformV1ReasoningEngine" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists reasoning engines in a location.", - "flatPath": "v1/reasoningEngines", - "httpMethod": "GET", - "id": "aiplatform.reasoningEngines.list", - "parameterOrder": [], - "parameters": { - "filter": { - "description": "Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160).", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The standard list page size.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. The standard list page token.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the Location to list the ReasoningEngines from. Format: `projects/{project}/locations/{location}`", - "location": "query", - "type": "string" - } - }, - "path": "v1/reasoningEngines", - "response": { - "$ref": "GoogleCloudAiplatformV1ListReasoningEnginesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates a reasoning engine.", - "flatPath": "v1/reasoningEngines/{reasoningEnginesId}", - "httpMethod": "PATCH", - "id": "aiplatform.reasoningEngines.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. The resource name of the ReasoningEngine. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", - "location": "path", - "pattern": "^reasoningEngines/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Optional. Mask specifying which fields to update.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "GoogleCloudAiplatformV1ReasoningEngine" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "query": { - "description": "Queries using a reasoning engine.", - "flatPath": "v1/reasoningEngines/{reasoningEnginesId}:query", - "httpMethod": "POST", - "id": "aiplatform.reasoningEngines.query", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the ReasoningEngine resource to use. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", - "location": "path", - "pattern": "^reasoningEngines/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:query", - "request": { - "$ref": "GoogleCloudAiplatformV1QueryReasoningEngineRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1QueryReasoningEngineResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "streamQuery": { - "description": "Streams queries using a reasoning engine.", - "flatPath": "v1/reasoningEngines/{reasoningEnginesId}:streamQuery", - "httpMethod": "POST", - "id": "aiplatform.reasoningEngines.streamQuery", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the ReasoningEngine resource to use. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`", - "location": "path", - "pattern": "^reasoningEngines/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}:streamQuery", - "request": { - "$ref": "GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest" - }, - "response": { - "$ref": "GoogleApiHttpBody" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } }, - "revision": "20251010", + "revision": "20251027", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -26906,6 +34277,10 @@ "description": "A single instance to be evaluated. Instances are used to specify the input data for evaluation, from simple string comparisons to complex, multi-turn model evaluations", "id": "GoogleCloudAiplatformV1EvaluationInstance", "properties": { + "agentData": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentData", + "description": "Optional. Data used for agent evaluation." + }, "otherData": { "$ref": "GoogleCloudAiplatformV1EvaluationInstanceMapInstance", "description": "Optional. Other data used to populate placeholders based on their key." @@ -26932,6 +34307,102 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1EvaluationInstanceAgentConfig": { + "description": "Configuration for an Agent.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceAgentConfig", + "properties": { + "developerInstruction": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData", + "description": "Optional. A field containing instructions from the developer for the agent." + }, + "tools": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentConfigTools", + "description": "List of tools." + }, + "toolsText": { + "description": "A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationInstanceAgentConfigTools": { + "description": "Represents a list of tools for an agent.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceAgentConfigTools", + "properties": { + "tool": { + "description": "Optional. List of tools: each tool can have multiple function declarations.", + "items": { + "$ref": "GoogleCloudAiplatformV1Tool" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationInstanceAgentData": { + "description": "Contains data specific to agent evaluations.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceAgentData", + "properties": { + "agentConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentConfig", + "description": "Optional. Agent configuration." + }, + "developerInstruction": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData", + "deprecated": true, + "description": "Optional. A field containing instructions from the developer for the agent." + }, + "events": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents", + "description": "A list of events." + }, + "eventsText": { + "description": "A JSON string containing a sequence of events.", + "type": "string" + }, + "tools": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools", + "deprecated": true, + "description": "List of tools." + }, + "toolsText": { + "deprecated": true, + "description": "A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters. Example: [ { \"name\": \"search_actors\", \"description\": \"Search for actors in a movie. Returns a list of actors, their roles, their birthdate, and their place of birth.\", \"parameters\": [ { \"name\": \"movie_name\", \"description\": \"The name of the movie.\" }, { \"name\": \"character_name\", \"description\": \"The name of the character.\" } ], \"required\": [\"movie_name\", \"character_name\"] } ]", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents": { + "description": "Represents a list of events for an agent.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents", + "properties": { + "event": { + "description": "Optional. A list of events.", + "items": { + "$ref": "GoogleCloudAiplatformV1Content" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools": { + "description": "Represents a list of tools for an agent.", + "id": "GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools", + "properties": { + "tool": { + "deprecated": true, + "description": "Optional. List of tools: each tool can have multiple function declarations.", + "items": { + "$ref": "GoogleCloudAiplatformV1Tool" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1EvaluationInstanceInstanceData": { "description": "Instance data used to populate placeholders in a metric prompt template.", "id": "GoogleCloudAiplatformV1EvaluationInstanceInstanceData", @@ -27387,6 +34858,10 @@ "description": "Required. The name of the metric.", "type": "string" }, + "metricConfig": { + "$ref": "GoogleCloudAiplatformV1Metric", + "description": "The metric config." + }, "predefinedMetricSpec": { "$ref": "GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec", "description": "Spec for a pre-defined metric." @@ -30474,6 +37949,13 @@ "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].", "type": "string" }, + "parts": { + "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", + "items": { + "$ref": "GoogleCloudAiplatformV1FunctionResponsePart" + }, + "type": "array" + }, "response": { "additionalProperties": { "description": "Properties of the object.", @@ -30485,6 +37967,60 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1FunctionResponseBlob": { + "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field.", + "id": "GoogleCloudAiplatformV1FunctionResponseBlob", + "properties": { + "data": { + "description": "Required. Raw bytes.", + "format": "byte", + "type": "string" + }, + "displayName": { + "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.", + "type": "string" + }, + "mimeType": { + "description": "Required. The IANA standard MIME type of the source data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionResponseFileData": { + "description": "URI based data for function response.", + "id": "GoogleCloudAiplatformV1FunctionResponseFileData", + "properties": { + "displayName": { + "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.", + "type": "string" + }, + "fileUri": { + "description": "Required. URI.", + "type": "string" + }, + "mimeType": { + "description": "Required. The IANA standard MIME type of the source data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionResponsePart": { + "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.", + "id": "GoogleCloudAiplatformV1FunctionResponsePart", + "properties": { + "fileData": { + "$ref": "GoogleCloudAiplatformV1FunctionResponseFileData", + "description": "URI based data." + }, + "inlineData": { + "$ref": "GoogleCloudAiplatformV1FunctionResponseBlob", + "description": "Inline media bytes." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1GcsDestination": { "description": "The Google Cloud Storage location where the output is to be written to.", "id": "GoogleCloudAiplatformV1GcsDestination", @@ -30796,6 +38332,10 @@ "description": "Request message for EvaluationService.GenerateInstanceRubrics.", "id": "GoogleCloudAiplatformV1GenerateInstanceRubricsRequest", "properties": { + "agentConfig": { + "$ref": "GoogleCloudAiplatformV1EvaluationInstanceAgentConfig", + "description": "Optional. Agent configuration, required for agent-based rubric generation." + }, "contents": { "description": "Required. The prompt to generate rubrics from. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.", "items": { @@ -31659,6 +39199,42 @@ "aspectRatio": { "description": "Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: \"1:1\" \"2:3\", \"3:2\" \"3:4\", \"4:3\" \"4:5\", \"5:4\" \"9:16\", \"16:9\" \"21:9\"", "type": "string" + }, + "imageOutputOptions": { + "$ref": "GoogleCloudAiplatformV1ImageConfigImageOutputOptions", + "description": "Optional. The image output format for generated images." + }, + "personGeneration": { + "description": "Optional. Controls whether the model can generate people.", + "enum": [ + "PERSON_GENERATION_UNSPECIFIED", + "ALLOW_ALL", + "ALLOW_ADULT", + "ALLOW_NONE" + ], + "enumDescriptions": [ + "Generation images of people unspecified.", + "Generate images that include adults and children.", + "Generate images of adults, but not children.", + "Block generation of images of people." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ImageConfigImageOutputOptions": { + "description": "The image output format for generated images.", + "id": "GoogleCloudAiplatformV1ImageConfigImageOutputOptions", + "properties": { + "compressionQuality": { + "description": "Optional. The compression quality of the output image.", + "format": "int32", + "type": "integer" + }, + "mimeType": { + "description": "Optional. The image format that the output should be saved as.", + "type": "string" } }, "type": "object" @@ -35639,7 +43215,7 @@ "properties": { "deployedModel": { "$ref": "GoogleCloudAiplatformV1DeployedModel", - "description": "Required. The DeployedModel to be mutated within the Endpoint. Only the following fields can be mutated: * `min_replica_count` in either DedicatedResources or AutomaticResources * `max_replica_count` in either DedicatedResources or AutomaticResources * `required_replica_count` in DedicatedResources * autoscaling_metric_specs * `disable_container_logging` (v1 only) * `enable_container_logging` (v1beta1 only)" + "description": "Required. The DeployedModel to be mutated within the Endpoint. Only the following fields can be mutated: * `min_replica_count` in either DedicatedResources or AutomaticResources * `max_replica_count` in either DedicatedResources or AutomaticResources * `required_replica_count` in DedicatedResources * autoscaling_metric_specs * `disable_container_logging` (v1 only) * `enable_container_logging` (v1beta1 only) * `scale_to_zero_spec` in DedicatedResources (v1beta1 only) * `initial_replica_count` in DedicatedResources (v1beta1 only)" }, "updateMask": { "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", @@ -39822,7 +47398,7 @@ }, "scaled": { "$ref": "GoogleCloudAiplatformV1RagManagedDbConfigScaled", - "description": "Sets the RagManagedDb to the Scaled tier." + "description": "Sets the RagManagedDb to the Scaled tier. This is the default tier if not explicitly chosen." }, "unprovisioned": { "$ref": "GoogleCloudAiplatformV1RagManagedDbConfigUnprovisioned", @@ -40396,6 +47972,10 @@ "serviceAccount": { "description": "Optional. The service account that the Reasoning Engine artifact runs as. It should have \"roles/storage.objectViewer\" for reading the user project's Cloud Storage and \"roles/aiplatform.user\" for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used.", "type": "string" + }, + "sourceCodeSpec": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec", + "description": "Deploy from source code files with a defined entrypoint." } }, "type": "object" @@ -40470,6 +48050,56 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec": { + "description": "Specification for deploying from source code.", + "id": "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec", + "properties": { + "inlineSource": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource", + "description": "Source code is provided directly in the request." + }, + "pythonSpec": { + "$ref": "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec", + "description": "Configuration for a Python application." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource": { + "description": "Specifies source code provided as a byte stream.", + "id": "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource", + "properties": { + "sourceArchive": { + "description": "Required. Input only. The application source code archive, provided as a compressed tarball (.tar.gz) file.", + "format": "byte", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec": { + "description": "Specification for running a Python application from source.", + "id": "GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec", + "properties": { + "entrypointModule": { + "description": "Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For example: path.to.agent. If not specified, defaults to \"agent\". The project root will be added to Python sys.path, allowing imports to be specified relative to the root.", + "type": "string" + }, + "entrypointObject": { + "description": "Optional. The name of the callable object within the `entrypoint_module` to use as the application If not specified, defaults to \"root_agent\".", + "type": "string" + }, + "requirementsFile": { + "description": "Optional. The path to the requirements file, relative to the source root. If not specified, defaults to \"requirements.txt\".", + "type": "string" + }, + "version": { + "description": "Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, default value is 3.10.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RebaseTunedModelRequest": { "description": "Request message for GenAiTuningService.RebaseTunedModel.", "id": "GoogleCloudAiplatformV1RebaseTunedModelRequest", @@ -48376,6 +56006,10 @@ "$ref": "GoogleCloudAiplatformV1ToolCodeExecution", "description": "Optional. CodeExecution tool type. Enables the model to execute code as part of generation." }, + "computerUse": { + "$ref": "GoogleCloudAiplatformV1ToolComputerUse", + "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations." + }, "enterpriseWebSearch": { "$ref": "GoogleCloudAiplatformV1EnterpriseWebSearch", "description": "Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance." @@ -48499,6 +56133,32 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1ToolComputerUse": { + "description": "Tool to support computer use.", + "id": "GoogleCloudAiplatformV1ToolComputerUse", + "properties": { + "environment": { + "description": "Required. The environment being operated.", + "enum": [ + "ENVIRONMENT_UNSPECIFIED", + "ENVIRONMENT_BROWSER" + ], + "enumDescriptions": [ + "Defaults to browser.", + "Operates in a web browser." + ], + "type": "string" + }, + "excludedPredefinedFunctions": { + "description": "Optional. By default, [predefined functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1ToolConfig": { "description": "Tool config. This config is shared for all tools provided in the request.", "id": "GoogleCloudAiplatformV1ToolConfig", diff --git a/DiscoveryJson/apihub.v1.json b/DiscoveryJson/apihub.v1.json index 89bf9c1f95d..343ae7ab09b 100644 --- a/DiscoveryJson/apihub.v1.json +++ b/DiscoveryJson/apihub.v1.json @@ -172,7 +172,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -508,7 +508,7 @@ ] }, "patch": { - "description": "Update an API resource in the API hub. The following fields in the API can be updated: * display_name * description * owner * documentation * target_user * team * business_unit * maturity_level * api_style * attributes The update_mask should be used to specify the fields being updated. Updating the owner field requires complete owner message and updates both owner and email fields.", + "description": "Update an API resource in the API hub. The following fields in the API can be updated: * display_name * description * owner * documentation * target_user * team * business_unit * maturity_level * api_style * attributes * fingerprint The update_mask should be used to specify the fields being updated. Updating the owner field requires complete owner message and updates both owner and email fields.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}", "httpMethod": "PATCH", "id": "apihub.projects.locations.apis.patch", @@ -866,7 +866,7 @@ ] }, "patch": { - "description": "Update an operation in an API version. The following fields in the ApiOperation resource can be updated: * details.description * details.documentation * details.http_operation.path * details.http_operation.method * details.deprecated * attributes The update_mask should be used to specify the fields being updated. An operation can be updated only if the operation was created via CreateApiOperation API. If the operation was created by parsing the spec, then it can be edited by updating the spec.", + "description": "Update an operation in an API version. The following fields in the ApiOperation resource can be updated: * details.description * details.documentation * details.http_operation.path * details.http_operation.method * details.deprecated * attributes * details.mcp_tool.title * details.mcp_tool.description * details.input_schema * details.output_schema * details.mcp_tool.annotations.title * details.mcp_tool.annotations.read_only_hint * details.mcp_tool.annotations.destructive_hint * details.mcp_tool.annotations.idempotent_hint * details.mcp_tool.annotations.open_world_hint * details.mcp_tool.annotations.additional_hints The update_mask should be used to specify the fields being updated. An operation can be updated only if the operation was created via CreateApiOperation API. If the operation was created by parsing the spec, then it can be edited by updating the spec.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/apis/{apisId}/versions/{versionsId}/operations/{operationsId}", "httpMethod": "PATCH", "id": "apihub.projects.locations.apis.versions.operations.patch", @@ -2276,6 +2276,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -2974,7 +2979,7 @@ } } }, - "revision": "20250912", + "revision": "20251025", "rootUrl": "https://apihub.googleapis.com/", "schemas": { "Empty": { @@ -3099,7 +3104,7 @@ "description": "Optional. The documentation for the API resource." }, "fingerprint": { - "description": "Optional. Fingerprint of the API resource.", + "description": "Optional. Fingerprint of the API resource. This must be unique for each API resource. It can neither be unset nor be updated to an existing fingerprint of another API resource.", "type": "string" }, "maturityLevel": { @@ -6515,6 +6520,13 @@ "$ref": "GoogleLongrunningOperation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/DiscoveryJson/businessprofileperformance.v1.json b/DiscoveryJson/businessprofileperformance.v1.json index 0e66bace4cf..a3cad61acb5 100644 --- a/DiscoveryJson/businessprofileperformance.v1.json +++ b/DiscoveryJson/businessprofileperformance.v1.json @@ -123,6 +123,20 @@ "BUSINESS_FOOD_ORDERS", "BUSINESS_FOOD_MENU_CLICKS" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ], "enumDescriptions": [ "Represents the default unknown value.", "Business impressions on Google Maps on Desktop devices. Multiple impressions by a unique user within a single day are counted as a single impression.", @@ -215,6 +229,20 @@ "BUSINESS_FOOD_ORDERS", "BUSINESS_FOOD_MENU_CLICKS" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ], "enumDescriptions": [ "Represents the default unknown value.", "Business impressions on Google Maps on Desktop devices. Multiple impressions by a unique user within a single day are counted as a single impression.", @@ -417,7 +445,7 @@ } } }, - "revision": "20241002", + "revision": "20251026", "rootUrl": "https://businessprofileperformance.googleapis.com/", "schemas": { "DailyMetricTimeSeries": { @@ -440,6 +468,20 @@ "BUSINESS_FOOD_ORDERS", "BUSINESS_FOOD_MENU_CLICKS" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ], "enumDescriptions": [ "Represents the default unknown value.", "Business impressions on Google Maps on Desktop devices. Multiple impressions by a unique user within a single day are counted as a single impression.", diff --git a/DiscoveryJson/chat.v1.json b/DiscoveryJson/chat.v1.json index d0787c30a81..07e9aebbcba 100644 --- a/DiscoveryJson/chat.v1.json +++ b/DiscoveryJson/chat.v1.json @@ -1535,7 +1535,7 @@ } } }, - "revision": "20251016", + "revision": "20251023", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -3041,7 +3041,7 @@ "type": "string" }, "valueMsEpoch": { - "description": "Optional. The default value displayed in the widget, in milliseconds since [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). Specify the value based on the type of picker (`DateTimePickerType`): * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent January 1, 2023, use `1672531200000`. * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use `43200000` (or `12 * 60 * 60 * 1000`).", + "description": "The default value displayed in the widget, in milliseconds since [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time). Specify the value based on the type of picker (`DateTimePickerType`): * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to represent January 1, 2023 at 12:00 PM UTC, use `1672574400000`. * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For example, to represent January 1, 2023, use `1672531200000`. * `TIME_ONLY`: a time in UTC. For example, to represent 12:00 PM, use `43200000` (or `12 * 60 * 60 * 1000`).", "format": "int64", "type": "string" } diff --git a/DiscoveryJson/chromewebstore.v2.json b/DiscoveryJson/chromewebstore.v2.json index e5fffbbd838..e17435629ec 100644 --- a/DiscoveryJson/chromewebstore.v2.json +++ b/DiscoveryJson/chromewebstore.v2.json @@ -272,39 +272,9 @@ } } }, - "revision": "20251020", + "revision": "20251026", "rootUrl": "https://chromewebstore.googleapis.com/", "schemas": { - "Blobstore2Info": { - "description": "Information to read/write to blobstore2.", - "id": "Blobstore2Info", - "properties": { - "blobGeneration": { - "description": "The blob generation id.", - "format": "int64", - "type": "string" - }, - "blobId": { - "description": "The blob id, e.g., /blobstore/prod/playground/scotty", - "type": "string" - }, - "downloadReadHandle": { - "description": "Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads.", - "format": "byte", - "type": "string" - }, - "readToken": { - "description": "The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.", - "type": "string" - }, - "uploadMetadataContainer": { - "description": "Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, "CancelSubmissionRequest": { "description": "Request message for CancelSubmission.", "id": "CancelSubmissionRequest", @@ -317,106 +287,6 @@ "properties": {}, "type": "object" }, - "CompositeMedia": { - "description": "A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.", - "id": "CompositeMedia", - "properties": { - "blobRef": { - "deprecated": true, - "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.", - "format": "byte", - "type": "string" - }, - "blobstore2Info": { - "$ref": "Blobstore2Info", - "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob." - }, - "cosmoBinaryReference": { - "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.", - "format": "byte", - "type": "string" - }, - "crc32cHash": { - "description": "crc32.c hash for the payload.", - "format": "uint32", - "type": "integer" - }, - "inline": { - "description": "Media data, set if reference_type is INLINE", - "format": "byte", - "type": "string" - }, - "length": { - "description": "Size of the data, in bytes", - "format": "int64", - "type": "string" - }, - "md5Hash": { - "description": "MD5 hash for the payload.", - "format": "byte", - "type": "string" - }, - "objectId": { - "$ref": "ObjectId", - "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF." - }, - "path": { - "description": "Path to the data, set if reference_type is PATH", - "type": "string" - }, - "referenceType": { - "description": "Describes what the field reference contains.", - "enum": [ - "PATH", - "BLOB_REF", - "INLINE", - "BIGSTORE_REF", - "COSMO_BINARY_REFERENCE" - ], - "enumDescriptions": [ - "Reference contains a GFS path or a local path.", - "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.", - "Data is included into this proto buffer", - "Reference points to a bigstore object", - "Indicates the data is stored in cosmo_binary_reference." - ], - "type": "string" - }, - "sha1Hash": { - "description": "SHA-1 hash for the payload.", - "format": "byte", - "type": "string" - } - }, - "type": "object" - }, - "ContentTypeInfo": { - "description": "Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.", - "id": "ContentTypeInfo", - "properties": { - "bestGuess": { - "description": "Scotty's best guess of what the content type of the file is.", - "type": "string" - }, - "fromBytes": { - "description": "The content type of the file derived by looking at specific bytes (i.e. \"magic bytes\") of the actual file.", - "type": "string" - }, - "fromFileName": { - "description": "The content type of the file derived from the file extension of the original file name used by the client.", - "type": "string" - }, - "fromHeader": { - "description": "The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.", - "type": "string" - }, - "fromUrlPath": { - "description": "The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API).", - "type": "string" - } - }, - "type": "object" - }, "DeployInfo": { "description": "Deployment information for a specific release channel. Used in requests to update deployment parameters.", "id": "DeployInfo", @@ -429,96 +299,6 @@ }, "type": "object" }, - "DiffChecksumsResponse": { - "description": "Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", - "id": "DiffChecksumsResponse", - "properties": { - "checksumsLocation": { - "$ref": "CompositeMedia", - "description": "Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol." - }, - "chunkSizeBytes": { - "description": "The chunk size of checksums. Must be a multiple of 256KB.", - "format": "int64", - "type": "string" - }, - "objectLocation": { - "$ref": "CompositeMedia", - "description": "If set, calculate the checksums based on the contents and return them to the caller." - }, - "objectSizeBytes": { - "description": "The total size of the server object.", - "format": "int64", - "type": "string" - }, - "objectVersion": { - "description": "The object version of the object the checksums are being returned for.", - "type": "string" - } - }, - "type": "object" - }, - "DiffDownloadResponse": { - "description": "Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", - "id": "DiffDownloadResponse", - "properties": { - "objectLocation": { - "$ref": "CompositeMedia", - "description": "The original object location." - } - }, - "type": "object" - }, - "DiffUploadRequest": { - "description": "A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", - "id": "DiffUploadRequest", - "properties": { - "checksumsInfo": { - "$ref": "CompositeMedia", - "description": "The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol." - }, - "objectInfo": { - "$ref": "CompositeMedia", - "description": "The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received." - }, - "objectVersion": { - "description": "The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in.", - "type": "string" - } - }, - "type": "object" - }, - "DiffUploadResponse": { - "description": "Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", - "id": "DiffUploadResponse", - "properties": { - "objectVersion": { - "description": "The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload.", - "type": "string" - }, - "originalObject": { - "$ref": "CompositeMedia", - "description": "The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification." - } - }, - "type": "object" - }, - "DiffVersionResponse": { - "description": "Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.", - "id": "DiffVersionResponse", - "properties": { - "objectSizeBytes": { - "description": "The total size of the server object.", - "format": "int64", - "type": "string" - }, - "objectVersion": { - "description": "The version of the object stored at the server.", - "type": "string" - } - }, - "type": "object" - }, "DistributionChannel": { "description": "Deployment information for a specific release channel", "id": "DistributionChannel", @@ -535,21 +315,6 @@ }, "type": "object" }, - "DownloadParameters": { - "description": "Parameters specific to media downloads.", - "id": "DownloadParameters", - "properties": { - "allowGzipCompression": { - "description": "A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.", - "type": "boolean" - }, - "ignoreRange": { - "description": "Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.", - "type": "boolean" - } - }, - "type": "object" - }, "FetchItemStatusResponse": { "description": "Response message for `FetchItemStatus`.", "id": "FetchItemStatusResponse", @@ -643,267 +408,6 @@ }, "type": "object" }, - "Media": { - "description": "A reference to data stored on the filesystem, on GFS or in blobstore.", - "id": "Media", - "properties": { - "algorithm": { - "deprecated": true, - "description": "Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, \"MD5\" is the only possible value for this field. New values may be added at any time.", - "type": "string" - }, - "bigstoreObjectRef": { - "deprecated": true, - "description": "Use object_id instead.", - "format": "byte", - "type": "string" - }, - "blobRef": { - "deprecated": true, - "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef.", - "format": "byte", - "type": "string" - }, - "blobstore2Info": { - "$ref": "Blobstore2Info", - "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob." - }, - "compositeMedia": { - "description": "A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.", - "items": { - "$ref": "CompositeMedia" - }, - "type": "array" - }, - "contentType": { - "description": "MIME type of the data", - "type": "string" - }, - "contentTypeInfo": { - "$ref": "ContentTypeInfo", - "description": "Extended content type information provided for Scotty uploads." - }, - "cosmoBinaryReference": { - "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.", - "format": "byte", - "type": "string" - }, - "crc32cHash": { - "description": "For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported.", - "format": "uint32", - "type": "integer" - }, - "diffChecksumsResponse": { - "$ref": "DiffChecksumsResponse", - "description": "Set if reference_type is DIFF_CHECKSUMS_RESPONSE." - }, - "diffDownloadResponse": { - "$ref": "DiffDownloadResponse", - "description": "Set if reference_type is DIFF_DOWNLOAD_RESPONSE." - }, - "diffUploadRequest": { - "$ref": "DiffUploadRequest", - "description": "Set if reference_type is DIFF_UPLOAD_REQUEST." - }, - "diffUploadResponse": { - "$ref": "DiffUploadResponse", - "description": "Set if reference_type is DIFF_UPLOAD_RESPONSE." - }, - "diffVersionResponse": { - "$ref": "DiffVersionResponse", - "description": "Set if reference_type is DIFF_VERSION_RESPONSE." - }, - "downloadParameters": { - "$ref": "DownloadParameters", - "description": "Parameters for a media download." - }, - "filename": { - "description": "Original file name", - "type": "string" - }, - "hash": { - "deprecated": true, - "description": "Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media.", - "type": "string" - }, - "hashVerified": { - "description": "For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification.", - "type": "boolean" - }, - "inline": { - "description": "Media data, set if reference_type is INLINE", - "format": "byte", - "type": "string" - }, - "isPotentialRetry": { - "description": "|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.", - "type": "boolean" - }, - "length": { - "description": "Size of the data, in bytes", - "format": "int64", - "type": "string" - }, - "md5Hash": { - "description": "Scotty-provided MD5 hash for an upload.", - "format": "byte", - "type": "string" - }, - "mediaId": { - "description": "Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.", - "format": "byte", - "type": "string" - }, - "objectId": { - "$ref": "ObjectId", - "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF." - }, - "path": { - "description": "Path to the data, set if reference_type is PATH", - "type": "string" - }, - "referenceType": { - "description": "Describes what the field reference contains.", - "enum": [ - "PATH", - "BLOB_REF", - "INLINE", - "GET_MEDIA", - "COMPOSITE_MEDIA", - "BIGSTORE_REF", - "DIFF_VERSION_RESPONSE", - "DIFF_CHECKSUMS_RESPONSE", - "DIFF_DOWNLOAD_RESPONSE", - "DIFF_UPLOAD_REQUEST", - "DIFF_UPLOAD_RESPONSE", - "COSMO_BINARY_REFERENCE", - "ARBITRARY_BYTES" - ], - "enumDescriptions": [ - "Reference contains a GFS path or a local path.", - "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.", - "Data is included into this proto buffer", - "Data should be accessed from the current service using the operation GetMedia.", - "The content for this media object is stored across multiple partial media objects under the composite_media field.", - "Reference points to a bigstore object", - "Indicates the data is stored in diff_version_response.", - "Indicates the data is stored in diff_checksums_response.", - "Indicates the data is stored in diff_download_response.", - "Indicates the data is stored in diff_upload_request.", - "Indicates the data is stored in diff_upload_response.", - "Indicates the data is stored in cosmo_binary_reference.", - "Informs Scotty to generate a response payload with the size specified in the length field. The contents of the payload are generated by Scotty and are undefined. This is useful for testing download speeds between the user and Scotty without involving a real payload source. Note: range is not supported when using arbitrary_bytes." - ], - "type": "string" - }, - "sha1Hash": { - "description": "Scotty-provided SHA1 hash for an upload.", - "format": "byte", - "type": "string" - }, - "sha256Hash": { - "description": "Scotty-provided SHA256 hash for an upload.", - "format": "byte", - "type": "string" - }, - "timestamp": { - "description": "Time at which the media data was last updated, in milliseconds since UNIX epoch", - "format": "uint64", - "type": "string" - }, - "token": { - "description": "A unique fingerprint/version id for the media data", - "type": "string" - } - }, - "type": "object" - }, - "MediaRequestInfo": { - "description": "Extra information added to operations that support Scotty media requests.", - "id": "MediaRequestInfo", - "properties": { - "currentBytes": { - "description": "The number of current bytes uploaded or downloaded.", - "format": "int64", - "type": "string" - }, - "customData": { - "description": "Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.", - "type": "string" - }, - "diffObjectVersion": { - "description": "Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information.", - "type": "string" - }, - "finalStatus": { - "description": "The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929", - "format": "int32", - "type": "integer" - }, - "notificationType": { - "description": "The type of notification received from Scotty.", - "enum": [ - "START", - "PROGRESS", - "END", - "RESPONSE_SENT", - "ERROR" - ], - "enumDescriptions": [ - "Such requests signals the start of a request containing media upload. Only the media field(s) in the inserted/updated resource are set. The response should either return an error or succeed. On success, responses don't need to contain anything.", - "Such requests signals that the upload has progressed and that the backend might want to access the media file specified in relevant fields in the resource. Only the media field(s) in the inserted/updated resource are set. The response should either return an error or succeed. On success, responses don't need to contain anything.", - "Such requests signals the end of a request containing media upload. END should be handled just like normal Insert/Upload requests, that is, they should process the request and return a complete resource in the response. Pointers to media data (a GFS path usually) appear in the relevant fields in the inserted/updated resource. See gdata.Media in data.proto.", - "Such requests occur after an END and signal that the response has been sent back to the client. RESPONSE_SENT is only sent to the backend if it is configured to receive them. The response does not need to contain anything.", - "Such requests indicate that an error occurred while processing the request. ERROR is only sent to the backend if it is configured to receive them. It is not guaranteed that all errors will result in this notification to the backend, even if the backend requests them. Since these requests are just for informational purposes, the response does not need to contain anything." - ], - "type": "string" - }, - "physicalHeaders": { - "description": "The physical headers provided by RequestReceivedParameters in Scotty request. type is uploader_service.KeyValuePairs.", - "format": "byte", - "type": "string" - }, - "requestId": { - "description": "The Scotty request ID.", - "type": "string" - }, - "requestReceivedParamsServingInfo": { - "description": "The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange()", - "format": "byte", - "type": "string" - }, - "totalBytes": { - "description": "The total size of the file.", - "format": "int64", - "type": "string" - }, - "totalBytesIsEstimated": { - "description": "Whether the total bytes field contains an estimated data.", - "type": "boolean" - } - }, - "type": "object" - }, - "ObjectId": { - "description": "This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763.", - "id": "ObjectId", - "properties": { - "bucketName": { - "description": "The name of the bucket to which this object belongs.", - "type": "string" - }, - "generation": { - "description": "Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions", - "format": "int64", - "type": "string" - }, - "objectName": { - "description": "The name of the object.", - "type": "string" - } - }, - "type": "object" - }, "PublishItemRequest": { "description": "Request message for PublishItem.", "id": "PublishItemRequest", @@ -996,16 +500,7 @@ "UploadItemPackageRequest": { "description": "Request message for UploadItemPackage.", "id": "UploadItemPackageRequest", - "properties": { - "blob": { - "$ref": "Media", - "description": "Reference to the uploaded media." - }, - "mediaRequestInfo": { - "$ref": "MediaRequestInfo", - "description": "Info about the media upload request." - } - }, + "properties": {}, "type": "object" }, "UploadItemPackageResponse": { diff --git a/DiscoveryJson/cloudfunctions.v1.json b/DiscoveryJson/cloudfunctions.v1.json index d6a95f575f7..764be874ac9 100644 --- a/DiscoveryJson/cloudfunctions.v1.json +++ b/DiscoveryJson/cloudfunctions.v1.json @@ -190,7 +190,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -563,7 +563,7 @@ } } }, - "revision": "20250929", + "revision": "20251023", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/DiscoveryJson/cloudfunctions.v2.json b/DiscoveryJson/cloudfunctions.v2.json index f7176e5cc51..d7ca3553754 100644 --- a/DiscoveryJson/cloudfunctions.v2.json +++ b/DiscoveryJson/cloudfunctions.v2.json @@ -119,7 +119,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -755,7 +755,7 @@ } } }, - "revision": "20250929", + "revision": "20251023", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { diff --git a/DiscoveryJson/cloudfunctions.v2alpha.json b/DiscoveryJson/cloudfunctions.v2alpha.json index 04e26fb91a6..7d2c3a2399a 100644 --- a/DiscoveryJson/cloudfunctions.v2alpha.json +++ b/DiscoveryJson/cloudfunctions.v2alpha.json @@ -119,7 +119,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -755,7 +755,7 @@ } } }, - "revision": "20250929", + "revision": "20251023", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -947,6 +947,28 @@ "properties": {}, "type": "object" }, + "DirectVpcNetworkInterface": { + "description": "The Direct VPC network interface. This is mutually exclusive with VPC Connector.", + "id": "DirectVpcNetworkInterface", + "properties": { + "network": { + "description": "Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.", + "type": "string" + }, + "subnetwork": { + "description": "Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.", + "type": "string" + }, + "tags": { + "description": "Optional. Network tags applied to this Cloud Function resource.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "EventFilter": { "description": "Filters events based on exact matches on the CloudEvents attributes.", "id": "EventFilter", @@ -1876,6 +1898,27 @@ "description": "Optional. The binary authorization policy to be checked when deploying the Cloud Run service.", "type": "string" }, + "directVpcEgress": { + "description": "Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.", + "enum": [ + "DIRECT_VPC_EGRESS_UNSPECIFIED", + "VPC_EGRESS_PRIVATE_RANGES_ONLY", + "VPC_EGRESS_ALL_TRAFFIC" + ], + "enumDescriptions": [ + "Unspecified.", + "Sends only traffic to internal addresses through the VPC network.", + "Sends all outbound traffic through the VPC network." + ], + "type": "string" + }, + "directVpcNetworkInterface": { + "description": "Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.", + "items": { + "$ref": "DirectVpcNetworkInterface" + }, + "type": "array" + }, "environmentVariables": { "additionalProperties": { "type": "string" diff --git a/DiscoveryJson/cloudfunctions.v2beta.json b/DiscoveryJson/cloudfunctions.v2beta.json index 0dedf52b651..60aebd8f927 100644 --- a/DiscoveryJson/cloudfunctions.v2beta.json +++ b/DiscoveryJson/cloudfunctions.v2beta.json @@ -119,7 +119,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -755,7 +755,7 @@ } } }, - "revision": "20250929", + "revision": "20251023", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -947,6 +947,28 @@ "properties": {}, "type": "object" }, + "DirectVpcNetworkInterface": { + "description": "The Direct VPC network interface. This is mutually exclusive with VPC Connector.", + "id": "DirectVpcNetworkInterface", + "properties": { + "network": { + "description": "Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network or a subnet, or both. If you specify only a network, the subnet uses the same name as the network.", + "type": "string" + }, + "subnetwork": { + "description": "Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.", + "type": "string" + }, + "tags": { + "description": "Optional. Network tags applied to this Cloud Function resource.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "EventFilter": { "description": "Filters events based on exact matches on the CloudEvents attributes.", "id": "EventFilter", @@ -1876,6 +1898,27 @@ "description": "Optional. The binary authorization policy to be checked when deploying the Cloud Run service.", "type": "string" }, + "directVpcEgress": { + "description": "Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY.", + "enum": [ + "DIRECT_VPC_EGRESS_UNSPECIFIED", + "VPC_EGRESS_PRIVATE_RANGES_ONLY", + "VPC_EGRESS_ALL_TRAFFIC" + ], + "enumDescriptions": [ + "Unspecified.", + "Sends only traffic to internal addresses through the VPC network.", + "Sends all outbound traffic through the VPC network." + ], + "type": "string" + }, + "directVpcNetworkInterface": { + "description": "Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is supported.", + "items": { + "$ref": "DirectVpcNetworkInterface" + }, + "type": "array" + }, "environmentVariables": { "additionalProperties": { "type": "string" diff --git a/DiscoveryJson/cloudscheduler.v1.json b/DiscoveryJson/cloudscheduler.v1.json index 6d2bfb7c106..bb0a79a8a79 100644 --- a/DiscoveryJson/cloudscheduler.v1.json +++ b/DiscoveryJson/cloudscheduler.v1.json @@ -134,6 +134,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getCmekConfig": { + "description": "Gets the Scheduler config in the project/region.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cmekConfig", + "httpMethod": "GET", + "id": "cloudscheduler.projects.locations.getCmekConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The config name. For example: projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cmekConfig$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "CmekConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists information about the supported locations for this service.", "flatPath": "v1/projects/{projectsId}/locations", @@ -144,7 +169,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -180,6 +205,40 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "updateCmekConfig": { + "description": "Initializes or Updates the a scheduler config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/cmekConfig", + "httpMethod": "PATCH", + "id": "cloudscheduler.projects.locations.updateCmekConfig", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The config resource name which includes the project and location and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/cmekConfig$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. List of fields to be updated in this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "CmekConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -309,7 +368,7 @@ ], "parameters": { "name": { - "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", + "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling [locations.list](/scheduler/docs/reference/rest/v1/projects.locations/list). For more information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", "required": true, @@ -552,7 +611,7 @@ } } }, - "revision": "20250925", + "revision": "20251022", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -635,6 +694,21 @@ "properties": {}, "type": "object" }, + "CmekConfig": { + "description": "Describes the project/location configuration of Cloud Scheduler Resources.", + "id": "CmekConfig", + "properties": { + "kmsKeyName": { + "description": "Optional. Resource name of the Cloud KMS key, of the form `projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to encrypt Jobs in the region. Setting this as blank will turn off CMEK encryption.", + "type": "string" + }, + "name": { + "description": "Identifier. The config resource name which includes the project and location and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig`", + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -724,7 +798,7 @@ "type": "string" }, "name": { - "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", + "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling [locations.list](/scheduler/docs/reference/rest/v1/projects.locations/list). For more information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", "type": "string" }, "pubsubTarget": { @@ -741,7 +815,7 @@ "type": "boolean" }, "schedule": { - "description": "Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * English-like [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) As a general rule, execution `n + 1` of a job will not begin until execution `n` has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start until `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job attempt will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled execution time. Setting retry_count to 0 does not prevent failed jobs from running according to schedule after the failure.", + "description": "Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * English-like [schedule](/scheduler/docs/configuring/cron-job-schedules) As a general rule, execution `n + 1` of a job will not begin until execution `n` has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start until `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job attempt will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled execution time. Setting retry_count to 0 does not prevent failed jobs from running according to schedule after the failure.", "type": "string" }, "scheduleTime": { @@ -1059,7 +1133,7 @@ "type": "object" }, "RetryConfig": { - "description": "Settings that determine the retry behavior. For more information, see [Retry jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings in RetryConfig.", + "description": "Settings that determine the retry behavior. For more information, see [Retry jobs](/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings in RetryConfig.", "id": "RetryConfig", "properties": { "maxBackoffDuration": { @@ -1068,7 +1142,7 @@ "type": "string" }, "maxDoublings": { - "description": "The time between retries will double `max_doublings` times. A job's retry interval starts at min_backoff_duration, then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of max_backoff_duration up to retry_count times. For examples, see [Retry jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of this field is 5.", + "description": "The time between retries will double `max_doublings` times. A job's retry interval starts at min_backoff_duration, then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of max_backoff_duration up to retry_count times. For examples, see [Retry jobs](/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of this field is 5.", "format": "int32", "type": "integer" }, diff --git a/DiscoveryJson/cloudscheduler.v1beta1.json b/DiscoveryJson/cloudscheduler.v1beta1.json index 3d6dacb4f24..e5f126d6329 100644 --- a/DiscoveryJson/cloudscheduler.v1beta1.json +++ b/DiscoveryJson/cloudscheduler.v1beta1.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -324,7 +324,7 @@ ], "parameters": { "name": { - "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", + "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling [locations.list](/scheduler/docs/reference/rest/v1beta1/projects.locations/list). For more information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$", "required": true, @@ -433,13 +433,141 @@ ] } } + }, + "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}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "cloudscheduler.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", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "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}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "cloudscheduler.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Empty" + }, + "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}/operations/{operationsId}", + "httpMethod": "GET", + "id": "cloudscheduler.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "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}/operations", + "httpMethod": "GET", + "id": "cloudscheduler.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } } } }, - "revision": "20250917", + "revision": "20251022", "rootUrl": "https://cloudscheduler.googleapis.com/", "schemas": { "AppEngineHttpTarget": { @@ -516,6 +644,12 @@ }, "type": "object" }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -609,7 +743,7 @@ "type": "boolean" }, "name": { - "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", + "description": "Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling [locations.list](/scheduler/docs/reference/rest/v1beta1/projects.locations/list). For more information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.", "type": "string" }, "pubsubTarget": { @@ -626,7 +760,7 @@ "type": "boolean" }, "schedule": { - "description": "Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * English-like [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) As a general rule, execution `n + 1` of a job will not begin until execution `n` has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start until `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job attempt will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled execution time. Setting retry_count to 0 does not prevent failed jobs from running according to schedule after the failure.", + "description": "Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * English-like [schedule](/scheduler/docs/configuring/cron-job-schedules) As a general rule, execution `n + 1` of a job will not begin until execution `n` has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start until `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job attempt will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled execution time. Setting retry_count to 0 does not prevent failed jobs from running according to schedule after the failure.", "type": "string" }, "scheduleTime": { @@ -708,6 +842,31 @@ }, "type": "object" }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents a Google Cloud location.", "id": "Location", @@ -772,6 +931,41 @@ }, "type": "object" }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, "OperationMetadata": { "description": "Represents the metadata of the long-running operation.", "id": "OperationMetadata", @@ -884,7 +1078,7 @@ "type": "object" }, "RetryConfig": { - "description": "Settings that determine the retry behavior. For more information, see [Retry jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings in RetryConfig.", + "description": "Settings that determine the retry behavior. For more information, see [Retry jobs](/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings in RetryConfig.", "id": "RetryConfig", "properties": { "maxBackoffDuration": { @@ -893,7 +1087,7 @@ "type": "string" }, "maxDoublings": { - "description": "The time between retries will double `max_doublings` times. A job's retry interval starts at min_backoff_duration, then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of max_backoff_duration up to retry_count times. For examples, see [Retry jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of this field is 5.", + "description": "The time between retries will double `max_doublings` times. A job's retry interval starts at min_backoff_duration, then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of max_backoff_duration up to retry_count times. For examples, see [Retry jobs](/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of this field is 5.", "format": "int32", "type": "integer" }, diff --git a/DiscoveryJson/cloudtasks.v2beta2.json b/DiscoveryJson/cloudtasks.v2beta2.json index 1527172a874..0a8680d289f 100644 --- a/DiscoveryJson/cloudtasks.v2beta2.json +++ b/DiscoveryJson/cloudtasks.v2beta2.json @@ -201,7 +201,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -941,7 +941,7 @@ } } }, - "revision": "20250914", + "revision": "20251021", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AcknowledgeTaskRequest": { diff --git a/DiscoveryJson/cloudtasks.v2beta3.json b/DiscoveryJson/cloudtasks.v2beta3.json index f08d537fa34..e5e17a4e60f 100644 --- a/DiscoveryJson/cloudtasks.v2beta3.json +++ b/DiscoveryJson/cloudtasks.v2beta3.json @@ -169,7 +169,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -797,7 +797,7 @@ } } }, - "revision": "20250914", + "revision": "20251021", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpQueue": { diff --git a/DiscoveryJson/deploymentmanager.v2.json b/DiscoveryJson/deploymentmanager.v2.json index fa0beb48e38..b9c6bba4922 100644 --- a/DiscoveryJson/deploymentmanager.v2.json +++ b/DiscoveryJson/deploymentmanager.v2.json @@ -1028,7 +1028,7 @@ } } }, - "revision": "20250828", + "revision": "20251024", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -1754,11 +1754,12 @@ "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", "RATE_LIMIT_EXCEEDED", - "RESERVED_ENTRY_135", + "UPCOMING_MAINTENANCES_UNAVAILABLE", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", "RESERVED_ENTRY_141", - "RESERVED_ENTRY_142" + "RESERVED_ENTRY_142", + "RESERVED_ENTRY_143" ], "enumDeprecated": [ false, @@ -1800,6 +1801,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -1838,6 +1840,7 @@ "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", "Resource can't be retrieved due to api quota exceeded.", + "Upcoming maintenance schedule is unavailable for the resource.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -2061,11 +2064,12 @@ "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", "RATE_LIMIT_EXCEEDED", - "RESERVED_ENTRY_135", + "UPCOMING_MAINTENANCES_UNAVAILABLE", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", "RESERVED_ENTRY_141", - "RESERVED_ENTRY_142" + "RESERVED_ENTRY_142", + "RESERVED_ENTRY_143" ], "enumDeprecated": [ false, @@ -2107,6 +2111,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2145,6 +2150,7 @@ "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", "Resource can't be retrieved due to api quota exceeded.", + "Upcoming maintenance schedule is unavailable for the resource.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -2350,11 +2356,12 @@ "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", "RATE_LIMIT_EXCEEDED", - "RESERVED_ENTRY_135", + "UPCOMING_MAINTENANCES_UNAVAILABLE", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", "RESERVED_ENTRY_141", - "RESERVED_ENTRY_142" + "RESERVED_ENTRY_142", + "RESERVED_ENTRY_143" ], "enumDeprecated": [ false, @@ -2396,6 +2403,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2434,6 +2442,7 @@ "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", "Resource can't be retrieved due to api quota exceeded.", + "Upcoming maintenance schedule is unavailable for the resource.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", diff --git a/DiscoveryJson/deploymentmanager.v2beta.json b/DiscoveryJson/deploymentmanager.v2beta.json index 2613a4cc555..e126cea494c 100644 --- a/DiscoveryJson/deploymentmanager.v2beta.json +++ b/DiscoveryJson/deploymentmanager.v2beta.json @@ -1636,7 +1636,7 @@ } } }, - "revision": "20250828", + "revision": "20251024", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { @@ -2603,11 +2603,12 @@ "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", "RATE_LIMIT_EXCEEDED", - "RESERVED_ENTRY_135", + "UPCOMING_MAINTENANCES_UNAVAILABLE", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", "RESERVED_ENTRY_141", - "RESERVED_ENTRY_142" + "RESERVED_ENTRY_142", + "RESERVED_ENTRY_143" ], "enumDeprecated": [ false, @@ -2649,6 +2650,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -2687,6 +2689,7 @@ "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", "Resource can't be retrieved due to api quota exceeded.", + "Upcoming maintenance schedule is unavailable for the resource.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -2968,11 +2971,12 @@ "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", "RATE_LIMIT_EXCEEDED", - "RESERVED_ENTRY_135", + "UPCOMING_MAINTENANCES_UNAVAILABLE", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", "RESERVED_ENTRY_141", - "RESERVED_ENTRY_142" + "RESERVED_ENTRY_142", + "RESERVED_ENTRY_143" ], "enumDeprecated": [ false, @@ -3014,6 +3018,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3052,6 +3057,7 @@ "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", "Resource can't be retrieved due to api quota exceeded.", + "Upcoming maintenance schedule is unavailable for the resource.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", @@ -3257,11 +3263,12 @@ "QUOTA_INFO_UNAVAILABLE", "RESOURCE_USES_GLOBAL_DNS", "RATE_LIMIT_EXCEEDED", - "RESERVED_ENTRY_135", + "UPCOMING_MAINTENANCES_UNAVAILABLE", "RESERVED_ENTRY_136", "RESERVED_ENTRY_139", "RESERVED_ENTRY_141", - "RESERVED_ENTRY_142" + "RESERVED_ENTRY_142", + "RESERVED_ENTRY_143" ], "enumDeprecated": [ false, @@ -3303,6 +3310,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3341,6 +3349,7 @@ "Quota information is not available to client requests (e.g: regions.list).", "Indicates that a VM is using global DNS. Can also be used to indicate that a resource has attributes that could result in the creation of a VM that uses global DNS.", "Resource can't be retrieved due to api quota exceeded.", + "Upcoming maintenance schedule is unavailable for the resource.", "Reserved entries for quickly adding new warnings without breaking dependent clients.", "", "", diff --git a/DiscoveryJson/discoveryengine.v1.json b/DiscoveryJson/discoveryengine.v1.json index 1fe50327a18..ad6fd465dc1 100644 --- a/DiscoveryJson/discoveryengine.v1.json +++ b/DiscoveryJson/discoveryengine.v1.json @@ -8078,7 +8078,7 @@ } } }, - "revision": "20251020", + "revision": "20251026", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GdataBlobstore2Info": { @@ -13275,6 +13275,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -15526,6 +15532,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1Project", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -15558,6 +15569,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig", @@ -21146,6 +21179,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -23101,6 +23140,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1alphaProject", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -23133,6 +23177,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig", @@ -25874,6 +25940,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -27337,6 +27409,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1betaProject", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -27369,6 +27446,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig", diff --git a/DiscoveryJson/discoveryengine.v1alpha.json b/DiscoveryJson/discoveryengine.v1alpha.json index 4e25f730229..d4598bec5f5 100644 --- a/DiscoveryJson/discoveryengine.v1alpha.json +++ b/DiscoveryJson/discoveryengine.v1alpha.json @@ -762,6 +762,168 @@ } }, "resources": { + "authorizations": { + "methods": { + "create": { + "description": "Creates an Authorization.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authorizations", + "httpMethod": "POST", + "id": "discoveryengine.projects.locations.authorizations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "authorizationId": { + "description": "Required. The ID to use for the authorization, which will become the final component of the resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/authorizations", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAuthorization" + }, + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAuthorization" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite" + ] + }, + "delete": { + "description": "Deletes an Authorization.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authorizations/{authorizationsId}", + "httpMethod": "DELETE", + "id": "discoveryengine.projects.locations.authorizations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of Authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` If the caller does not have permission to delete the authorization, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the authorization to delete does not exist, a `NOT_FOUND` error is returned.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite" + ] + }, + "get": { + "description": "Gets an Authorization.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authorizations/{authorizationsId}", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.authorizations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of Authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAuthorization" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite" + ] + }, + "list": { + "description": "Lists all Authorizations under an Engine.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authorizations", + "httpMethod": "GET", + "id": "discoveryengine.projects.locations.authorizations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of Authorizations to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token ListAuthorizationsResponse.next_page_token, received from a previous AuthorizationService.ListAuthorizations call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAuthorizations must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource name. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/authorizations", + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaListAuthorizationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite" + ] + }, + "patch": { + "description": "Updates an Authorization", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/authorizations/{authorizationsId}", + "httpMethod": "PATCH", + "id": "discoveryengine.projects.locations.authorizations.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizations/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAuthorization" + }, + "response": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAuthorization" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/discoveryengine.readwrite" + ] + } + } + }, "cmekConfigs": { "methods": { "delete": { @@ -10956,7 +11118,7 @@ } } }, - "revision": "20251023", + "revision": "20251026", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "ApiservingMediaRequestInfo": { @@ -13411,6 +13573,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -14676,6 +14844,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1Project", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -14708,6 +14881,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig", @@ -18137,6 +18332,55 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaAuthorization": { + "description": "Discovery Engine Authorization resource.", + "id": "GoogleCloudDiscoveryengineV1alphaAuthorization", + "properties": { + "displayName": { + "description": "Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of 128 characters.", + "type": "string" + }, + "name": { + "description": "Identifier. Resource name of the authorization. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string with a length limit of 1024 characters.", + "type": "string" + }, + "serverSideOauth2": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAuthorizationServerSideOAuth2", + "description": "Server-side OAuth2 configuration." + } + }, + "type": "object" + }, + "GoogleCloudDiscoveryengineV1alphaAuthorizationServerSideOAuth2": { + "description": "OAuth2 configuration.", + "id": "GoogleCloudDiscoveryengineV1alphaAuthorizationServerSideOAuth2", + "properties": { + "authorizationUri": { + "description": "Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&scope=https://www.googleapis.com/auth/calendar.events&response_type=code&access_type=offline&prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.", + "type": "string" + }, + "clientId": { + "description": "Required. The OAuth2 client ID.", + "type": "string" + }, + "clientSecret": { + "description": "Required. The OAuth2 client secret. Encrypted at rest.", + "type": "string" + }, + "scopes": { + "description": "Required. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events`", + "items": { + "type": "string" + }, + "type": "array" + }, + "tokenUri": { + "description": "Required. The HTTP endpoint that exchanges a client authorization for an access token.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaBAPConfig": { "description": "The configuration for the BAP connector.", "id": "GoogleCloudDiscoveryengineV1alphaBAPConfig", @@ -20877,6 +21121,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -23772,6 +24022,24 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaListAuthorizationsResponse": { + "description": "Response message for the AuthorizationService.ListAuthorizations method.", + "id": "GoogleCloudDiscoveryengineV1alphaListAuthorizationsResponse", + "properties": { + "authorizations": { + "description": "All the customer's Authorizations.", + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaAuthorization" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as ListAuthorizationsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaListBranchesResponse": { "description": "Response for BranchService.ListBranches method.", "id": "GoogleCloudDiscoveryengineV1alphaListBranchesResponse", @@ -24450,6 +24718,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1alphaProject", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -24482,6 +24755,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig", @@ -30365,6 +30660,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -31828,6 +32129,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1betaProject", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -31860,6 +32166,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig", diff --git a/DiscoveryJson/discoveryengine.v1beta.json b/DiscoveryJson/discoveryengine.v1beta.json index 4a4583ed0c1..8877b89e58c 100644 --- a/DiscoveryJson/discoveryengine.v1beta.json +++ b/DiscoveryJson/discoveryengine.v1beta.json @@ -8802,7 +8802,7 @@ } } }, - "revision": "20251020", + "revision": "20251026", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GdataBlobstore2Info": { @@ -11090,6 +11090,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -12355,6 +12361,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1Project", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -12387,6 +12398,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig", @@ -16017,6 +16050,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -17972,6 +18011,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1alphaProject", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -18004,6 +18048,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig", @@ -23989,6 +24055,12 @@ ], "type": "string" }, + "configurableBillingApproachUpdateTime": { + "description": "Output only. The timestamp when configurable_billing_approach was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "contentConfig": { "description": "Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.", "enum": [ @@ -26583,6 +26655,11 @@ "description": "Metadata and configurations for a Google Cloud project in the service.", "id": "GoogleCloudDiscoveryengineV1betaProject", "properties": { + "configurableBillingStatus": { + "$ref": "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus", + "description": "Output only. The current status of the project's configurable billing.", + "readOnly": true + }, "createTime": { "description": "Output only. The timestamp when this project is created.", "format": "google-datetime", @@ -26615,6 +26692,28 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus": { + "description": "Represents the currently effective configurable billing parameters. These values are derived from the customer's subscription history stored internally and reflect the thresholds actively being used for billing purposes at the time of the GetProject call. This includes the start_time of the subscription and may differ from the values in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new month).", + "id": "GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus", + "properties": { + "effectiveIndexingCoreThreshold": { + "description": "Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "effectiveSearchQpmThreshold": { + "description": "Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against which QPM usage is compared for overage calculations.", + "format": "int64", + "type": "string" + }, + "startTime": { + "description": "Optional. The start time of the currently active billing subscription.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig": { "description": "Customer provided configurations.", "id": "GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig", diff --git a/DiscoveryJson/docs.v1.json b/DiscoveryJson/docs.v1.json index b1dc16c4cba..181847abf1d 100644 --- a/DiscoveryJson/docs.v1.json +++ b/DiscoveryJson/docs.v1.json @@ -221,7 +221,7 @@ } } }, - "revision": "20251013", + "revision": "20251022", "rootUrl": "https://docs.googleapis.com/", "schemas": { "AutoText": { @@ -952,11 +952,11 @@ "description": "The background of the document. Documents cannot have a transparent background color." }, "defaultFooterId": { - "description": "The ID of the default footer. If not set, there's no default footer. This property is read-only.", + "description": "The ID of the default footer. If not set, there's no default footer. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "defaultHeaderId": { - "description": "The ID of the default header. If not set, there's no default header. This property is read-only.", + "description": "The ID of the default header. If not set, there's no default header. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "documentFormat": { @@ -964,68 +964,68 @@ "description": "Specifies document-level format settings, such as the document mode (pages vs pageless)." }, "evenPageFooterId": { - "description": "The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there's no even page footer. This property is read-only.", + "description": "The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there's no even page footer. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "evenPageHeaderId": { - "description": "The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there's no even page header. This property is read-only.", + "description": "The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there's no even page header. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "firstPageFooterId": { - "description": "The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this value for the footer on the first page. If not set, there's no first page footer. This property is read-only.", + "description": "The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this value for the footer on the first page. If not set, there's no first page footer. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "firstPageHeaderId": { - "description": "The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there's no first page header. This property is read-only.", + "description": "The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there's no first page header. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "flipPageOrientation": { - "description": "Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page orientation between portrait and landscape.", + "description": "Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page orientation between portrait and landscape. If DocumentMode is PAGELESS, this property will not be rendered.", "type": "boolean" }, "marginBottom": { "$ref": "Dimension", - "description": "The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles." + "description": "The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles. If DocumentMode is PAGELESS, this property will not be rendered." }, "marginFooter": { "$ref": "Dimension", - "description": "The amount of space between the bottom of the page and the contents of the footer." + "description": "The amount of space between the bottom of the page and the contents of the footer. If DocumentMode is PAGELESS, this property will not be rendered." }, "marginHeader": { "$ref": "Dimension", - "description": "The amount of space between the top of the page and the contents of the header." + "description": "The amount of space between the top of the page and the contents of the header. If DocumentMode is PAGELESS, this property will not be rendered." }, "marginLeft": { "$ref": "Dimension", - "description": "The left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections." + "description": "The left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections. If DocumentMode is PAGELESS, this property will not be rendered." }, "marginRight": { "$ref": "Dimension", - "description": "The right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections." + "description": "The right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections. If DocumentMode is PAGELESS, this property will not be rendered." }, "marginTop": { "$ref": "Dimension", - "description": "The top page margin. Updating the top page margin on the document style clears the top page margin on all section styles." + "description": "The top page margin. Updating the top page margin on the document style clears the top page margin on all section styles. If DocumentMode is PAGELESS, this property will not be rendered." }, "pageNumberStart": { - "description": "The page number from which to start counting the number of pages.", + "description": "The page number from which to start counting the number of pages. If DocumentMode is PAGELESS, this property will not be rendered.", "format": "int32", "type": "integer" }, "pageSize": { "$ref": "Size", - "description": "The size of a page in the document." + "description": "The size of a page in the document. If DocumentMode is PAGELESS, this property will not be rendered." }, "useCustomHeaderFooterMargins": { - "description": "Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle margin_footer, SectionStyle margin_footer are respected. When false, the default values in the Docs editor for header and footer margin is used. This property is read-only.", + "description": "Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle margin_footer, SectionStyle margin_footer are respected. When false, the default values in the Docs editor for header and footer margin is used. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "boolean" }, "useEvenPageHeaderFooter": { - "description": "Indicates whether to use the even page header / footer IDs for the even pages.", + "description": "Indicates whether to use the even page header / footer IDs for the even pages. If DocumentMode is PAGELESS, this property will not be rendered.", "type": "boolean" }, "useFirstPageHeaderFooter": { - "description": "Indicates whether to use the first page header / footer IDs for the first page.", + "description": "Indicates whether to use the first page header / footer IDs for the first page. If DocumentMode is PAGELESS, this property will not be rendered.", "type": "boolean" } }, @@ -1784,11 +1784,11 @@ "properties": { "endOfSegmentLocation": { "$ref": "EndOfSegmentLocation", - "description": "Inserts the person at the end of a header, footer, footnote or the document body." + "description": "Inserts the person mention at the end of a header, footer, footnote or the document body." }, "location": { "$ref": "Location", - "description": "Inserts the person at a specific index in the document. The person mention must be inserted inside the bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. between the table and its preceding paragraph). People cannot be inserted inside an equation." + "description": "Inserts the person mention at a specific index in the document. The person mention must be inserted inside the bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. between the table and its preceding paragraph). People cannot be inserted inside an equation." }, "personProperties": { "$ref": "PersonProperties", @@ -3399,59 +3399,59 @@ "type": "string" }, "defaultFooterId": { - "description": "The ID of the default footer. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_footer_id. This property is read-only.", + "description": "The ID of the default footer. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_footer_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "defaultHeaderId": { - "description": "The ID of the default header. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_header_id. This property is read-only.", + "description": "The ID of the default header. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_header_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "evenPageFooterId": { - "description": "The ID of the footer used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the footers on even pages in the section. If it is false, the footers on even pages use the default_footer_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_footer_id. This property is read-only.", + "description": "The ID of the footer used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the footers on even pages in the section. If it is false, the footers on even pages use the default_footer_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_footer_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "evenPageHeaderId": { - "description": "The ID of the header used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the headers on even pages in the section. If it is false, the headers on even pages use the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_header_id. This property is read-only.", + "description": "The ID of the header used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the headers on even pages in the section. If it is false, the headers on even pages use the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_header_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "firstPageFooterId": { - "description": "The ID of the footer used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the footer on the first page of the section. If it's false, the footer on the first page of the section uses the default_footer_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_footer_id. This property is read-only.", + "description": "The ID of the footer used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the footer on the first page of the section. If it's false, the footer on the first page of the section uses the default_footer_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_footer_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "firstPageHeaderId": { - "description": "The ID of the header used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the header on the first page of the section. If it's false, the header on the first page of the section uses the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_header_id. This property is read-only.", + "description": "The ID of the header used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the header on the first page of the section. If it's false, the header on the first page of the section uses the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_header_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.", "type": "string" }, "flipPageOrientation": { - "description": "Optional. Indicates whether to flip the dimensions of DocumentStyle's page_size for this section, which allows changing the page orientation between portrait and landscape. If unset, the value inherits from DocumentStyle's flip_page_orientation. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.", + "description": "Optional. Indicates whether to flip the dimensions of DocumentStyle's page_size for this section, which allows changing the page orientation between portrait and landscape. If unset, the value inherits from DocumentStyle's flip_page_orientation. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.", "type": "boolean" }, "marginBottom": { "$ref": "Dimension", - "description": "The bottom page margin of the section. If unset, the value defaults to margin_bottom from DocumentStyle. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." + "description": "The bottom page margin of the section. If unset, the value defaults to margin_bottom from DocumentStyle. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." }, "marginFooter": { "$ref": "Dimension", - "description": "The footer margin of the section. If unset, the value defaults to margin_footer from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a footer margin is being respected for this section When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." + "description": "The footer margin of the section. If unset, the value defaults to margin_footer from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a footer margin is being respected for this section If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." }, "marginHeader": { "$ref": "Dimension", - "description": "The header margin of the section. If unset, the value defaults to margin_header from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a header margin is being respected for this section. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." + "description": "The header margin of the section. If unset, the value defaults to margin_header from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a header margin is being respected for this section. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." }, "marginLeft": { "$ref": "Dimension", - "description": "The left page margin of the section. If unset, the value defaults to margin_left from DocumentStyle. Updating the left margin causes columns in this section to resize. Since the margin affects column width, it's applied before column properties. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." + "description": "The left page margin of the section. If unset, the value defaults to margin_left from DocumentStyle. Updating the left margin causes columns in this section to resize. Since the margin affects column width, it's applied before column properties. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." }, "marginRight": { "$ref": "Dimension", - "description": "The right page margin of the section. If unset, the value defaults to margin_right from DocumentStyle. Updating the right margin causes columns in this section to resize. Since the margin affects column width, it's applied before column properties. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." + "description": "The right page margin of the section. If unset, the value defaults to margin_right from DocumentStyle. Updating the right margin causes columns in this section to resize. Since the margin affects column width, it's applied before column properties. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." }, "marginTop": { "$ref": "Dimension", - "description": "The top page margin of the section. If unset, the value defaults to margin_top from DocumentStyle. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." + "description": "The top page margin of the section. If unset, the value defaults to margin_top from DocumentStyle. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." }, "pageNumberStart": { - "description": "The page number from which to start counting the number of pages for this section. If unset, page numbering continues from the previous section. If the value is unset in the first SectionBreak, refer to DocumentStyle's page_number_start. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.", + "description": "The page number from which to start counting the number of pages for this section. If unset, page numbering continues from the previous section. If the value is unset in the first SectionBreak, refer to DocumentStyle's page_number_start. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.", "format": "int32", "type": "integer" }, @@ -3470,7 +3470,7 @@ "type": "string" }, "useFirstPageHeaderFooter": { - "description": "Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it inherits from DocumentStyle's use_first_page_header_footer for the first section. If the value is unset for subsequent sectors, it should be interpreted as false. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.", + "description": "Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it inherits from DocumentStyle's use_first_page_header_footer for the first section. If the value is unset for subsequent sectors, it should be interpreted as false. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.", "type": "boolean" } }, diff --git a/DiscoveryJson/documentai.v1.json b/DiscoveryJson/documentai.v1.json index d9326ee0c3f..ee3ff2a3ab4 100644 --- a/DiscoveryJson/documentai.v1.json +++ b/DiscoveryJson/documentai.v1.json @@ -1018,6 +1018,345 @@ } } } + }, + "schemas": { + "methods": { + "create": { + "description": "Creates a schema.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas", + "httpMethod": "POST", + "id": "documentai.projects.locations.schemas.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/schemas", + "request": { + "$ref": "GoogleCloudDocumentaiV1NextSchema" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1NextSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a schema.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}", + "httpMethod": "DELETE", + "id": "documentai.projects.locations.schemas.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, any child resources of this Schema will also be deleted. (Otherwise, the request will only work if the Schema has no child resources.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the Schema to be deleted. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a schema.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Schema to get. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDocumentaiV1NextSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Schemas.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of schema groups to return. If unspecified, at most `10` Schema will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. We will return the schema groups sorted by creation time. The page token will point to the next Schema.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/schemas", + "response": { + "$ref": "GoogleCloudDocumentaiV1ListSchemasResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a schema. Editable fields are: - `display_name` - `labels`", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}", + "httpMethod": "PATCH", + "id": "documentai.projects.locations.schemas.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudDocumentaiV1NextSchema" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1NextSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "schemaVersions": { + "methods": { + "create": { + "description": "Creates a schema version.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions", + "httpMethod": "POST", + "id": "documentai.projects.locations.schemas.schemaVersions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) under which to create the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/schemaVersions", + "request": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a schema version.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions/{schemaVersionsId}", + "httpMethod": "DELETE", + "id": "documentai.projects.locations.schemas.schemaVersions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the SchemaVersion to delete. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generate": { + "description": "Generates a schema version.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions:generate", + "httpMethod": "POST", + "id": "documentai.projects.locations.schemas.schemaVersions.generate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/schemaVersions:generate", + "request": { + "$ref": "GoogleCloudDocumentaiV1GenerateSchemaVersionRequest" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1GenerateSchemaVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a schema version.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions/{schemaVersionsId}", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.schemaVersions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the SchemaVersion to get. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists SchemaVersions.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.schemaVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of SchemaVersion to return. If unspecified, at most `10` SchemaVersion will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. We will return the SchemaVersion sorted by creation time. The page token will point to the next SchemaVersion.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/schemaVersions", + "response": { + "$ref": "GoogleCloudDocumentaiV1ListSchemaVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a schema version. Editable fields are: - `display_name` - `labels`", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions/{schemaVersionsId}", + "httpMethod": "PATCH", + "id": "documentai.projects.locations.schemas.schemaVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } }, @@ -1053,7 +1392,7 @@ } } }, - "revision": "20251013", + "revision": "20251020", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput": { @@ -1678,15 +2017,178 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata": { - "description": "The long-running operation metadata for the EnableProcessor method.", - "id": "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata", + "GoogleCloudDocumentaiUiv1beta3DocumentSchema": { + "description": "The schema defines the output of the processed document by a processor.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchema", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, + "description": { + "description": "Description of the schema.", + "type": "string" + }, + "displayName": { + "description": "Display name to show to users.", + "type": "string" + }, + "entityTypes": { + "description": "Entity types of the schema.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType" + }, + "type": "array" + }, + "metadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata", + "description": "Metadata of the schema." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType": { + "description": "EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType", + "properties": { + "baseTypes": { + "description": "The entity type that this type is derived from. For now, one and only one should be set.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "The description of the entity type. Could be used to provide more information about the entity type for model calls.", + "type": "string" + }, + "displayName": { + "description": "User defined name for the type.", + "type": "string" + }, + "entityTypeMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata", + "description": "Metadata for the entity type." + }, + "enumValues": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues", + "description": "If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file." + }, + "name": { + "description": "Name of the type. It must be unique within the schema file and cannot be a \"Common Type\". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.", + "type": "string" + }, + "properties": { + "description": "Description the nested structure, or composition of an entity.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues": { + "description": "Defines the a list of enum values.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues", + "properties": { + "values": { + "description": "The individual values that this enum values type can include.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty": { + "description": "Defines properties that can be part of the entity type.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty", + "properties": { + "description": { + "description": "The description of the property. Could be used to provide more information about the property for model calls.", + "type": "string" + }, + "displayName": { + "description": "User defined name for the property.", + "type": "string" + }, + "method": { + "description": "Specifies how the entity's value is obtained.", + "enum": [ + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" + ], + "enumDescriptions": [ + "Unspecified method. It defaults to `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." + ], + "type": "string" + }, + "name": { + "description": "The name of the property. Follows the same guidelines as the EntityType name.", + "type": "string" + }, + "occurrenceType": { + "description": "Occurrence type limits the number of instances an entity type appears in the document.", + "enum": [ + "OCCURRENCE_TYPE_UNSPECIFIED", + "OPTIONAL_ONCE", + "OPTIONAL_MULTIPLE", + "REQUIRED_ONCE", + "REQUIRED_MULTIPLE" + ], + "enumDescriptions": [ + "Unspecified occurrence type.", + "There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.", + "The entity type will appear zero or multiple times.", + "The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.", + "The entity type will appear once or more times." + ], + "type": "string" + }, + "propertyMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3PropertyMetadata", + "description": "Any additional metadata about the property can be added here." + }, + "valueType": { + "description": "A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata": { + "description": "Metadata for global schema behavior.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata", + "properties": { + "documentAllowMultipleLabels": { + "description": "If true, on a given page, there can be multiple `document` annotations covering it.", + "type": "boolean" + }, + "documentSplitter": { + "description": "If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).", + "type": "boolean" + }, + "prefixedNamingOnProperties": { + "description": "If set, all the nested entities must be prefixed with the parents.", + "type": "boolean" + }, + "skipNamingValidation": { + "description": "If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata": { + "description": "The long-running operation metadata for the EnableProcessor method.", + "id": "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, "type": "object" }, "GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse": { @@ -1695,6 +2197,37 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata": { + "description": "Metadata about an entity type.", + "id": "GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata", + "properties": { + "fieldTierMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata", + "description": "Field tier metadata on the property" + }, + "humanReviewLabelingMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata", + "description": "Human review labeling config on the entity." + }, + "humanReviewMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata", + "description": "Human review config on the entity." + }, + "inactive": { + "description": "Whether the entity type should be considered inactive.", + "type": "boolean" + }, + "schemaEditabilityMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata", + "description": "Schema editability metadata on the entity." + }, + "schemaInferenceMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata", + "description": "Schema inference metadata on the entity." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata": { "description": "Metadata of the EvaluateProcessorVersion method.", "id": "GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata", @@ -1717,6 +2250,91 @@ }, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics": { + "description": "Evaluation metrics, either in aggregate or about a specific entity.", + "id": "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics", + "properties": { + "f1Score": { + "description": "The calculated f1 score.", + "format": "float", + "type": "number" + }, + "falseNegativesCount": { + "description": "The amount of false negatives.", + "format": "int32", + "type": "integer" + }, + "falsePositivesCount": { + "description": "The amount of false positives.", + "format": "int32", + "type": "integer" + }, + "groundTruthDocumentCount": { + "description": "The amount of documents with a ground truth occurrence.", + "format": "int32", + "type": "integer" + }, + "groundTruthOccurrencesCount": { + "description": "The amount of occurrences in ground truth documents.", + "format": "int32", + "type": "integer" + }, + "precision": { + "description": "The calculated precision.", + "format": "float", + "type": "number" + }, + "predictedDocumentCount": { + "description": "The amount of documents with a predicted occurrence.", + "format": "int32", + "type": "integer" + }, + "predictedOccurrencesCount": { + "description": "The amount of occurrences in predicted documents.", + "format": "int32", + "type": "integer" + }, + "recall": { + "description": "The calculated recall.", + "format": "float", + "type": "number" + }, + "totalDocumentsCount": { + "description": "The amount of documents that had an occurrence of this label.", + "format": "int32", + "type": "integer" + }, + "truePositivesCount": { + "description": "The amount of true positives.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3EvaluationReference": { + "description": "Gives a short summary of an evaluation, and links to the evaluation itself.", + "id": "GoogleCloudDocumentaiUiv1beta3EvaluationReference", + "properties": { + "aggregateMetrics": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching on." + }, + "aggregateMetricsExact": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching off." + }, + "evaluation": { + "description": "The resource name of the evaluation.", + "type": "string" + }, + "operation": { + "description": "The resource name of the Long Running Operation for the evaluation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata": { "description": "Metadata of the batch export documents operation.", "id": "GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata", @@ -1817,26 +2435,91 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata": { - "description": "Metadata of the import document operation.", - "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata", + "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata": { + "description": "Metadata for how this field value is extracted.", + "id": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - }, - "importConfigValidationResults": { - "description": "Validation statuses of the batch documents import config.", - "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult" - }, - "type": "array" + "entityQuery": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery", + "description": "Entity query config." }, - "individualImportStatuses": { - "description": "The list of response details of each document.", - "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus" - }, + "summaryOptions": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SummaryOptions", + "description": "Summary options config." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery": { + "description": "Message for entity query.", + "id": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery", + "properties": { + "userEntityQuery": { + "description": "The original entity query inputed by the user.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata": { + "description": "Metadata for the field tier of a property.", + "id": "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata", + "properties": { + "tierLevel": { + "description": "Integer that indicates the tier of a property. e.g. Invoice has entities that are classified as tier 1 which is the most important, while tier 2 and tier 3 less so. This attribute can be used to filter schema attributes before running eval. e.g. compute F1 score for only tier 1 entities. If not present this attribute should be inferred as 1.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata": { + "description": "Metadata for human review labeling config.", + "id": "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata", + "properties": { + "enableNormalizationEditing": { + "description": "Whether to enable normalization editing.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata": { + "description": "Metadata for Human Review config.", + "id": "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata", + "properties": { + "confidenceThreshold": { + "description": "The confidence threshold if human review validation is enabled.", + "format": "float", + "type": "number" + }, + "enableValidation": { + "description": "Whether to enable human review validation.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata": { + "description": "Metadata of the import document operation.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + }, + "importConfigValidationResults": { + "description": "Validation statuses of the batch documents import config.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult" + }, + "type": "array" + }, + "individualImportStatuses": { + "description": "The list of response details of each document.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus" + }, "type": "array" }, "totalDocumentCount": { @@ -1913,1606 +2596,1737 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata": { - "description": "The metadata proto of `ResyncDataset` method.", - "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata", + "GoogleCloudDocumentaiUiv1beta3Processor": { + "description": "The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.", + "id": "GoogleCloudDocumentaiUiv1beta3Processor", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "activeSchemaVersion": { + "description": "Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}", + "type": "string" }, - "datasetResyncStatuses": { - "description": "The list of dataset resync statuses. Not checked when ResyncDatasetRequest.dataset_documents is specified.", - "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus" - }, - "type": "array" + "createTime": { + "description": "Output only. The time the processor was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" }, - "individualDocumentResyncStatuses": { - "description": "The list of document resync statuses. The same document could have multiple `individual_document_resync_statuses` if it has multiple inconsistencies.", + "defaultProcessorVersion": { + "description": "The default processor version.", + "type": "string" + }, + "displayName": { + "description": "The display name of the processor.", + "type": "string" + }, + "kmsKeyName": { + "description": "The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios.", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}`", + "readOnly": true, + "type": "string" + }, + "processEndpoint": { + "description": "Output only. Immutable. The http endpoint that can be called to invoke processing.", + "readOnly": true, + "type": "string" + }, + "processorVersionAliases": { + "description": "Output only. The processor version aliases.", "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus" + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias" }, + "readOnly": true, "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus": { - "description": "Resync status against inconsistency types on the dataset level.", - "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus", - "properties": { - "datasetInconsistencyType": { - "description": "The type of the inconsistency of the dataset.", + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "state": { + "description": "Output only. The state of the processor.", "enum": [ - "DATASET_INCONSISTENCY_TYPE_UNSPECIFIED", - "DATASET_INCONSISTENCY_TYPE_NO_STORAGE_MARKER" + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED", + "ENABLING", + "DISABLING", + "CREATING", + "FAILED", + "DELETING" ], "enumDescriptions": [ - "Default value.", - "The marker file under the dataset folder is not found." + "The processor is in an unspecified state.", + "The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.", + "The processor is disabled.", + "The processor is being enabled, will become `ENABLED` if successful.", + "The processor is being disabled, will become `DISABLED` if successful.", + "The processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet.", + "The processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled.", + "The processor is being deleted, will be removed if successful." ], + "readOnly": true, "type": "string" }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status of resyncing the dataset with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`." + "type": { + "description": "The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus": { - "description": "Resync status for each document per inconsistency type.", - "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersion": { + "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersion", "properties": { - "documentId": { - "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentId", - "description": "The document identifier." + "createTime": { + "description": "Output only. The time the processor version was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" }, - "documentInconsistencyType": { - "description": "The type of document inconsistency.", - "enum": [ - "DOCUMENT_INCONSISTENCY_TYPE_UNSPECIFIED", - "DOCUMENT_INCONSISTENCY_TYPE_INVALID_DOCPROTO", - "DOCUMENT_INCONSISTENCY_TYPE_MISMATCHED_METADATA", - "DOCUMENT_INCONSISTENCY_TYPE_NO_PAGE_IMAGE" - ], - "enumDescriptions": [ - "Default value.", - "The document proto is invalid.", - "Indexed docproto metadata is mismatched.", - "The page image or thumbnails are missing." - ], + "deploymentAllowed": { + "description": "Output only. Denotes that this `ProcessorVersion` can be deployed and undeployed.", + "readOnly": true, + "type": "boolean" + }, + "deprecationInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo", + "description": "Output only. If set, information about the eventual deprecation of this version.", + "readOnly": true + }, + "displayName": { + "description": "The display name of the processor version.", "type": "string" }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status of resyncing the document with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse": { - "description": "The response proto of ResyncDataset method.", - "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3RevisionRef": { - "description": "The revision reference specifies which revision on the document to read.", - "id": "GoogleCloudDocumentaiUiv1beta3RevisionRef", - "properties": { - "latestProcessorVersion": { - "description": "Reads the revision generated by the processor version. The format takes the full resource name of processor version. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", + "documentSchema": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchema", + "description": "Output only. The schema of the processor version. Describes the output.", + "readOnly": true + }, + "genAiModelInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo", + "description": "Output only. Information about Generative AI model-based processor versions.", + "readOnly": true + }, + "googleManaged": { + "description": "Output only. Denotes that this `ProcessorVersion` is managed by Google.", + "readOnly": true, + "type": "boolean" + }, + "kmsKeyName": { + "description": "Output only. The KMS key name used for encryption.", + "readOnly": true, "type": "string" }, - "revisionCase": { - "description": "Reads the revision by the predefined case.", + "kmsKeyVersionName": { + "description": "Output only. The KMS key version with which data is encrypted.", + "readOnly": true, + "type": "string" + }, + "latestEvaluation": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EvaluationReference", + "description": "Output only. The most recently invoked evaluation for the processor version.", + "readOnly": true + }, + "modelType": { + "description": "Output only. The model type of this processor version.", "enum": [ - "REVISION_CASE_UNSPECIFIED", - "LATEST_HUMAN_REVIEW", - "LATEST_TIMESTAMP", - "BASE_OCR_REVISION" + "MODEL_TYPE_UNSPECIFIED", + "MODEL_TYPE_GENERATIVE", + "MODEL_TYPE_CUSTOM" ], "enumDescriptions": [ - "Unspecified case, fall back to read the `LATEST_HUMAN_REVIEW`.", - "The latest revision made by a human.", - "The latest revision based on timestamp.", - "The first (OCR) revision." + "The processor version has unspecified model type.", + "The processor version has generative model type.", + "The processor version has custom model type." ], + "readOnly": true, "type": "string" }, - "revisionId": { - "description": "Reads the revision given by the id.", + "name": { + "description": "Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`", + "type": "string" + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "schema": { + "$ref": "GoogleCloudDocumentaiUiv1beta3Schema", + "description": "The schema of the processor version. Describes the output." + }, + "state": { + "description": "Output only. The state of the processor version.", + "enum": [ + "STATE_UNSPECIFIED", + "DEPLOYED", + "DEPLOYING", + "UNDEPLOYED", + "UNDEPLOYING", + "CREATING", + "DELETING", + "FAILED", + "IMPORTING" + ], + "enumDescriptions": [ + "The processor version is in an unspecified state.", + "The processor version is deployed and can be used for processing.", + "The processor version is being deployed.", + "The processor version is not deployed and cannot be used for processing.", + "The processor version is being undeployed.", + "The processor version is being created.", + "The processor version is being deleted.", + "The processor version failed and is in an indeterminate state.", + "The processor version is being imported." + ], + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata": { - "description": "Metadata of the sample documents operation.", - "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse": { - "description": "Response of the sample documents operation.", - "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias": { + "description": "Contains the alias and the aliased resource name of processor version.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias", "properties": { - "sampleTestStatus": { - "$ref": "GoogleRpcStatus", - "description": "The status of sampling documents in test split." - }, - "sampleTrainingStatus": { - "$ref": "GoogleRpcStatus", - "description": "The status of sampling documents in training split." + "alias": { + "description": "The alias in the form of `processor_version` resource name.", + "type": "string" }, - "selectedDocuments": { - "description": "The result of the sampling process.", - "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument" - }, - "type": "array" + "processorVersion": { + "description": "The resource name of aliased processor version.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument": { - "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo": { + "description": "Information about the upcoming deprecation of this processor version.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo", "properties": { - "documentId": { - "description": "An internal identifier for document.", + "deprecationTime": { + "description": "The time at which this processor version will be deprecated.", + "format": "google-datetime", + "type": "string" + }, + "replacementProcessorVersion": { + "description": "If set, the processor version that will be used as a replacement.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata": { - "description": "The long-running operation metadata for the SetDefaultProcessorVersion method.", - "id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo": { + "description": "Information about Generative AI model-based processor versions.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "customGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", + "description": "Information for a custom Generative AI model created by the user." + }, + "foundationGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", + "description": "Information for a pretrained Google-managed foundation model." } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse": { - "description": "Response message for the SetDefaultProcessorVersion method.", - "id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata": { - "description": "The metadata that represents a processor version being created.", - "id": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo": { + "description": "Information for a custom Generative AI model created by the user. These are created with `Create New Version` in either the `Call foundation model` or `Fine tuning` tabs.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - }, - "testDatasetValidation": { - "$ref": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation", - "description": "The test dataset validation information." + "baseProcessorVersionId": { + "description": "The base processor version ID for the custom model.", + "type": "string" }, - "trainingDatasetValidation": { - "$ref": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation", - "description": "The training dataset validation information." + "customModelType": { + "description": "The type of custom model created by the user.", + "enum": [ + "CUSTOM_MODEL_TYPE_UNSPECIFIED", + "VERSIONED_FOUNDATION", + "FINE_TUNED" + ], + "enumDescriptions": [ + "The model type is unspecified.", + "The model is a versioned foundation model.", + "The model is a finetuned foundation model." + ], + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation": { - "description": "The dataset validation information. This includes any and all errors with documents and the dataset.", - "id": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo": { + "description": "Information for a pretrained Google-managed foundation model.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", "properties": { - "datasetErrorCount": { - "description": "The total number of dataset errors.", - "format": "int32", - "type": "integer" - }, - "datasetErrors": { - "description": "Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.", - "items": { - "$ref": "GoogleRpcStatus" - }, - "type": "array" + "finetuningAllowed": { + "description": "Whether finetuning is allowed for this base processor version.", + "type": "boolean" }, - "documentErrorCount": { - "description": "The total number of document errors.", + "minTrainLabeledDocuments": { + "description": "The minimum number of labeled documents in the training dataset required for finetuning.", "format": "int32", "type": "integer" - }, - "documentErrors": { - "description": "Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.", - "items": { - "$ref": "GoogleRpcStatus" - }, - "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse": { - "description": "The response for TrainProcessorVersion.", - "id": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse", + "GoogleCloudDocumentaiUiv1beta3PropertyMetadata": { + "description": "Metadata about a property.", + "id": "GoogleCloudDocumentaiUiv1beta3PropertyMetadata", "properties": { - "processorVersion": { - "description": "The resource name of the processor version produced by training.", - "type": "string" + "fieldExtractionMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata", + "description": "Field extraction metadata on the property." + }, + "fieldTierMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata", + "description": "Field tier metadata on the property" + }, + "humanReviewLabelingMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata", + "description": "Human review labeling config on the property." + }, + "humanReviewMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata", + "description": "Human review validation config on the property." + }, + "inactive": { + "description": "Whether the property should be considered as \"inactive\".", + "type": "boolean" + }, + "schemaEditabilityMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata", + "description": "Schema editability metadata on the property." + }, + "schemaInferenceMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata", + "description": "Schema inference metadata on the property." } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata": { - "description": "The long-running operation metadata for the UndeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata", + "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata": { + "description": "The metadata proto of `ResyncDataset` method.", + "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata", "properties": { "commonMetadata": { "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", "description": "The basic metadata of the long-running operation." + }, + "datasetResyncStatuses": { + "description": "The list of dataset resync statuses. Not checked when ResyncDatasetRequest.dataset_documents is specified.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus" + }, + "type": "array" + }, + "individualDocumentResyncStatuses": { + "description": "The list of document resync statuses. The same document could have multiple `individual_document_resync_statuses` if it has multiple inconsistencies.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse": { - "description": "Response message for the UndeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata": { - "id": "GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata", + "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus": { + "description": "Resync status against inconsistency types on the dataset level.", + "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "datasetInconsistencyType": { + "description": "The type of the inconsistency of the dataset.", + "enum": [ + "DATASET_INCONSISTENCY_TYPE_UNSPECIFIED", + "DATASET_INCONSISTENCY_TYPE_NO_STORAGE_MARKER" + ], + "enumDescriptions": [ + "Default value.", + "The marker file under the dataset folder is not found." + ], + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of resyncing the dataset with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`." } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata": { - "description": "The long-running operation metadata for updating the human review configuration.", - "id": "GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata", + "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus": { + "description": "Resync status for each document per inconsistency type.", + "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "documentId": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentId", + "description": "The document identifier." + }, + "documentInconsistencyType": { + "description": "The type of document inconsistency.", + "enum": [ + "DOCUMENT_INCONSISTENCY_TYPE_UNSPECIFIED", + "DOCUMENT_INCONSISTENCY_TYPE_INVALID_DOCPROTO", + "DOCUMENT_INCONSISTENCY_TYPE_MISMATCHED_METADATA", + "DOCUMENT_INCONSISTENCY_TYPE_NO_PAGE_IMAGE" + ], + "enumDescriptions": [ + "Default value.", + "The document proto is invalid.", + "Indexed docproto metadata is mismatched.", + "The page image or thumbnails are missing." + ], + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of resyncing the document with regards to the detected inconsistency. Empty if ResyncDatasetRequest.validate_only is `true`." } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata": { - "description": "The long-running operation metadata for UpdateLabelerPool.", - "id": "GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, + "GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse": { + "description": "The response proto of ResyncDataset method.", + "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse", + "properties": {}, "type": "object" }, - "GoogleCloudDocumentaiV1Barcode": { - "description": "Encodes the detailed information of a barcode.", - "id": "GoogleCloudDocumentaiV1Barcode", + "GoogleCloudDocumentaiUiv1beta3RevisionRef": { + "description": "The revision reference specifies which revision on the document to read.", + "id": "GoogleCloudDocumentaiUiv1beta3RevisionRef", "properties": { - "format": { - "description": "Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.", + "latestProcessorVersion": { + "description": "Reads the revision generated by the processor version. The format takes the full resource name of processor version. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", "type": "string" }, - "rawValue": { - "description": "Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.", + "revisionCase": { + "description": "Reads the revision by the predefined case.", + "enum": [ + "REVISION_CASE_UNSPECIFIED", + "LATEST_HUMAN_REVIEW", + "LATEST_TIMESTAMP", + "BASE_OCR_REVISION" + ], + "enumDescriptions": [ + "Unspecified case, fall back to read the `LATEST_HUMAN_REVIEW`.", + "The latest revision made by a human.", + "The latest revision based on timestamp.", + "The first (OCR) revision." + ], "type": "string" }, - "valueFormat": { - "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.", + "revisionId": { + "description": "Reads the revision given by the id.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1BatchDocumentsInputConfig": { - "description": "The common config to specify a set of documents used as input.", - "id": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", + "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata": { + "description": "Metadata of the sample documents operation.", + "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata", "properties": { - "gcsDocuments": { - "$ref": "GoogleCloudDocumentaiV1GcsDocuments", - "description": "The set of documents individually specified on Cloud Storage." - }, - "gcsPrefix": { - "$ref": "GoogleCloudDocumentaiV1GcsPrefix", - "description": "The set of documents that match the specified Cloud Storage `gcs_prefix`." + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1BatchProcessMetadata": { - "description": "The long-running operation metadata for BatchProcessDocuments.", - "id": "GoogleCloudDocumentaiV1BatchProcessMetadata", + "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse": { + "description": "Response of the sample documents operation.", + "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse", "properties": { - "createTime": { - "description": "The creation time of the operation.", - "format": "google-datetime", - "type": "string" + "sampleTestStatus": { + "$ref": "GoogleRpcStatus", + "description": "The status of sampling documents in test split." }, - "individualProcessStatuses": { - "description": "The list of response details of each document.", + "sampleTrainingStatus": { + "$ref": "GoogleRpcStatus", + "description": "The status of sampling documents in training split." + }, + "selectedDocuments": { + "description": "The result of the sampling process.", "items": { - "$ref": "GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus" + "$ref": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument" }, "type": "array" - }, - "state": { - "description": "The state of the current batch processing.", - "enum": [ - "STATE_UNSPECIFIED", - "WAITING", - "RUNNING", - "SUCCEEDED", - "CANCELLING", - "CANCELLED", - "FAILED" - ], - "enumDescriptions": [ - "The default value. This value is used if the state is omitted.", - "Request operation is waiting for scheduling.", - "Request is being processed.", - "The batch processing completed successfully.", - "The batch processing was being cancelled.", - "The batch processing was cancelled.", - "The batch processing has failed." - ], - "type": "string" - }, - "stateMessage": { - "description": "A message providing more details about the current state of processing. For example, the error message if the operation is failed.", - "type": "string" - }, - "updateTime": { - "description": "The last update time of the operation.", - "format": "google-datetime", - "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus": { - "description": "The status of a each individual document in the batch process.", - "id": "GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus", + "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument": { + "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument", "properties": { - "humanReviewStatus": { - "$ref": "GoogleCloudDocumentaiV1HumanReviewStatus", - "description": "The status of human review on the processed document." - }, - "inputGcsSource": { - "description": "The source of the document, same as the input_gcs_source field in the request when the batch process started.", - "type": "string" - }, - "outputGcsDestination": { - "description": "The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document if it was successful, otherwise empty.", + "documentId": { + "description": "An internal identifier for document.", "type": "string" - }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status processing the document." } }, "type": "object" }, - "GoogleCloudDocumentaiV1BatchProcessRequest": { - "description": "Request message for BatchProcessDocuments.", - "id": "GoogleCloudDocumentaiV1BatchProcessRequest", + "GoogleCloudDocumentaiUiv1beta3Schema": { + "description": "The schema defines the output of the processed document by a processor.", + "id": "GoogleCloudDocumentaiUiv1beta3Schema", "properties": { - "documentOutputConfig": { - "$ref": "GoogleCloudDocumentaiV1DocumentOutputConfig", - "description": "The output configuration for the BatchProcessDocuments method." + "description": { + "description": "Description of the schema.", + "type": "string" }, - "inputDocuments": { - "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", - "description": "The input documents for the BatchProcessDocuments method." + "displayName": { + "description": "Display name to show to users.", + "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" + "entityTypes": { + "description": "Entity types of the schema.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEntityType" }, - "description": "Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.", - "type": "object" - }, - "processOptions": { - "$ref": "GoogleCloudDocumentaiV1ProcessOptions", - "description": "Inference-time options for the process API" - }, - "skipHumanReview": { - "description": "Whether human review should be skipped for this request. Default to `false`.", - "type": "boolean" + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1BatchProcessResponse": { - "description": "Response message for BatchProcessDocuments.", - "id": "GoogleCloudDocumentaiV1BatchProcessResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1BoundingPoly": { - "description": "A bounding polygon for the detected image annotation.", - "id": "GoogleCloudDocumentaiV1BoundingPoly", + "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata": { + "description": "Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend.", + "id": "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata", "properties": { - "normalizedVertices": { - "description": "The bounding polygon normalized vertices.", - "items": { - "$ref": "GoogleCloudDocumentaiV1NormalizedVertex" - }, - "type": "array" + "editable": { + "description": "Explicit flag that controls whether the label is editable.", + "type": "boolean" }, - "vertices": { - "description": "The bounding polygon vertices.", + "processorVersions": { + "description": "Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", "items": { - "$ref": "GoogleCloudDocumentaiV1Vertex" + "type": "string" }, "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1CommonOperationMetadata": { - "description": "The common metadata for long running operations.", - "id": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "GoogleCloudDocumentaiUiv1beta3SchemaEntityType": { + "description": "EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.", + "id": "GoogleCloudDocumentaiUiv1beta3SchemaEntityType", "properties": { - "createTime": { - "description": "The creation time of the operation.", - "format": "google-datetime", + "baseType": { "type": "string" }, - "resource": { - "description": "A related resource to this operation.", + "description": { + "description": "Description of the entity type.", "type": "string" }, - "state": { - "description": "The state of the operation.", + "enumValues": { + "description": "If specified, lists all the possible values for this entity.", + "items": { + "type": "string" + }, + "type": "array" + }, + "hide": { + "description": "If the entity type is hidden in the schema. This provides the functionality to temporally \"disable\" an entity without deleting it.", + "type": "boolean" + }, + "method": { + "description": "Specifies how the entity's value is obtained.", "enum": [ - "STATE_UNSPECIFIED", - "RUNNING", - "CANCELLING", - "SUCCEEDED", - "FAILED", - "CANCELLED" + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" ], "enumDescriptions": [ - "Unspecified state.", - "Operation is still running.", - "Operation is being cancelled.", - "Operation succeeded.", - "Operation failed.", - "Operation is cancelled." + "Unspecified method. It defaults to `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." ], "type": "string" }, - "stateMessage": { - "description": "A message providing more details about the current state of processing.", + "occurrenceType": { + "description": "Occurrence type limits the number of times an entity type appears in the document.", + "enum": [ + "OCCURRENCE_TYPE_UNSPECIFIED", + "OPTIONAL_ONCE", + "OPTIONAL_MULTIPLE", + "REQUIRED_ONCE", + "REQUIRED_MULTIPLE" + ], + "enumDescriptions": [ + "Unspecified occurrence type.", + "The entity type will appear zero times or once.", + "The entity type will appear zero or multiple times.", + "The entity type will only appear exactly once.", + "The entity type will appear once or more times." + ], "type": "string" }, - "updateTime": { - "description": "The last update time of the operation.", - "format": "google-datetime", + "properties": { + "description": "Describing the nested structure of an entity. An EntityType may consist of several other EntityTypes. For example, in a document there can be an EntityType `ID`, which consists of EntityType `name` and `address`, with corresponding attributes, such as TEXT for both types and ONCE for occurrence types.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEntityType" + }, + "type": "array" + }, + "source": { + "description": "Source of this entity type.", + "enum": [ + "SOURCE_UNSPECIFIED", + "PREDEFINED", + "USER_INPUT" + ], + "enumDescriptions": [ + "Unspecified source.", + "The entity type is in the predefined schema of a pretrained version of a processor.", + "The entity type is added by the users either: - during an uptraining of an existing processor, or - during the process of creating a customized processor." + ], + "type": "string" + }, + "type": { + "description": "Name of the type. It must satisfy the following constraints: 1. Must be unique within the set of same level types (with case-insensitive match). 2. Maximum 64 characters. 3. Must start with a letter. 4. Allowed characters: ASCII letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation characters: * underscore '_' (recommended) * hyphen '-' (allowed, not recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace characters are not allowed. 5. Cannot end with a punctuation character. 6. Cannot contain the following restricted strings: \"google\", \"DocumentAI\" (case-insensitive match). 7. A slash character '/' is reserved as a separator in flattened representations of nested entity types (e.g., \"line_item/amount\") in which case each part (e.g., \"line_item\", \"amount\") must comply with the rules defined above. We recommend using the snake case (\"snake_case\") in entity type names.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DeleteProcessorMetadata": { - "description": "The long-running operation metadata for the DeleteProcessor method.", - "id": "GoogleCloudDocumentaiV1DeleteProcessorMetadata", + "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata": { + "description": "Metadata for schema inference. Only used on dataset.schema for schema inference, can be safely ignored elsewhere.", + "id": "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata", + "properties": { + "inferred": { + "description": "True if is inferred by schema inference.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata": { + "description": "The long-running operation metadata for the SetDefaultProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata", "properties": { "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata": { - "description": "The long-running operation metadata for the DeleteProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata", + "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse": { + "description": "Response message for the SetDefaultProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3SummaryOptions": { + "description": "Metadata for document summarization.", + "id": "GoogleCloudDocumentaiUiv1beta3SummaryOptions", + "properties": { + "format": { + "description": "The format the summary should be in.", + "enum": [ + "FORMAT_UNSPECIFIED", + "PARAGRAPH", + "BULLETS" + ], + "enumDescriptions": [ + "Default.", + "Format the output in paragraphs.", + "Format the output in bullets." + ], + "type": "string" + }, + "length": { + "description": "How long the summary should be.", + "enum": [ + "LENGTH_UNSPECIFIED", + "BRIEF", + "MODERATE", + "COMPREHENSIVE" + ], + "enumDescriptions": [ + "Default.", + "A brief summary of one or two sentences.", + "A paragraph-length summary.", + "The longest option available." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata": { + "description": "The metadata that represents a processor version being created.", + "id": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata", "properties": { "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", "description": "The basic metadata of the long-running operation." + }, + "testDatasetValidation": { + "$ref": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation", + "description": "The test dataset validation information." + }, + "trainingDatasetValidation": { + "$ref": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation", + "description": "The training dataset validation information." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DeployProcessorVersionMetadata": { - "description": "The long-running operation metadata for the DeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1DeployProcessorVersionMetadata", + "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation": { + "description": "The dataset validation information. This includes any and all errors with documents and the dataset.", + "id": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation", + "properties": { + "datasetErrorCount": { + "description": "The total number of dataset errors.", + "format": "int32", + "type": "integer" + }, + "datasetErrors": { + "description": "Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "documentErrorCount": { + "description": "The total number of document errors.", + "format": "int32", + "type": "integer" + }, + "documentErrors": { + "description": "Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse": { + "description": "The response for TrainProcessorVersion.", + "id": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The resource name of the processor version produced by training.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata": { + "description": "The long-running operation metadata for the UndeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata", "properties": { "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DeployProcessorVersionRequest": { - "description": "Request message for the DeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1DeployProcessorVersionRequest", + "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse": { + "description": "Response message for the UndeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse", "properties": {}, "type": "object" }, - "GoogleCloudDocumentaiV1DeployProcessorVersionResponse": { - "description": "Response message for the DeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1DeployProcessorVersionResponse", - "properties": {}, + "GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata": { + "id": "GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, "type": "object" }, - "GoogleCloudDocumentaiV1DisableProcessorMetadata": { - "description": "The long-running operation metadata for the DisableProcessor method.", - "id": "GoogleCloudDocumentaiV1DisableProcessorMetadata", + "GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata": { + "description": "The long-running operation metadata for updating the human review configuration.", + "id": "GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata", "properties": { "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DisableProcessorRequest": { - "description": "Request message for the DisableProcessor method.", - "id": "GoogleCloudDocumentaiV1DisableProcessorRequest", - "properties": {}, + "GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata": { + "description": "The long-running operation metadata for UpdateLabelerPool.", + "id": "GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, "type": "object" }, - "GoogleCloudDocumentaiV1DisableProcessorResponse": { - "description": "Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future.", - "id": "GoogleCloudDocumentaiV1DisableProcessorResponse", - "properties": {}, + "GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata": { + "description": "The long-running operation metadata for the UpdateProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata for the long-running operation." + } + }, "type": "object" }, - "GoogleCloudDocumentaiV1Document": { - "description": "Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.", - "id": "GoogleCloudDocumentaiV1Document", + "GoogleCloudDocumentaiV1Barcode": { + "description": "Encodes the detailed information of a barcode.", + "id": "GoogleCloudDocumentaiV1Barcode", "properties": { - "chunkedDocument": { - "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocument", - "description": "Document chunked based on chunking config." - }, - "content": { - "description": "Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.", - "format": "byte", + "format": { + "description": "Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code type.", "type": "string" }, - "docid": { - "description": "Optional. An internal identifier for document. Should be loggable (no PII).", + "rawValue": { + "description": "Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`.", "type": "string" }, - "documentLayout": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayout", - "description": "Parsed layout of the document." - }, - "entities": { - "description": "A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntity" - }, - "type": "array" - }, - "entitiesRevisionId": { - "description": "The entity revision id that `document.entities` field is based on. If this field is set and `entities_revisions` is not empty, the entities in `document.entities` field are the entities in the entity revision with this id and `document.entity_validation_output` field is the `entity_validation_output` field in this entity revision.", + "valueFormat": { + "description": "Value format describes the format of the value that a barcode encodes. The supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: Driver's license.", "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1BatchDocumentsInputConfig": { + "description": "The common config to specify a set of documents used as input.", + "id": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", + "properties": { + "gcsDocuments": { + "$ref": "GoogleCloudDocumentaiV1GcsDocuments", + "description": "The set of documents individually specified on Cloud Storage." }, - "entitiesRevisions": { - "description": "A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntitiesRevision" - }, - "type": "array" + "gcsPrefix": { + "$ref": "GoogleCloudDocumentaiV1GcsPrefix", + "description": "The set of documents that match the specified Cloud Storage `gcs_prefix`." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1BatchProcessMetadata": { + "description": "The long-running operation metadata for BatchProcessDocuments.", + "id": "GoogleCloudDocumentaiV1BatchProcessMetadata", + "properties": { + "createTime": { + "description": "The creation time of the operation.", + "format": "google-datetime", + "type": "string" }, - "entityRelations": { - "description": "Placeholder. Relationship among Document.entities.", + "individualProcessStatuses": { + "description": "The list of response details of each document.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntityRelation" + "$ref": "GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus" }, "type": "array" }, - "entityValidationOutput": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntityValidationOutput", - "description": "The entity validation output for the document. This is the validation output for `document.entities` field." - }, - "error": { - "$ref": "GoogleRpcStatus", - "description": "Any error that occurred while processing this document." + "state": { + "description": "The state of the current batch processing.", + "enum": [ + "STATE_UNSPECIFIED", + "WAITING", + "RUNNING", + "SUCCEEDED", + "CANCELLING", + "CANCELLED", + "FAILED" + ], + "enumDescriptions": [ + "The default value. This value is used if the state is omitted.", + "Request operation is waiting for scheduling.", + "Request is being processed.", + "The batch processing completed successfully.", + "The batch processing was being cancelled.", + "The batch processing was cancelled.", + "The batch processing has failed." + ], + "type": "string" }, - "mimeType": { - "description": "An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).", + "stateMessage": { + "description": "A message providing more details about the current state of processing. For example, the error message if the operation is failed.", "type": "string" }, - "pages": { - "description": "Visual page layout for the Document.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPage" - }, - "type": "array" - }, - "revisions": { - "description": "Placeholder. Revision history of this document.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentRevision" - }, - "type": "array" - }, - "shardInfo": { - "$ref": "GoogleCloudDocumentaiV1DocumentShardInfo", - "description": "Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified." - }, - "text": { - "description": "Optional. UTF-8 encoded text in reading order from the document.", - "type": "string" - }, - "textChanges": { - "description": "Placeholder. A list of text corrections made to Document.text. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentTextChange" - }, - "type": "array" - }, - "textStyles": { - "deprecated": true, - "description": "Styles for the Document.text.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentStyle" - }, - "type": "array" - }, - "uri": { - "description": "Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).", + "updateTime": { + "description": "The last update time of the operation.", + "format": "google-datetime", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentChunkedDocument": { - "description": "Represents the chunks that the document is divided into.", - "id": "GoogleCloudDocumentaiV1DocumentChunkedDocument", + "GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus": { + "description": "The status of a each individual document in the batch process.", + "id": "GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus", "properties": { - "chunks": { - "description": "List of chunks.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk" - }, - "type": "array" + "humanReviewStatus": { + "$ref": "GoogleCloudDocumentaiV1HumanReviewStatus", + "description": "The status of human review on the processed document." + }, + "inputGcsSource": { + "description": "The source of the document, same as the input_gcs_source field in the request when the batch process started.", + "type": "string" + }, + "outputGcsDestination": { + "description": "The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document if it was successful, otherwise empty.", + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status processing the document." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk": { - "description": "Represents a chunk.", - "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk", + "GoogleCloudDocumentaiV1BatchProcessRequest": { + "description": "Request message for BatchProcessDocuments.", + "id": "GoogleCloudDocumentaiV1BatchProcessRequest", "properties": { - "chunkId": { - "description": "ID of the chunk.", - "type": "string" + "documentOutputConfig": { + "$ref": "GoogleCloudDocumentaiV1DocumentOutputConfig", + "description": "The output configuration for the BatchProcessDocuments method." }, - "content": { - "description": "Text content of the chunk.", - "type": "string" + "inputDocuments": { + "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", + "description": "The input documents for the BatchProcessDocuments method." }, - "pageFooters": { - "description": "Page footers associated with the chunk.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter" + "labels": { + "additionalProperties": { + "type": "string" }, - "type": "array" + "description": "Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.", + "type": "object" }, - "pageHeaders": { - "description": "Page headers associated with the chunk.", + "processOptions": { + "$ref": "GoogleCloudDocumentaiV1ProcessOptions", + "description": "Inference-time options for the process API" + }, + "skipHumanReview": { + "description": "Whether human review should be skipped for this request. Default to `false`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1BatchProcessResponse": { + "description": "Response message for BatchProcessDocuments.", + "id": "GoogleCloudDocumentaiV1BatchProcessResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1BoundingPoly": { + "description": "A bounding polygon for the detected image annotation.", + "id": "GoogleCloudDocumentaiV1BoundingPoly", + "properties": { + "normalizedVertices": { + "description": "The bounding polygon normalized vertices.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader" + "$ref": "GoogleCloudDocumentaiV1NormalizedVertex" }, "type": "array" }, - "pageSpan": { - "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", - "description": "Page span of the chunk." - }, - "sourceBlockIds": { - "description": "Unused.", + "vertices": { + "description": "The bounding polygon vertices.", "items": { - "type": "string" + "$ref": "GoogleCloudDocumentaiV1Vertex" }, "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter": { - "description": "Represents the page footer associated with the chunk.", - "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter", + "GoogleCloudDocumentaiV1CommonOperationMetadata": { + "description": "The common metadata for long running operations.", + "id": "GoogleCloudDocumentaiV1CommonOperationMetadata", "properties": { - "pageSpan": { - "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", - "description": "Page span of the footer." + "createTime": { + "description": "The creation time of the operation.", + "format": "google-datetime", + "type": "string" }, - "text": { - "description": "Footer in text format.", + "resource": { + "description": "A related resource to this operation.", "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader": { - "description": "Represents the page header associated with the chunk.", - "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader", - "properties": { - "pageSpan": { - "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", - "description": "Page span of the header." }, - "text": { - "description": "Header in text format.", + "state": { + "description": "The state of the operation.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "CANCELLING", + "SUCCEEDED", + "FAILED", + "CANCELLED" + ], + "enumDescriptions": [ + "Unspecified state.", + "Operation is still running.", + "Operation is being cancelled.", + "Operation succeeded.", + "Operation failed.", + "Operation is cancelled." + ], + "type": "string" + }, + "stateMessage": { + "description": "A message providing more details about the current state of processing.", + "type": "string" + }, + "updateTime": { + "description": "The last update time of the operation.", + "format": "google-datetime", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan": { - "description": "Represents where the chunk starts and ends in the document.", - "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "GoogleCloudDocumentaiV1DeleteProcessorMetadata": { + "description": "The long-running operation metadata for the DeleteProcessor method.", + "id": "GoogleCloudDocumentaiV1DeleteProcessorMetadata", "properties": { - "pageEnd": { - "description": "Page where chunk ends in the document.", - "format": "int32", - "type": "integer" - }, - "pageStart": { - "description": "Page where chunk starts in the document.", - "format": "int32", - "type": "integer" + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentDocumentLayout": { - "description": "Represents the parsed layout of a document as a collection of blocks that the document is divided into.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayout", + "GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata": { + "description": "The long-running operation metadata for the DeleteProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata", "properties": { - "blocks": { - "description": "List of blocks in the document.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" - }, - "type": "array" + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock": { - "description": "Represents a block. A block could be one of the various types (text, table, list) supported.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock", + "GoogleCloudDocumentaiV1DeployProcessorVersionMetadata": { + "description": "The long-running operation metadata for the DeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1DeployProcessorVersionMetadata", "properties": { - "blockId": { - "description": "ID of the block.", - "type": "string" - }, - "boundingBox": { - "$ref": "GoogleCloudDocumentaiV1BoundingPoly", - "description": "Identifies the bounding box for the block." - }, - "listBlock": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", - "description": "Block consisting of list content/structure." - }, - "pageSpan": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", - "description": "Page span of the block." - }, - "tableBlock": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", - "description": "Block consisting of table content/structure." - }, - "textBlock": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", - "description": "Block consisting of text content." + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock": { - "description": "Represents a list type block.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", - "properties": { - "listEntries": { - "description": "List entries that constitute a list block.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry" - }, - "type": "array" - }, - "type": { - "description": "Type of the list_entries (if exist). Available options are `ordered` and `unordered`.", - "type": "string" - } - }, + "GoogleCloudDocumentaiV1DeployProcessorVersionRequest": { + "description": "Request message for the DeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1DeployProcessorVersionRequest", + "properties": {}, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry": { - "description": "Represents an entry in the list.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry", - "properties": { - "blocks": { - "description": "A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" - }, - "type": "array" - } - }, + "GoogleCloudDocumentaiV1DeployProcessorVersionResponse": { + "description": "Response message for the DeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1DeployProcessorVersionResponse", + "properties": {}, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan": { - "description": "Represents where the block starts and ends in the document.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", + "GoogleCloudDocumentaiV1DisableProcessorMetadata": { + "description": "The long-running operation metadata for the DisableProcessor method.", + "id": "GoogleCloudDocumentaiV1DisableProcessorMetadata", "properties": { - "pageEnd": { - "description": "Page where block ends in the document.", - "format": "int32", - "type": "integer" - }, - "pageStart": { - "description": "Page where block starts in the document.", - "format": "int32", - "type": "integer" + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock": { - "description": "Represents a table type block.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", + "GoogleCloudDocumentaiV1DisableProcessorRequest": { + "description": "Request message for the DisableProcessor method.", + "id": "GoogleCloudDocumentaiV1DisableProcessorRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1DisableProcessorResponse": { + "description": "Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future.", + "id": "GoogleCloudDocumentaiV1DisableProcessorResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1Document": { + "description": "Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.", + "id": "GoogleCloudDocumentaiV1Document", "properties": { - "bodyRows": { - "description": "Body rows containing main table content.", + "chunkedDocument": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocument", + "description": "Document chunked based on chunking config." + }, + "content": { + "description": "Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.", + "format": "byte", + "type": "string" + }, + "docid": { + "description": "Optional. An internal identifier for document. Should be loggable (no PII).", + "type": "string" + }, + "documentLayout": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayout", + "description": "Parsed layout of the document." + }, + "entities": { + "description": "A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" + "$ref": "GoogleCloudDocumentaiV1DocumentEntity" }, "type": "array" }, - "caption": { - "description": "Table caption/title.", + "entitiesRevisionId": { + "description": "The entity revision id that `document.entities` field is based on. If this field is set and `entities_revisions` is not empty, the entities in `document.entities` field are the entities in the entity revision with this id and `document.entity_validation_output` field is the `entity_validation_output` field in this entity revision.", "type": "string" }, - "headerRows": { - "description": "Header rows at the top of the table.", + "entitiesRevisions": { + "description": "A list of entity revisions. The entity revisions are appended to the document in the processing order. This field can be used for comparing the entity extraction results at different stages of the processing.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" + "$ref": "GoogleCloudDocumentaiV1DocumentEntitiesRevision" }, "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell": { - "description": "Represents a cell in a table row.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell", - "properties": { - "blocks": { - "description": "A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", + }, + "entityRelations": { + "description": "Placeholder. Relationship among Document.entities.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" + "$ref": "GoogleCloudDocumentaiV1DocumentEntityRelation" }, "type": "array" }, - "colSpan": { - "description": "How many columns this cell spans.", - "format": "int32", - "type": "integer" + "entityValidationOutput": { + "$ref": "GoogleCloudDocumentaiV1DocumentEntityValidationOutput", + "description": "The entity validation output for the document. This is the validation output for `document.entities` field." }, - "rowSpan": { - "description": "How many rows this cell spans.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow": { - "description": "Represents a row in a table.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow", - "properties": { - "cells": { - "description": "A table row is a list of table cells.", + "error": { + "$ref": "GoogleRpcStatus", + "description": "Any error that occurred while processing this document." + }, + "mimeType": { + "description": "An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml).", + "type": "string" + }, + "pages": { + "description": "Visual page layout for the Document.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell" + "$ref": "GoogleCloudDocumentaiV1DocumentPage" }, "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock": { - "description": "Represents a text type block.", - "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", - "properties": { - "blocks": { - "description": "A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.", + }, + "revisions": { + "description": "Placeholder. Revision history of this document.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" + "$ref": "GoogleCloudDocumentaiV1DocumentRevision" }, "type": "array" }, + "shardInfo": { + "$ref": "GoogleCloudDocumentaiV1DocumentShardInfo", + "description": "Information about the sharding if this document is sharded part of a larger document. If the document is not sharded, this message is not specified." + }, "text": { - "description": "Text content stored in the block.", + "description": "Optional. UTF-8 encoded text in reading order from the document.", "type": "string" }, - "type": { - "description": "Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.", + "textChanges": { + "description": "Placeholder. A list of text corrections made to Document.text. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentTextChange" + }, + "type": "array" + }, + "textStyles": { + "deprecated": true, + "description": "Styles for the Document.text.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentStyle" + }, + "type": "array" + }, + "uri": { + "description": "Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. For more information, refer to [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris).", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentEntitiesRevision": { - "description": "Entity revision.", - "id": "GoogleCloudDocumentaiV1DocumentEntitiesRevision", + "GoogleCloudDocumentaiV1DocumentChunkedDocument": { + "description": "Represents the chunks that the document is divided into.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocument", "properties": { - "entities": { - "description": "The entities in this revision.", + "chunks": { + "description": "List of chunks.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntity" + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk" }, "type": "array" - }, - "entityValidationOutput": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntityValidationOutput", - "description": "The entity validation output for this revision." - }, - "revisionId": { - "description": "The revision id.", - "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentEntity": { - "description": "An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.", - "id": "GoogleCloudDocumentaiV1DocumentEntity", + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk": { + "description": "Represents a chunk.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk", "properties": { - "confidence": { - "description": "Optional. Confidence of detected Schema entity. Range `[0, 1]`.", - "format": "float", - "type": "number" - }, - "id": { - "description": "Optional. Canonical id. This will be a unique value in the entity list for this document.", - "type": "string" - }, - "mentionId": { - "description": "Optional. Deprecated. Use `id` field instead.", + "chunkId": { + "description": "ID of the chunk.", "type": "string" }, - "mentionText": { - "description": "Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.", + "content": { + "description": "Text content of the chunk.", "type": "string" }, - "method": { - "description": "Optional. Specifies how the entity's value is obtained.", - "enum": [ - "METHOD_UNSPECIFIED", - "EXTRACT", - "DERIVE" - ], - "enumDescriptions": [ - "When the method is not specified, it should be treated as `EXTRACT`.", - "The entity's value is directly extracted as-is from the document text.", - "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." - ], - "type": "string" + "pageFooters": { + "description": "Page footers associated with the chunk.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter" + }, + "type": "array" }, - "normalizedValue": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntityNormalizedValue", - "description": "Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types." - }, - "pageAnchor": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageAnchor", - "description": "Optional. Represents the provenance of this entity wrt. the location on the page where it was found." - }, - "properties": { - "description": "Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.", + "pageHeaders": { + "description": "Page headers associated with the chunk.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntity" + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader" }, "type": "array" }, - "provenance": { - "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", - "description": "Optional. The history of this annotation." - }, - "redacted": { - "description": "Optional. Whether the entity will be redacted for de-identification purposes.", - "type": "boolean" - }, - "textAnchor": { - "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", - "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the chunk." }, - "type": { - "description": "Required. Entity type from a schema e.g. `Address`.", - "type": "string" + "sourceBlockIds": { + "description": "Unused.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentEntityNormalizedValue": { - "description": "Parsed and normalized entity value.", - "id": "GoogleCloudDocumentaiV1DocumentEntityNormalizedValue", + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter": { + "description": "Represents the page footer associated with the chunk.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter", "properties": { - "addressValue": { - "$ref": "GoogleTypePostalAddress", - "description": "Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto" - }, - "booleanValue": { - "description": "Boolean value. Can be used for entities with binary values, or for checkboxes.", - "type": "boolean" - }, - "dateValue": { - "$ref": "GoogleTypeDate", - "description": "Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto" - }, - "datetimeValue": { - "$ref": "GoogleTypeDateTime", - "description": "DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto" - }, - "floatValue": { - "description": "Float value.", - "format": "float", - "type": "number" - }, - "integerValue": { - "description": "Integer value.", - "format": "int32", - "type": "integer" - }, - "moneyValue": { - "$ref": "GoogleTypeMoney", - "description": "Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto" - }, - "signatureValue": { - "description": "A signature - a graphical representation of a person's name, often used to sign a document.", - "type": "boolean" + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the footer." }, "text": { - "description": "Optional. An optional field to store a normalized string. For some entity types, one of respective `structured_value` fields may also be populated. Also not all the types of `structured_value` will be normalized. For example, some processors may not generate `float` or `integer` normalized text by default. Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO 8601 text format.", + "description": "Footer in text format.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentEntityRelation": { - "description": "Relationship between Entities.", - "id": "GoogleCloudDocumentaiV1DocumentEntityRelation", + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader": { + "description": "Represents the page header associated with the chunk.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader", "properties": { - "objectId": { - "description": "Object entity id.", - "type": "string" - }, - "relation": { - "description": "Relationship description.", - "type": "string" + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the header." }, - "subjectId": { - "description": "Subject entity id.", + "text": { + "description": "Header in text format.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentEntityValidationOutput": { - "description": "The output of the validation given the document and the validation rules.", - "id": "GoogleCloudDocumentaiV1DocumentEntityValidationOutput", + "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan": { + "description": "Represents where the chunk starts and ends in the document.", + "id": "GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan", "properties": { - "passAllRules": { - "description": "The overall result of the validation, true if all applicable rules are valid.", - "type": "boolean" + "pageEnd": { + "description": "Page where chunk ends in the document.", + "format": "int32", + "type": "integer" }, - "validationResults": { - "description": "The result of each validation rule.", + "pageStart": { + "description": "Page where chunk starts in the document.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayout": { + "description": "Represents the parsed layout of a document as a collection of blocks that the document is divided into.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayout", + "properties": { + "blocks": { + "description": "List of blocks in the document.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult" + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" }, "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult": { - "description": "Validation result for a single validation rule.", - "id": "GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult", + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock": { + "description": "Represents a block. A block could be one of the various types (text, table, list) supported.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock", "properties": { - "ruleDescription": { - "description": "The description of the validation rule.", + "blockId": { + "description": "ID of the block.", "type": "string" }, - "ruleName": { - "description": "The name of the validation rule.", - "type": "string" + "boundingBox": { + "$ref": "GoogleCloudDocumentaiV1BoundingPoly", + "description": "Identifies the bounding box for the block." }, - "validationDetails": { - "description": "The detailed information of the running the validation process using the entity from the document based on the validation rule.", - "type": "string" + "listBlock": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", + "description": "Block consisting of list content/structure." }, - "validationResultType": { - "description": "The result of the validation rule.", - "enum": [ - "VALIDATION_RESULT_TYPE_UNSPECIFIED", - "VALIDATION_RESULT_TYPE_VALID", - "VALIDATION_RESULT_TYPE_INVALID", - "VALIDATION_RESULT_TYPE_SKIPPED", - "VALIDATION_RESULT_TYPE_NOT_APPLICABLE" - ], - "enumDescriptions": [ - "The validation result type is unspecified.", - "The validation is valid.", - "The validation is invalid.", - "The validation is skipped.", - "The validation is not applicable." - ], - "type": "string" + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", + "description": "Page span of the block." + }, + "tableBlock": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", + "description": "Block consisting of table content/structure." + }, + "textBlock": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", + "description": "Block consisting of text content." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentOutputConfig": { - "description": "Config that controls the output of documents. All documents will be written as a JSON file.", - "id": "GoogleCloudDocumentaiV1DocumentOutputConfig", + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock": { + "description": "Represents a list type block.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", "properties": { - "gcsOutputConfig": { - "$ref": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig", - "description": "Output config to write the results to Cloud Storage." + "listEntries": { + "description": "List entries that constitute a list block.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry" + }, + "type": "array" + }, + "type": { + "description": "Type of the list_entries (if exist). Available options are `ordered` and `unordered`.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig": { - "description": "The configuration used when outputting documents.", - "id": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig", + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry": { + "description": "Represents an entry in the list.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry", "properties": { - "fieldMask": { - "description": "Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.", - "format": "google-fieldmask", - "type": "string" - }, - "gcsUri": { - "description": "The Cloud Storage uri (a directory) of the output.", - "type": "string" - }, - "shardingConfig": { - "$ref": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig", - "description": "Specifies the sharding config for the output document." + "blocks": { + "description": "A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig": { - "description": "The sharding config for the output document.", - "id": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig", + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan": { + "description": "Represents where the block starts and ends in the document.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", "properties": { - "pagesOverlap": { - "description": "The number of overlapping pages between consecutive shards.", + "pageEnd": { + "description": "Page where block ends in the document.", "format": "int32", "type": "integer" }, - "pagesPerShard": { - "description": "The number of pages per shard.", + "pageStart": { + "description": "Page where block starts in the document.", "format": "int32", "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPage": { - "description": "A page in a Document.", - "id": "GoogleCloudDocumentaiV1DocumentPage", + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock": { + "description": "Represents a table type block.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", "properties": { - "blocks": { - "description": "A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.", + "bodyRows": { + "description": "Body rows containing main table content.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageBlock" + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" }, "type": "array" }, - "detectedBarcodes": { - "description": "A list of detected barcodes.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode" - }, - "type": "array" + "caption": { + "description": "Table caption/title.", + "type": "string" }, - "detectedLanguages": { - "description": "A list of detected languages together with confidence.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" - }, - "type": "array" - }, - "dimension": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDimension", - "description": "Physical dimension of the page." - }, - "formFields": { - "description": "A list of visually detected form fields on the page.", + "headerRows": { + "description": "Header rows at the top of the table.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageFormField" + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" }, "type": "array" - }, - "image": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageImage", - "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." - }, - "imageQualityScores": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageImageQualityScores", - "description": "Image quality scores." - }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for the page." - }, - "lines": { - "description": "A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.", + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell": { + "description": "Represents a cell in a table row.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell", + "properties": { + "blocks": { + "description": "A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLine" + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" }, "type": "array" }, - "pageNumber": { - "description": "1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for individual processing.", + "colSpan": { + "description": "How many columns this cell spans.", "format": "int32", "type": "integer" }, - "paragraphs": { - "description": "A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageParagraph" - }, - "type": "array" - }, - "provenance": { - "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", - "deprecated": true, - "description": "The history of this page." - }, - "symbols": { - "description": "A list of visually detected symbols on the page.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageSymbol" - }, - "type": "array" - }, - "tables": { - "description": "A list of visually detected tables on the page.", + "rowSpan": { + "description": "How many rows this cell spans.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow": { + "description": "Represents a row in a table.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow", + "properties": { + "cells": { + "description": "A table row is a list of table cells.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageTable" + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell" }, "type": "array" - }, - "tokens": { - "description": "A list of visually detected tokens on the page.", + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock": { + "description": "Represents a text type block.", + "id": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", + "properties": { + "blocks": { + "description": "A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageToken" + "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock" }, "type": "array" }, - "transforms": { - "description": "Transformation matrices that were applied to the original document image to produce Page.image.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageMatrix" - }, - "type": "array" + "text": { + "description": "Text content stored in the block.", + "type": "string" }, - "visualElements": { - "description": "A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageVisualElement" - }, - "type": "array" + "type": { + "description": "Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageAnchor": { - "description": "Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.", - "id": "GoogleCloudDocumentaiV1DocumentPageAnchor", + "GoogleCloudDocumentaiV1DocumentEntitiesRevision": { + "description": "Entity revision.", + "id": "GoogleCloudDocumentaiV1DocumentEntitiesRevision", "properties": { - "pageRefs": { - "description": "One or more references to visual page elements", + "entities": { + "description": "The entities in this revision.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageAnchorPageRef" + "$ref": "GoogleCloudDocumentaiV1DocumentEntity" }, "type": "array" + }, + "entityValidationOutput": { + "$ref": "GoogleCloudDocumentaiV1DocumentEntityValidationOutput", + "description": "The entity validation output for this revision." + }, + "revisionId": { + "description": "The revision id.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageAnchorPageRef": { - "description": "Represents a weak reference to a page element within a document.", - "id": "GoogleCloudDocumentaiV1DocumentPageAnchorPageRef", + "GoogleCloudDocumentaiV1DocumentEntity": { + "description": "An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.", + "id": "GoogleCloudDocumentaiV1DocumentEntity", "properties": { - "boundingPoly": { - "$ref": "GoogleCloudDocumentaiV1BoundingPoly", - "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." - }, "confidence": { - "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", + "description": "Optional. Confidence of detected Schema entity. Range `[0, 1]`.", "format": "float", "type": "number" }, - "layoutId": { - "deprecated": true, - "description": "Optional. Deprecated. Use PageRef.bounding_poly instead.", + "id": { + "description": "Optional. Canonical id. This will be a unique value in the entity list for this document.", "type": "string" }, - "layoutType": { - "description": "Optional. The type of the layout element that is being referenced if any.", + "mentionId": { + "description": "Optional. Deprecated. Use `id` field instead.", + "type": "string" + }, + "mentionText": { + "description": "Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.", + "type": "string" + }, + "method": { + "description": "Optional. Specifies how the entity's value is obtained.", "enum": [ - "LAYOUT_TYPE_UNSPECIFIED", - "BLOCK", - "PARAGRAPH", - "LINE", - "TOKEN", - "VISUAL_ELEMENT", - "TABLE", - "FORM_FIELD" + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" ], "enumDescriptions": [ - "Layout Unspecified.", - "References a Page.blocks element.", - "References a Page.paragraphs element.", - "References a Page.lines element.", - "References a Page.tokens element.", - "References a Page.visual_elements element.", - "Refrrences a Page.tables element.", - "References a Page.form_fields element." + "When the method is not specified, it should be treated as `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." ], "type": "string" }, - "page": { - "description": "Required. Index into the Document.pages element, for example using `Document.pages` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentPageBlock": { - "description": "A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.", - "id": "GoogleCloudDocumentaiV1DocumentPageBlock", - "properties": { - "detectedLanguages": { - "description": "A list of detected languages together with confidence.", + "normalizedValue": { + "$ref": "GoogleCloudDocumentaiV1DocumentEntityNormalizedValue", + "description": "Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. address) is not supported for certain parsers. This field is also only populated for certain supported document types." + }, + "pageAnchor": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageAnchor", + "description": "Optional. Represents the provenance of this entity wrt. the location on the page where it was found." + }, + "properties": { + "description": "Optional. Entities can be nested to form a hierarchical data structure representing the content in the document.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + "$ref": "GoogleCloudDocumentaiV1DocumentEntity" }, "type": "array" }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for Block." - }, "provenance": { "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", - "deprecated": true, - "description": "The history of this annotation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode": { - "description": "A detected barcode.", - "id": "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode", - "properties": { - "barcode": { - "$ref": "GoogleCloudDocumentaiV1Barcode", - "description": "Detailed barcode information of the DetectedBarcode." + "description": "Optional. The history of this annotation." }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for DetectedBarcode." + "redacted": { + "description": "Optional. Whether the entity will be redacted for de-identification purposes.", + "type": "boolean" + }, + "textAnchor": { + "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", + "description": "Optional. Provenance of the entity. Text anchor indexing into the Document.text." + }, + "type": { + "description": "Required. Entity type from a schema e.g. `Address`.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage": { - "description": "Detected language for a structural component.", - "id": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage", + "GoogleCloudDocumentaiV1DocumentEntityNormalizedValue": { + "description": "Parsed and normalized entity value.", + "id": "GoogleCloudDocumentaiV1DocumentEntityNormalizedValue", "properties": { - "confidence": { - "description": "Confidence of detected language. Range `[0, 1]`.", - "format": "float", + "addressValue": { + "$ref": "GoogleTypePostalAddress", + "description": "Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto" + }, + "booleanValue": { + "description": "Boolean value. Can be used for entities with binary values, or for checkboxes.", + "type": "boolean" + }, + "dateValue": { + "$ref": "GoogleTypeDate", + "description": "Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto" + }, + "datetimeValue": { + "$ref": "GoogleTypeDateTime", + "description": "DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto" + }, + "floatValue": { + "description": "Float value.", + "format": "float", "type": "number" }, - "languageCode": { - "description": "The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`.", + "integerValue": { + "description": "Integer value.", + "format": "int32", + "type": "integer" + }, + "moneyValue": { + "$ref": "GoogleTypeMoney", + "description": "Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto" + }, + "signatureValue": { + "description": "A signature - a graphical representation of a person's name, often used to sign a document.", + "type": "boolean" + }, + "text": { + "description": "Optional. An optional field to store a normalized string. For some entity types, one of respective `structured_value` fields may also be populated. Also not all the types of `structured_value` will be normalized. For example, some processors may not generate `float` or `integer` normalized text by default. Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO 8601 text format.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageDimension": { - "description": "Dimension for the page.", - "id": "GoogleCloudDocumentaiV1DocumentPageDimension", + "GoogleCloudDocumentaiV1DocumentEntityRelation": { + "description": "Relationship between Entities.", + "id": "GoogleCloudDocumentaiV1DocumentEntityRelation", "properties": { - "height": { - "description": "Page height.", - "format": "float", - "type": "number" + "objectId": { + "description": "Object entity id.", + "type": "string" }, - "unit": { - "description": "Dimension unit.", + "relation": { + "description": "Relationship description.", "type": "string" }, - "width": { - "description": "Page width.", - "format": "float", - "type": "number" + "subjectId": { + "description": "Subject entity id.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageFormField": { - "description": "A form field detected on the page.", - "id": "GoogleCloudDocumentaiV1DocumentPageFormField", + "GoogleCloudDocumentaiV1DocumentEntityValidationOutput": { + "description": "The output of the validation given the document and the validation rules.", + "id": "GoogleCloudDocumentaiV1DocumentEntityValidationOutput", "properties": { - "correctedKeyText": { - "description": "Created for Labeling UI to export key text. If corrections were made to the text identified by the `field_name.text_anchor`, this field will contain the correction.", - "type": "string" - }, - "correctedValueText": { - "description": "Created for Labeling UI to export value text. If corrections were made to the text identified by the `field_value.text_anchor`, this field will contain the correction.", - "type": "string" - }, - "fieldName": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for the FormField name. e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc." - }, - "fieldValue": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for the FormField value." - }, - "nameDetectedLanguages": { - "description": "A list of detected languages for name together with confidence.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" - }, - "type": "array" - }, - "provenance": { - "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", - "description": "The history of this annotation." + "passAllRules": { + "description": "The overall result of the validation, true if all applicable rules are valid.", + "type": "boolean" }, - "valueDetectedLanguages": { - "description": "A list of detected languages for value together with confidence.", + "validationResults": { + "description": "The result of each validation rule.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + "$ref": "GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult" }, "type": "array" - }, - "valueType": { - "description": "If the value is non-textual, this field represents the type. Current valid values are: - blank (this indicates the `field_value` is normal text) - `unfilled_checkbox` - `filled_checkbox`", - "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageImage": { - "description": "Rendered image contents for this page.", - "id": "GoogleCloudDocumentaiV1DocumentPageImage", + "GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult": { + "description": "Validation result for a single validation rule.", + "id": "GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult", "properties": { - "content": { - "description": "Raw byte content of the image.", - "format": "byte", + "rule": { + "description": "Optional. The name of the rule resource that is used for validation. Format: `projects/{project}/locations/{location}/rules/{rule}`", "type": "string" }, - "height": { - "description": "Height of the image in pixels.", - "format": "int32", - "type": "integer" + "ruleDescription": { + "description": "The description of the validation rule.", + "type": "string" }, - "mimeType": { - "description": "Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the image.", + "ruleName": { + "description": "The display name of the validation rule.", "type": "string" }, - "width": { - "description": "Width of the image in pixels.", - "format": "int32", - "type": "integer" + "validationDetails": { + "description": "The detailed information of the running the validation process using the entity from the document based on the validation rule.", + "type": "string" + }, + "validationResultType": { + "description": "The result of the validation rule.", + "enum": [ + "VALIDATION_RESULT_TYPE_UNSPECIFIED", + "VALIDATION_RESULT_TYPE_VALID", + "VALIDATION_RESULT_TYPE_INVALID", + "VALIDATION_RESULT_TYPE_SKIPPED", + "VALIDATION_RESULT_TYPE_NOT_APPLICABLE" + ], + "enumDescriptions": [ + "The validation result type is unspecified.", + "The validation is valid.", + "The validation is invalid.", + "The validation is skipped.", + "The validation is not applicable." + ], + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageImageQualityScores": { - "description": "Image quality scores for the page image.", - "id": "GoogleCloudDocumentaiV1DocumentPageImageQualityScores", + "GoogleCloudDocumentaiV1DocumentOutputConfig": { + "description": "Config that controls the output of documents. All documents will be written as a JSON file.", + "id": "GoogleCloudDocumentaiV1DocumentOutputConfig", "properties": { - "detectedDefects": { - "description": "A list of detected defects.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect" - }, - "type": "array" - }, - "qualityScore": { - "description": "The overall quality score. Range `[0, 1]` where `1` is perfect quality.", - "format": "float", - "type": "number" + "gcsOutputConfig": { + "$ref": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig", + "description": "Output config to write the results to Cloud Storage." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect": { - "description": "Image Quality Defects", - "id": "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect", + "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig": { + "description": "The configuration used when outputting documents.", + "id": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig", "properties": { - "confidence": { - "description": "Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists.", - "format": "float", - "type": "number" + "fieldMask": { + "description": "Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.", + "format": "google-fieldmask", + "type": "string" }, - "type": { - "description": "Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare`", + "gcsUri": { + "description": "The Cloud Storage uri (a directory) of the output.", "type": "string" + }, + "shardingConfig": { + "$ref": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig", + "description": "Specifies the sharding config for the output document." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageLayout": { - "description": "Visual element describing a layout unit on a page.", - "id": "GoogleCloudDocumentaiV1DocumentPageLayout", + "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig": { + "description": "The sharding config for the output document.", + "id": "GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig", "properties": { - "boundingPoly": { - "$ref": "GoogleCloudDocumentaiV1BoundingPoly", - "description": "The bounding polygon for the Layout." - }, - "confidence": { - "description": "Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`.", - "format": "float", - "type": "number" - }, - "orientation": { - "description": "Detected orientation for the Layout.", - "enum": [ - "ORIENTATION_UNSPECIFIED", - "PAGE_UP", - "PAGE_RIGHT", - "PAGE_DOWN", - "PAGE_LEFT" - ], - "enumDescriptions": [ - "Unspecified orientation.", - "Orientation is aligned with page up.", - "Orientation is aligned with page right. Turn the head 90 degrees clockwise from upright to read.", - "Orientation is aligned with page down. Turn the head 180 degrees from upright to read.", - "Orientation is aligned with page left. Turn the head 90 degrees counterclockwise from upright to read." - ], - "type": "string" + "pagesOverlap": { + "description": "The number of overlapping pages between consecutive shards.", + "format": "int32", + "type": "integer" }, - "textAnchor": { - "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", - "description": "Text anchor indexing into the Document.text." + "pagesPerShard": { + "description": "The number of pages per shard.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageLine": { - "description": "A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.", - "id": "GoogleCloudDocumentaiV1DocumentPageLine", + "GoogleCloudDocumentaiV1DocumentPage": { + "description": "A page in a Document.", + "id": "GoogleCloudDocumentaiV1DocumentPage", "properties": { + "blocks": { + "description": "A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageBlock" + }, + "type": "array" + }, + "detectedBarcodes": { + "description": "A list of detected barcodes.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode" + }, + "type": "array" + }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -3520,173 +4334,159 @@ }, "type": "array" }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for Line." + "dimension": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageDimension", + "description": "Physical dimension of the page." }, - "provenance": { - "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", - "deprecated": true, - "description": "The history of this annotation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentPageMatrix": { - "description": "Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.", - "id": "GoogleCloudDocumentaiV1DocumentPageMatrix", - "properties": { - "cols": { - "description": "Number of columns in the matrix.", - "format": "int32", - "type": "integer" + "formFields": { + "description": "A list of visually detected form fields on the page.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageFormField" + }, + "type": "array" }, - "data": { - "description": "The matrix data.", - "format": "byte", - "type": "string" + "image": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageImage", + "description": "Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned." }, - "rows": { - "description": "Number of rows in the matrix.", - "format": "int32", - "type": "integer" + "imageQualityScores": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageImageQualityScores", + "description": "Image quality scores." }, - "type": { - "description": "This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html", + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for the page." + }, + "lines": { + "description": "A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLine" + }, + "type": "array" + }, + "pageNumber": { + "description": "1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for individual processing.", "format": "int32", "type": "integer" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentPageParagraph": { - "description": "A collection of lines that a human would perceive as a paragraph.", - "id": "GoogleCloudDocumentaiV1DocumentPageParagraph", - "properties": { - "detectedLanguages": { - "description": "A list of detected languages together with confidence.", + }, + "paragraphs": { + "description": "A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + "$ref": "GoogleCloudDocumentaiV1DocumentPageParagraph" }, "type": "array" }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for Paragraph." - }, "provenance": { "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", "deprecated": true, - "description": "The history of this annotation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentPageSymbol": { - "description": "A detected symbol.", - "id": "GoogleCloudDocumentaiV1DocumentPageSymbol", - "properties": { - "detectedLanguages": { - "description": "A list of detected languages together with confidence.", + "description": "The history of this page." + }, + "symbols": { + "description": "A list of visually detected symbols on the page.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + "$ref": "GoogleCloudDocumentaiV1DocumentPageSymbol" }, "type": "array" }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for Symbol." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentPageTable": { - "description": "A table representation similar to HTML table structure.", - "id": "GoogleCloudDocumentaiV1DocumentPageTable", - "properties": { - "bodyRows": { - "description": "Body rows of the table.", + "tables": { + "description": "A list of visually detected tables on the page.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageTableTableRow" + "$ref": "GoogleCloudDocumentaiV1DocumentPageTable" }, "type": "array" }, - "detectedLanguages": { - "description": "A list of detected languages together with confidence.", + "tokens": { + "description": "A list of visually detected tokens on the page.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + "$ref": "GoogleCloudDocumentaiV1DocumentPageToken" }, "type": "array" }, - "headerRows": { - "description": "Header rows of the table.", + "transforms": { + "description": "Transformation matrices that were applied to the original document image to produce Page.image.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageTableTableRow" + "$ref": "GoogleCloudDocumentaiV1DocumentPageMatrix" }, "type": "array" }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for Table." - }, - "provenance": { - "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", - "deprecated": true, - "description": "The history of this table." + "visualElements": { + "description": "A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageVisualElement" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageTableTableCell": { - "description": "A cell representation inside the table.", - "id": "GoogleCloudDocumentaiV1DocumentPageTableTableCell", + "GoogleCloudDocumentaiV1DocumentPageAnchor": { + "description": "Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.", + "id": "GoogleCloudDocumentaiV1DocumentPageAnchor", "properties": { - "colSpan": { - "description": "How many columns this cell spans.", - "format": "int32", - "type": "integer" - }, - "detectedLanguages": { - "description": "A list of detected languages together with confidence.", + "pageRefs": { + "description": "One or more references to visual page elements", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + "$ref": "GoogleCloudDocumentaiV1DocumentPageAnchorPageRef" }, "type": "array" - }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for TableCell." - }, - "rowSpan": { - "description": "How many rows this cell spans.", - "format": "int32", - "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageTableTableRow": { - "description": "A row of table cells.", - "id": "GoogleCloudDocumentaiV1DocumentPageTableTableRow", + "GoogleCloudDocumentaiV1DocumentPageAnchorPageRef": { + "description": "Represents a weak reference to a page element within a document.", + "id": "GoogleCloudDocumentaiV1DocumentPageAnchorPageRef", "properties": { - "cells": { - "description": "Cells that make up this row.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageTableTableCell" - }, - "type": "array" + "boundingPoly": { + "$ref": "GoogleCloudDocumentaiV1BoundingPoly", + "description": "Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the bounding polygon must be exactly the same to the layout element it's referring to." + }, + "confidence": { + "description": "Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.", + "format": "float", + "type": "number" + }, + "layoutId": { + "deprecated": true, + "description": "Optional. Deprecated. Use PageRef.bounding_poly instead.", + "type": "string" + }, + "layoutType": { + "description": "Optional. The type of the layout element that is being referenced if any.", + "enum": [ + "LAYOUT_TYPE_UNSPECIFIED", + "BLOCK", + "PARAGRAPH", + "LINE", + "TOKEN", + "VISUAL_ELEMENT", + "TABLE", + "FORM_FIELD" + ], + "enumDescriptions": [ + "Layout Unspecified.", + "References a Page.blocks element.", + "References a Page.paragraphs element.", + "References a Page.lines element.", + "References a Page.tokens element.", + "References a Page.visual_elements element.", + "Refrrences a Page.tables element.", + "References a Page.form_fields element." + ], + "type": "string" + }, + "page": { + "description": "Required. Index into the Document.pages element, for example using `Document.pages` to locate the related page element. This field is skipped when its value is the default `0`. See https://developers.google.com/protocol-buffers/docs/proto3#json.", + "format": "int64", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageToken": { - "description": "A detected token.", - "id": "GoogleCloudDocumentaiV1DocumentPageToken", + "GoogleCloudDocumentaiV1DocumentPageBlock": { + "description": "A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.", + "id": "GoogleCloudDocumentaiV1DocumentPageBlock", "properties": { - "detectedBreak": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak", - "description": "Detected break at the end of a Token." - }, "detectedLanguages": { "description": "A list of detected languages together with confidence.", "items": { @@ -3696,2080 +4496,3373 @@ }, "layout": { "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for Token." + "description": "Layout for Block." }, "provenance": { "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", "deprecated": true, "description": "The history of this annotation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode": { + "description": "A detected barcode.", + "id": "GoogleCloudDocumentaiV1DocumentPageDetectedBarcode", + "properties": { + "barcode": { + "$ref": "GoogleCloudDocumentaiV1Barcode", + "description": "Detailed barcode information of the DetectedBarcode." }, - "styleInfo": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo", - "description": "Text style attributes." + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for DetectedBarcode." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak": { - "description": "Detected break at the end of a Token.", - "id": "GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak", + "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage": { + "description": "Detected language for a structural component.", + "id": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage", "properties": { - "type": { - "description": "Detected break type.", - "enum": [ - "TYPE_UNSPECIFIED", - "SPACE", - "WIDE_SPACE", - "HYPHEN" - ], - "enumDescriptions": [ - "Unspecified break type.", - "A single whitespace.", - "A wider whitespace.", - "A hyphen that indicates that a token has been split across lines." - ], + "confidence": { + "description": "Confidence of detected language. Range `[0, 1]`.", + "format": "float", + "type": "number" + }, + "languageCode": { + "description": "The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` or `sr-Latn`.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo": { - "description": "Font and other text style attributes.", - "id": "GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo", + "GoogleCloudDocumentaiV1DocumentPageDimension": { + "description": "Dimension for the page.", + "id": "GoogleCloudDocumentaiV1DocumentPageDimension", "properties": { - "backgroundColor": { - "$ref": "GoogleTypeColor", - "description": "Color of the background." - }, - "bold": { - "description": "Whether the text is bold (equivalent to font_weight is at least `700`).", - "type": "boolean" - }, - "fontSize": { - "description": "Font size in points (`1` point is `\u00b9\u2044\u2087\u2082` inches).", - "format": "int32", - "type": "integer" + "height": { + "description": "Page height.", + "format": "float", + "type": "number" }, - "fontType": { - "description": "Name or style of the font.", + "unit": { + "description": "Dimension unit.", "type": "string" }, - "fontWeight": { - "description": "TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.", - "format": "int32", - "type": "integer" - }, - "handwritten": { - "description": "Whether the text is handwritten.", - "type": "boolean" - }, - "italic": { - "description": "Whether the text is italic.", - "type": "boolean" - }, - "letterSpacing": { - "description": "Letter spacing in points.", - "format": "double", - "type": "number" - }, - "pixelFontSize": { - "description": "Font size in pixels, equal to _unrounded font_size_ * _resolution_ \u00f7 `72.0`.", - "format": "double", + "width": { + "description": "Page width.", + "format": "float", "type": "number" - }, - "smallcaps": { - "description": "Whether the text is in small caps. This feature is not supported yet.", - "type": "boolean" - }, - "strikeout": { - "description": "Whether the text is strikethrough. This feature is not supported yet.", - "type": "boolean" - }, - "subscript": { - "description": "Whether the text is a subscript. This feature is not supported yet.", - "type": "boolean" - }, - "superscript": { - "description": "Whether the text is a superscript. This feature is not supported yet.", - "type": "boolean" - }, - "textColor": { - "$ref": "GoogleTypeColor", - "description": "Color of the text." - }, - "underlined": { - "description": "Whether the text is underlined.", - "type": "boolean" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentPageVisualElement": { - "description": "Detected non-text visual elements e.g. checkbox, signature etc. on the page.", - "id": "GoogleCloudDocumentaiV1DocumentPageVisualElement", + "GoogleCloudDocumentaiV1DocumentPageFormField": { + "description": "A form field detected on the page.", + "id": "GoogleCloudDocumentaiV1DocumentPageFormField", "properties": { - "detectedLanguages": { - "description": "A list of detected languages together with confidence.", + "correctedKeyText": { + "description": "Created for Labeling UI to export key text. If corrections were made to the text identified by the `field_name.text_anchor`, this field will contain the correction.", + "type": "string" + }, + "correctedValueText": { + "description": "Created for Labeling UI to export value text. If corrections were made to the text identified by the `field_value.text_anchor`, this field will contain the correction.", + "type": "string" + }, + "fieldName": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for the FormField name. e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc." + }, + "fieldValue": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for the FormField value." + }, + "nameDetectedLanguages": { + "description": "A list of detected languages for name together with confidence.", "items": { "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" }, "type": "array" }, - "layout": { - "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", - "description": "Layout for VisualElement." - }, - "type": { - "description": "Type of the VisualElement.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentProvenance": { - "description": "Structure to identify provenance relationships between annotations in different revisions.", - "id": "GoogleCloudDocumentaiV1DocumentProvenance", - "properties": { - "id": { - "deprecated": true, - "description": "The Id of this operation. Needs to be unique within the scope of the revision.", - "format": "int32", - "type": "integer" + "provenance": { + "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", + "description": "The history of this annotation." }, - "parents": { - "description": "References to the original elements that are replaced.", + "valueDetectedLanguages": { + "description": "A list of detected languages for value together with confidence.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentProvenanceParent" + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" }, "type": "array" }, - "revision": { - "deprecated": true, - "description": "The index of the revision that produced this element.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "The type of provenance operation.", - "enum": [ - "OPERATION_TYPE_UNSPECIFIED", - "ADD", - "REMOVE", - "UPDATE", - "REPLACE", - "EVAL_REQUESTED", - "EVAL_APPROVED", - "EVAL_SKIPPED" - ], - "enumDeprecated": [ - false, - false, - false, - false, - false, - true, - true, - true - ], - "enumDescriptions": [ - "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", - "Add an element.", - "Remove an element identified by `parent`.", - "Updates any fields within the given provenance scope of the message. It overwrites the fields rather than replacing them. Use this when you want to update a field value of an entity without also updating all the child properties.", - "Currently unused. Replace an element identified by `parent`.", - "Deprecated. Request human review for the element identified by `parent`.", - "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", - "Deprecated. Element is skipped in the validation process." - ], + "valueType": { + "description": "If the value is non-textual, this field represents the type. Current valid values are: - blank (this indicates the `field_value` is normal text) - `unfilled_checkbox` - `filled_checkbox`", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentProvenanceParent": { - "description": "The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.", - "id": "GoogleCloudDocumentaiV1DocumentProvenanceParent", + "GoogleCloudDocumentaiV1DocumentPageImage": { + "description": "Rendered image contents for this page.", + "id": "GoogleCloudDocumentaiV1DocumentPageImage", "properties": { - "id": { - "deprecated": true, - "description": "The id of the parent provenance.", - "format": "int32", - "type": "integer" + "content": { + "description": "Raw byte content of the image.", + "format": "byte", + "type": "string" }, - "index": { - "description": "The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.", + "height": { + "description": "Height of the image in pixels.", "format": "int32", "type": "integer" }, - "revision": { - "description": "The index of the index into current revision's parent_ids list.", + "mimeType": { + "description": "Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the image.", + "type": "string" + }, + "width": { + "description": "Width of the image in pixels.", "format": "int32", "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentRevision": { - "description": "Contains past or forward revisions of this document.", - "id": "GoogleCloudDocumentaiV1DocumentRevision", + "GoogleCloudDocumentaiV1DocumentPageImageQualityScores": { + "description": "Image quality scores for the page image.", + "id": "GoogleCloudDocumentaiV1DocumentPageImageQualityScores", "properties": { - "agent": { - "description": "If the change was made by a person specify the name or id of that person.", - "type": "string" - }, - "createTime": { - "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", - "format": "google-datetime", - "type": "string" - }, - "humanReview": { - "$ref": "GoogleCloudDocumentaiV1DocumentRevisionHumanReview", - "description": "Human Review information of this revision." - }, - "id": { - "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", - "type": "string" - }, - "parent": { - "deprecated": true, - "description": "The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field.", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" - }, - "parentIds": { - "description": "The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are `provenance.parent.revision` fields that index into this field.", + "detectedDefects": { + "description": "A list of detected defects.", "items": { - "type": "string" + "$ref": "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect" }, "type": "array" }, - "processor": { - "description": "If the annotation was made by processor identify the processor by its resource name.", - "type": "string" + "qualityScore": { + "description": "The overall quality score. Range `[0, 1]` where `1` is perfect quality.", + "format": "float", + "type": "number" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentRevisionHumanReview": { - "description": "Human Review information of the document.", - "id": "GoogleCloudDocumentaiV1DocumentRevisionHumanReview", + "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect": { + "description": "Image Quality Defects", + "id": "GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect", "properties": { - "state": { - "description": "Human review state. e.g. `requested`, `succeeded`, `rejected`.", - "type": "string" + "confidence": { + "description": "Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists.", + "format": "float", + "type": "number" }, - "stateMessage": { - "description": "A message providing more details about the current state of processing. For example, the rejection reason when the state is `rejected`.", + "type": { + "description": "Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare`", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentSchema": { - "description": "The schema defines the output of the processed document by a processor.", - "id": "GoogleCloudDocumentaiV1DocumentSchema", + "GoogleCloudDocumentaiV1DocumentPageLayout": { + "description": "Visual element describing a layout unit on a page.", + "id": "GoogleCloudDocumentaiV1DocumentPageLayout", "properties": { - "description": { - "description": "Description of the schema.", - "type": "string" + "boundingPoly": { + "$ref": "GoogleCloudDocumentaiV1BoundingPoly", + "description": "The bounding polygon for the Layout." }, - "displayName": { - "description": "Display name to show to users.", - "type": "string" + "confidence": { + "description": "Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`.", + "format": "float", + "type": "number" }, - "entityTypes": { - "description": "Entity types of the schema.", - "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchemaEntityType" - }, - "type": "array" + "orientation": { + "description": "Detected orientation for the Layout.", + "enum": [ + "ORIENTATION_UNSPECIFIED", + "PAGE_UP", + "PAGE_RIGHT", + "PAGE_DOWN", + "PAGE_LEFT" + ], + "enumDescriptions": [ + "Unspecified orientation.", + "Orientation is aligned with page up.", + "Orientation is aligned with page right. Turn the head 90 degrees clockwise from upright to read.", + "Orientation is aligned with page down. Turn the head 180 degrees from upright to read.", + "Orientation is aligned with page left. Turn the head 90 degrees counterclockwise from upright to read." + ], + "type": "string" }, - "metadata": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchemaMetadata", - "description": "Metadata of the schema." + "textAnchor": { + "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", + "description": "Text anchor indexing into the Document.text." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentSchemaEntityType": { - "description": "EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.", - "id": "GoogleCloudDocumentaiV1DocumentSchemaEntityType", + "GoogleCloudDocumentaiV1DocumentPageLine": { + "description": "A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.", + "id": "GoogleCloudDocumentaiV1DocumentPageLine", "properties": { - "baseTypes": { - "description": "The entity type that this type is derived from. For now, one and only one should be set.", + "detectedLanguages": { + "description": "A list of detected languages together with confidence.", "items": { - "type": "string" + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" }, "type": "array" }, - "displayName": { - "description": "User defined name for the type.", - "type": "string" + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for Line." }, - "enumValues": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues", - "description": "If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file." + "provenance": { + "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", + "deprecated": true, + "description": "The history of this annotation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentPageMatrix": { + "description": "Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.", + "id": "GoogleCloudDocumentaiV1DocumentPageMatrix", + "properties": { + "cols": { + "description": "Number of columns in the matrix.", + "format": "int32", + "type": "integer" }, - "name": { - "description": "Name of the type. It must be unique within the schema file and cannot be a \"Common Type\". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.", + "data": { + "description": "The matrix data.", + "format": "byte", "type": "string" }, - "properties": { - "description": "Description the nested structure, or composition of an entity.", + "rows": { + "description": "Number of rows in the matrix.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentPageParagraph": { + "description": "A collection of lines that a human would perceive as a paragraph.", + "id": "GoogleCloudDocumentaiV1DocumentPageParagraph", + "properties": { + "detectedLanguages": { + "description": "A list of detected languages together with confidence.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty" + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" }, "type": "array" + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for Paragraph." + }, + "provenance": { + "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", + "deprecated": true, + "description": "The history of this annotation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues": { - "description": "Defines the a list of enum values.", - "id": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues", + "GoogleCloudDocumentaiV1DocumentPageSymbol": { + "description": "A detected symbol.", + "id": "GoogleCloudDocumentaiV1DocumentPageSymbol", "properties": { - "values": { - "description": "The individual values that this enum values type can include.", + "detectedLanguages": { + "description": "A list of detected languages together with confidence.", "items": { - "type": "string" + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" }, "type": "array" + }, + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for Symbol." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty": { - "description": "Defines properties that can be part of the entity type.", - "id": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty", + "GoogleCloudDocumentaiV1DocumentPageTable": { + "description": "A table representation similar to HTML table structure.", + "id": "GoogleCloudDocumentaiV1DocumentPageTable", "properties": { - "displayName": { - "description": "User defined name for the property.", - "type": "string" + "bodyRows": { + "description": "Body rows of the table.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageTableTableRow" + }, + "type": "array" }, - "method": { - "description": "Specifies how the entity's value is obtained.", - "enum": [ - "METHOD_UNSPECIFIED", - "EXTRACT", - "DERIVE" - ], - "enumDescriptions": [ - "Unspecified method. It defaults to `EXTRACT`.", - "The entity's value is directly extracted as-is from the document text.", - "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." - ], - "type": "string" + "detectedLanguages": { + "description": "A list of detected languages together with confidence.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + }, + "type": "array" }, - "name": { - "description": "The name of the property. Follows the same guidelines as the EntityType name.", - "type": "string" + "headerRows": { + "description": "Header rows of the table.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageTableTableRow" + }, + "type": "array" }, - "occurrenceType": { - "description": "Occurrence type limits the number of instances an entity type appears in the document.", - "enum": [ - "OCCURRENCE_TYPE_UNSPECIFIED", - "OPTIONAL_ONCE", - "OPTIONAL_MULTIPLE", - "REQUIRED_ONCE", - "REQUIRED_MULTIPLE" - ], - "enumDescriptions": [ - "Unspecified occurrence type.", - "There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.", - "The entity type will appear zero or multiple times.", - "The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.", - "The entity type will appear once or more times." - ], - "type": "string" + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for Table." }, - "valueType": { - "description": "A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.", - "type": "string" + "provenance": { + "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", + "deprecated": true, + "description": "The history of this table." } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentSchemaMetadata": { - "description": "Metadata for global schema behavior.", - "id": "GoogleCloudDocumentaiV1DocumentSchemaMetadata", + "GoogleCloudDocumentaiV1DocumentPageTableTableCell": { + "description": "A cell representation inside the table.", + "id": "GoogleCloudDocumentaiV1DocumentPageTableTableCell", "properties": { - "documentAllowMultipleLabels": { - "description": "If true, on a given page, there can be multiple `document` annotations covering it.", - "type": "boolean" + "colSpan": { + "description": "How many columns this cell spans.", + "format": "int32", + "type": "integer" }, - "documentSplitter": { - "description": "If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).", - "type": "boolean" + "detectedLanguages": { + "description": "A list of detected languages together with confidence.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + }, + "type": "array" }, - "prefixedNamingOnProperties": { - "description": "If set, all the nested entities must be prefixed with the parents.", - "type": "boolean" + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for TableCell." }, - "skipNamingValidation": { - "description": "If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.", - "type": "boolean" - } + "rowSpan": { + "description": "How many rows this cell spans.", + "format": "int32", + "type": "integer" + } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentShardInfo": { - "description": "For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.", - "id": "GoogleCloudDocumentaiV1DocumentShardInfo", + "GoogleCloudDocumentaiV1DocumentPageTableTableRow": { + "description": "A row of table cells.", + "id": "GoogleCloudDocumentaiV1DocumentPageTableTableRow", "properties": { - "shardCount": { - "description": "Total number of shards.", - "format": "int64", - "type": "string" + "cells": { + "description": "Cells that make up this row.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageTableTableCell" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentPageToken": { + "description": "A detected token.", + "id": "GoogleCloudDocumentaiV1DocumentPageToken", + "properties": { + "detectedBreak": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak", + "description": "Detected break at the end of a Token." }, - "shardIndex": { - "description": "The 0-based index of this shard.", - "format": "int64", - "type": "string" + "detectedLanguages": { + "description": "A list of detected languages together with confidence.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" + }, + "type": "array" }, - "textOffset": { - "description": "The index of the first character in Document.text in the overall document global text.", - "format": "int64", + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for Token." + }, + "provenance": { + "$ref": "GoogleCloudDocumentaiV1DocumentProvenance", + "deprecated": true, + "description": "The history of this annotation." + }, + "styleInfo": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo", + "description": "Text style attributes." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak": { + "description": "Detected break at the end of a Token.", + "id": "GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak", + "properties": { + "type": { + "description": "Detected break type.", + "enum": [ + "TYPE_UNSPECIFIED", + "SPACE", + "WIDE_SPACE", + "HYPHEN" + ], + "enumDescriptions": [ + "Unspecified break type.", + "A single whitespace.", + "A wider whitespace.", + "A hyphen that indicates that a token has been split across lines." + ], "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentStyle": { - "description": "Annotation for common text style attributes. This adheres to CSS conventions as much as possible.", - "id": "GoogleCloudDocumentaiV1DocumentStyle", + "GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo": { + "description": "Font and other text style attributes.", + "id": "GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo", "properties": { "backgroundColor": { "$ref": "GoogleTypeColor", - "description": "Text background color." - }, - "color": { - "$ref": "GoogleTypeColor", - "description": "Text color." + "description": "Color of the background." }, - "fontFamily": { - "description": "Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp", - "type": "string" + "bold": { + "description": "Whether the text is bold (equivalent to font_weight is at least `700`).", + "type": "boolean" }, "fontSize": { - "$ref": "GoogleCloudDocumentaiV1DocumentStyleFontSize", - "description": "Font size." + "description": "Font size in points (`1` point is `\u00b9\u2044\u2087\u2082` inches).", + "format": "int32", + "type": "integer" }, - "fontWeight": { - "description": "[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.", + "fontType": { + "description": "Name or style of the font.", "type": "string" }, - "textAnchor": { - "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", - "description": "Text anchor indexing into the Document.text." + "fontWeight": { + "description": "TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`.", + "format": "int32", + "type": "integer" }, - "textDecoration": { - "description": "[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. ", - "type": "string" + "handwritten": { + "description": "Whether the text is handwritten.", + "type": "boolean" }, - "textStyle": { - "description": "[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentStyleFontSize": { - "description": "Font size with unit.", - "id": "GoogleCloudDocumentaiV1DocumentStyleFontSize", - "properties": { - "size": { - "description": "Font size for the text.", - "format": "float", + "italic": { + "description": "Whether the text is italic.", + "type": "boolean" + }, + "letterSpacing": { + "description": "Letter spacing in points.", + "format": "double", "type": "number" }, - "unit": { - "description": "Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`).", - "type": "string" + "pixelFontSize": { + "description": "Font size in pixels, equal to _unrounded font_size_ * _resolution_ \u00f7 `72.0`.", + "format": "double", + "type": "number" + }, + "smallcaps": { + "description": "Whether the text is in small caps. This feature is not supported yet.", + "type": "boolean" + }, + "strikeout": { + "description": "Whether the text is strikethrough. This feature is not supported yet.", + "type": "boolean" + }, + "subscript": { + "description": "Whether the text is a subscript. This feature is not supported yet.", + "type": "boolean" + }, + "superscript": { + "description": "Whether the text is a superscript. This feature is not supported yet.", + "type": "boolean" + }, + "textColor": { + "$ref": "GoogleTypeColor", + "description": "Color of the text." + }, + "underlined": { + "description": "Whether the text is underlined.", + "type": "boolean" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentTextAnchor": { - "description": "Text reference indexing into the Document.text.", - "id": "GoogleCloudDocumentaiV1DocumentTextAnchor", + "GoogleCloudDocumentaiV1DocumentPageVisualElement": { + "description": "Detected non-text visual elements e.g. checkbox, signature etc. on the page.", + "id": "GoogleCloudDocumentaiV1DocumentPageVisualElement", "properties": { - "content": { - "description": "Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.", - "type": "string" - }, - "textSegments": { - "description": "The text segments from the Document.text.", + "detectedLanguages": { + "description": "A list of detected languages together with confidence.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment" + "$ref": "GoogleCloudDocumentaiV1DocumentPageDetectedLanguage" }, "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment": { - "description": "A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset", - "id": "GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment", - "properties": { - "endIndex": { - "description": "TextSegment half open end UTF-8 char index in the Document.text.", - "format": "int64", - "type": "string" }, - "startIndex": { - "description": "TextSegment start UTF-8 char index in the Document.text.", - "format": "int64", + "layout": { + "$ref": "GoogleCloudDocumentaiV1DocumentPageLayout", + "description": "Layout for VisualElement." + }, + "type": { + "description": "Type of the VisualElement.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1DocumentTextChange": { - "description": "This message is used for text changes aka. OCR corrections.", - "id": "GoogleCloudDocumentaiV1DocumentTextChange", + "GoogleCloudDocumentaiV1DocumentProvenance": { + "description": "Structure to identify provenance relationships between annotations in different revisions.", + "id": "GoogleCloudDocumentaiV1DocumentProvenance", "properties": { - "changedText": { - "description": "The text that replaces the text identified in the `text_anchor`.", - "type": "string" - }, - "provenance": { + "id": { "deprecated": true, - "description": "The history of this annotation.", + "description": "The Id of this operation. Needs to be unique within the scope of the revision.", + "format": "int32", + "type": "integer" + }, + "parents": { + "description": "References to the original elements that are replaced.", "items": { - "$ref": "GoogleCloudDocumentaiV1DocumentProvenance" + "$ref": "GoogleCloudDocumentaiV1DocumentProvenanceParent" }, "type": "array" }, - "textAnchor": { - "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", - "description": "Provenance of the correction. Text anchor indexing into the Document.text. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1EnableProcessorMetadata": { - "description": "The long-running operation metadata for the EnableProcessor method.", - "id": "GoogleCloudDocumentaiV1EnableProcessorMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1EnableProcessorRequest": { - "description": "Request message for the EnableProcessor method.", - "id": "GoogleCloudDocumentaiV1EnableProcessorRequest", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1EnableProcessorResponse": { - "description": "Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future.", - "id": "GoogleCloudDocumentaiV1EnableProcessorResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata": { - "description": "Metadata of the EvaluateProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "revision": { + "deprecated": true, + "description": "The index of the revision that produced this element.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "The type of provenance operation.", + "enum": [ + "OPERATION_TYPE_UNSPECIFIED", + "ADD", + "REMOVE", + "UPDATE", + "REPLACE", + "EVAL_REQUESTED", + "EVAL_APPROVED", + "EVAL_SKIPPED" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + true, + true, + true + ], + "enumDescriptions": [ + "Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.", + "Add an element.", + "Remove an element identified by `parent`.", + "Updates any fields within the given provenance scope of the message. It overwrites the fields rather than replacing them. Use this when you want to update a field value of an entity without also updating all the child properties.", + "Currently unused. Replace an element identified by `parent`.", + "Deprecated. Request human review for the element identified by `parent`.", + "Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.", + "Deprecated. Element is skipped in the validation process." + ], + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest": { - "description": "Evaluates the given ProcessorVersion against the supplied documents.", - "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest", + "GoogleCloudDocumentaiV1DocumentProvenanceParent": { + "description": "The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.", + "id": "GoogleCloudDocumentaiV1DocumentProvenanceParent", "properties": { - "evaluationDocuments": { - "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", - "description": "Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input." + "id": { + "deprecated": true, + "description": "The id of the parent provenance.", + "format": "int32", + "type": "integer" + }, + "index": { + "description": "The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.", + "format": "int32", + "type": "integer" + }, + "revision": { + "description": "The index of the index into current revision's parent_ids list.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse": { - "description": "Response of the EvaluateProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse", + "GoogleCloudDocumentaiV1DocumentRevision": { + "description": "Contains past or forward revisions of this document.", + "id": "GoogleCloudDocumentaiV1DocumentRevision", "properties": { - "evaluation": { - "description": "The resource name of the created evaluation.", + "agent": { + "description": "If the change was made by a person specify the name or id of that person.", "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1Evaluation": { - "description": "An evaluation of a ProcessorVersion's performance.", - "id": "GoogleCloudDocumentaiV1Evaluation", - "properties": { - "allEntitiesMetrics": { - "$ref": "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics", - "description": "Metrics for all the entities in aggregate." }, "createTime": { - "description": "The time that the evaluation was created.", + "description": "The time that the revision was created, internally generated by doc proto storage at the time of create.", "format": "google-datetime", "type": "string" }, - "documentCounters": { - "$ref": "GoogleCloudDocumentaiV1EvaluationCounters", - "description": "Counters for the documents used in the evaluation." - }, - "entityMetrics": { - "additionalProperties": { - "$ref": "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics" - }, - "description": "Metrics across confidence levels, for different entities.", - "type": "object" + "humanReview": { + "$ref": "GoogleCloudDocumentaiV1DocumentRevisionHumanReview", + "description": "Human Review information of this revision." }, - "kmsKeyName": { - "description": "The KMS key name used for encryption.", + "id": { + "description": "Id of the revision, internally generated by doc proto storage. Unique within the context of the document.", "type": "string" }, - "kmsKeyVersionName": { - "description": "The KMS key version with which data is encrypted.", - "type": "string" + "parent": { + "deprecated": true, + "description": "The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the `revisions` field.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" }, - "name": { - "description": "The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`", + "parentIds": { + "description": "The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are `provenance.parent.revision` fields that index into this field.", + "items": { + "type": "string" + }, + "type": "array" + }, + "processor": { + "description": "If the annotation was made by processor identify the processor by its resource name.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics": { - "description": "Evaluations metrics, at a specific confidence level.", - "id": "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics", + "GoogleCloudDocumentaiV1DocumentRevisionHumanReview": { + "description": "Human Review information of the document.", + "id": "GoogleCloudDocumentaiV1DocumentRevisionHumanReview", "properties": { - "confidenceLevel": { - "description": "The confidence level.", - "format": "float", - "type": "number" + "state": { + "description": "Human review state. e.g. `requested`, `succeeded`, `rejected`.", + "type": "string" }, - "metrics": { - "$ref": "GoogleCloudDocumentaiV1EvaluationMetrics", - "description": "The metrics at the specific confidence level." + "stateMessage": { + "description": "A message providing more details about the current state of processing. For example, the rejection reason when the state is `rejected`.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1EvaluationCounters": { - "description": "Evaluation counters for the documents that were used.", - "id": "GoogleCloudDocumentaiV1EvaluationCounters", + "GoogleCloudDocumentaiV1DocumentSchema": { + "description": "The schema defines the output of the processed document by a processor.", + "id": "GoogleCloudDocumentaiV1DocumentSchema", "properties": { - "evaluatedDocumentsCount": { - "description": "How many documents were used in the evaluation.", - "format": "int32", - "type": "integer" + "description": { + "description": "Description of the schema.", + "type": "string" }, - "failedDocumentsCount": { - "description": "How many documents were not included in the evaluation as Document AI failed to process them.", - "format": "int32", - "type": "integer" + "displayName": { + "description": "Display name to show to users.", + "type": "string" }, - "inputDocumentsCount": { - "description": "How many documents were sent for evaluation.", - "format": "int32", - "type": "integer" + "entityTypes": { + "description": "Entity types of the schema.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchemaEntityType" + }, + "type": "array" }, - "invalidDocumentsCount": { - "description": "How many documents were not included in the evaluation as they didn't pass validation.", - "format": "int32", - "type": "integer" + "metadata": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchemaMetadata", + "description": "Metadata of the schema." } }, "type": "object" }, - "GoogleCloudDocumentaiV1EvaluationMetrics": { - "description": "Evaluation metrics, either in aggregate or about a specific entity.", - "id": "GoogleCloudDocumentaiV1EvaluationMetrics", + "GoogleCloudDocumentaiV1DocumentSchemaEntityType": { + "description": "EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.", + "id": "GoogleCloudDocumentaiV1DocumentSchemaEntityType", "properties": { - "f1Score": { - "description": "The calculated f1 score.", - "format": "float", - "type": "number" - }, - "falseNegativesCount": { - "description": "The amount of false negatives.", - "format": "int32", - "type": "integer" - }, - "falsePositivesCount": { - "description": "The amount of false positives.", - "format": "int32", - "type": "integer" - }, - "groundTruthDocumentCount": { - "description": "The amount of documents with a ground truth occurrence.", - "format": "int32", - "type": "integer" - }, - "groundTruthOccurrencesCount": { - "description": "The amount of occurrences in ground truth documents.", - "format": "int32", - "type": "integer" - }, - "precision": { - "description": "The calculated precision.", - "format": "float", - "type": "number" + "baseTypes": { + "description": "The entity type that this type is derived from. For now, one and only one should be set.", + "items": { + "type": "string" + }, + "type": "array" }, - "predictedDocumentCount": { - "description": "The amount of documents with a predicted occurrence.", - "format": "int32", - "type": "integer" + "displayName": { + "description": "User defined name for the type.", + "type": "string" }, - "predictedOccurrencesCount": { - "description": "The amount of occurrences in predicted documents.", - "format": "int32", - "type": "integer" + "enumValues": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues", + "description": "If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file." }, - "recall": { - "description": "The calculated recall.", - "format": "float", - "type": "number" + "name": { + "description": "Name of the type. It must be unique within the schema file and cannot be a \"Common Type\". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.", + "type": "string" }, - "totalDocumentsCount": { - "description": "The amount of documents that had an occurrence of this label.", - "format": "int32", - "type": "integer" - }, - "truePositivesCount": { - "description": "The amount of true positives.", - "format": "int32", - "type": "integer" + "properties": { + "description": "Description the nested structure, or composition of an entity.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics": { - "description": "Metrics across multiple confidence levels.", - "id": "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics", + "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues": { + "description": "Defines the a list of enum values.", + "id": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues", "properties": { - "auprc": { - "description": "The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.", - "format": "float", - "type": "number" - }, - "auprcExact": { - "description": "The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.", - "format": "float", - "type": "number" - }, - "confidenceLevelMetrics": { - "description": "Metrics across confidence levels with fuzzy matching enabled.", - "items": { - "$ref": "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics" - }, - "type": "array" - }, - "confidenceLevelMetricsExact": { - "description": "Metrics across confidence levels with only exact matching.", + "values": { + "description": "The individual values that this enum values type can include.", "items": { - "$ref": "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics" + "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty": { + "description": "Defines properties that can be part of the entity type.", + "id": "GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty", + "properties": { + "displayName": { + "description": "User defined name for the property.", + "type": "string" }, - "estimatedCalibrationError": { - "description": "The Estimated Calibration Error (ECE) of the confidence of the predicted entities.", - "format": "float", - "type": "number" + "method": { + "description": "Specifies how the entity's value is obtained.", + "enum": [ + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" + ], + "enumDescriptions": [ + "Unspecified method. It defaults to `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." + ], + "type": "string" }, - "estimatedCalibrationErrorExact": { - "description": "The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.", - "format": "float", - "type": "number" + "name": { + "description": "The name of the property. Follows the same guidelines as the EntityType name.", + "type": "string" }, - "metricsType": { - "description": "The metrics type for the label.", + "occurrenceType": { + "description": "Occurrence type limits the number of instances an entity type appears in the document.", "enum": [ - "METRICS_TYPE_UNSPECIFIED", - "AGGREGATE" + "OCCURRENCE_TYPE_UNSPECIFIED", + "OPTIONAL_ONCE", + "OPTIONAL_MULTIPLE", + "REQUIRED_ONCE", + "REQUIRED_MULTIPLE" ], "enumDescriptions": [ - "The metrics type is unspecified. By default, metrics without a particular specification are for leaf entity types (i.e., top-level entity types without child types, or child types which are not parent types themselves).", - "Indicates whether metrics for this particular label type represent an aggregate of metrics for other types instead of being based on actual TP/FP/FN values for the label type. Metrics for parent (i.e., non-leaf) entity types are an aggregate of metrics for their children." + "Unspecified occurrence type.", + "There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.", + "The entity type will appear zero or multiple times.", + "The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.", + "The entity type will appear once or more times." ], "type": "string" + }, + "valueType": { + "description": "A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1EvaluationReference": { - "description": "Gives a short summary of an evaluation, and links to the evaluation itself.", - "id": "GoogleCloudDocumentaiV1EvaluationReference", + "GoogleCloudDocumentaiV1DocumentSchemaMetadata": { + "description": "Metadata for global schema behavior.", + "id": "GoogleCloudDocumentaiV1DocumentSchemaMetadata", "properties": { - "aggregateMetrics": { - "$ref": "GoogleCloudDocumentaiV1EvaluationMetrics", - "description": "An aggregate of the statistics for the evaluation with fuzzy matching on." + "documentAllowMultipleLabels": { + "description": "If true, on a given page, there can be multiple `document` annotations covering it.", + "type": "boolean" }, - "aggregateMetricsExact": { - "$ref": "GoogleCloudDocumentaiV1EvaluationMetrics", - "description": "An aggregate of the statistics for the evaluation with fuzzy matching off." + "documentSplitter": { + "description": "If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).", + "type": "boolean" }, - "evaluation": { - "description": "The resource name of the evaluation.", + "prefixedNamingOnProperties": { + "description": "If set, all the nested entities must be prefixed with the parents.", + "type": "boolean" + }, + "skipNamingValidation": { + "description": "If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1DocumentShardInfo": { + "description": "For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.", + "id": "GoogleCloudDocumentaiV1DocumentShardInfo", + "properties": { + "shardCount": { + "description": "Total number of shards.", + "format": "int64", "type": "string" }, - "operation": { - "description": "The resource name of the Long Running Operation for the evaluation.", + "shardIndex": { + "description": "The 0-based index of this shard.", + "format": "int64", + "type": "string" + }, + "textOffset": { + "description": "The index of the first character in Document.text in the overall document global text.", + "format": "int64", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1FetchProcessorTypesResponse": { - "description": "Response message for the FetchProcessorTypes method.", - "id": "GoogleCloudDocumentaiV1FetchProcessorTypesResponse", + "GoogleCloudDocumentaiV1DocumentStyle": { + "description": "Annotation for common text style attributes. This adheres to CSS conventions as much as possible.", + "id": "GoogleCloudDocumentaiV1DocumentStyle", "properties": { - "processorTypes": { - "description": "The list of processor types.", - "items": { - "$ref": "GoogleCloudDocumentaiV1ProcessorType" - }, - "type": "array" + "backgroundColor": { + "$ref": "GoogleTypeColor", + "description": "Text background color." + }, + "color": { + "$ref": "GoogleTypeColor", + "description": "Text color." + }, + "fontFamily": { + "description": "Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp", + "type": "string" + }, + "fontSize": { + "$ref": "GoogleCloudDocumentaiV1DocumentStyleFontSize", + "description": "Font size." + }, + "fontWeight": { + "description": "[Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, `bolder`, and `lighter`.", + "type": "string" + }, + "textAnchor": { + "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", + "description": "Text anchor indexing into the Document.text." + }, + "textDecoration": { + "description": "[Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. ", + "type": "string" + }, + "textStyle": { + "description": "[Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, `italic`, and `oblique`.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1GcsDocument": { - "description": "Specifies a document stored on Cloud Storage.", - "id": "GoogleCloudDocumentaiV1GcsDocument", + "GoogleCloudDocumentaiV1DocumentStyleFontSize": { + "description": "Font size with unit.", + "id": "GoogleCloudDocumentaiV1DocumentStyleFontSize", "properties": { - "gcsUri": { - "description": "The Cloud Storage object uri.", - "type": "string" + "size": { + "description": "Font size for the text.", + "format": "float", + "type": "number" }, - "mimeType": { - "description": "An IANA MIME type (RFC6838) of the content.", + "unit": { + "description": "Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`).", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1GcsDocuments": { - "description": "Specifies a set of documents on Cloud Storage.", - "id": "GoogleCloudDocumentaiV1GcsDocuments", + "GoogleCloudDocumentaiV1DocumentTextAnchor": { + "description": "Text reference indexing into the Document.text.", + "id": "GoogleCloudDocumentaiV1DocumentTextAnchor", "properties": { - "documents": { - "description": "The list of documents.", + "content": { + "description": "Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.", + "type": "string" + }, + "textSegments": { + "description": "The text segments from the Document.text.", "items": { - "$ref": "GoogleCloudDocumentaiV1GcsDocument" + "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment" }, "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1GcsPrefix": { - "description": "Specifies all documents on Cloud Storage with a common prefix.", - "id": "GoogleCloudDocumentaiV1GcsPrefix", + "GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment": { + "description": "A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset", + "id": "GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment", "properties": { - "gcsUriPrefix": { - "description": "The URI prefix.", + "endIndex": { + "description": "TextSegment half open end UTF-8 char index in the Document.text.", + "format": "int64", + "type": "string" + }, + "startIndex": { + "description": "TextSegment start UTF-8 char index in the Document.text.", + "format": "int64", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1HumanReviewStatus": { - "description": "The status of human review on a processed document.", - "id": "GoogleCloudDocumentaiV1HumanReviewStatus", + "GoogleCloudDocumentaiV1DocumentTextChange": { + "description": "This message is used for text changes aka. OCR corrections.", + "id": "GoogleCloudDocumentaiV1DocumentTextChange", "properties": { - "humanReviewOperation": { - "description": "The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by ReviewDocument.", + "changedText": { + "description": "The text that replaces the text identified in the `text_anchor`.", "type": "string" }, - "state": { - "description": "The state of human review on the processing request.", - "enum": [ - "STATE_UNSPECIFIED", - "SKIPPED", - "VALIDATION_PASSED", - "IN_PROGRESS", - "ERROR" - ], - "enumDescriptions": [ - "Human review state is unspecified. Most likely due to an internal error.", - "Human review is skipped for the document. This can happen because human review isn't enabled on the processor or the processing request has been set to skip this document.", - "Human review validation is triggered and passed, so no review is needed.", - "Human review validation is triggered and the document is under review.", - "Some error happened during triggering human review, see the state_message for details." - ], - "type": "string" + "provenance": { + "deprecated": true, + "description": "The history of this annotation.", + "items": { + "$ref": "GoogleCloudDocumentaiV1DocumentProvenance" + }, + "type": "array" }, - "stateMessage": { - "description": "A message providing more details about the human review state.", - "type": "string" + "textAnchor": { + "$ref": "GoogleCloudDocumentaiV1DocumentTextAnchor", + "description": "Provenance of the correction. Text anchor indexing into the Document.text. There can only be a single `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text change is inserted before that index." } }, "type": "object" }, - "GoogleCloudDocumentaiV1ListEvaluationsResponse": { - "description": "The response from `ListEvaluations`.", - "id": "GoogleCloudDocumentaiV1ListEvaluationsResponse", + "GoogleCloudDocumentaiV1Documents": { + "description": "A set of inline documents.", + "id": "GoogleCloudDocumentaiV1Documents", "properties": { - "evaluations": { - "description": "The evaluations requested.", + "documents": { + "description": "The list of documents.", "items": { - "$ref": "GoogleCloudDocumentaiV1Evaluation" + "$ref": "GoogleCloudDocumentaiV1Document" }, "type": "array" - }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", - "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ListProcessorTypesResponse": { - "description": "Response message for the ListProcessorTypes method.", - "id": "GoogleCloudDocumentaiV1ListProcessorTypesResponse", + "GoogleCloudDocumentaiV1EnableProcessorMetadata": { + "description": "The long-running operation metadata for the EnableProcessor method.", + "id": "GoogleCloudDocumentaiV1EnableProcessorMetadata", "properties": { - "nextPageToken": { - "description": "Points to the next page, otherwise empty.", - "type": "string" - }, - "processorTypes": { - "description": "The processor types.", - "items": { - "$ref": "GoogleCloudDocumentaiV1ProcessorType" - }, - "type": "array" + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1ListProcessorVersionsResponse": { - "description": "Response message for the ListProcessorVersions method.", - "id": "GoogleCloudDocumentaiV1ListProcessorVersionsResponse", + "GoogleCloudDocumentaiV1EnableProcessorRequest": { + "description": "Request message for the EnableProcessor method.", + "id": "GoogleCloudDocumentaiV1EnableProcessorRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1EnableProcessorResponse": { + "description": "Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future.", + "id": "GoogleCloudDocumentaiV1EnableProcessorResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata", "properties": { - "nextPageToken": { - "description": "Points to the next processor, otherwise empty.", - "type": "string" - }, - "processorVersions": { - "description": "The list of processors.", - "items": { - "$ref": "GoogleCloudDocumentaiV1ProcessorVersion" - }, - "type": "array" + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1ListProcessorsResponse": { - "description": "Response message for the ListProcessors method.", - "id": "GoogleCloudDocumentaiV1ListProcessorsResponse", + "GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest": { + "description": "Evaluates the given ProcessorVersion against the supplied documents.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest", "properties": { - "nextPageToken": { - "description": "Points to the next processor, otherwise empty.", - "type": "string" - }, - "processors": { - "description": "The list of processors.", - "items": { - "$ref": "GoogleCloudDocumentaiV1Processor" - }, - "type": "array" + "evaluationDocuments": { + "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", + "description": "Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input." } }, "type": "object" }, - "GoogleCloudDocumentaiV1NormalizedVertex": { - "description": "A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.", - "id": "GoogleCloudDocumentaiV1NormalizedVertex", + "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse": { + "description": "Response of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse", "properties": { - "x": { - "description": "X coordinate.", - "format": "float", - "type": "number" - }, - "y": { - "description": "Y coordinate (starts from the top of the image).", - "format": "float", - "type": "number" + "evaluation": { + "description": "The resource name of the created evaluation.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1OcrConfig": { - "description": "Config for Document OCR.", - "id": "GoogleCloudDocumentaiV1OcrConfig", + "GoogleCloudDocumentaiV1Evaluation": { + "description": "An evaluation of a ProcessorVersion's performance.", + "id": "GoogleCloudDocumentaiV1Evaluation", "properties": { - "advancedOcrOptions": { - "description": "A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.", - "items": { - "type": "string" - }, - "type": "array" - }, - "computeStyleInfo": { - "deprecated": true, - "description": "Turn on font identification model and return font style information. Deprecated, use PremiumFeatures.compute_style_info instead.", - "type": "boolean" + "allEntitiesMetrics": { + "$ref": "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics", + "description": "Metrics for all the entities in aggregate." }, - "disableCharacterBoxesDetection": { - "description": "Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.", - "type": "boolean" + "createTime": { + "description": "The time that the evaluation was created.", + "format": "google-datetime", + "type": "string" }, - "enableImageQualityScores": { - "description": "Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.", - "type": "boolean" + "documentCounters": { + "$ref": "GoogleCloudDocumentaiV1EvaluationCounters", + "description": "Counters for the documents used in the evaluation." }, - "enableNativePdfParsing": { - "description": "Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.", - "type": "boolean" + "entityMetrics": { + "additionalProperties": { + "$ref": "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics" + }, + "description": "Metrics across confidence levels, for different entities.", + "type": "object" }, - "enableSymbol": { - "description": "Includes symbol level OCR information if set to true.", - "type": "boolean" + "kmsKeyName": { + "description": "The KMS key name used for encryption.", + "type": "string" }, - "hints": { - "$ref": "GoogleCloudDocumentaiV1OcrConfigHints", - "description": "Hints for the OCR model." + "kmsKeyVersionName": { + "description": "The KMS key version with which data is encrypted.", + "type": "string" }, - "premiumFeatures": { - "$ref": "GoogleCloudDocumentaiV1OcrConfigPremiumFeatures", - "description": "Configurations for premium OCR features." + "name": { + "description": "The resource name of the evaluation. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}`", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1OcrConfigHints": { - "description": "Hints for OCR Engine", - "id": "GoogleCloudDocumentaiV1OcrConfigHints", + "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics": { + "description": "Evaluations metrics, at a specific confidence level.", + "id": "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics", "properties": { - "languageHints": { - "description": "List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).", - "items": { - "type": "string" - }, - "type": "array" + "confidenceLevel": { + "description": "The confidence level.", + "format": "float", + "type": "number" + }, + "metrics": { + "$ref": "GoogleCloudDocumentaiV1EvaluationMetrics", + "description": "The metrics at the specific confidence level." } }, "type": "object" }, - "GoogleCloudDocumentaiV1OcrConfigPremiumFeatures": { - "description": "Configurations for premium OCR features.", - "id": "GoogleCloudDocumentaiV1OcrConfigPremiumFeatures", + "GoogleCloudDocumentaiV1EvaluationCounters": { + "description": "Evaluation counters for the documents that were used.", + "id": "GoogleCloudDocumentaiV1EvaluationCounters", "properties": { - "computeStyleInfo": { - "description": "Turn on font identification model and return font style information.", - "type": "boolean" + "evaluatedDocumentsCount": { + "description": "How many documents were used in the evaluation.", + "format": "int32", + "type": "integer" }, - "enableMathOcr": { - "description": "Turn on the model that can extract LaTeX math formulas.", - "type": "boolean" + "failedDocumentsCount": { + "description": "How many documents were not included in the evaluation as Document AI failed to process them.", + "format": "int32", + "type": "integer" }, - "enableSelectionMarkDetection": { - "description": "Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors.", - "type": "boolean" + "inputDocumentsCount": { + "description": "How many documents were sent for evaluation.", + "format": "int32", + "type": "integer" + }, + "invalidDocumentsCount": { + "description": "How many documents were not included in the evaluation as they didn't pass validation.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessOptions": { - "description": "Options for Process API", - "id": "GoogleCloudDocumentaiV1ProcessOptions", + "GoogleCloudDocumentaiV1EvaluationMetrics": { + "description": "Evaluation metrics, either in aggregate or about a specific entity.", + "id": "GoogleCloudDocumentaiV1EvaluationMetrics", "properties": { - "fromEnd": { - "description": "Only process certain pages from the end, same as above.", + "f1Score": { + "description": "The calculated f1 score.", + "format": "float", + "type": "number" + }, + "falseNegativesCount": { + "description": "The amount of false negatives.", "format": "int32", "type": "integer" }, - "fromStart": { - "description": "Only process certain pages from the start. Process all if the document has fewer pages.", + "falsePositivesCount": { + "description": "The amount of false positives.", "format": "int32", "type": "integer" }, - "individualPageSelector": { - "$ref": "GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector", - "description": "Which pages to process (1-indexed)." - }, - "layoutConfig": { - "$ref": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig", - "description": "Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types." + "groundTruthDocumentCount": { + "description": "The amount of documents with a ground truth occurrence.", + "format": "int32", + "type": "integer" }, - "ocrConfig": { - "$ref": "GoogleCloudDocumentaiV1OcrConfig", - "description": "Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types." + "groundTruthOccurrencesCount": { + "description": "The amount of occurrences in ground truth documents.", + "format": "int32", + "type": "integer" }, - "schemaOverride": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchema", - "description": "Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema override." + "precision": { + "description": "The calculated precision.", + "format": "float", + "type": "number" + }, + "predictedDocumentCount": { + "description": "The amount of documents with a predicted occurrence.", + "format": "int32", + "type": "integer" + }, + "predictedOccurrencesCount": { + "description": "The amount of occurrences in predicted documents.", + "format": "int32", + "type": "integer" + }, + "recall": { + "description": "The calculated recall.", + "format": "float", + "type": "number" + }, + "totalDocumentsCount": { + "description": "The amount of documents that had an occurrence of this label.", + "format": "int32", + "type": "integer" + }, + "truePositivesCount": { + "description": "The amount of true positives.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector": { - "description": "A list of individual page numbers.", - "id": "GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector", + "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics": { + "description": "Metrics across multiple confidence levels.", + "id": "GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics", "properties": { - "pages": { - "description": "Optional. Indices of the pages (starting from 1).", + "auprc": { + "description": "The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence thresholds.", + "format": "float", + "type": "number" + }, + "auprcExact": { + "description": "The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only.", + "format": "float", + "type": "number" + }, + "confidenceLevelMetrics": { + "description": "Metrics across confidence levels with fuzzy matching enabled.", "items": { - "format": "int32", - "type": "integer" + "$ref": "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics" + }, + "type": "array" + }, + "confidenceLevelMetricsExact": { + "description": "Metrics across confidence levels with only exact matching.", + "items": { + "$ref": "GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics" }, "type": "array" + }, + "estimatedCalibrationError": { + "description": "The Estimated Calibration Error (ECE) of the confidence of the predicted entities.", + "format": "float", + "type": "number" + }, + "estimatedCalibrationErrorExact": { + "description": "The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only.", + "format": "float", + "type": "number" + }, + "metricsType": { + "description": "The metrics type for the label.", + "enum": [ + "METRICS_TYPE_UNSPECIFIED", + "AGGREGATE" + ], + "enumDescriptions": [ + "The metrics type is unspecified. By default, metrics without a particular specification are for leaf entity types (i.e., top-level entity types without child types, or child types which are not parent types themselves).", + "Indicates whether metrics for this particular label type represent an aggregate of metrics for other types instead of being based on actual TP/FP/FN values for the label type. Metrics for parent (i.e., non-leaf) entity types are an aggregate of metrics for their children." + ], + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig": { - "description": "Serving config for layout parser processor.", - "id": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig", + "GoogleCloudDocumentaiV1EvaluationReference": { + "description": "Gives a short summary of an evaluation, and links to the evaluation itself.", + "id": "GoogleCloudDocumentaiV1EvaluationReference", "properties": { - "chunkingConfig": { - "$ref": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig", - "description": "Optional. Config for chunking in layout parser processor." + "aggregateMetrics": { + "$ref": "GoogleCloudDocumentaiV1EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching on." }, - "returnBoundingBoxes": { - "description": "Optional. Whether to include bounding boxes in layout parser processor response.", - "type": "boolean" + "aggregateMetricsExact": { + "$ref": "GoogleCloudDocumentaiV1EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching off." }, - "returnImages": { - "description": "Optional. Whether to include images in layout parser processor response.", - "type": "boolean" + "evaluation": { + "description": "The resource name of the evaluation.", + "type": "string" + }, + "operation": { + "description": "The resource name of the Long Running Operation for the evaluation.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig": { - "description": "Serving config for chunking.", - "id": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig", + "GoogleCloudDocumentaiV1FetchProcessorTypesResponse": { + "description": "Response message for the FetchProcessorTypes method.", + "id": "GoogleCloudDocumentaiV1FetchProcessorTypesResponse", "properties": { - "chunkSize": { - "description": "Optional. The chunk sizes to use when splitting documents, in order of level.", - "format": "int32", - "type": "integer" - }, - "includeAncestorHeadings": { - "description": "Optional. Whether or not to include ancestor headings when splitting.", - "type": "boolean" + "processorTypes": { + "description": "The list of processor types.", + "items": { + "$ref": "GoogleCloudDocumentaiV1ProcessorType" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessRequest": { - "description": "Request message for the ProcessDocument method.", - "id": "GoogleCloudDocumentaiV1ProcessRequest", + "GoogleCloudDocumentaiV1GcsDocument": { + "description": "Specifies a document stored on Cloud Storage.", + "id": "GoogleCloudDocumentaiV1GcsDocument", "properties": { - "fieldMask": { - "description": "Specifies which fields to include in the ProcessResponse.document output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.", - "format": "google-fieldmask", + "gcsUri": { + "description": "The Cloud Storage object uri.", "type": "string" }, - "gcsDocument": { - "$ref": "GoogleCloudDocumentaiV1GcsDocument", - "description": "A raw document on Google Cloud Storage." - }, - "imagelessMode": { - "description": "Optional. Option to remove images from the document.", - "type": "boolean" - }, - "inlineDocument": { - "$ref": "GoogleCloudDocumentaiV1Document", - "description": "An inline document proto." - }, - "labels": { - "additionalProperties": { - "type": "string" + "mimeType": { + "description": "An IANA MIME type (RFC6838) of the content.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1GcsDocuments": { + "description": "Specifies a set of documents on Cloud Storage.", + "id": "GoogleCloudDocumentaiV1GcsDocuments", + "properties": { + "documents": { + "description": "The list of documents.", + "items": { + "$ref": "GoogleCloudDocumentaiV1GcsDocument" }, - "description": "Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.", - "type": "object" - }, - "processOptions": { - "$ref": "GoogleCloudDocumentaiV1ProcessOptions", - "description": "Inference-time options for the process API" - }, - "rawDocument": { - "$ref": "GoogleCloudDocumentaiV1RawDocument", - "description": "A raw document content (bytes)." - }, - "skipHumanReview": { - "description": "Whether human review should be skipped for this request. Default to `false`.", - "type": "boolean" + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessResponse": { - "description": "Response message for the ProcessDocument method.", - "id": "GoogleCloudDocumentaiV1ProcessResponse", + "GoogleCloudDocumentaiV1GcsPrefix": { + "description": "Specifies all documents on Cloud Storage with a common prefix.", + "id": "GoogleCloudDocumentaiV1GcsPrefix", "properties": { - "document": { - "$ref": "GoogleCloudDocumentaiV1Document", - "description": "The document payload, will populate fields based on the processor's behavior." - }, - "humanReviewStatus": { - "$ref": "GoogleCloudDocumentaiV1HumanReviewStatus", - "description": "The status of human review on the processed document." + "gcsUriPrefix": { + "description": "The URI prefix.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1Processor": { - "description": "The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.", - "id": "GoogleCloudDocumentaiV1Processor", + "GoogleCloudDocumentaiV1GenerateSchemaVersionRequest": { + "description": "Request message for GenerateSchemaVersion.", + "id": "GoogleCloudDocumentaiV1GenerateSchemaVersionRequest", "properties": { - "createTime": { - "description": "Output only. The time the processor was created.", - "format": "google-datetime", - "readOnly": true, + "baseSchemaVersion": { + "description": "The base schema version name to use for the schema generation. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", "type": "string" }, - "defaultProcessorVersion": { - "description": "The default processor version.", - "type": "string" + "gcsDocuments": { + "$ref": "GoogleCloudDocumentaiV1GcsDocuments", + "description": "The set of documents placed on Cloud Storage." }, - "displayName": { - "description": "The display name of the processor.", - "type": "string" + "gcsPrefix": { + "$ref": "GoogleCloudDocumentaiV1GcsPrefix", + "description": "The common prefix of documents placed on Cloud Storage." }, - "kmsKeyName": { - "description": "The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios.", - "type": "string" + "generateSchemaVersionParams": { + "$ref": "GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams", + "description": "Optional. User specified parameters for the schema generation." }, - "name": { - "description": "Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}`", - "readOnly": true, - "type": "string" + "inlineDocuments": { + "$ref": "GoogleCloudDocumentaiV1Documents", + "description": "The set of documents specified inline." }, - "processEndpoint": { - "description": "Output only. Immutable. The http endpoint that can be called to invoke processing.", - "readOnly": true, - "type": "string" + "rawDocuments": { + "$ref": "GoogleCloudDocumentaiV1RawDocuments", + "description": "The set of raw documents." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams": { + "description": "The parameters for the schema generation.", + "id": "GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams", + "properties": { + "history": { + "$ref": "GoogleCloudDocumentaiV1SchemaGenerationHistory", + "description": "Optional. Previous prompt-answers in a chronological order." }, - "processorVersionAliases": { - "description": "Output only. The processor version aliases.", - "items": { - "$ref": "GoogleCloudDocumentaiV1ProcessorVersionAlias" - }, - "readOnly": true, - "type": "array" - }, - "satisfiesPzi": { - "description": "Output only. Reserved for future use.", - "readOnly": true, - "type": "boolean" - }, - "satisfiesPzs": { - "description": "Output only. Reserved for future use.", - "readOnly": true, - "type": "boolean" + "prompt": { + "description": "Optional. The prompt used for the schema generation.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1GenerateSchemaVersionResponse": { + "description": "Response message for GenerateSchemaVersion.", + "id": "GoogleCloudDocumentaiV1GenerateSchemaVersionResponse", + "properties": { + "schemaVersion": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion", + "description": "The schema version generated by the model." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1HumanReviewStatus": { + "description": "The status of human review on a processed document.", + "id": "GoogleCloudDocumentaiV1HumanReviewStatus", + "properties": { + "humanReviewOperation": { + "description": "The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by ReviewDocument.", + "type": "string" }, "state": { - "description": "Output only. The state of the processor.", + "description": "The state of human review on the processing request.", "enum": [ "STATE_UNSPECIFIED", - "ENABLED", - "DISABLED", - "ENABLING", - "DISABLING", - "CREATING", - "FAILED", - "DELETING" + "SKIPPED", + "VALIDATION_PASSED", + "IN_PROGRESS", + "ERROR" ], "enumDescriptions": [ - "The processor is in an unspecified state.", - "The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.", - "The processor is disabled.", - "The processor is being enabled, will become `ENABLED` if successful.", - "The processor is being disabled, will become `DISABLED` if successful.", - "The processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet.", - "The processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled.", - "The processor is being deleted, will be removed if successful." + "Human review state is unspecified. Most likely due to an internal error.", + "Human review is skipped for the document. This can happen because human review isn't enabled on the processor or the processing request has been set to skip this document.", + "Human review validation is triggered and passed, so no review is needed.", + "Human review validation is triggered and the document is under review.", + "Some error happened during triggering human review, see the state_message for details." ], - "readOnly": true, "type": "string" }, - "type": { - "description": "The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.", + "stateMessage": { + "description": "A message providing more details about the human review state.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorType": { - "description": "A processor type is responsible for performing a certain document understanding task on a certain type of document.", - "id": "GoogleCloudDocumentaiV1ProcessorType", + "GoogleCloudDocumentaiV1ListEvaluationsResponse": { + "description": "The response from `ListEvaluations`.", + "id": "GoogleCloudDocumentaiV1ListEvaluationsResponse", "properties": { - "allowCreation": { - "description": "Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.", - "type": "boolean" - }, - "availableLocations": { - "description": "The locations in which this processor is available.", + "evaluations": { + "description": "The evaluations requested.", "items": { - "$ref": "GoogleCloudDocumentaiV1ProcessorTypeLocationInfo" + "$ref": "GoogleCloudDocumentaiV1Evaluation" }, "type": "array" }, - "category": { - "description": "The processor category, used by UI to group processor types.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", "type": "string" - }, - "launchStage": { - "description": "Launch stage of the processor type", - "enum": [ - "LAUNCH_STAGE_UNSPECIFIED", - "UNIMPLEMENTED", - "PRELAUNCH", - "EARLY_ACCESS", - "ALPHA", - "BETA", - "GA", - "DEPRECATED" - ], - "enumDescriptions": [ - "Do not use this default value.", - "The feature is not yet implemented. Users can not use it.", - "Prelaunch features are hidden from users and are only visible internally.", - "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", - "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", - "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", - "GA features are open to all developers and are considered stable and fully qualified for production use.", - "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." - ], + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ListProcessorTypesResponse": { + "description": "Response message for the ListProcessorTypes method.", + "id": "GoogleCloudDocumentaiV1ListProcessorTypesResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next page, otherwise empty.", "type": "string" }, - "name": { - "description": "The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}`", + "processorTypes": { + "description": "The processor types.", + "items": { + "$ref": "GoogleCloudDocumentaiV1ProcessorType" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ListProcessorVersionsResponse": { + "description": "Response message for the ListProcessorVersions method.", + "id": "GoogleCloudDocumentaiV1ListProcessorVersionsResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next processor, otherwise empty.", "type": "string" }, - "sampleDocumentUris": { - "description": "A set of Cloud Storage URIs of sample documents for this processor.", + "processorVersions": { + "description": "The list of processors.", "items": { - "type": "string" + "$ref": "GoogleCloudDocumentaiV1ProcessorVersion" }, "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ListProcessorsResponse": { + "description": "Response message for the ListProcessors method.", + "id": "GoogleCloudDocumentaiV1ListProcessorsResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next processor, otherwise empty.", + "type": "string" }, - "type": { - "description": "The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.", + "processors": { + "description": "The list of processors.", + "items": { + "$ref": "GoogleCloudDocumentaiV1Processor" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ListSchemaVersionsResponse": { + "description": "Response message for ListSchemaVersions.", + "id": "GoogleCloudDocumentaiV1ListSchemaVersionsResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next SchemaVersion, otherwise empty.", "type": "string" + }, + "schemaVersions": { + "description": "The list of SchemaVersions.", + "items": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorTypeLocationInfo": { - "description": "The location information about where the processor is available.", - "id": "GoogleCloudDocumentaiV1ProcessorTypeLocationInfo", + "GoogleCloudDocumentaiV1ListSchemasResponse": { + "description": "Response message for ListSchemas.", + "id": "GoogleCloudDocumentaiV1ListSchemasResponse", "properties": { - "locationId": { - "description": "The location ID. For supported locations, refer to [regional and multi-regional support](/document-ai/docs/regions).", + "nextPageToken": { + "description": "Points to the next Schema, otherwise empty.", "type": "string" + }, + "schemas": { + "description": "The list of Schemas.", + "items": { + "$ref": "GoogleCloudDocumentaiV1NextSchema" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorVersion": { - "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.", - "id": "GoogleCloudDocumentaiV1ProcessorVersion", + "GoogleCloudDocumentaiV1NextSchema": { + "description": "NextSchema is a collection of SchemaVersions.", + "id": "GoogleCloudDocumentaiV1NextSchema", "properties": { "createTime": { - "description": "Output only. The time the processor version was created.", + "description": "Output only. The time when the Schema was created.", "format": "google-datetime", "readOnly": true, "type": "string" }, - "deprecationInfo": { - "$ref": "GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo", - "description": "Output only. If set, information about the eventual deprecation of this version.", - "readOnly": true - }, "displayName": { - "description": "The display name of the processor version.", + "description": "Optional. The user-defined name of the Schema.", "type": "string" }, - "documentSchema": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchema", - "description": "Output only. The schema of the processor version. Describes the output.", - "readOnly": true - }, - "genAiModelInfo": { - "$ref": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo", - "description": "Output only. Information about Generative AI model-based processor versions.", - "readOnly": true - }, - "googleManaged": { - "description": "Output only. Denotes that this `ProcessorVersion` is managed by Google.", - "readOnly": true, - "type": "boolean" + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The GCP labels for the Schema.", + "type": "object" }, - "kmsKeyName": { - "description": "Output only. The KMS key name used for encryption.", - "readOnly": true, + "name": { + "description": "Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`", "type": "string" }, - "kmsKeyVersionName": { - "description": "Output only. The KMS key version with which data is encrypted.", + "updateTime": { + "description": "Output only. The time when the Schema was last updated.", + "format": "google-datetime", "readOnly": true, "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1NormalizedVertex": { + "description": "A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.", + "id": "GoogleCloudDocumentaiV1NormalizedVertex", + "properties": { + "x": { + "description": "X coordinate.", + "format": "float", + "type": "number" }, - "latestEvaluation": { - "$ref": "GoogleCloudDocumentaiV1EvaluationReference", - "description": "Output only. The most recently invoked evaluation for the processor version.", - "readOnly": true + "y": { + "description": "Y coordinate (starts from the top of the image).", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1OcrConfig": { + "description": "Config for Document OCR.", + "id": "GoogleCloudDocumentaiV1OcrConfig", + "properties": { + "advancedOcrOptions": { + "description": "A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.", + "items": { + "type": "string" + }, + "type": "array" }, - "modelType": { - "description": "Output only. The model type of this processor version.", - "enum": [ - "MODEL_TYPE_UNSPECIFIED", - "MODEL_TYPE_GENERATIVE", - "MODEL_TYPE_CUSTOM" - ], - "enumDescriptions": [ - "The processor version has unspecified model type.", - "The processor version has generative model type.", - "The processor version has custom model type." - ], - "readOnly": true, - "type": "string" + "computeStyleInfo": { + "deprecated": true, + "description": "Turn on font identification model and return font style information. Deprecated, use PremiumFeatures.compute_style_info instead.", + "type": "boolean" }, - "name": { - "description": "Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`", - "type": "string" + "disableCharacterBoxesDetection": { + "description": "Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.", + "type": "boolean" }, - "satisfiesPzi": { - "description": "Output only. Reserved for future use.", - "readOnly": true, + "enableImageQualityScores": { + "description": "Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.", "type": "boolean" }, - "satisfiesPzs": { - "description": "Output only. Reserved for future use.", - "readOnly": true, + "enableNativePdfParsing": { + "description": "Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.", "type": "boolean" }, - "state": { - "description": "Output only. The state of the processor version.", - "enum": [ - "STATE_UNSPECIFIED", - "DEPLOYED", - "DEPLOYING", - "UNDEPLOYED", - "UNDEPLOYING", - "CREATING", - "DELETING", - "FAILED", - "IMPORTING" - ], - "enumDescriptions": [ - "The processor version is in an unspecified state.", - "The processor version is deployed and can be used for processing.", - "The processor version is being deployed.", - "The processor version is not deployed and cannot be used for processing.", - "The processor version is being undeployed.", - "The processor version is being created.", - "The processor version is being deleted.", - "The processor version failed and is in an indeterminate state.", - "The processor version is being imported." - ], - "readOnly": true, - "type": "string" + "enableSymbol": { + "description": "Includes symbol level OCR information if set to true.", + "type": "boolean" + }, + "hints": { + "$ref": "GoogleCloudDocumentaiV1OcrConfigHints", + "description": "Hints for the OCR model." + }, + "premiumFeatures": { + "$ref": "GoogleCloudDocumentaiV1OcrConfigPremiumFeatures", + "description": "Configurations for premium OCR features." } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorVersionAlias": { - "description": "Contains the alias and the aliased resource name of processor version.", - "id": "GoogleCloudDocumentaiV1ProcessorVersionAlias", + "GoogleCloudDocumentaiV1OcrConfigHints": { + "description": "Hints for OCR Engine", + "id": "GoogleCloudDocumentaiV1OcrConfigHints", "properties": { - "alias": { - "description": "The alias in the form of `processor_version` resource name.", - "type": "string" - }, - "processorVersion": { - "description": "The resource name of aliased processor version.", - "type": "string" + "languageHints": { + "description": "List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo": { - "description": "Information about the upcoming deprecation of this processor version.", - "id": "GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo", + "GoogleCloudDocumentaiV1OcrConfigPremiumFeatures": { + "description": "Configurations for premium OCR features.", + "id": "GoogleCloudDocumentaiV1OcrConfigPremiumFeatures", "properties": { - "deprecationTime": { - "description": "The time at which this processor version will be deprecated.", - "format": "google-datetime", - "type": "string" + "computeStyleInfo": { + "description": "Turn on font identification model and return font style information.", + "type": "boolean" }, - "replacementProcessorVersion": { - "description": "If set, the processor version that will be used as a replacement.", - "type": "string" + "enableMathOcr": { + "description": "Turn on the model that can extract LaTeX math formulas.", + "type": "boolean" + }, + "enableSelectionMarkDetection": { + "description": "Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors.", + "type": "boolean" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo": { - "description": "Information about Generative AI model-based processor versions.", - "id": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo", + "GoogleCloudDocumentaiV1ProcessOptions": { + "description": "Options for Process API", + "id": "GoogleCloudDocumentaiV1ProcessOptions", "properties": { - "customGenAiModelInfo": { - "$ref": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", - "description": "Information for a custom Generative AI model created by the user." + "fromEnd": { + "description": "Only process certain pages from the end, same as above.", + "format": "int32", + "type": "integer" }, - "foundationGenAiModelInfo": { - "$ref": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", - "description": "Information for a pretrained Google-managed foundation model." + "fromStart": { + "description": "Only process certain pages from the start. Process all if the document has fewer pages.", + "format": "int32", + "type": "integer" + }, + "individualPageSelector": { + "$ref": "GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector", + "description": "Which pages to process (1-indexed)." + }, + "layoutConfig": { + "$ref": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig", + "description": "Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types." + }, + "ocrConfig": { + "$ref": "GoogleCloudDocumentaiV1OcrConfig", + "description": "Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types." + }, + "schemaOverride": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchema", + "description": "Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn't support schema override." } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo": { - "description": "Information for a custom Generative AI model created by the user. These are created with `Create New Version` in either the `Call foundation model` or `Fine tuning` tabs.", - "id": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", + "GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector": { + "description": "A list of individual page numbers.", + "id": "GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector", "properties": { - "baseProcessorVersionId": { - "description": "The base processor version ID for the custom model.", - "type": "string" - }, - "customModelType": { - "description": "The type of custom model created by the user.", - "enum": [ - "CUSTOM_MODEL_TYPE_UNSPECIFIED", - "VERSIONED_FOUNDATION", - "FINE_TUNED" - ], - "enumDescriptions": [ - "The model type is unspecified.", - "The model is a versioned foundation model.", - "The model is a finetuned foundation model." - ], - "type": "string" + "pages": { + "description": "Optional. Indices of the pages (starting from 1).", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo": { - "description": "Information for a pretrained Google-managed foundation model.", - "id": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", + "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig": { + "description": "Serving config for layout parser processor.", + "id": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig", "properties": { - "finetuningAllowed": { - "description": "Whether finetuning is allowed for this base processor version.", + "chunkingConfig": { + "$ref": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig", + "description": "Optional. Config for chunking in layout parser processor." + }, + "enableImageAnnotation": { + "description": "Optional. Whether to include image annotations in layout parser response.", "type": "boolean" }, - "minTrainLabeledDocuments": { - "description": "The minimum number of labeled documents in the training dataset required for finetuning.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1RawDocument": { - "description": "Payload message of raw document content (bytes).", - "id": "GoogleCloudDocumentaiV1RawDocument", - "properties": { - "content": { - "description": "Inline document content.", - "format": "byte", - "type": "string" + "enableTableAnnotation": { + "description": "Optional. Whether to include table annotations in layout parser response.", + "type": "boolean" }, - "displayName": { - "description": "The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\\\"`, `,` `~`, `=` and `:` are reserved. If not specified, a default ID is generated.", - "type": "string" + "returnBoundingBoxes": { + "description": "Optional. Whether to include bounding boxes in layout parser processor response.", + "type": "boolean" }, - "mimeType": { - "description": "An IANA MIME type (RFC6838) indicating the nature and format of the content.", - "type": "string" + "returnImages": { + "description": "Optional. Whether to include images in layout parser processor response.", + "type": "boolean" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata": { - "description": "The long-running operation metadata for the ReviewDocument method.", - "id": "GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata", + "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig": { + "description": "Serving config for chunking.", + "id": "GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "chunkSize": { + "description": "Optional. The chunk sizes to use when splitting documents, in order of level.", + "format": "int32", + "type": "integer" }, - "questionId": { - "description": "The Crowd Compute question ID.", - "type": "string" + "includeAncestorHeadings": { + "description": "Optional. Whether or not to include ancestor headings when splitting.", + "type": "boolean" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ReviewDocumentRequest": { - "description": "Request message for the ReviewDocument method.", - "id": "GoogleCloudDocumentaiV1ReviewDocumentRequest", + "GoogleCloudDocumentaiV1ProcessRequest": { + "description": "Request message for the ProcessDocument method.", + "id": "GoogleCloudDocumentaiV1ProcessRequest", "properties": { - "documentSchema": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchema", - "description": "The document schema of the human review task." + "fieldMask": { + "description": "Specifies which fields to include in the ProcessResponse.document output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.", + "format": "google-fieldmask", + "type": "string" }, - "enableSchemaValidation": { - "description": "Whether the validation should be performed on the ad-hoc review request.", + "gcsDocument": { + "$ref": "GoogleCloudDocumentaiV1GcsDocument", + "description": "A raw document on Google Cloud Storage." + }, + "imagelessMode": { + "description": "Optional. Option to remove images from the document.", "type": "boolean" }, "inlineDocument": { "$ref": "GoogleCloudDocumentaiV1Document", "description": "An inline document proto." }, - "priority": { - "description": "The priority of the human review task.", - "enum": [ - "DEFAULT", - "URGENT" + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.", + "type": "object" + }, + "processOptions": { + "$ref": "GoogleCloudDocumentaiV1ProcessOptions", + "description": "Inference-time options for the process API" + }, + "rawDocument": { + "$ref": "GoogleCloudDocumentaiV1RawDocument", + "description": "A raw document content (bytes)." + }, + "skipHumanReview": { + "description": "Whether human review should be skipped for this request. Default to `false`.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessResponse": { + "description": "Response message for the ProcessDocument method.", + "id": "GoogleCloudDocumentaiV1ProcessResponse", + "properties": { + "document": { + "$ref": "GoogleCloudDocumentaiV1Document", + "description": "The document payload, will populate fields based on the processor's behavior." + }, + "humanReviewStatus": { + "$ref": "GoogleCloudDocumentaiV1HumanReviewStatus", + "description": "The status of human review on the processed document." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1Processor": { + "description": "The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.", + "id": "GoogleCloudDocumentaiV1Processor", + "properties": { + "activeSchemaVersion": { + "description": "Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}", + "type": "string" + }, + "createTime": { + "description": "Output only. The time the processor was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "defaultProcessorVersion": { + "description": "The default processor version.", + "type": "string" + }, + "displayName": { + "description": "The display name of the processor.", + "type": "string" + }, + "kmsKeyName": { + "description": "The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios.", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}`", + "readOnly": true, + "type": "string" + }, + "processEndpoint": { + "description": "Output only. Immutable. The http endpoint that can be called to invoke processing.", + "readOnly": true, + "type": "string" + }, + "processorVersionAliases": { + "description": "Output only. The processor version aliases.", + "items": { + "$ref": "GoogleCloudDocumentaiV1ProcessorVersionAlias" + }, + "readOnly": true, + "type": "array" + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "state": { + "description": "Output only. The state of the processor.", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED", + "ENABLING", + "DISABLING", + "CREATING", + "FAILED", + "DELETING" + ], + "enumDescriptions": [ + "The processor is in an unspecified state.", + "The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.", + "The processor is disabled.", + "The processor is being enabled, will become `ENABLED` if successful.", + "The processor is being disabled, will become `DISABLED` if successful.", + "The processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet.", + "The processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled.", + "The processor is being deleted, will be removed if successful." + ], + "readOnly": true, + "type": "string" + }, + "type": { + "description": "The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorType": { + "description": "A processor type is responsible for performing a certain document understanding task on a certain type of document.", + "id": "GoogleCloudDocumentaiV1ProcessorType", + "properties": { + "allowCreation": { + "description": "Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.", + "type": "boolean" + }, + "availableLocations": { + "description": "The locations in which this processor is available.", + "items": { + "$ref": "GoogleCloudDocumentaiV1ProcessorTypeLocationInfo" + }, + "type": "array" + }, + "category": { + "description": "The processor category, used by UI to group processor types.", + "type": "string" + }, + "launchStage": { + "description": "Launch stage of the processor type", + "enum": [ + "LAUNCH_STAGE_UNSPECIFIED", + "UNIMPLEMENTED", + "PRELAUNCH", + "EARLY_ACCESS", + "ALPHA", + "BETA", + "GA", + "DEPRECATED" + ], + "enumDescriptions": [ + "Do not use this default value.", + "The feature is not yet implemented. Users can not use it.", + "Prelaunch features are hidden from users and are only visible internally.", + "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", + "GA features are open to all developers and are considered stable and fully qualified for production use.", + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." + ], + "type": "string" + }, + "name": { + "description": "The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}`", + "type": "string" + }, + "sampleDocumentUris": { + "description": "A set of Cloud Storage URIs of sample documents for this processor.", + "items": { + "type": "string" + }, + "type": "array" + }, + "type": { + "description": "The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorTypeLocationInfo": { + "description": "The location information about where the processor is available.", + "id": "GoogleCloudDocumentaiV1ProcessorTypeLocationInfo", + "properties": { + "locationId": { + "description": "The location ID. For supported locations, refer to [regional and multi-regional support](/document-ai/docs/regions).", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorVersion": { + "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.", + "id": "GoogleCloudDocumentaiV1ProcessorVersion", + "properties": { + "createTime": { + "description": "Output only. The time the processor version was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deprecationInfo": { + "$ref": "GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo", + "description": "Output only. If set, information about the eventual deprecation of this version.", + "readOnly": true + }, + "displayName": { + "description": "The display name of the processor version.", + "type": "string" + }, + "documentSchema": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchema", + "description": "Output only. The schema of the processor version. Describes the output.", + "readOnly": true + }, + "genAiModelInfo": { + "$ref": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo", + "description": "Output only. Information about Generative AI model-based processor versions.", + "readOnly": true + }, + "googleManaged": { + "description": "Output only. Denotes that this `ProcessorVersion` is managed by Google.", + "readOnly": true, + "type": "boolean" + }, + "kmsKeyName": { + "description": "Output only. The KMS key name used for encryption.", + "readOnly": true, + "type": "string" + }, + "kmsKeyVersionName": { + "description": "Output only. The KMS key version with which data is encrypted.", + "readOnly": true, + "type": "string" + }, + "latestEvaluation": { + "$ref": "GoogleCloudDocumentaiV1EvaluationReference", + "description": "Output only. The most recently invoked evaluation for the processor version.", + "readOnly": true + }, + "modelType": { + "description": "Output only. The model type of this processor version.", + "enum": [ + "MODEL_TYPE_UNSPECIFIED", + "MODEL_TYPE_GENERATIVE", + "MODEL_TYPE_CUSTOM" + ], + "enumDescriptions": [ + "The processor version has unspecified model type.", + "The processor version has generative model type.", + "The processor version has custom model type." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`", + "type": "string" + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "state": { + "description": "Output only. The state of the processor version.", + "enum": [ + "STATE_UNSPECIFIED", + "DEPLOYED", + "DEPLOYING", + "UNDEPLOYED", + "UNDEPLOYING", + "CREATING", + "DELETING", + "FAILED", + "IMPORTING" + ], + "enumDescriptions": [ + "The processor version is in an unspecified state.", + "The processor version is deployed and can be used for processing.", + "The processor version is being deployed.", + "The processor version is not deployed and cannot be used for processing.", + "The processor version is being undeployed.", + "The processor version is being created.", + "The processor version is being deleted.", + "The processor version failed and is in an indeterminate state.", + "The processor version is being imported." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorVersionAlias": { + "description": "Contains the alias and the aliased resource name of processor version.", + "id": "GoogleCloudDocumentaiV1ProcessorVersionAlias", + "properties": { + "alias": { + "description": "The alias in the form of `processor_version` resource name.", + "type": "string" + }, + "processorVersion": { + "description": "The resource name of aliased processor version.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo": { + "description": "Information about the upcoming deprecation of this processor version.", + "id": "GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo", + "properties": { + "deprecationTime": { + "description": "The time at which this processor version will be deprecated.", + "format": "google-datetime", + "type": "string" + }, + "replacementProcessorVersion": { + "description": "If set, the processor version that will be used as a replacement.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo": { + "description": "Information about Generative AI model-based processor versions.", + "id": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo", + "properties": { + "customGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", + "description": "Information for a custom Generative AI model created by the user." + }, + "foundationGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", + "description": "Information for a pretrained Google-managed foundation model." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo": { + "description": "Information for a custom Generative AI model created by the user. These are created with `Create New Version` in either the `Call foundation model` or `Fine tuning` tabs.", + "id": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", + "properties": { + "baseProcessorVersionId": { + "description": "The base processor version ID for the custom model.", + "type": "string" + }, + "customModelType": { + "description": "The type of custom model created by the user.", + "enum": [ + "CUSTOM_MODEL_TYPE_UNSPECIFIED", + "VERSIONED_FOUNDATION", + "FINE_TUNED" + ], + "enumDescriptions": [ + "The model type is unspecified.", + "The model is a versioned foundation model.", + "The model is a finetuned foundation model." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo": { + "description": "Information for a pretrained Google-managed foundation model.", + "id": "GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", + "properties": { + "finetuningAllowed": { + "description": "Whether finetuning is allowed for this base processor version.", + "type": "boolean" + }, + "minTrainLabeledDocuments": { + "description": "The minimum number of labeled documents in the training dataset required for finetuning.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1RawDocument": { + "description": "Payload message of raw document content (bytes).", + "id": "GoogleCloudDocumentaiV1RawDocument", + "properties": { + "content": { + "description": "Inline document content.", + "format": "byte", + "type": "string" + }, + "displayName": { + "description": "The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\\\"`, `,` `~`, `=` and `:` are reserved. If not specified, a default ID is generated.", + "type": "string" + }, + "mimeType": { + "description": "An IANA MIME type (RFC6838) indicating the nature and format of the content.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1RawDocuments": { + "description": "Specifies a set of raw documents.", + "id": "GoogleCloudDocumentaiV1RawDocuments", + "properties": { + "documents": { + "description": "Specifies raw document content and mime type.", + "items": { + "$ref": "GoogleCloudDocumentaiV1RawDocument" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata": { + "description": "The long-running operation metadata for the ReviewDocument method.", + "id": "GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + }, + "questionId": { + "description": "The Crowd Compute question ID.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ReviewDocumentRequest": { + "description": "Request message for the ReviewDocument method.", + "id": "GoogleCloudDocumentaiV1ReviewDocumentRequest", + "properties": { + "documentSchema": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchema", + "description": "The document schema of the human review task." + }, + "enableSchemaValidation": { + "description": "Whether the validation should be performed on the ad-hoc review request.", + "type": "boolean" + }, + "inlineDocument": { + "$ref": "GoogleCloudDocumentaiV1Document", + "description": "An inline document proto." + }, + "priority": { + "description": "The priority of the human review task.", + "enum": [ + "DEFAULT", + "URGENT" + ], + "enumDescriptions": [ + "The default priority level.", + "The urgent priority level. The labeling manager should allocate labeler resource to the urgent task queue to respect this priority level." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1ReviewDocumentResponse": { + "description": "Response message for the ReviewDocument method.", + "id": "GoogleCloudDocumentaiV1ReviewDocumentResponse", + "properties": { + "gcsDestination": { + "description": "The Cloud Storage uri for the human reviewed document if the review is succeeded.", + "type": "string" + }, + "rejectionReason": { + "description": "The reason why the review is rejected by reviewer.", + "type": "string" + }, + "state": { + "description": "The state of the review operation.", + "enum": [ + "STATE_UNSPECIFIED", + "REJECTED", + "SUCCEEDED" + ], + "enumDescriptions": [ + "The default value. This value is used if the state is omitted.", + "The review operation is rejected by the reviewer.", + "The review operation is succeeded." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1SchemaGenerationHistory": { + "description": "The history of schema generation iterations.", + "id": "GoogleCloudDocumentaiV1SchemaGenerationHistory", + "properties": { + "iterations": { + "description": "Required. Previous prompt-answers in a chronological order.", + "items": { + "$ref": "GoogleCloudDocumentaiV1SchemaGenerationIteration" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1SchemaGenerationIteration": { + "description": "A single iteration of the schema generation.", + "id": "GoogleCloudDocumentaiV1SchemaGenerationIteration", + "properties": { + "adjustedSchema": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion", + "description": "Optional. The previous schema version adjusted by the model." + }, + "generatedSchema": { + "$ref": "GoogleCloudDocumentaiV1SchemaVersion", + "description": "Required. The schema version generated by the model." + }, + "prompt": { + "description": "Optional. The prompt used for the iteration.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1SchemaVersion": { + "description": "SchemaVersion is a version of the Schema which is created in SchemaGroup.", + "id": "GoogleCloudDocumentaiV1SchemaVersion", + "properties": { + "createTime": { + "description": "Output only. The time when the SchemaVersion was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. The user-defined name of the SchemaVersion.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The GCP labels for the SchemaVersion.", + "type": "object" + }, + "name": { + "description": "Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "type": "string" + }, + "schema": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchema", + "description": "Required. The schema of the SchemaVersion." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata": { + "description": "The long-running operation metadata for the SetDefaultProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest": { + "description": "Request message for the SetDefaultProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest", + "properties": { + "defaultProcessorVersion": { + "description": "Required. The resource name of child ProcessorVersion to use as default. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse": { + "description": "Response message for the SetDefaultProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata": { + "description": "The metadata that represents a processor version being created.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + }, + "testDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The test dataset validation information." + }, + "trainingDatasetValidation": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "description": "The training dataset validation information." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation": { + "description": "The dataset validation information. This includes any and all errors with documents and the dataset.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "properties": { + "datasetErrorCount": { + "description": "The total number of dataset errors.", + "format": "int32", + "type": "integer" + }, + "datasetErrors": { + "description": "Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + }, + "documentErrorCount": { + "description": "The total number of document errors.", + "format": "int32", + "type": "integer" + }, + "documentErrors": { + "description": "Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.", + "items": { + "$ref": "GoogleRpcStatus" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionRequest": { + "description": "Request message for the TrainProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequest", + "properties": { + "baseProcessorVersion": { + "description": "Optional. The processor version to use as a base for training. This processor version must be a child of `parent`. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.", + "type": "string" + }, + "customDocumentExtractionOptions": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions", + "description": "Options to control Custom Document Extraction (CDE) Processor." + }, + "documentSchema": { + "$ref": "GoogleCloudDocumentaiV1DocumentSchema", + "description": "Optional. The schema the processor version will be trained with." + }, + "foundationModelTuningOptions": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", + "description": "Options to control foundation model tuning of a processor." + }, + "inputData": { + "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", + "description": "Optional. The input data used to train the ProcessorVersion." + }, + "processorVersion": { + "$ref": "GoogleCloudDocumentaiV1ProcessorVersion", + "description": "Required. The processor version to be created." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions": { + "description": "Options to control the training of the Custom Document Extraction (CDE) Processor.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions", + "properties": { + "trainingMethod": { + "description": "Optional. Training method to use for CDE training.", + "enum": [ + "TRAINING_METHOD_UNSPECIFIED", + "MODEL_BASED", + "TEMPLATE_BASED" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions": { + "description": "Options to control foundation model tuning of the processor.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", + "properties": { + "learningRateMultiplier": { + "description": "Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.", + "format": "float", + "type": "number" + }, + "trainSteps": { + "description": "Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData": { + "description": "The input data used to train a new ProcessorVersion.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", + "properties": { + "testDocuments": { + "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", + "description": "The documents used for testing the trained version." + }, + "trainingDocuments": { + "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", + "description": "The documents used for training the new version." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1TrainProcessorVersionResponse": { + "description": "The response for TrainProcessorVersion.", + "id": "GoogleCloudDocumentaiV1TrainProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The resource name of the processor version produced by training.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata": { + "description": "The long-running operation metadata for the UndeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1UndeployProcessorVersionRequest": { + "description": "Request message for the UndeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1UndeployProcessorVersionResponse": { + "description": "Response message for the UndeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1Vertex": { + "description": "A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.", + "id": "GoogleCloudDocumentaiV1Vertex", + "properties": { + "x": { + "description": "X coordinate.", + "format": "int32", + "type": "integer" + }, + "y": { + "description": "Y coordinate (starts from the top of the image).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata": { + "id": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + }, + "errorDocumentCount": { + "description": "Total number of documents that failed to be deleted in storage.", + "format": "int32", + "type": "integer" + }, + "individualBatchDeleteStatuses": { + "description": "The list of response details of each document.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus" + }, + "type": "array" + }, + "totalDocumentCount": { + "description": "Total number of documents deleting from dataset.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus": { + "description": "The status of each individual document in the batch delete process.", + "id": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus", + "properties": { + "documentId": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentId", + "description": "The document id of the document." + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of deleting the document in storage." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse": { + "description": "Response of the delete documents operation.", + "id": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3BatchProcessMetadata": { + "description": "The long-running operation metadata for BatchProcessDocuments.", + "id": "GoogleCloudDocumentaiV1beta3BatchProcessMetadata", + "properties": { + "createTime": { + "description": "The creation time of the operation.", + "format": "google-datetime", + "type": "string" + }, + "individualProcessStatuses": { + "description": "The list of response details of each document.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus" + }, + "type": "array" + }, + "state": { + "description": "The state of the current batch processing.", + "enum": [ + "STATE_UNSPECIFIED", + "WAITING", + "RUNNING", + "SUCCEEDED", + "CANCELLING", + "CANCELLED", + "FAILED" + ], + "enumDescriptions": [ + "The default value. This value is used if the state is omitted.", + "Request operation is waiting for scheduling.", + "Request is being processed.", + "The batch processing completed successfully.", + "The batch processing was being cancelled.", + "The batch processing was cancelled.", + "The batch processing has failed." + ], + "type": "string" + }, + "stateMessage": { + "description": "A message providing more details about the current state of processing. For example, the error message if the operation is failed.", + "type": "string" + }, + "updateTime": { + "description": "The last update time of the operation.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus": { + "description": "The status of a each individual document in the batch process.", + "id": "GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus", + "properties": { + "humanReviewOperation": { + "deprecated": true, + "description": "The name of the operation triggered by the processed document. If the human review process isn't triggered, this field will be empty. It has the same response type and metadata as the long-running operation returned by the ReviewDocument method.", + "type": "string" + }, + "humanReviewStatus": { + "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewStatus", + "description": "The status of human review on the processed document." + }, + "inputGcsSource": { + "description": "The source of the document, same as the input_gcs_source field in the request when the batch process started.", + "type": "string" + }, + "outputGcsDestination": { + "description": "The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document if it was successful, otherwise empty.", + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status processing the document." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3BatchProcessResponse": { + "description": "Response message for BatchProcessDocuments.", + "id": "GoogleCloudDocumentaiV1beta3BatchProcessResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3CommonOperationMetadata": { + "description": "The common metadata for long running operations.", + "id": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "properties": { + "createTime": { + "description": "The creation time of the operation.", + "format": "google-datetime", + "type": "string" + }, + "resource": { + "description": "A related resource to this operation.", + "type": "string" + }, + "state": { + "description": "The state of the operation.", + "enum": [ + "STATE_UNSPECIFIED", + "RUNNING", + "CANCELLING", + "SUCCEEDED", + "FAILED", + "CANCELLED" ], "enumDescriptions": [ - "The default priority level.", - "The urgent priority level. The labeling manager should allocate labeler resource to the urgent task queue to respect this priority level." + "Unspecified state.", + "Operation is still running.", + "Operation is being cancelled.", + "Operation succeeded.", + "Operation failed.", + "Operation is cancelled." + ], + "type": "string" + }, + "stateMessage": { + "description": "A message providing more details about the current state of processing.", + "type": "string" + }, + "updateTime": { + "description": "The last update time of the operation.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3Dataset": { + "description": "A singleton resource under a Processor which configures a collection of documents.", + "id": "GoogleCloudDocumentaiV1beta3Dataset", + "properties": { + "documentWarehouseConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig", + "deprecated": true, + "description": "Optional. Deprecated. Warehouse-based dataset configuration is not supported." + }, + "gcsManagedConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig", + "description": "Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location." + }, + "name": { + "description": "Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset`", + "type": "string" + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "spannerIndexingConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig", + "description": "Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search." + }, + "state": { + "description": "Required. State of the dataset. Ignored when updating dataset.", + "enum": [ + "STATE_UNSPECIFIED", + "UNINITIALIZED", + "INITIALIZING", + "INITIALIZED" + ], + "enumDescriptions": [ + "Default unspecified enum, should not be used.", + "Dataset has not been initialized.", + "Dataset is being initialized.", + "Dataset has been initialized." ], "type": "string" + }, + "unmanagedDatasetConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig", + "description": "Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed)." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig": { + "description": "Configuration specific to the Document AI Warehouse-based implementation.", + "id": "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig", + "properties": { + "collection": { + "description": "Output only. The collection in Document AI Warehouse associated with the dataset.", + "readOnly": true, + "type": "string" + }, + "schema": { + "description": "Output only. The schema in Document AI Warehouse associated with the dataset.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig": { + "description": "Configuration specific to the Cloud Storage-based implementation.", + "id": "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig", + "properties": { + "gcsPrefix": { + "$ref": "GoogleCloudDocumentaiV1beta3GcsPrefix", + "description": "Required. The Cloud Storage URI (a directory) where the documents belonging to the dataset must be stored." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig": { + "description": "Configuration specific to spanner-based indexing.", + "id": "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig": { + "description": "Configuration specific to an unmanaged dataset.", + "id": "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata": { + "description": "The long-running operation metadata for the DeleteProcessor method.", + "id": "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata": { + "description": "The long-running operation metadata for the DeleteProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata": { + "description": "The long-running operation metadata for the DeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse": { + "description": "Response message for the DeployProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DisableProcessorMetadata": { + "description": "The long-running operation metadata for the DisableProcessor method.", + "id": "GoogleCloudDocumentaiV1beta3DisableProcessorMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DisableProcessorResponse": { + "description": "Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future.", + "id": "GoogleCloudDocumentaiV1beta3DisableProcessorResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentId": { + "description": "Document Identifier.", + "id": "GoogleCloudDocumentaiV1beta3DocumentId", + "properties": { + "gcsManagedDocId": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId", + "description": "A document id within user-managed Cloud Storage." + }, + "revisionRef": { + "$ref": "GoogleCloudDocumentaiV1beta3RevisionRef", + "description": "Points to a specific revision of the document if set." + }, + "unmanagedDocId": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId", + "description": "A document id within unmanaged dataset." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId": { + "description": "Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option.", + "id": "GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId", + "properties": { + "cwDocId": { + "deprecated": true, + "description": "Id of the document (indexed) managed by Content Warehouse.", + "type": "string" + }, + "gcsUri": { + "description": "Required. The Cloud Storage URI where the actual document is stored.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId": { + "description": "Identifies a document uniquely within the scope of a dataset in unmanaged option.", + "id": "GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId", + "properties": { + "docId": { + "description": "Required. The id of the document.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentSchema": { + "description": "The schema defines the output of the processed document by a processor.", + "id": "GoogleCloudDocumentaiV1beta3DocumentSchema", + "properties": { + "description": { + "description": "Description of the schema.", + "type": "string" + }, + "displayName": { + "description": "Display name to show to users.", + "type": "string" + }, + "entityTypes": { + "description": "Entity types of the schema.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType" + }, + "type": "array" + }, + "metadata": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata", + "description": "Metadata of the schema." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType": { + "description": "EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.", + "id": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType", + "properties": { + "baseTypes": { + "description": "The entity type that this type is derived from. For now, one and only one should be set.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "The description of the entity type. Could be used to provide more information about the entity type for model calls.", + "type": "string" + }, + "displayName": { + "description": "User defined name for the type.", + "type": "string" + }, + "entityTypeMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3EntityTypeMetadata", + "description": "Metadata for the entity type." + }, + "enumValues": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues", + "description": "If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file." + }, + "name": { + "description": "Name of the type. It must be unique within the schema file and cannot be a \"Common Type\". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.", + "type": "string" + }, + "properties": { + "description": "Description the nested structure, or composition of an entity.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty" + }, + "type": "array" } }, "type": "object" }, - "GoogleCloudDocumentaiV1ReviewDocumentResponse": { - "description": "Response message for the ReviewDocument method.", - "id": "GoogleCloudDocumentaiV1ReviewDocumentResponse", + "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues": { + "description": "Defines the a list of enum values.", + "id": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues", "properties": { - "gcsDestination": { - "description": "The Cloud Storage uri for the human reviewed document if the review is succeeded.", + "values": { + "description": "The individual values that this enum values type can include.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty": { + "description": "Defines properties that can be part of the entity type.", + "id": "GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty", + "properties": { + "description": { + "description": "The description of the property. Could be used to provide more information about the property for model calls.", "type": "string" }, - "rejectionReason": { - "description": "The reason why the review is rejected by reviewer.", + "displayName": { + "description": "User defined name for the property.", "type": "string" }, - "state": { - "description": "The state of the review operation.", + "method": { + "description": "Specifies how the entity's value is obtained.", "enum": [ - "STATE_UNSPECIFIED", - "REJECTED", - "SUCCEEDED" + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" ], "enumDescriptions": [ - "The default value. This value is used if the state is omitted.", - "The review operation is rejected by the reviewer.", - "The review operation is succeeded." + "Unspecified method. It defaults to `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." + ], + "type": "string" + }, + "name": { + "description": "The name of the property. Follows the same guidelines as the EntityType name.", + "type": "string" + }, + "occurrenceType": { + "description": "Occurrence type limits the number of instances an entity type appears in the document.", + "enum": [ + "OCCURRENCE_TYPE_UNSPECIFIED", + "OPTIONAL_ONCE", + "OPTIONAL_MULTIPLE", + "REQUIRED_ONCE", + "REQUIRED_MULTIPLE" + ], + "enumDescriptions": [ + "Unspecified occurrence type.", + "There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.", + "The entity type will appear zero or multiple times.", + "The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.", + "The entity type will appear once or more times." ], "type": "string" + }, + "propertyMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3PropertyMetadata", + "description": "Any additional metadata about the property can be added here." + }, + "valueType": { + "description": "A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata": { - "description": "The long-running operation metadata for the SetDefaultProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata", + "GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata": { + "description": "Metadata for global schema behavior.", + "id": "GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "documentAllowMultipleLabels": { + "description": "If true, on a given page, there can be multiple `document` annotations covering it.", + "type": "boolean" + }, + "documentSplitter": { + "description": "If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).", + "type": "boolean" + }, + "prefixedNamingOnProperties": { + "description": "If set, all the nested entities must be prefixed with the parents.", + "type": "boolean" + }, + "skipNamingValidation": { + "description": "If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.", + "type": "boolean" } }, "type": "object" }, - "GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest": { - "description": "Request message for the SetDefaultProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest", + "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata": { + "description": "The long-running operation metadata for the EnableProcessor method.", + "id": "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata", "properties": { - "defaultProcessorVersion": { - "description": "Required. The resource name of child ProcessorVersion to use as default. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`", - "type": "string" + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse": { - "description": "Response message for the SetDefaultProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse", + "GoogleCloudDocumentaiV1beta3EnableProcessorResponse": { + "description": "Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future.", + "id": "GoogleCloudDocumentaiV1beta3EnableProcessorResponse", "properties": {}, "type": "object" }, - "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata": { - "description": "The metadata that represents a processor version being created.", - "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadata", + "GoogleCloudDocumentaiV1beta3EntityTypeMetadata": { + "description": "Metadata about an entity type.", + "id": "GoogleCloudDocumentaiV1beta3EntityTypeMetadata", + "properties": { + "inactive": { + "description": "Whether the entity type should be considered inactive.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata": { + "description": "Metadata of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata", "properties": { "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", "description": "The basic metadata of the long-running operation." - }, - "testDatasetValidation": { - "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", - "description": "The test dataset validation information." - }, - "trainingDatasetValidation": { - "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", - "description": "The training dataset validation information." } }, "type": "object" }, - "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation": { - "description": "The dataset validation information. This includes any and all errors with documents and the dataset.", - "id": "GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation", + "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse": { + "description": "Response of the EvaluateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse", "properties": { - "datasetErrorCount": { - "description": "The total number of dataset errors.", - "format": "int32", - "type": "integer" - }, - "datasetErrors": { - "description": "Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.", - "items": { - "$ref": "GoogleRpcStatus" - }, - "type": "array" - }, - "documentErrorCount": { - "description": "The total number of document errors.", - "format": "int32", - "type": "integer" - }, - "documentErrors": { - "description": "Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.", - "items": { - "$ref": "GoogleRpcStatus" - }, - "type": "array" + "evaluation": { + "description": "The resource name of the created evaluation.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1TrainProcessorVersionRequest": { - "description": "Request message for the TrainProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequest", + "GoogleCloudDocumentaiV1beta3EvaluationMetrics": { + "description": "Evaluation metrics, either in aggregate or about a specific entity.", + "id": "GoogleCloudDocumentaiV1beta3EvaluationMetrics", "properties": { - "baseProcessorVersion": { - "description": "Optional. The processor version to use as a base for training. This processor version must be a child of `parent`. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`.", - "type": "string" + "f1Score": { + "description": "The calculated f1 score.", + "format": "float", + "type": "number" }, - "customDocumentExtractionOptions": { - "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions", - "description": "Options to control Custom Document Extraction (CDE) Processor." + "falseNegativesCount": { + "description": "The amount of false negatives.", + "format": "int32", + "type": "integer" }, - "documentSchema": { - "$ref": "GoogleCloudDocumentaiV1DocumentSchema", - "description": "Optional. The schema the processor version will be trained with." + "falsePositivesCount": { + "description": "The amount of false positives.", + "format": "int32", + "type": "integer" }, - "foundationModelTuningOptions": { - "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", - "description": "Options to control foundation model tuning of a processor." + "groundTruthDocumentCount": { + "description": "The amount of documents with a ground truth occurrence.", + "format": "int32", + "type": "integer" }, - "inputData": { - "$ref": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", - "description": "Optional. The input data used to train the ProcessorVersion." + "groundTruthOccurrencesCount": { + "description": "The amount of occurrences in ground truth documents.", + "format": "int32", + "type": "integer" }, - "processorVersion": { - "$ref": "GoogleCloudDocumentaiV1ProcessorVersion", - "description": "Required. The processor version to be created." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions": { - "description": "Options to control the training of the Custom Document Extraction (CDE) Processor.", - "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions", - "properties": { - "trainingMethod": { - "description": "Optional. Training method to use for CDE training.", - "enum": [ - "TRAINING_METHOD_UNSPECIFIED", - "MODEL_BASED", - "TEMPLATE_BASED" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions": { - "description": "Options to control foundation model tuning of the processor.", - "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions", - "properties": { - "learningRateMultiplier": { - "description": "Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.", + "precision": { + "description": "The calculated precision.", + "format": "float", + "type": "number" + }, + "predictedDocumentCount": { + "description": "The amount of documents with a predicted occurrence.", + "format": "int32", + "type": "integer" + }, + "predictedOccurrencesCount": { + "description": "The amount of occurrences in predicted documents.", + "format": "int32", + "type": "integer" + }, + "recall": { + "description": "The calculated recall.", "format": "float", "type": "number" }, - "trainSteps": { - "description": "Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.", + "totalDocumentsCount": { + "description": "The amount of documents that had an occurrence of this label.", + "format": "int32", + "type": "integer" + }, + "truePositivesCount": { + "description": "The amount of true positives.", "format": "int32", "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData": { - "description": "The input data used to train a new ProcessorVersion.", - "id": "GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData", + "GoogleCloudDocumentaiV1beta3EvaluationReference": { + "description": "Gives a short summary of an evaluation, and links to the evaluation itself.", + "id": "GoogleCloudDocumentaiV1beta3EvaluationReference", "properties": { - "testDocuments": { - "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", - "description": "The documents used for testing the trained version." + "aggregateMetrics": { + "$ref": "GoogleCloudDocumentaiV1beta3EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching on." }, - "trainingDocuments": { - "$ref": "GoogleCloudDocumentaiV1BatchDocumentsInputConfig", - "description": "The documents used for training the new version." + "aggregateMetricsExact": { + "$ref": "GoogleCloudDocumentaiV1beta3EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching off." + }, + "evaluation": { + "description": "The resource name of the evaluation.", + "type": "string" + }, + "operation": { + "description": "The resource name of the Long Running Operation for the evaluation.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1TrainProcessorVersionResponse": { - "description": "The response for TrainProcessorVersion.", - "id": "GoogleCloudDocumentaiV1TrainProcessorVersionResponse", + "GoogleCloudDocumentaiV1beta3FieldExtractionMetadata": { + "description": "Metadata for how this field value is extracted.", + "id": "GoogleCloudDocumentaiV1beta3FieldExtractionMetadata", "properties": { - "processorVersion": { - "description": "The resource name of the processor version produced by training.", - "type": "string" + "summaryOptions": { + "$ref": "GoogleCloudDocumentaiV1beta3SummaryOptions", + "description": "Summary options config." } }, "type": "object" }, - "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata": { - "description": "The long-running operation metadata for the UndeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata", + "GoogleCloudDocumentaiV1beta3GcsPrefix": { + "description": "Specifies all documents on Cloud Storage with a common prefix.", + "id": "GoogleCloudDocumentaiV1beta3GcsPrefix", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." + "gcsUriPrefix": { + "description": "The URI prefix.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1UndeployProcessorVersionRequest": { - "description": "Request message for the UndeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionRequest", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1UndeployProcessorVersionResponse": { - "description": "Response message for the UndeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1UndeployProcessorVersionResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1Vertex": { - "description": "A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.", - "id": "GoogleCloudDocumentaiV1Vertex", + "GoogleCloudDocumentaiV1beta3HumanReviewStatus": { + "description": "The status of human review on a processed document.", + "id": "GoogleCloudDocumentaiV1beta3HumanReviewStatus", "properties": { - "x": { - "description": "X coordinate.", - "format": "int32", - "type": "integer" + "humanReviewOperation": { + "description": "The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by ReviewDocument.", + "type": "string" }, - "y": { - "description": "Y coordinate (starts from the top of the image).", - "format": "int32", - "type": "integer" + "state": { + "description": "The state of human review on the processing request.", + "enum": [ + "STATE_UNSPECIFIED", + "SKIPPED", + "VALIDATION_PASSED", + "IN_PROGRESS", + "ERROR" + ], + "enumDescriptions": [ + "Human review state is unspecified. Most likely due to an internal error.", + "Human review is skipped for the document. This can happen because human review isn't enabled on the processor or the processing request has been set to skip this document.", + "Human review validation is triggered and passed, so no review is needed.", + "Human review validation is triggered and the document is under review.", + "Some error happened during triggering human review, see the state_message for details." + ], + "type": "string" + }, + "stateMessage": { + "description": "A message providing more details about the human review state.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata": { - "id": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata", + "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata": { + "description": "Metadata of the import document operation.", + "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata", "properties": { "commonMetadata": { "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", "description": "The basic metadata of the long-running operation." }, - "errorDocumentCount": { - "description": "Total number of documents that failed to be deleted in storage.", - "format": "int32", - "type": "integer" + "importConfigValidationResults": { + "description": "Validation statuses of the batch documents import config.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult" + }, + "type": "array" }, - "individualBatchDeleteStatuses": { + "individualImportStatuses": { "description": "The list of response details of each document.", "items": { - "$ref": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus" + "$ref": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus" }, "type": "array" }, "totalDocumentCount": { - "description": "Total number of documents deleting from dataset.", + "description": "Total number of the documents that are qualified for importing.", "format": "int32", "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus": { - "description": "The status of each individual document in the batch delete process.", - "id": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus", + "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult": { + "description": "The validation status of each import config. Status is set to an error if there are no documents to import in the `import_config`, or `OK` if the operation will try to proceed with at least one document.", + "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult", "properties": { - "documentId": { - "$ref": "GoogleCloudDocumentaiV1beta3DocumentId", - "description": "The document id of the document." + "inputGcsSource": { + "description": "The source Cloud Storage URI specified in the import config.", + "type": "string" }, "status": { "$ref": "GoogleRpcStatus", - "description": "The status of deleting the document in storage." + "description": "The validation status of import config." } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse": { - "description": "Response of the delete documents operation.", - "id": "GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3BatchProcessMetadata": { - "description": "The long-running operation metadata for BatchProcessDocuments.", - "id": "GoogleCloudDocumentaiV1beta3BatchProcessMetadata", + "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus": { + "description": "The status of each individual document in the import process.", + "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus", "properties": { - "createTime": { - "description": "The creation time of the operation.", - "format": "google-datetime", - "type": "string" - }, - "individualProcessStatuses": { - "description": "The list of response details of each document.", - "items": { - "$ref": "GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus" - }, - "type": "array" - }, - "state": { - "description": "The state of the current batch processing.", - "enum": [ - "STATE_UNSPECIFIED", - "WAITING", - "RUNNING", - "SUCCEEDED", - "CANCELLING", - "CANCELLED", - "FAILED" - ], - "enumDescriptions": [ - "The default value. This value is used if the state is omitted.", - "Request operation is waiting for scheduling.", - "Request is being processed.", - "The batch processing completed successfully.", - "The batch processing was being cancelled.", - "The batch processing was cancelled.", - "The batch processing has failed." - ], + "inputGcsSource": { + "description": "The source Cloud Storage URI of the document.", "type": "string" }, - "stateMessage": { - "description": "A message providing more details about the current state of processing. For example, the error message if the operation is failed.", - "type": "string" + "outputDocumentId": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentId", + "description": "The document id of imported document if it was successful, otherwise empty." }, - "updateTime": { - "description": "The last update time of the operation.", - "format": "google-datetime", - "type": "string" + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of the importing of the document." } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus": { - "description": "The status of a each individual document in the batch process.", - "id": "GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus", + "GoogleCloudDocumentaiV1beta3ImportDocumentsResponse": { + "description": "Response of the import document operation.", + "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata": { + "description": "The long-running operation metadata for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata", "properties": { - "humanReviewOperation": { - "deprecated": true, - "description": "The name of the operation triggered by the processed document. If the human review process isn't triggered, this field will be empty. It has the same response type and metadata as the long-running operation returned by the ReviewDocument method.", - "type": "string" - }, - "humanReviewStatus": { - "$ref": "GoogleCloudDocumentaiV1beta3HumanReviewStatus", - "description": "The status of human review on the processed document." - }, - "inputGcsSource": { - "description": "The source of the document, same as the input_gcs_source field in the request when the batch process started.", - "type": "string" - }, - "outputGcsDestination": { - "description": "The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the processed document if it was successful, otherwise empty.", - "type": "string" - }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status processing the document." + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata for the long-running operation." } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3BatchProcessResponse": { - "description": "Response message for BatchProcessDocuments.", - "id": "GoogleCloudDocumentaiV1beta3BatchProcessResponse", - "properties": {}, + "GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse": { + "description": "The response message for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The destination processor version name.", + "type": "string" + } + }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3CommonOperationMetadata": { - "description": "The common metadata for long running operations.", - "id": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "GoogleCloudDocumentaiV1beta3Processor": { + "description": "The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.", + "id": "GoogleCloudDocumentaiV1beta3Processor", "properties": { + "activeSchemaVersion": { + "description": "Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}", + "type": "string" + }, "createTime": { - "description": "The creation time of the operation.", + "description": "Output only. The time the processor was created.", "format": "google-datetime", + "readOnly": true, "type": "string" }, - "resource": { - "description": "A related resource to this operation.", + "defaultProcessorVersion": { + "description": "The default processor version.", "type": "string" }, - "state": { - "description": "The state of the operation.", - "enum": [ - "STATE_UNSPECIFIED", - "RUNNING", - "CANCELLING", - "SUCCEEDED", - "FAILED", - "CANCELLED" - ], - "enumDescriptions": [ - "Unspecified state.", - "Operation is still running.", - "Operation is being cancelled.", - "Operation succeeded.", - "Operation failed.", - "Operation is cancelled." - ], + "displayName": { + "description": "The display name of the processor.", "type": "string" }, - "stateMessage": { - "description": "A message providing more details about the current state of processing.", + "kmsKeyName": { + "description": "The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios.", "type": "string" }, - "updateTime": { - "description": "The last update time of the operation.", - "format": "google-datetime", + "name": { + "description": "Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}`", + "readOnly": true, "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3Dataset": { - "description": "A singleton resource under a Processor which configures a collection of documents.", - "id": "GoogleCloudDocumentaiV1beta3Dataset", - "properties": { - "documentWarehouseConfig": { - "$ref": "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig", - "deprecated": true, - "description": "Optional. Deprecated. Warehouse-based dataset configuration is not supported." - }, - "gcsManagedConfig": { - "$ref": "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig", - "description": "Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents are stored under a user-managed Cloud Storage location." }, - "name": { - "description": "Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset`", + "processEndpoint": { + "description": "Output only. Immutable. The http endpoint that can be called to invoke processing.", + "readOnly": true, "type": "string" }, + "processorVersionAliases": { + "description": "Output only. The processor version aliases.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessorVersionAlias" + }, + "readOnly": true, + "type": "array" + }, "satisfiesPzi": { "description": "Output only. Reserved for future use.", "readOnly": true, @@ -5780,346 +7873,244 @@ "readOnly": true, "type": "boolean" }, - "spannerIndexingConfig": { - "$ref": "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig", - "description": "Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features like CMEK and content-based search." - }, "state": { - "description": "Required. State of the dataset. Ignored when updating dataset.", + "description": "Output only. The state of the processor.", "enum": [ "STATE_UNSPECIFIED", - "UNINITIALIZED", - "INITIALIZING", - "INITIALIZED" + "ENABLED", + "DISABLED", + "ENABLING", + "DISABLING", + "CREATING", + "FAILED", + "DELETING" ], "enumDescriptions": [ - "Default unspecified enum, should not be used.", - "Dataset has not been initialized.", - "Dataset is being initialized.", - "Dataset has been initialized." + "The processor is in an unspecified state.", + "The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.", + "The processor is disabled.", + "The processor is being enabled, will become `ENABLED` if successful.", + "The processor is being disabled, will become `DISABLED` if successful.", + "The processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet.", + "The processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled.", + "The processor is being deleted, will be removed if successful." ], + "readOnly": true, "type": "string" }, - "unmanagedDatasetConfig": { - "$ref": "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig", - "description": "Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by the document service internally (not user-managed)." + "type": { + "description": "The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig": { - "description": "Configuration specific to the Document AI Warehouse-based implementation.", - "id": "GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig", + "GoogleCloudDocumentaiV1beta3ProcessorVersion": { + "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.", + "id": "GoogleCloudDocumentaiV1beta3ProcessorVersion", "properties": { - "collection": { - "description": "Output only. The collection in Document AI Warehouse associated with the dataset.", + "createTime": { + "description": "Output only. The time the processor version was created.", + "format": "google-datetime", "readOnly": true, "type": "string" }, - "schema": { - "description": "Output only. The schema in Document AI Warehouse associated with the dataset.", + "deprecationInfo": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo", + "description": "Output only. If set, information about the eventual deprecation of this version.", + "readOnly": true + }, + "displayName": { + "description": "The display name of the processor version.", + "type": "string" + }, + "documentSchema": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchema", + "description": "Output only. The schema of the processor version. Describes the output.", + "readOnly": true + }, + "genAiModelInfo": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo", + "description": "Output only. Information about Generative AI model-based processor versions.", + "readOnly": true + }, + "googleManaged": { + "description": "Output only. Denotes that this `ProcessorVersion` is managed by Google.", + "readOnly": true, + "type": "boolean" + }, + "kmsKeyName": { + "description": "Output only. The KMS key name used for encryption.", "readOnly": true, "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig": { - "description": "Configuration specific to the Cloud Storage-based implementation.", - "id": "GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig", - "properties": { - "gcsPrefix": { - "$ref": "GoogleCloudDocumentaiV1beta3GcsPrefix", - "description": "Required. The Cloud Storage URI (a directory) where the documents belonging to the dataset must be stored." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig": { - "description": "Configuration specific to spanner-based indexing.", - "id": "GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig": { - "description": "Configuration specific to an unmanaged dataset.", - "id": "GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata": { - "description": "The long-running operation metadata for the DeleteProcessor method.", - "id": "GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata": { - "description": "The long-running operation metadata for the DeleteProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata": { - "description": "The long-running operation metadata for the DeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse": { - "description": "Response message for the DeployProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DisableProcessorMetadata": { - "description": "The long-running operation metadata for the DisableProcessor method.", - "id": "GoogleCloudDocumentaiV1beta3DisableProcessorMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DisableProcessorResponse": { - "description": "Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future.", - "id": "GoogleCloudDocumentaiV1beta3DisableProcessorResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3DocumentId": { - "description": "Document Identifier.", - "id": "GoogleCloudDocumentaiV1beta3DocumentId", - "properties": { - "gcsManagedDocId": { - "$ref": "GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId", - "description": "A document id within user-managed Cloud Storage." }, - "revisionRef": { - "$ref": "GoogleCloudDocumentaiV1beta3RevisionRef", - "description": "Points to a specific revision of the document if set." + "kmsKeyVersionName": { + "description": "Output only. The KMS key version with which data is encrypted.", + "readOnly": true, + "type": "string" + }, + "latestEvaluation": { + "$ref": "GoogleCloudDocumentaiV1beta3EvaluationReference", + "description": "Output only. The most recently invoked evaluation for the processor version.", + "readOnly": true + }, + "modelType": { + "description": "Output only. The model type of this processor version.", + "enum": [ + "MODEL_TYPE_UNSPECIFIED", + "MODEL_TYPE_GENERATIVE", + "MODEL_TYPE_CUSTOM" + ], + "enumDescriptions": [ + "The processor version has unspecified model type.", + "The processor version has generative model type.", + "The processor version has custom model type." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`", + "type": "string" + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" }, - "unmanagedDocId": { - "$ref": "GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId", - "description": "A document id within unmanaged dataset." + "state": { + "description": "Output only. The state of the processor version.", + "enum": [ + "STATE_UNSPECIFIED", + "DEPLOYED", + "DEPLOYING", + "UNDEPLOYED", + "UNDEPLOYING", + "CREATING", + "DELETING", + "FAILED", + "IMPORTING" + ], + "enumDescriptions": [ + "The processor version is in an unspecified state.", + "The processor version is deployed and can be used for processing.", + "The processor version is being deployed.", + "The processor version is not deployed and cannot be used for processing.", + "The processor version is being undeployed.", + "The processor version is being created.", + "The processor version is being deleted.", + "The processor version failed and is in an indeterminate state.", + "The processor version is being imported." + ], + "readOnly": true, + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId": { - "description": "Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option.", - "id": "GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId", + "GoogleCloudDocumentaiV1beta3ProcessorVersionAlias": { + "description": "Contains the alias and the aliased resource name of processor version.", + "id": "GoogleCloudDocumentaiV1beta3ProcessorVersionAlias", "properties": { - "cwDocId": { - "deprecated": true, - "description": "Id of the document (indexed) managed by Content Warehouse.", + "alias": { + "description": "The alias in the form of `processor_version` resource name.", "type": "string" }, - "gcsUri": { - "description": "Required. The Cloud Storage URI where the actual document is stored.", + "processorVersion": { + "description": "The resource name of aliased processor version.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId": { - "description": "Identifies a document uniquely within the scope of a dataset in unmanaged option.", - "id": "GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId", + "GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo": { + "description": "Information about the upcoming deprecation of this processor version.", + "id": "GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo", "properties": { - "docId": { - "description": "Required. The id of the document.", + "deprecationTime": { + "description": "The time at which this processor version will be deprecated.", + "format": "google-datetime", "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata": { - "description": "The long-running operation metadata for the EnableProcessor method.", - "id": "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3EnableProcessorResponse": { - "description": "Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future.", - "id": "GoogleCloudDocumentaiV1beta3EnableProcessorResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata": { - "description": "Metadata of the EvaluateProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse": { - "description": "Response of the EvaluateProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse", - "properties": { - "evaluation": { - "description": "The resource name of the created evaluation.", + }, + "replacementProcessorVersion": { + "description": "If set, the processor version that will be used as a replacement.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3GcsPrefix": { - "description": "Specifies all documents on Cloud Storage with a common prefix.", - "id": "GoogleCloudDocumentaiV1beta3GcsPrefix", + "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo": { + "description": "Information about Generative AI model-based processor versions.", + "id": "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo", "properties": { - "gcsUriPrefix": { - "description": "The URI prefix.", - "type": "string" + "customGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", + "description": "Information for a custom Generative AI model created by the user." + }, + "foundationGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", + "description": "Information for a pretrained Google-managed foundation model." } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3HumanReviewStatus": { - "description": "The status of human review on a processed document.", - "id": "GoogleCloudDocumentaiV1beta3HumanReviewStatus", + "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo": { + "description": "Information for a custom Generative AI model created by the user. These are created with `Create New Version` in either the `Call foundation model` or `Fine tuning` tabs.", + "id": "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", "properties": { - "humanReviewOperation": { - "description": "The name of the operation triggered by the processed document. This field is populated only when the state is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation returned by ReviewDocument.", + "baseProcessorVersionId": { + "description": "The base processor version ID for the custom model.", "type": "string" }, - "state": { - "description": "The state of human review on the processing request.", + "customModelType": { + "description": "The type of custom model created by the user.", "enum": [ - "STATE_UNSPECIFIED", - "SKIPPED", - "VALIDATION_PASSED", - "IN_PROGRESS", - "ERROR" + "CUSTOM_MODEL_TYPE_UNSPECIFIED", + "VERSIONED_FOUNDATION", + "FINE_TUNED" ], "enumDescriptions": [ - "Human review state is unspecified. Most likely due to an internal error.", - "Human review is skipped for the document. This can happen because human review isn't enabled on the processor or the processing request has been set to skip this document.", - "Human review validation is triggered and passed, so no review is needed.", - "Human review validation is triggered and the document is under review.", - "Some error happened during triggering human review, see the state_message for details." + "The model type is unspecified.", + "The model is a versioned foundation model.", + "The model is a finetuned foundation model." ], "type": "string" - }, - "stateMessage": { - "description": "A message providing more details about the human review state.", - "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata": { - "description": "Metadata of the import document operation.", - "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata", + "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo": { + "description": "Information for a pretrained Google-managed foundation model.", + "id": "GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - }, - "importConfigValidationResults": { - "description": "Validation statuses of the batch documents import config.", - "items": { - "$ref": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult" - }, - "type": "array" - }, - "individualImportStatuses": { - "description": "The list of response details of each document.", - "items": { - "$ref": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus" - }, - "type": "array" + "finetuningAllowed": { + "description": "Whether finetuning is allowed for this base processor version.", + "type": "boolean" }, - "totalDocumentCount": { - "description": "Total number of the documents that are qualified for importing.", + "minTrainLabeledDocuments": { + "description": "The minimum number of labeled documents in the training dataset required for finetuning.", "format": "int32", "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult": { - "description": "The validation status of each import config. Status is set to an error if there are no documents to import in the `import_config`, or `OK` if the operation will try to proceed with at least one document.", - "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult", - "properties": { - "inputGcsSource": { - "description": "The source Cloud Storage URI specified in the import config.", - "type": "string" - }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The validation status of import config." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus": { - "description": "The status of each individual document in the import process.", - "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus", + "GoogleCloudDocumentaiV1beta3PropertyMetadata": { + "description": "Metadata about a property.", + "id": "GoogleCloudDocumentaiV1beta3PropertyMetadata", "properties": { - "inputGcsSource": { - "description": "The source Cloud Storage URI of the document.", - "type": "string" - }, - "outputDocumentId": { - "$ref": "GoogleCloudDocumentaiV1beta3DocumentId", - "description": "The document id of imported document if it was successful, otherwise empty." + "fieldExtractionMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3FieldExtractionMetadata", + "description": "Field extraction metadata on the property." }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status of the importing of the document." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3ImportDocumentsResponse": { - "description": "Response of the import document operation.", - "id": "GoogleCloudDocumentaiV1beta3ImportDocumentsResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata": { - "description": "The long-running operation metadata for the ImportProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", - "description": "The basic metadata for the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse": { - "description": "The response message for the ImportProcessorVersion method.", - "id": "GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse", - "properties": { - "processorVersion": { - "description": "The destination processor version name.", - "type": "string" + "inactive": { + "description": "Whether the property should be considered as \"inactive\".", + "type": "boolean" } }, "type": "object" @@ -6250,6 +8241,43 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiV1beta3SummaryOptions": { + "description": "Metadata for document summarization.", + "id": "GoogleCloudDocumentaiV1beta3SummaryOptions", + "properties": { + "format": { + "description": "The format the summary should be in.", + "enum": [ + "FORMAT_UNSPECIFIED", + "PARAGRAPH", + "BULLETS" + ], + "enumDescriptions": [ + "Default.", + "Format the output in paragraphs.", + "Format the output in bullets." + ], + "type": "string" + }, + "length": { + "description": "How long the summary should be.", + "enum": [ + "LENGTH_UNSPECIFIED", + "BRIEF", + "MODERATE", + "COMPREHENSIVE" + ], + "enumDescriptions": [ + "Default.", + "A brief summary of one or two sentences.", + "A paragraph-length summary.", + "The longest option available." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata": { "description": "The metadata that represents a processor version being created.", "id": "GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata", @@ -6338,6 +8366,17 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata": { + "description": "The long-running operation metadata for the UpdateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata for the long-running operation." + } + }, + "type": "object" + }, "GoogleCloudLocationListLocationsResponse": { "description": "The response message for Locations.ListLocations.", "id": "GoogleCloudLocationListLocationsResponse", diff --git a/DiscoveryJson/documentai.v1beta3.json b/DiscoveryJson/documentai.v1beta3.json index 0d5f5de84fb..3819f4eeb15 100644 --- a/DiscoveryJson/documentai.v1beta3.json +++ b/DiscoveryJson/documentai.v1beta3.json @@ -1289,13 +1289,352 @@ } } } + }, + "schemas": { + "methods": { + "create": { + "description": "Creates a schema.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas", + "httpMethod": "POST", + "id": "documentai.projects.locations.schemas.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+parent}/schemas", + "request": { + "$ref": "GoogleCloudDocumentaiV1beta3NextSchema" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3NextSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a schema.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}", + "httpMethod": "DELETE", + "id": "documentai.projects.locations.schemas.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, any child resources of this Schema will also be deleted. (Otherwise, the request will only work if the Schema has no child resources.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the Schema to be deleted. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a schema.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Schema to get. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3NextSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Schemas.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of schema groups to return. If unspecified, at most `10` Schema will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. We will return the schema groups sorted by creation time. The page token will point to the next Schema.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+parent}/schemas", + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3ListSchemasResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a schema. Editable fields are: - `display_name` - `labels`", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}", + "httpMethod": "PATCH", + "id": "documentai.projects.locations.schemas.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "request": { + "$ref": "GoogleCloudDocumentaiV1beta3NextSchema" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3NextSchema" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "schemaVersions": { + "methods": { + "create": { + "description": "Creates a schema version.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions", + "httpMethod": "POST", + "id": "documentai.projects.locations.schemas.schemaVersions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project and location) under which to create the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+parent}/schemaVersions", + "request": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a schema version.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions/{schemaVersionsId}", + "httpMethod": "DELETE", + "id": "documentai.projects.locations.schemas.schemaVersions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the SchemaVersion to delete. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "generate": { + "description": "Generates a schema version.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions:generate", + "httpMethod": "POST", + "id": "documentai.projects.locations.schemas.schemaVersions.generate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent (project, location and schema) under which to generate the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+parent}/schemaVersions:generate", + "request": { + "$ref": "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a schema version.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions/{schemaVersionsId}", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.schemaVersions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the SchemaVersion to get. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists SchemaVersions.", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions", + "httpMethod": "GET", + "id": "documentai.projects.locations.schemas.schemaVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of SchemaVersion to return. If unspecified, at most `10` SchemaVersion will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. We will return the SchemaVersion sorted by creation time. The page token will point to the next SchemaVersion.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta3/{+parent}/schemaVersions", + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a schema version. Editable fields are: - `display_name` - `labels`", + "flatPath": "v1beta3/projects/{projectsId}/locations/{locationsId}/schemas/{schemasId}/schemaVersions/{schemaVersionsId}", + "httpMethod": "PATCH", + "id": "documentai.projects.locations.schemas.schemaVersions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - display_name. - labels.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta3/{+name}", + "request": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion" + }, + "response": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } } } } }, - "revision": "20251013", + "revision": "20251020", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "CloudAiDocumentaiLabHifiaToolsValidationValidatorInput": { @@ -1920,9 +2259,172 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata": { - "description": "The long-running operation metadata for the EnableProcessor method.", - "id": "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata", + "GoogleCloudDocumentaiUiv1beta3DocumentSchema": { + "description": "The schema defines the output of the processed document by a processor.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchema", + "properties": { + "description": { + "description": "Description of the schema.", + "type": "string" + }, + "displayName": { + "description": "Display name to show to users.", + "type": "string" + }, + "entityTypes": { + "description": "Entity types of the schema.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType" + }, + "type": "array" + }, + "metadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata", + "description": "Metadata of the schema." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType": { + "description": "EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType", + "properties": { + "baseTypes": { + "description": "The entity type that this type is derived from. For now, one and only one should be set.", + "items": { + "type": "string" + }, + "type": "array" + }, + "description": { + "description": "The description of the entity type. Could be used to provide more information about the entity type for model calls.", + "type": "string" + }, + "displayName": { + "description": "User defined name for the type.", + "type": "string" + }, + "entityTypeMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata", + "description": "Metadata for the entity type." + }, + "enumValues": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues", + "description": "If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file." + }, + "name": { + "description": "Name of the type. It must be unique within the schema file and cannot be a \"Common Type\". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.", + "type": "string" + }, + "properties": { + "description": "Description the nested structure, or composition of an entity.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues": { + "description": "Defines the a list of enum values.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues", + "properties": { + "values": { + "description": "The individual values that this enum values type can include.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty": { + "description": "Defines properties that can be part of the entity type.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty", + "properties": { + "description": { + "description": "The description of the property. Could be used to provide more information about the property for model calls.", + "type": "string" + }, + "displayName": { + "description": "User defined name for the property.", + "type": "string" + }, + "method": { + "description": "Specifies how the entity's value is obtained.", + "enum": [ + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" + ], + "enumDescriptions": [ + "Unspecified method. It defaults to `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." + ], + "type": "string" + }, + "name": { + "description": "The name of the property. Follows the same guidelines as the EntityType name.", + "type": "string" + }, + "occurrenceType": { + "description": "Occurrence type limits the number of instances an entity type appears in the document.", + "enum": [ + "OCCURRENCE_TYPE_UNSPECIFIED", + "OPTIONAL_ONCE", + "OPTIONAL_MULTIPLE", + "REQUIRED_ONCE", + "REQUIRED_MULTIPLE" + ], + "enumDescriptions": [ + "Unspecified occurrence type.", + "There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.", + "The entity type will appear zero or multiple times.", + "The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.", + "The entity type will appear once or more times." + ], + "type": "string" + }, + "propertyMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3PropertyMetadata", + "description": "Any additional metadata about the property can be added here." + }, + "valueType": { + "description": "A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata": { + "description": "Metadata for global schema behavior.", + "id": "GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata", + "properties": { + "documentAllowMultipleLabels": { + "description": "If true, on a given page, there can be multiple `document` annotations covering it.", + "type": "boolean" + }, + "documentSplitter": { + "description": "If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be applied to the entire document (classification).", + "type": "boolean" + }, + "prefixedNamingOnProperties": { + "description": "If set, all the nested entities must be prefixed with the parents.", + "type": "boolean" + }, + "skipNamingValidation": { + "description": "If set, we will skip the naming format validation in the schema. So the string values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata": { + "description": "The long-running operation metadata for the EnableProcessor method.", + "id": "GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata", "properties": { "commonMetadata": { "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", @@ -1937,6 +2439,37 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata": { + "description": "Metadata about an entity type.", + "id": "GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata", + "properties": { + "fieldTierMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata", + "description": "Field tier metadata on the property" + }, + "humanReviewLabelingMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata", + "description": "Human review labeling config on the entity." + }, + "humanReviewMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata", + "description": "Human review config on the entity." + }, + "inactive": { + "description": "Whether the entity type should be considered inactive.", + "type": "boolean" + }, + "schemaEditabilityMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata", + "description": "Schema editability metadata on the entity." + }, + "schemaInferenceMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata", + "description": "Schema inference metadata on the entity." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata": { "description": "Metadata of the EvaluateProcessorVersion method.", "id": "GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata", @@ -1959,6 +2492,91 @@ }, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics": { + "description": "Evaluation metrics, either in aggregate or about a specific entity.", + "id": "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics", + "properties": { + "f1Score": { + "description": "The calculated f1 score.", + "format": "float", + "type": "number" + }, + "falseNegativesCount": { + "description": "The amount of false negatives.", + "format": "int32", + "type": "integer" + }, + "falsePositivesCount": { + "description": "The amount of false positives.", + "format": "int32", + "type": "integer" + }, + "groundTruthDocumentCount": { + "description": "The amount of documents with a ground truth occurrence.", + "format": "int32", + "type": "integer" + }, + "groundTruthOccurrencesCount": { + "description": "The amount of occurrences in ground truth documents.", + "format": "int32", + "type": "integer" + }, + "precision": { + "description": "The calculated precision.", + "format": "float", + "type": "number" + }, + "predictedDocumentCount": { + "description": "The amount of documents with a predicted occurrence.", + "format": "int32", + "type": "integer" + }, + "predictedOccurrencesCount": { + "description": "The amount of occurrences in predicted documents.", + "format": "int32", + "type": "integer" + }, + "recall": { + "description": "The calculated recall.", + "format": "float", + "type": "number" + }, + "totalDocumentsCount": { + "description": "The amount of documents that had an occurrence of this label.", + "format": "int32", + "type": "integer" + }, + "truePositivesCount": { + "description": "The amount of true positives.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3EvaluationReference": { + "description": "Gives a short summary of an evaluation, and links to the evaluation itself.", + "id": "GoogleCloudDocumentaiUiv1beta3EvaluationReference", + "properties": { + "aggregateMetrics": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching on." + }, + "aggregateMetricsExact": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EvaluationMetrics", + "description": "An aggregate of the statistics for the evaluation with fuzzy matching off." + }, + "evaluation": { + "description": "The resource name of the evaluation.", + "type": "string" + }, + "operation": { + "description": "The resource name of the Long Running Operation for the evaluation.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata": { "description": "Metadata of the batch export documents operation.", "id": "GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata", @@ -2048,109 +2666,499 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse": { - "description": "Response message associated with the ExportProcessorVersion operation.", - "id": "GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse", + "GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse": { + "description": "Response message associated with the ExportProcessorVersion operation.", + "id": "GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse", + "properties": { + "gcsUri": { + "description": "The Cloud Storage URI containing the output artifacts.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata": { + "description": "Metadata for how this field value is extracted.", + "id": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata", + "properties": { + "entityQuery": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery", + "description": "Entity query config." + }, + "summaryOptions": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SummaryOptions", + "description": "Summary options config." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery": { + "description": "Message for entity query.", + "id": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery", + "properties": { + "userEntityQuery": { + "description": "The original entity query inputed by the user.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata": { + "description": "Metadata for the field tier of a property.", + "id": "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata", + "properties": { + "tierLevel": { + "description": "Integer that indicates the tier of a property. e.g. Invoice has entities that are classified as tier 1 which is the most important, while tier 2 and tier 3 less so. This attribute can be used to filter schema attributes before running eval. e.g. compute F1 score for only tier 1 entities. If not present this attribute should be inferred as 1.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata": { + "description": "Metadata for human review labeling config.", + "id": "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata", + "properties": { + "enableNormalizationEditing": { + "description": "Whether to enable normalization editing.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata": { + "description": "Metadata for Human Review config.", + "id": "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata", + "properties": { + "confidenceThreshold": { + "description": "The confidence threshold if human review validation is enabled.", + "format": "float", + "type": "number" + }, + "enableValidation": { + "description": "Whether to enable human review validation.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata": { + "description": "Metadata of the import document operation.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + }, + "importConfigValidationResults": { + "description": "Validation statuses of the batch documents import config.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult" + }, + "type": "array" + }, + "individualImportStatuses": { + "description": "The list of response details of each document.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus" + }, + "type": "array" + }, + "totalDocumentCount": { + "description": "Total number of the documents that are qualified for importing.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult": { + "description": "The validation status of each import config. Status is set to an error if there are no documents to import in the `import_config`, or `OK` if the operation will try to proceed with at least one document.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult", + "properties": { + "inputGcsSource": { + "description": "The source Cloud Storage URI specified in the import config.", + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The validation status of import config." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus": { + "description": "The status of each individual document in the import process.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus", + "properties": { + "inputGcsSource": { + "description": "The source Cloud Storage URI of the document.", + "type": "string" + }, + "outputDocumentId": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentId", + "description": "The document id of imported document if it was successful, otherwise empty." + }, + "outputGcsDestination": { + "description": "The output_gcs_destination of the processed document if it was successful, otherwise empty.", + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of the importing of the document." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse": { + "description": "Response of the import document operation.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata": { + "description": "The long-running operation metadata for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata for the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse": { + "description": "The response message for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The destination processor version name.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3Processor": { + "description": "The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.", + "id": "GoogleCloudDocumentaiUiv1beta3Processor", + "properties": { + "activeSchemaVersion": { + "description": "Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}", + "type": "string" + }, + "createTime": { + "description": "Output only. The time the processor was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "defaultProcessorVersion": { + "description": "The default processor version.", + "type": "string" + }, + "displayName": { + "description": "The display name of the processor.", + "type": "string" + }, + "kmsKeyName": { + "description": "The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK scenarios.", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. The resource name of the processor. Format: `projects/{project}/locations/{location}/processors/{processor}`", + "readOnly": true, + "type": "string" + }, + "processEndpoint": { + "description": "Output only. Immutable. The http endpoint that can be called to invoke processing.", + "readOnly": true, + "type": "string" + }, + "processorVersionAliases": { + "description": "Output only. The processor version aliases.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias" + }, + "readOnly": true, + "type": "array" + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "state": { + "description": "Output only. The state of the processor.", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED", + "ENABLING", + "DISABLING", + "CREATING", + "FAILED", + "DELETING" + ], + "enumDescriptions": [ + "The processor is in an unspecified state.", + "The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.", + "The processor is disabled.", + "The processor is being enabled, will become `ENABLED` if successful.", + "The processor is being disabled, will become `DISABLED` if successful.", + "The processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet.", + "The processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled.", + "The processor is being deleted, will be removed if successful." + ], + "readOnly": true, + "type": "string" + }, + "type": { + "description": "The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see FetchProcessorTypes.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ProcessorVersion": { + "description": "A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersion", + "properties": { + "createTime": { + "description": "Output only. The time the processor version was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deploymentAllowed": { + "description": "Output only. Denotes that this `ProcessorVersion` can be deployed and undeployed.", + "readOnly": true, + "type": "boolean" + }, + "deprecationInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo", + "description": "Output only. If set, information about the eventual deprecation of this version.", + "readOnly": true + }, + "displayName": { + "description": "The display name of the processor version.", + "type": "string" + }, + "documentSchema": { + "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentSchema", + "description": "Output only. The schema of the processor version. Describes the output.", + "readOnly": true + }, + "genAiModelInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo", + "description": "Output only. Information about Generative AI model-based processor versions.", + "readOnly": true + }, + "googleManaged": { + "description": "Output only. Denotes that this `ProcessorVersion` is managed by Google.", + "readOnly": true, + "type": "boolean" + }, + "kmsKeyName": { + "description": "Output only. The KMS key name used for encryption.", + "readOnly": true, + "type": "string" + }, + "kmsKeyVersionName": { + "description": "Output only. The KMS key version with which data is encrypted.", + "readOnly": true, + "type": "string" + }, + "latestEvaluation": { + "$ref": "GoogleCloudDocumentaiUiv1beta3EvaluationReference", + "description": "Output only. The most recently invoked evaluation for the processor version.", + "readOnly": true + }, + "modelType": { + "description": "Output only. The model type of this processor version.", + "enum": [ + "MODEL_TYPE_UNSPECIFIED", + "MODEL_TYPE_GENERATIVE", + "MODEL_TYPE_CUSTOM" + ], + "enumDescriptions": [ + "The processor version has unspecified model type.", + "The processor version has generative model type.", + "The processor version has custom model type." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The resource name of the processor version. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`", + "type": "string" + }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "schema": { + "$ref": "GoogleCloudDocumentaiUiv1beta3Schema", + "description": "The schema of the processor version. Describes the output." + }, + "state": { + "description": "Output only. The state of the processor version.", + "enum": [ + "STATE_UNSPECIFIED", + "DEPLOYED", + "DEPLOYING", + "UNDEPLOYED", + "UNDEPLOYING", + "CREATING", + "DELETING", + "FAILED", + "IMPORTING" + ], + "enumDescriptions": [ + "The processor version is in an unspecified state.", + "The processor version is deployed and can be used for processing.", + "The processor version is being deployed.", + "The processor version is not deployed and cannot be used for processing.", + "The processor version is being undeployed.", + "The processor version is being created.", + "The processor version is being deleted.", + "The processor version failed and is in an indeterminate state.", + "The processor version is being imported." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias": { + "description": "Contains the alias and the aliased resource name of processor version.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias", "properties": { - "gcsUri": { - "description": "The Cloud Storage URI containing the output artifacts.", + "alias": { + "description": "The alias in the form of `processor_version` resource name.", + "type": "string" + }, + "processorVersion": { + "description": "The resource name of aliased processor version.", "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata": { - "description": "Metadata of the import document operation.", - "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo": { + "description": "Information about the upcoming deprecation of this processor version.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - }, - "importConfigValidationResults": { - "description": "Validation statuses of the batch documents import config.", - "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult" - }, - "type": "array" - }, - "individualImportStatuses": { - "description": "The list of response details of each document.", - "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus" - }, - "type": "array" + "deprecationTime": { + "description": "The time at which this processor version will be deprecated.", + "format": "google-datetime", + "type": "string" }, - "totalDocumentCount": { - "description": "Total number of the documents that are qualified for importing.", - "format": "int32", - "type": "integer" + "replacementProcessorVersion": { + "description": "If set, the processor version that will be used as a replacement.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult": { - "description": "The validation status of each import config. Status is set to an error if there are no documents to import in the `import_config`, or `OK` if the operation will try to proceed with at least one document.", - "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo": { + "description": "Information about Generative AI model-based processor versions.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo", "properties": { - "inputGcsSource": { - "description": "The source Cloud Storage URI specified in the import config.", - "type": "string" + "customGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", + "description": "Information for a custom Generative AI model created by the user." }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The validation status of import config." + "foundationGenAiModelInfo": { + "$ref": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", + "description": "Information for a pretrained Google-managed foundation model." } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus": { - "description": "The status of each individual document in the import process.", - "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo": { + "description": "Information for a custom Generative AI model created by the user. These are created with `Create New Version` in either the `Call foundation model` or `Fine tuning` tabs.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo", "properties": { - "inputGcsSource": { - "description": "The source Cloud Storage URI of the document.", + "baseProcessorVersionId": { + "description": "The base processor version ID for the custom model.", "type": "string" }, - "outputDocumentId": { - "$ref": "GoogleCloudDocumentaiUiv1beta3DocumentId", - "description": "The document id of imported document if it was successful, otherwise empty." - }, - "outputGcsDestination": { - "description": "The output_gcs_destination of the processed document if it was successful, otherwise empty.", + "customModelType": { + "description": "The type of custom model created by the user.", + "enum": [ + "CUSTOM_MODEL_TYPE_UNSPECIFIED", + "VERSIONED_FOUNDATION", + "FINE_TUNED" + ], + "enumDescriptions": [ + "The model type is unspecified.", + "The model is a versioned foundation model.", + "The model is a finetuned foundation model." + ], "type": "string" - }, - "status": { - "$ref": "GoogleRpcStatus", - "description": "The status of the importing of the document." } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse": { - "description": "Response of the import document operation.", - "id": "GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse", - "properties": {}, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata": { - "description": "The long-running operation metadata for the ImportProcessorVersion method.", - "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata", + "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo": { + "description": "Information for a pretrained Google-managed foundation model.", + "id": "GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo", "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata for the long-running operation." + "finetuningAllowed": { + "description": "Whether finetuning is allowed for this base processor version.", + "type": "boolean" + }, + "minTrainLabeledDocuments": { + "description": "The minimum number of labeled documents in the training dataset required for finetuning.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse": { - "description": "The response message for the ImportProcessorVersion method.", - "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse", + "GoogleCloudDocumentaiUiv1beta3PropertyMetadata": { + "description": "Metadata about a property.", + "id": "GoogleCloudDocumentaiUiv1beta3PropertyMetadata", "properties": { - "processorVersion": { - "description": "The destination processor version name.", - "type": "string" + "fieldExtractionMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata", + "description": "Field extraction metadata on the property." + }, + "fieldTierMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3FieldTierMetadata", + "description": "Field tier metadata on the property" + }, + "humanReviewLabelingMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata", + "description": "Human review labeling config on the property." + }, + "humanReviewMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata", + "description": "Human review validation config on the property." + }, + "inactive": { + "description": "Whether the property should be considered as \"inactive\".", + "type": "boolean" + }, + "schemaEditabilityMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata", + "description": "Schema editability metadata on the property." + }, + "schemaInferenceMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata", + "description": "Schema inference metadata on the property." } }, "type": "object" @@ -2257,59 +3265,192 @@ "BASE_OCR_REVISION" ], "enumDescriptions": [ - "Unspecified case, fall back to read the `LATEST_HUMAN_REVIEW`.", - "The latest revision made by a human.", - "The latest revision based on timestamp.", - "The first (OCR) revision." + "Unspecified case, fall back to read the `LATEST_HUMAN_REVIEW`.", + "The latest revision made by a human.", + "The latest revision based on timestamp.", + "The first (OCR) revision." + ], + "type": "string" + }, + "revisionId": { + "description": "Reads the revision given by the id.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata": { + "description": "Metadata of the sample documents operation.", + "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long-running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse": { + "description": "Response of the sample documents operation.", + "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse", + "properties": { + "sampleTestStatus": { + "$ref": "GoogleRpcStatus", + "description": "The status of sampling documents in test split." + }, + "sampleTrainingStatus": { + "$ref": "GoogleRpcStatus", + "description": "The status of sampling documents in training split." + }, + "selectedDocuments": { + "description": "The result of the sampling process.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument": { + "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument", + "properties": { + "documentId": { + "description": "An internal identifier for document.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3Schema": { + "description": "The schema defines the output of the processed document by a processor.", + "id": "GoogleCloudDocumentaiUiv1beta3Schema", + "properties": { + "description": { + "description": "Description of the schema.", + "type": "string" + }, + "displayName": { + "description": "Display name to show to users.", + "type": "string" + }, + "entityTypes": { + "description": "Entity types of the schema.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEntityType" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata": { + "description": "Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these fields has no impact on the backend.", + "id": "GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata", + "properties": { + "editable": { + "description": "Explicit flag that controls whether the label is editable.", + "type": "boolean" + }, + "processorVersions": { + "description": "Full resource name of processor versions that contain this label. e.g. `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3SchemaEntityType": { + "description": "EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.", + "id": "GoogleCloudDocumentaiUiv1beta3SchemaEntityType", + "properties": { + "baseType": { + "type": "string" + }, + "description": { + "description": "Description of the entity type.", + "type": "string" + }, + "enumValues": { + "description": "If specified, lists all the possible values for this entity.", + "items": { + "type": "string" + }, + "type": "array" + }, + "hide": { + "description": "If the entity type is hidden in the schema. This provides the functionality to temporally \"disable\" an entity without deleting it.", + "type": "boolean" + }, + "method": { + "description": "Specifies how the entity's value is obtained.", + "enum": [ + "METHOD_UNSPECIFIED", + "EXTRACT", + "DERIVE" + ], + "enumDescriptions": [ + "Unspecified method. It defaults to `EXTRACT`.", + "The entity's value is directly extracted as-is from the document text.", + "The entity's value is derived through inference and is not necessarily an exact text extraction from the document." ], "type": "string" }, - "revisionId": { - "description": "Reads the revision given by the id.", + "occurrenceType": { + "description": "Occurrence type limits the number of times an entity type appears in the document.", + "enum": [ + "OCCURRENCE_TYPE_UNSPECIFIED", + "OPTIONAL_ONCE", + "OPTIONAL_MULTIPLE", + "REQUIRED_ONCE", + "REQUIRED_MULTIPLE" + ], + "enumDescriptions": [ + "Unspecified occurrence type.", + "The entity type will appear zero times or once.", + "The entity type will appear zero or multiple times.", + "The entity type will only appear exactly once.", + "The entity type will appear once or more times." + ], "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata": { - "description": "Metadata of the sample documents operation.", - "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long-running operation." - } - }, - "type": "object" - }, - "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse": { - "description": "Response of the sample documents operation.", - "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse", - "properties": { - "sampleTestStatus": { - "$ref": "GoogleRpcStatus", - "description": "The status of sampling documents in test split." - }, - "sampleTrainingStatus": { - "$ref": "GoogleRpcStatus", - "description": "The status of sampling documents in training split." }, - "selectedDocuments": { - "description": "The result of the sampling process.", + "properties": { + "description": "Describing the nested structure of an entity. An EntityType may consist of several other EntityTypes. For example, in a document there can be an EntityType `ID`, which consists of EntityType `name` and `address`, with corresponding attributes, such as TEXT for both types and ONCE for occurrence types.", "items": { - "$ref": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument" + "$ref": "GoogleCloudDocumentaiUiv1beta3SchemaEntityType" }, "type": "array" + }, + "source": { + "description": "Source of this entity type.", + "enum": [ + "SOURCE_UNSPECIFIED", + "PREDEFINED", + "USER_INPUT" + ], + "enumDescriptions": [ + "Unspecified source.", + "The entity type is in the predefined schema of a pretrained version of a processor.", + "The entity type is added by the users either: - during an uptraining of an existing processor, or - during the process of creating a customized processor." + ], + "type": "string" + }, + "type": { + "description": "Name of the type. It must satisfy the following constraints: 1. Must be unique within the set of same level types (with case-insensitive match). 2. Maximum 64 characters. 3. Must start with a letter. 4. Allowed characters: ASCII letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation characters: * underscore '_' (recommended) * hyphen '-' (allowed, not recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace characters are not allowed. 5. Cannot end with a punctuation character. 6. Cannot contain the following restricted strings: \"google\", \"DocumentAI\" (case-insensitive match). 7. A slash character '/' is reserved as a separator in flattened representations of nested entity types (e.g., \"line_item/amount\") in which case each part (e.g., \"line_item\", \"amount\") must comply with the rules defined above. We recommend using the snake case (\"snake_case\") in entity type names.", + "type": "string" } }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument": { - "id": "GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument", + "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata": { + "description": "Metadata for schema inference. Only used on dataset.schema for schema inference, can be safely ignored elsewhere.", + "id": "GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata", "properties": { - "documentId": { - "description": "An internal identifier for document.", - "type": "string" + "inferred": { + "description": "True if is inferred by schema inference.", + "type": "boolean" } }, "type": "object" @@ -2331,6 +3472,43 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3SummaryOptions": { + "description": "Metadata for document summarization.", + "id": "GoogleCloudDocumentaiUiv1beta3SummaryOptions", + "properties": { + "format": { + "description": "The format the summary should be in.", + "enum": [ + "FORMAT_UNSPECIFIED", + "PARAGRAPH", + "BULLETS" + ], + "enumDescriptions": [ + "Default.", + "Format the output in paragraphs.", + "Format the output in bullets." + ], + "type": "string" + }, + "length": { + "description": "How long the summary should be.", + "enum": [ + "LENGTH_UNSPECIFIED", + "BRIEF", + "MODERATE", + "COMPREHENSIVE" + ], + "enumDescriptions": [ + "Default.", + "A brief summary of one or two sentences.", + "A paragraph-length summary.", + "The longest option available." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata": { "description": "The metadata that represents a processor version being created.", "id": "GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata", @@ -2441,6 +3619,17 @@ }, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata": { + "description": "The long-running operation metadata for the UpdateProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata for the long-running operation." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1BatchProcessMetadata": { "description": "The long-running operation metadata for BatchProcessDocuments.", "id": "GoogleCloudDocumentaiV1BatchProcessMetadata", @@ -4057,12 +5246,16 @@ "description": "Validation result for a single validation rule.", "id": "GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult", "properties": { + "rule": { + "description": "Optional. The name of the rule resource that is used for validation. Format: `projects/{project}/locations/{location}/rules/{rule}`", + "type": "string" + }, "ruleDescription": { "description": "The description of the validation rule.", "type": "string" }, "ruleName": { - "description": "The name of the validation rule.", + "description": "The display name of the validation rule.", "type": "string" }, "validationDetails": { @@ -5386,6 +6579,20 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3Documents": { + "description": "A set of inline documents.", + "id": "GoogleCloudDocumentaiV1beta3Documents", + "properties": { + "documents": { + "description": "The list of documents.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3Document" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata": { "description": "The long-running operation metadata for the EnableProcessor method.", "id": "GoogleCloudDocumentaiV1beta3EnableProcessorMetadata", @@ -5738,6 +6945,63 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest": { + "description": "Request message for GenerateSchemaVersion.", + "id": "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest", + "properties": { + "baseSchemaVersion": { + "description": "The base schema version name to use for the schema generation. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "type": "string" + }, + "gcsDocuments": { + "$ref": "GoogleCloudDocumentaiV1beta3GcsDocuments", + "description": "The set of documents placed on Cloud Storage." + }, + "gcsPrefix": { + "$ref": "GoogleCloudDocumentaiV1beta3GcsPrefix", + "description": "The common prefix of documents placed on Cloud Storage." + }, + "generateSchemaVersionParams": { + "$ref": "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams", + "description": "Optional. User specified parameters for the schema generation." + }, + "inlineDocuments": { + "$ref": "GoogleCloudDocumentaiV1beta3Documents", + "description": "The set of documents specified inline." + }, + "rawDocuments": { + "$ref": "GoogleCloudDocumentaiV1beta3RawDocuments", + "description": "The set of raw documents." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams": { + "description": "The parameters for the schema generation.", + "id": "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams", + "properties": { + "history": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaGenerationHistory", + "description": "Optional. Previous prompt-answers in a chronological order." + }, + "prompt": { + "description": "Optional. The prompt used for the schema generation.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse": { + "description": "Response message for GenerateSchemaVersion.", + "id": "GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse", + "properties": { + "schemaVersion": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion", + "description": "The schema version generated by the model." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3GetDocumentResponse": { "id": "GoogleCloudDocumentaiV1beta3GetDocumentResponse", "properties": { @@ -6080,6 +7344,76 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse": { + "description": "Response message for ListSchemaVersions.", + "id": "GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next SchemaVersion, otherwise empty.", + "type": "string" + }, + "schemaVersions": { + "description": "The list of SchemaVersions.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3ListSchemasResponse": { + "description": "Response message for ListSchemas.", + "id": "GoogleCloudDocumentaiV1beta3ListSchemasResponse", + "properties": { + "nextPageToken": { + "description": "Points to the next Schema, otherwise empty.", + "type": "string" + }, + "schemas": { + "description": "The list of Schemas.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3NextSchema" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3NextSchema": { + "description": "NextSchema is a collection of SchemaVersions.", + "id": "GoogleCloudDocumentaiV1beta3NextSchema", + "properties": { + "createTime": { + "description": "Output only. The time when the Schema was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. The user-defined name of the Schema.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The GCP labels for the Schema.", + "type": "object" + }, + "name": { + "description": "Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`", + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the Schema was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3NormalizedVertex": { "description": "A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.", "id": "GoogleCloudDocumentaiV1beta3NormalizedVertex", @@ -6353,6 +7687,10 @@ "description": "The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.", "id": "GoogleCloudDocumentaiV1beta3Processor", "properties": { + "activeSchemaVersion": { + "description": "Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}", + "type": "string" + }, "createTime": { "description": "Output only. The time the processor was created.", "format": "google-datetime", @@ -6733,6 +8071,20 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3RawDocuments": { + "description": "Specifies a set of raw documents.", + "id": "GoogleCloudDocumentaiV1beta3RawDocuments", + "properties": { + "documents": { + "description": "Specifies raw document content and mime type.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3RawDocument" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata": { "description": "The long-running operation metadata for the ReviewDocument method.", "id": "GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata", @@ -6878,6 +8230,71 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3SchemaGenerationHistory": { + "description": "The history of schema generation iterations.", + "id": "GoogleCloudDocumentaiV1beta3SchemaGenerationHistory", + "properties": { + "iterations": { + "description": "Required. Previous prompt-answers in a chronological order.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaGenerationIteration" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3SchemaGenerationIteration": { + "description": "A single iteration of the schema generation.", + "id": "GoogleCloudDocumentaiV1beta3SchemaGenerationIteration", + "properties": { + "adjustedSchema": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion", + "description": "Optional. The previous schema version adjusted by the model." + }, + "generatedSchema": { + "$ref": "GoogleCloudDocumentaiV1beta3SchemaVersion", + "description": "Required. The schema version generated by the model." + }, + "prompt": { + "description": "Optional. The prompt used for the iteration.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3SchemaVersion": { + "description": "SchemaVersion is a version of the Schema which is created in SchemaGroup.", + "id": "GoogleCloudDocumentaiV1beta3SchemaVersion", + "properties": { + "createTime": { + "description": "Output only. The time when the SchemaVersion was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Optional. The user-defined name of the SchemaVersion.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The GCP labels for the SchemaVersion.", + "type": "object" + }, + "name": { + "description": "Identifier. The resource name of the SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}`", + "type": "string" + }, + "schema": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentSchema", + "description": "Required. The schema of the SchemaVersion." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata": { "description": "The long-running operation metadata for the SetDefaultProcessorVersion method.", "id": "GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata", @@ -7121,6 +8538,17 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata": { + "description": "The long-running operation metadata for the UpdateProcessorVersion method.", + "id": "GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiV1beta3CommonOperationMetadata", + "description": "The basic metadata for the long-running operation." + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3Vertex": { "description": "A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.", "id": "GoogleCloudDocumentaiV1beta3Vertex", diff --git a/DiscoveryJson/firebaseapphosting.v1beta.json b/DiscoveryJson/firebaseapphosting.v1beta.json index 7dd43d87998..a7df26f6cea 100644 --- a/DiscoveryJson/firebaseapphosting.v1beta.json +++ b/DiscoveryJson/firebaseapphosting.v1beta.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1103,7 +1103,7 @@ } } }, - "revision": "20251020", + "revision": "20251023", "rootUrl": "https://firebaseapphosting.googleapis.com/", "schemas": { "ArchiveSource": { diff --git a/DiscoveryJson/gkeonprem.v1.json b/DiscoveryJson/gkeonprem.v1.json index c61d36bbec8..7d394bb6a96 100644 --- a/DiscoveryJson/gkeonprem.v1.json +++ b/DiscoveryJson/gkeonprem.v1.json @@ -618,6 +618,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -1514,6 +1519,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -1586,6 +1596,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -1711,6 +1726,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -2128,6 +2148,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -2642,6 +2667,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -3084,6 +3114,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -3105,7 +3140,7 @@ } } }, - "revision": "20250908", + "revision": "20251020", "rootUrl": "https://gkeonprem.googleapis.com/", "schemas": { "Authorization": { @@ -4797,6 +4832,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/DiscoveryJson/ids.v1.json b/DiscoveryJson/ids.v1.json index 8603ea0c051..56b6ba9cee4 100644 --- a/DiscoveryJson/ids.v1.json +++ b/DiscoveryJson/ids.v1.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -476,6 +476,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -493,7 +498,7 @@ } } }, - "revision": "20250320", + "revision": "20251020", "rootUrl": "https://ids.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -673,6 +678,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/DiscoveryJson/parametermanager.v1.json b/DiscoveryJson/parametermanager.v1.json index 94c3cf9d5c0..bcbc7730874 100644 --- a/DiscoveryJson/parametermanager.v1.json +++ b/DiscoveryJson/parametermanager.v1.json @@ -371,7 +371,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -821,7 +821,7 @@ } } }, - "revision": "20251015", + "revision": "20251025", "rootUrl": "https://parametermanager.googleapis.com/", "schemas": { "Empty": { diff --git a/DiscoveryJson/paymentsresellersubscription.v1.json b/DiscoveryJson/paymentsresellersubscription.v1.json index 23b67da27bf..0dfb6ef51b3 100644 --- a/DiscoveryJson/paymentsresellersubscription.v1.json +++ b/DiscoveryJson/paymentsresellersubscription.v1.json @@ -586,7 +586,7 @@ } } }, - "revision": "20251019", + "revision": "20251026", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "Amount": { @@ -1001,6 +1001,21 @@ "entitleIntent": { "$ref": "EntitleSubscriptionIntent", "description": "The request to entitle a subscription." + }, + "intentOptions": { + "$ref": "IntentPayloadIntentOptions", + "description": "Optional. The additional features for the intent." + } + }, + "type": "object" + }, + "IntentPayloadIntentOptions": { + "description": "The options for the intent.", + "id": "IntentPayloadIntentOptions", + "properties": { + "enableOfferOverride": { + "description": "Optional. If true, Google may use a different product and promotion id from the ones in the `create_intent` based on the user's eligibility. Only applicable for certain YouTube free trial offers.", + "type": "boolean" } }, "type": "object" diff --git a/DiscoveryJson/retail.v2alpha.json b/DiscoveryJson/retail.v2alpha.json index 062e69f344c..3f1aec1b70d 100644 --- a/DiscoveryJson/retail.v2alpha.json +++ b/DiscoveryJson/retail.v2alpha.json @@ -2874,7 +2874,7 @@ } } }, - "revision": "20251002", + "revision": "20251023", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5123,7 +5123,8 @@ "id": "GoogleCloudRetailV2alphaExportProductsRequest", "properties": { "filter": { - "description": "A filtering expression to specify restrictions on returned events. The expression is a sequence of terms. Each term applies a restriction to the returned products. Use this expression to restrict results to a specific time range, tag, or stock state or to filter products by product type. For example, `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" lastModifiedTime<\"2012-04-23T18:25:43.511Z\" productType=primary` We expect only four types of fields: * `lastModifiedTime`: This can be specified twice, once with a less than operator and once with a greater than operator. The `lastModifiedTime` restriction should result in one, contiguous, valid, last-modified, time range. * `productType`: Supported values are `primary` and `variant`. The Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and must be separated from the `productType` values by a space. * `availability`: Supported values are `IN_STOCK`, `OUT_OF_STOCK`, `PREORDER`, and `BACKORDER`. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and must be separated from the `availability` values by a space. * `Tag expressions`: Restricts output to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and the operators are separated from the tag values by a space. Also supported is '`-\"tagA\"`', which is equivalent to '`NOT \"tagA\"`'. Tag values must be double-quoted, UTF-8 encoded strings and have a size limit of 1,000 characters. Some examples of valid filters expressions: * Example 1: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" lastModifiedTime < \"2012-04-23T18:30:43.511Z\"` * Example 2: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" productType = \"variant\"` * Example 3: `tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") productType = \"primary\" lastModifiedTime < \"2018-04-23T18:30:43.511Z\"` * Example 4: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\"` * Example 5: `availability = (IN_STOCK OR BACKORDER)`", + "deprecated": true, + "description": "This field is deprecated. Any filter provided will be ignored.", "type": "string" }, "outputConfig": { diff --git a/DiscoveryJson/retail.v2beta.json b/DiscoveryJson/retail.v2beta.json index 15e967e8dfe..f3e3a8d6091 100644 --- a/DiscoveryJson/retail.v2beta.json +++ b/DiscoveryJson/retail.v2beta.json @@ -2498,7 +2498,7 @@ } } }, - "revision": "20251002", + "revision": "20251023", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5395,7 +5395,8 @@ "id": "GoogleCloudRetailV2betaExportProductsRequest", "properties": { "filter": { - "description": "A filtering expression to specify restrictions on returned events. The expression is a sequence of terms. Each term applies a restriction to the returned products. Use this expression to restrict results to a specific time range, tag, or stock state or to filter products by product type. For example, `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" lastModifiedTime<\"2012-04-23T18:25:43.511Z\" productType=primary` We expect only four types of fields: * `lastModifiedTime`: This can be specified twice, once with a less than operator and once with a greater than operator. The `lastModifiedTime` restriction should result in one, contiguous, valid, last-modified, time range. * `productType`: Supported values are `primary` and `variant`. The Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and must be separated from the `productType` values by a space. * `availability`: Supported values are `IN_STOCK`, `OUT_OF_STOCK`, `PREORDER`, and `BACKORDER`. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and must be separated from the `availability` values by a space. * `Tag expressions`: Restricts output to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and the operators are separated from the tag values by a space. Also supported is '`-\"tagA\"`', which is equivalent to '`NOT \"tagA\"`'. Tag values must be double-quoted, UTF-8 encoded strings and have a size limit of 1,000 characters. Some examples of valid filters expressions: * Example 1: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" lastModifiedTime < \"2012-04-23T18:30:43.511Z\"` * Example 2: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" productType = \"variant\"` * Example 3: `tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") productType = \"primary\" lastModifiedTime < \"2018-04-23T18:30:43.511Z\"` * Example 4: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\"` * Example 5: `availability = (IN_STOCK OR BACKORDER)`", + "deprecated": true, + "description": "This field is deprecated. Any filter provided will be ignored.", "type": "string" }, "outputConfig": { diff --git a/DiscoveryJson/securitycenter.v1.json b/DiscoveryJson/securitycenter.v1.json index 11737fea166..d26dc0fa091 100644 --- a/DiscoveryJson/securitycenter.v1.json +++ b/DiscoveryJson/securitycenter.v1.json @@ -1769,6 +1769,7 @@ ] }, "updateOrganizationSettings": { + "deprecated": true, "description": "Updates an organization's settings.", "flatPath": "v1/organizations/{organizationsId}/organizationSettings", "httpMethod": "PATCH", @@ -5943,7 +5944,7 @@ } } }, - "revision": "20251017", + "revision": "20251024", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { diff --git a/DiscoveryJson/securitycenter.v1beta1.json b/DiscoveryJson/securitycenter.v1beta1.json index 372e732e180..66bff3130df 100644 --- a/DiscoveryJson/securitycenter.v1beta1.json +++ b/DiscoveryJson/securitycenter.v1beta1.json @@ -150,6 +150,7 @@ ] }, "updateOrganizationSettings": { + "deprecated": true, "description": "Updates an organization's settings.", "flatPath": "v1beta1/organizations/{organizationsId}/organizationSettings", "httpMethod": "PATCH", @@ -918,7 +919,7 @@ } } }, - "revision": "20251017", + "revision": "20251024", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { diff --git a/DiscoveryJson/serviceusage.v1beta1.json b/DiscoveryJson/serviceusage.v1beta1.json index 84581cc1b71..5b575e00238 100644 --- a/DiscoveryJson/serviceusage.v1beta1.json +++ b/DiscoveryJson/serviceusage.v1beta1.json @@ -166,6 +166,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1beta1/operations", @@ -964,7 +969,7 @@ } } }, - "revision": "20250919", + "revision": "20251021", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -1781,6 +1786,22 @@ }, "type": "object" }, + "ContentSecurityPolicy": { + "description": "Content Security Policy contains the content security related policy of a resource.", + "id": "ContentSecurityPolicy", + "properties": { + "mcpContentSecurity": { + "$ref": "ContentSecurity", + "description": "mcp_content_security contains the content security related settings at resource level for MCP traffic." + }, + "name": { + "description": "Output only. The resource name of the policy. Only the `default` policy is supported. We allow the following formats: `projects/{PROJECT_NUMBER}/contentSecurityPolicies/default`, `projects/{PROJECT_ID}/contentSecurityPolicies/default`, We only support project level content security policy for now.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ContentSecurityProvider": { "description": "ContentSecurityProvider contains the name of content security provider.", "id": "ContentSecurityProvider", @@ -2878,13 +2899,6 @@ "description": "Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.", "id": "GoogleApiServiceusageV2betaConsumerPolicy", "properties": { - "annotations": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)", - "type": "object" - }, "createTime": { "description": "Output only. The time the policy was created. For singleton policies, this is the first touch of the policy.", "format": "google-datetime", @@ -3331,6 +3345,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -3463,10 +3484,6 @@ "description": "MCP Consumer Policy is a set of rules that define MCP related policy for a cloud resource hierarchy.", "id": "McpPolicy", "properties": { - "contentSecurity": { - "$ref": "ContentSecurity", - "description": "ContentSecurity contains the content security related fields of a MCP policy." - }, "createTime": { "description": "Output only. The time the policy was created. For singleton policies (such as the `default` policy), this is the first touch of the policy.", "format": "google-datetime", @@ -4669,6 +4686,12 @@ "properties": {}, "type": "object" }, + "UpdateContentSecurityPolicyMetadata": { + "description": "Metadata for the `UpdateContentSecurityPolicy` method.", + "id": "UpdateContentSecurityPolicyMetadata", + "properties": {}, + "type": "object" + }, "UpdateMcpPolicyMetadata": { "description": "Metadata for the `UpdateMcpPolicy` method.", "id": "UpdateMcpPolicyMetadata", diff --git a/DiscoveryJson/sqladmin.v1.json b/DiscoveryJson/sqladmin.v1.json index b0caf5474a6..d87f41bf9c6 100644 --- a/DiscoveryJson/sqladmin.v1.json +++ b/DiscoveryJson/sqladmin.v1.json @@ -962,13 +962,13 @@ ], "parameters": { "instance": { - "description": "The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.", + "description": "Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.", "location": "path", "required": true, "type": "string" }, "project": { - "description": "Project ID of the source as well as the clone Cloud SQL instance.", + "description": "Required. Project ID of the source as well as the clone Cloud SQL instance.", "location": "path", "required": true, "type": "string" @@ -2685,7 +2685,7 @@ } } }, - "revision": "20251006", + "revision": "20251019", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -3626,7 +3626,7 @@ "type": "array" }, "destinationInstanceName": { - "description": "Name of the Cloud SQL instance to be created as a clone.", + "description": "Required. Name of the Cloud SQL instance to be created as a clone.", "type": "string" }, "kind": { @@ -5681,7 +5681,7 @@ "properties": { "cloneContext": { "$ref": "CloneContext", - "description": "Contains details about the clone operation." + "description": "Required. Contains details about the clone operation." } }, "type": "object" @@ -7421,6 +7421,20 @@ "description": "Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.", "type": "boolean" }, + "dataApiAccess": { + "description": "This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default.", + "enum": [ + "DATA_API_ACCESS_UNSPECIFIED", + "DISALLOW_DATA_API", + "ALLOW_DATA_API" + ], + "enumDescriptions": [ + "Unspecified, effectively the same as `DISALLOW_DATA_API`.", + "Disallow using Data API to connect to the instance.", + "Allow using Data API to connect to the instance. For private IP instances, this will allow authorized users to access the instance from the public internet." + ], + "type": "string" + }, "dataCacheConfig": { "$ref": "DataCacheConfig", "description": "Configuration for data cache." diff --git a/DiscoveryJson/storagebatchoperations.v1.json b/DiscoveryJson/storagebatchoperations.v1.json index 0d1af224e39..76f3188b9eb 100644 --- a/DiscoveryJson/storagebatchoperations.v1.json +++ b/DiscoveryJson/storagebatchoperations.v1.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -487,7 +487,7 @@ } } }, - "revision": "20251015", + "revision": "20251022", "rootUrl": "https://storagebatchoperations.googleapis.com/", "schemas": { "Bucket": { diff --git a/DiscoveryJson/vpcaccess.v1.json b/DiscoveryJson/vpcaccess.v1.json index e7fabfdd5f3..c28938f128e 100644 --- a/DiscoveryJson/vpcaccess.v1.json +++ b/DiscoveryJson/vpcaccess.v1.json @@ -119,7 +119,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", + "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -373,6 +373,11 @@ "description": "The standard list page token.", "location": "query", "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}/operations", @@ -390,7 +395,7 @@ } } }, - "revision": "20250916", + "revision": "20251021", "rootUrl": "https://vpcaccess.googleapis.com/", "schemas": { "Connector": { @@ -521,6 +526,13 @@ "$ref": "Operation" }, "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.cs b/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.cs index 5ba843b8bff..d6bd7dcb569 100644 --- a/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.cs +++ b/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.cs @@ -1034,10 +1034,15 @@ protected override void InitParameters() /// /// Update an operation in an API version. The following fields in the ApiOperation resource can /// be updated: * details.description * details.documentation * details.http_operation.path * - /// details.http_operation.method * details.deprecated * attributes The update_mask should be - /// used to specify the fields being updated. An operation can be updated only if the operation - /// was created via CreateApiOperation API. If the operation was created by parsing the spec, - /// then it can be edited by updating the spec. + /// details.http_operation.method * details.deprecated * attributes * details.mcp_tool.title * + /// details.mcp_tool.description * details.input_schema * details.output_schema * + /// details.mcp_tool.annotations.title * details.mcp_tool.annotations.read_only_hint * + /// details.mcp_tool.annotations.destructive_hint * details.mcp_tool.annotations.idempotent_hint + /// * details.mcp_tool.annotations.open_world_hint * + /// details.mcp_tool.annotations.additional_hints The update_mask should be used to specify the + /// fields being updated. An operation can be updated only if the operation was created via + /// CreateApiOperation API. If the operation was created by parsing the spec, then it can be + /// edited by updating the spec. /// /// The body of the request. /// @@ -1052,10 +1057,15 @@ public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1 /// /// Update an operation in an API version. The following fields in the ApiOperation resource can /// be updated: * details.description * details.documentation * details.http_operation.path * - /// details.http_operation.method * details.deprecated * attributes The update_mask should be - /// used to specify the fields being updated. An operation can be updated only if the operation - /// was created via CreateApiOperation API. If the operation was created by parsing the spec, - /// then it can be edited by updating the spec. + /// details.http_operation.method * details.deprecated * attributes * details.mcp_tool.title * + /// details.mcp_tool.description * details.input_schema * details.output_schema * + /// details.mcp_tool.annotations.title * details.mcp_tool.annotations.read_only_hint * + /// details.mcp_tool.annotations.destructive_hint * details.mcp_tool.annotations.idempotent_hint + /// * details.mcp_tool.annotations.open_world_hint * + /// details.mcp_tool.annotations.additional_hints The update_mask should be used to specify the + /// fields being updated. An operation can be updated only if the operation was created via + /// CreateApiOperation API. If the operation was created by parsing the spec, then it can be + /// edited by updating the spec. /// public class PatchRequest : APIhubBaseServiceRequest { @@ -2522,9 +2532,9 @@ protected override void InitParameters() /// /// Update an API resource in the API hub. The following fields in the API can be updated: * /// display_name * description * owner * documentation * target_user * team * business_unit * - /// maturity_level * api_style * attributes The update_mask should be used to specify the fields being - /// updated. Updating the owner field requires complete owner message and updates both owner and email - /// fields. + /// maturity_level * api_style * attributes * fingerprint The update_mask should be used to specify the + /// fields being updated. Updating the owner field requires complete owner message and updates both + /// owner and email fields. /// /// The body of the request. /// @@ -2539,9 +2549,9 @@ public virtual PatchRequest Patch(Google.Apis.APIhub.v1.Data.GoogleCloudApihubV1 /// /// Update an API resource in the API hub. The following fields in the API can be updated: * /// display_name * description * owner * documentation * target_user * team * business_unit * - /// maturity_level * api_style * attributes The update_mask should be used to specify the fields being - /// updated. Updating the owner field requires complete owner message and updates both owner and email - /// fields. + /// maturity_level * api_style * attributes * fingerprint The update_mask should be used to specify the + /// fields being updated. Updating the owner field requires complete owner message and updates both + /// owner and email fields. /// public class PatchRequest : APIhubBaseServiceRequest { @@ -5415,6 +5425,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -5460,6 +5481,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -7171,8 +7200,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } @@ -7635,7 +7664,10 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset [Newtonsoft.Json.JsonPropertyAttribute("documentation")] public virtual GoogleCloudApihubV1Documentation Documentation { get; set; } - /// Optional. Fingerprint of the API resource. + /// + /// Optional. Fingerprint of the API resource. This must be unique for each API resource. It can neither be + /// unset nor be updated to an existing fingerprint of another API resource. + /// [Newtonsoft.Json.JsonPropertyAttribute("fingerprint")] public virtual string Fingerprint { get; set; } @@ -12392,6 +12424,14 @@ public class GoogleLongrunningListOperationsResponse : Google.Apis.Requests.IDir [Newtonsoft.Json.JsonPropertyAttribute("operations")] public virtual System.Collections.Generic.IList Operations { get; set; } + /// + /// Unordered list. Unreachable resources. Populated when the request sets + /// `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all + /// resources across all supported locations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } diff --git a/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.csproj b/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.csproj index 1684fa66fbf..6724623b733 100644 --- a/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.csproj +++ b/Src/Generated/Google.Apis.APIhub.v1/Google.Apis.APIhub.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.APIhub.v1 Client Library - 1.71.0.3907 + 1.72.0.3950 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.cs b/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.cs index 86a5851ef19..206f4951a57 100644 --- a/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.cs +++ b/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.cs @@ -35,12 +35,39 @@ public AiplatformService() : this(new Google.Apis.Services.BaseClientService.Ini public AiplatformService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer) { BatchPredictionJobs = new BatchPredictionJobsResource(this); + CustomJobs = new CustomJobsResource(this); + DataLabelingJobs = new DataLabelingJobsResource(this); Datasets = new DatasetsResource(this); + DeploymentResourcePools = new DeploymentResourcePoolsResource(this); Endpoints = new EndpointsResource(this); + FeatureGroups = new FeatureGroupsResource(this); + FeatureOnlineStores = new FeatureOnlineStoresResource(this); + Featurestores = new FeaturestoresResource(this); + HyperparameterTuningJobs = new HyperparameterTuningJobsResource(this); + IndexEndpoints = new IndexEndpointsResource(this); + Indexes = new IndexesResource(this); Media = new MediaResource(this); + MetadataStores = new MetadataStoresResource(this); + MigratableResources = new MigratableResourcesResource(this); + ModelDeploymentMonitoringJobs = new ModelDeploymentMonitoringJobsResource(this); + Models = new ModelsResource(this); + NotebookExecutionJobs = new NotebookExecutionJobsResource(this); + NotebookRuntimeTemplates = new NotebookRuntimeTemplatesResource(this); + NotebookRuntimes = new NotebookRuntimesResource(this); + Operations = new OperationsResource(this); + PersistentResources = new PersistentResourcesResource(this); + PipelineJobs = new PipelineJobsResource(this); Projects = new ProjectsResource(this); Publishers = new PublishersResource(this); + RagCorpora = new RagCorporaResource(this); + RagEngineConfig = new RagEngineConfigResource(this); ReasoningEngines = new ReasoningEnginesResource(this); + Schedules = new SchedulesResource(this); + SpecialistPools = new SpecialistPoolsResource(this); + Studies = new StudiesResource(this); + Tensorboards = new TensorboardsResource(this); + TrainingPipelines = new TrainingPipelinesResource(this); + TuningJobs = new TuningJobsResource(this); BaseUri = GetEffectiveUri(BaseUriOverride, "https://aiplatform.googleapis.com/"); BatchUri = GetEffectiveUri(null, "https://aiplatform.googleapis.com/batch"); } @@ -96,23 +123,104 @@ public static class ScopeConstants /// Gets the BatchPredictionJobs resource. public virtual BatchPredictionJobsResource BatchPredictionJobs { get; } + /// Gets the CustomJobs resource. + public virtual CustomJobsResource CustomJobs { get; } + + /// Gets the DataLabelingJobs resource. + public virtual DataLabelingJobsResource DataLabelingJobs { get; } + /// Gets the Datasets resource. public virtual DatasetsResource Datasets { get; } + /// Gets the DeploymentResourcePools resource. + public virtual DeploymentResourcePoolsResource DeploymentResourcePools { get; } + /// Gets the Endpoints resource. public virtual EndpointsResource Endpoints { get; } + /// Gets the FeatureGroups resource. + public virtual FeatureGroupsResource FeatureGroups { get; } + + /// Gets the FeatureOnlineStores resource. + public virtual FeatureOnlineStoresResource FeatureOnlineStores { get; } + + /// Gets the Featurestores resource. + public virtual FeaturestoresResource Featurestores { get; } + + /// Gets the HyperparameterTuningJobs resource. + public virtual HyperparameterTuningJobsResource HyperparameterTuningJobs { get; } + + /// Gets the IndexEndpoints resource. + public virtual IndexEndpointsResource IndexEndpoints { get; } + + /// Gets the Indexes resource. + public virtual IndexesResource Indexes { get; } + /// Gets the Media resource. public virtual MediaResource Media { get; } + /// Gets the MetadataStores resource. + public virtual MetadataStoresResource MetadataStores { get; } + + /// Gets the MigratableResources resource. + public virtual MigratableResourcesResource MigratableResources { get; } + + /// Gets the ModelDeploymentMonitoringJobs resource. + public virtual ModelDeploymentMonitoringJobsResource ModelDeploymentMonitoringJobs { get; } + + /// Gets the Models resource. + public virtual ModelsResource Models { get; } + + /// Gets the NotebookExecutionJobs resource. + public virtual NotebookExecutionJobsResource NotebookExecutionJobs { get; } + + /// Gets the NotebookRuntimeTemplates resource. + public virtual NotebookRuntimeTemplatesResource NotebookRuntimeTemplates { get; } + + /// Gets the NotebookRuntimes resource. + public virtual NotebookRuntimesResource NotebookRuntimes { get; } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// Gets the PersistentResources resource. + public virtual PersistentResourcesResource PersistentResources { get; } + + /// Gets the PipelineJobs resource. + public virtual PipelineJobsResource PipelineJobs { get; } + /// Gets the Projects resource. public virtual ProjectsResource Projects { get; } /// Gets the Publishers resource. public virtual PublishersResource Publishers { get; } + /// Gets the RagCorpora resource. + public virtual RagCorporaResource RagCorpora { get; } + + /// Gets the RagEngineConfig resource. + public virtual RagEngineConfigResource RagEngineConfig { get; } + /// Gets the ReasoningEngines resource. public virtual ReasoningEnginesResource ReasoningEngines { get; } + + /// Gets the Schedules resource. + public virtual SchedulesResource Schedules { get; } + + /// Gets the SpecialistPools resource. + public virtual SpecialistPoolsResource SpecialistPools { get; } + + /// Gets the Studies resource. + public virtual StudiesResource Studies { get; } + + /// Gets the Tensorboards resource. + public virtual TensorboardsResource Tensorboards { get; } + + /// Gets the TrainingPipelines resource. + public virtual TrainingPipelinesResource TrainingPipelines { get; } + + /// Gets the TuningJobs resource. + public virtual TuningJobsResource TuningJobs { get; } } /// A base abstract class for Aiplatform requests. @@ -526,109 +634,114 @@ protected override void InitParameters() } } - /// The "datasets" collection of methods. - public class DatasetsResource + /// The "customJobs" collection of methods. + public class CustomJobsResource { - private const string Resource = "datasets"; + private const string Resource = "customJobs"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public DatasetsResource(Google.Apis.Services.IClientService service) + public CustomJobsResource(Google.Apis.Services.IClientService service) { this.service = service; - DatasetVersions = new DatasetVersionsResource(service); + Operations = new OperationsResource(service); } - /// Gets the DatasetVersions resource. - public virtual DatasetVersionsResource DatasetVersions { get; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The "datasetVersions" collection of methods. - public class DatasetVersionsResource + /// The "operations" collection of methods. + public class OperationsResource { - private const string Resource = "datasetVersions"; + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public DatasetVersionsResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; } - /// Create a version from a Dataset. - /// The body of the request. - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CreateRequest(this.service, body, parent); + return new CancelRequest(this.service, name); } - /// Create a version from a Dataset. - public class CreateRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/datasetVersions"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Create parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^datasets/[^/]+$", + Pattern = @"^customJobs/[^/]+/operations/[^/]+$", }); } } - /// Deletes a Dataset version. - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a Dataset version. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -637,10 +750,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -663,23 +773,26 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", + Pattern = @"^customJobs/[^/]+/operations/[^/]+$", }); } } - /// Gets a Dataset version. - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a Dataset version. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -688,17 +801,10 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } - /// Gets the method name. public override string MethodName => "get"; @@ -718,68 +824,59 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^customJobs/[^/]+/operations/[^/]+$", }); } } - /// Lists DatasetVersions in a Dataset. - /// - /// Required. The resource name of the Dataset to list DatasetVersions from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists DatasetVersions in a Dataset. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Dataset to list DatasetVersions from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Optional. The standard list filter. + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// - /// Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after - /// a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// Optional. The standard list page size. + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// Optional. The standard list page token. + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Optional. Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -788,19 +885,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/datasetVersions"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^datasets/[^/]+$", + Pattern = @"^customJobs/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -810,14 +907,6 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", @@ -834,9 +923,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -845,58 +934,59 @@ protected override void InitParameters() } } - /// Updates a DatasetVersion. - /// The body of the request. - /// - /// Output only. Identifier. The resource name of the DatasetVersion. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new PatchRequest(this.service, body, name); + return new WaitRequest(this.service, name); } - /// Updates a DatasetVersion. - public class PatchRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// - /// Output only. Identifier. The resource name of the DatasetVersion. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// + /// The name of the operation resource to wait on. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// Required. The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. Updatable fields: * `display_name` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "patch"; + public override string MethodName => "wait"; /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Patch parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); @@ -906,11 +996,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", + Pattern = @"^customJobs/[^/]+/operations/[^/]+$", }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - Name = "updateMask", + Name = "timeout", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -918,44 +1008,86 @@ protected override void InitParameters() }); } } + } + } - /// Restores a dataset version. - /// - /// Required. The name of the DatasetVersion resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - public virtual RestoreRequest Restore(string name) + /// The "dataLabelingJobs" collection of methods. + public class DataLabelingJobsResource + { + private const string Resource = "dataLabelingJobs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public DataLabelingJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - return new RestoreRequest(this.service, name); + this.service = service; } - /// Restores a dataset version. - public class RestoreRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - /// Constructs a new Restore request. - public RestoreRequest(Google.Apis.Services.IClientService service, string name) : base(service) + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } - /// - /// Required. The name of the DatasetVersion resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// + /// The name of the operation resource to be cancelled. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "restore"; + public override string MethodName => "cancel"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:restore"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Restore parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); @@ -965,1227 +1097,1155 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", + Pattern = @"^dataLabelingJobs/[^/]+/operations/[^/]+$", }); } } - } - - /// Creates a Dataset. - /// The body of the request. - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body) - { - return new CreateRequest(this.service, body); - } - /// Creates a Dataset. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body) : base(service) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - Body = body; - InitParameters(); + return new DeleteRequest(this.service, name); } /// - /// Required. The resource name of the Location to create the Dataset in. Format: - /// `projects/{project}/locations/{location}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Parent { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/datasets"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Initializes Delete parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^dataLabelingJobs/[^/]+/operations/[^/]+$", + }); + } } - } - - /// Deletes a Dataset. - /// - /// Required. The resource name of the Dataset to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// Deletes a Dataset. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Name = name; - InitParameters(); + return new GetRequest(this.service, name); } /// - /// Required. The resource name of the Dataset to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() + public class GetRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^datasets/[^/]+$", - }); - } - } - - /// Gets a Dataset. - /// Required. The name of the Dataset resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - - /// Gets a Dataset. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// Required. The name of the Dataset resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = name; + InitParameters(); + } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^datasets/[^/]+$", - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^dataLabelingJobs/[^/]+/operations/[^/]+$", + }); + } } - } - - /// Lists Datasets in a Location. - public virtual ListRequest List() - { - return new ListRequest(this.service); - } - /// Lists Datasets in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service) : base(service) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - InitParameters(); + return new ListRequest(this.service, name); } /// - /// 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"` + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Parent { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/datasets"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + /// Initializes List parameter list. + protected override void InitParameters() { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// Updates a Dataset. - /// The body of the request. - /// - /// Output only. Identifier. The resource name of the Dataset. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) - { - return new PatchRequest(this.service, body, name); - } - - /// Updates a Dataset. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^dataLabelingJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } /// - /// Output only. Identifier. The resource name of the Dataset. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } /// - /// Required. The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^datasets/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + /// Initializes Wait parameter list. + protected override void InitParameters() { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^dataLabelingJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } } - /// The "endpoints" collection of methods. - public class EndpointsResource + /// The "datasets" collection of methods. + public class DatasetsResource { - private const string Resource = "endpoints"; + private const string Resource = "datasets"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public EndpointsResource(Google.Apis.Services.IClientService service) + public DatasetsResource(Google.Apis.Services.IClientService service) { this.service = service; - Chat = new ChatResource(service); + AnnotationSpecs = new AnnotationSpecsResource(service); + DataItems = new DataItemsResource(service); + DatasetVersions = new DatasetVersionsResource(service); + Operations = new OperationsResource(service); + SavedQueries = new SavedQueriesResource(service); } - /// Gets the Chat resource. - public virtual ChatResource Chat { get; } + /// Gets the AnnotationSpecs resource. + public virtual AnnotationSpecsResource AnnotationSpecs { get; } - /// The "chat" collection of methods. - public class ChatResource + /// The "annotationSpecs" collection of methods. + public class AnnotationSpecsResource { - private const string Resource = "chat"; + private const string Resource = "annotationSpecs"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public ChatResource(Google.Apis.Services.IClientService service) + public AnnotationSpecsResource(Google.Apis.Services.IClientService service) { this.service = service; + Operations = new OperationsResource(service); } - /// Exposes an OpenAI-compatible endpoint for chat completions. - /// The body of the request. - /// - /// Required. The name of the endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual CompletionsRequest Completions(Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) - { - return new CompletionsRequest(this.service, body, endpoint); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Exposes an OpenAI-compatible endpoint for chat completions. - public class CompletionsRequest : AiplatformBaseServiceRequest + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new Completions request. - public CompletionsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) : base(service) + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - Endpoint = endpoint; - Body = body; - InitParameters(); + this.service = service; } /// - /// Required. The name of the endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody Body { get; set; } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "completions"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}/chat/completions"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Completions parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + /// Initializes Cancel parameter list. + protected override void InitParameters() { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); + } } - } - } - /// Return a list of tokens based on the input text. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - /// - public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) - { - return new ComputeTokensRequest(this.service, body, endpoint); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Return a list of tokens based on the input text. - public class ComputeTokensRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ComputeTokens request. - public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the method name. - public override string MethodName => "computeTokens"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:computeTokens"; + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Initializes ComputeTokens parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); - } - } + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Perform a token counting. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) - { - return new CountTokensRequest(this.service, body, endpoint); - } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Perform a token counting. - public class CountTokensRequest : AiplatformBaseServiceRequest - { - /// Constructs a new CountTokens request. - public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "get"; - /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "countTokens"; + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:countTokens"; - - /// Initializes CountTokens parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); - } - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Fetch an asynchronous online prediction operation. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) - { - return new FetchPredictOperationRequest(this.service, body, endpoint); - } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Fetch an asynchronous online prediction operation. - public class FetchPredictOperationRequest : AiplatformBaseServiceRequest - { - /// Constructs a new FetchPredictOperation request. - public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the method name. - public override string MethodName => "fetchPredictOperation"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/annotationSpecs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Initializes FetchPredictOperation parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); - } - } - - /// Generate content with multimodal inputs. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model - /// format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) - { - return new GenerateContentRequest(this.service, body, model); - } - - /// Generate content with multimodal inputs. - public class GenerateContentRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GenerateContent request. - public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) - { - Model = model; - Body = body; - InitParameters(); - } + return new WaitRequest(this.service, name); + } - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "generateContent"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+model}:generateContent"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes GenerateContent parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter - { - Name = "model", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } } } - /// Perform an online prediction. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) - { - return new PredictRequest(this.service, body, endpoint); - } + /// Gets the DataItems resource. + public virtual DataItemsResource DataItems { get; } - /// Perform an online prediction. - public class PredictRequest : AiplatformBaseServiceRequest + /// The "dataItems" collection of methods. + public class DataItemsResource { - /// Constructs a new Predict request. - public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + private const string Resource = "dataItems"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Constructs a new resource. + public DataItemsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Annotations = new AnnotationsResource(service); + Operations = new OperationsResource(service); + } - /// Gets the method name. - public override string MethodName => "predict"; + /// Gets the Annotations resource. + public virtual AnnotationsResource Annotations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "annotations" collection of methods. + public class AnnotationsResource + { + private const string Resource = "annotations"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predict"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Predict parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + /// Constructs a new resource. + public AnnotationsResource(Google.Apis.Services.IClientService service) { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); - } - } + this.service = service; + Operations = new OperationsResource(service); + } - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) - { - return new PredictLongRunningRequest(this.service, body, endpoint); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - public class PredictLongRunningRequest : AiplatformBaseServiceRequest - { - /// Constructs a new PredictLongRunning request. - public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "predictLongRunning"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predictLongRunning"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Initializes PredictLongRunning parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Generate content with multimodal inputs with streaming support. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model - /// format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) - { - return new StreamGenerateContentRequest(this.service, body, model); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Generate content with multimodal inputs with streaming support. - public class StreamGenerateContentRequest : AiplatformBaseServiceRequest - { - /// Constructs a new StreamGenerateContent request. - public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) - { - Model = model; - Body = body; - InitParameters(); - } + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "streamGenerateContent"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+model}:streamGenerateContent"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes StreamGenerateContent parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter - { - Name = "model", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^endpoints/[^/]+$", - }); - } - } - } - - /// The "media" collection of methods. - public class MediaResource - { - private const string Resource = "media"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public MediaResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// Upload a file into a RagCorpus. - /// The body of the request. - /// - /// Required. The name of the RagCorpus resource into which to upload the file. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - public virtual UploadRequest Upload(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent) - { - return new UploadRequest(this.service, body, parent); - } - - /// Upload a file into a RagCorpus. - public class UploadRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Upload request. - public UploadRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the RagCorpus resource into which to upload the file. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "upload"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/ragFiles:upload"; - - /// Initializes Upload parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", - }); - } - } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + }); + } + } - /// Upload a file into a RagCorpus. - /// - /// Considerations regarding : - /// - /// - /// - /// If is seekable, then the stream position will be reset to 0 before reading - /// commences. If is not seekable, then it will be read from its current position - /// - /// - /// - /// - /// Caller is responsible for maintaining the open until the upload is completed - /// - /// - /// Caller is responsible for closing the - /// - /// - /// The body of the request. - /// - /// Required. The name of the RagCorpus resource into which to upload the file. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - /// The stream to upload. See remarks for further information. - /// The content type of the stream to upload. - public virtual UploadMediaUpload Upload(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent, System.IO.Stream stream, string contentType) - { - return new UploadMediaUpload(service, body, parent, stream, contentType); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Upload media upload which supports resumable upload. - public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload - { - /// V1 error format. - [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Xgafv { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// V1 error format. - public enum XgafvEnum - { - /// v1 error format - [Google.Apis.Util.StringValueAttribute("1")] - Value1 = 0, + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// v2 error format - [Google.Apis.Util.StringValueAttribute("2")] - Value2 = 1, - } + /// Gets the method name. + public override string MethodName => "get"; - /// OAuth access token. - [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] - public virtual string AccessToken { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Data format for response. - [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Alt { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Data format for response. - public enum AltEnum - { - /// Responses with Content-Type of application/json - [Google.Apis.Util.StringValueAttribute("json")] - Json = 0, + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + }); + } + } - /// Media download with context-dependent Content-Type - [Google.Apis.Util.StringValueAttribute("media")] - Media = 1, + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Responses with Content-Type of application/x-protobuf - [Google.Apis.Util.StringValueAttribute("proto")] - Proto = 2, - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// JSONP - [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Callback { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Selector specifying which fields to include in a partial response. - [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Fields { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// API key. Your API key identifies your project and provides you with API access, quota, and reports. - /// Required unless you provide an OAuth 2.0 token. - /// - [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Key { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// OAuth 2.0 token for the current user. - [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OauthToken { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Returns response with indentations and line breaks. - [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PrettyPrint { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// - /// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned - /// to a user, but should not exceed 40 characters. - /// - [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] - public virtual string QuotaUser { get; set; } + /// Gets the method name. + public override string MethodName => "list"; - /// Legacy upload protocol for media (e.g. "media", "multipart"). - [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] - public virtual string UploadType { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Upload protocol for media (e.g. "raw", "multipart"). - [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] - public virtual string UploadProtocol { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// - /// Required. The name of the RagCorpus resource into which to upload the file. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Constructs a new Upload media upload instance. - /// - /// Considerations regarding : - /// - /// - /// - /// If is seekable, then the stream position will be reset to 0 before - /// reading commences. If is not seekable, then it will be read from its current - /// position - /// - /// - /// - /// - /// Caller is responsible for maintaining the open until the upload is completed - /// - /// - /// Caller is responsible for closing the - /// - /// - public UploadMediaUpload(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent, System.IO.Stream stream, string contentType) - : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "v1/{+parent}/ragFiles:upload"), "POST", stream, contentType) - { - Parent = parent; - Body = body; - } - } - } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// The "projects" collection of methods. - public class ProjectsResource - { - private const string Resource = "projects"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Constructs a new resource. - public ProjectsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Locations = new LocationsResource(service); - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the Locations resource. - public virtual LocationsResource Locations { get; } + /// Gets the method name. + public override string MethodName => "wait"; - /// The "locations" collection of methods. - public class LocationsResource - { - private const string Resource = "locations"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Constructs a new resource. - public LocationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - BatchPredictionJobs = new BatchPredictionJobsResource(service); - CachedContents = new CachedContentsResource(service); - CustomJobs = new CustomJobsResource(service); - DataLabelingJobs = new DataLabelingJobsResource(service); - Datasets = new DatasetsResource(service); - DeploymentResourcePools = new DeploymentResourcePoolsResource(service); - Endpoints = new EndpointsResource(service); - EvaluationItems = new EvaluationItemsResource(service); - EvaluationRuns = new EvaluationRunsResource(service); - EvaluationSets = new EvaluationSetsResource(service); - FeatureGroups = new FeatureGroupsResource(service); - FeatureOnlineStores = new FeatureOnlineStoresResource(service); - Featurestores = new FeaturestoresResource(service); - HyperparameterTuningJobs = new HyperparameterTuningJobsResource(service); - IndexEndpoints = new IndexEndpointsResource(service); - Indexes = new IndexesResource(service); - MetadataStores = new MetadataStoresResource(service); - MigratableResources = new MigratableResourcesResource(service); - ModelDeploymentMonitoringJobs = new ModelDeploymentMonitoringJobsResource(service); - Models = new ModelsResource(service); - NasJobs = new NasJobsResource(service); - NotebookExecutionJobs = new NotebookExecutionJobsResource(service); - NotebookRuntimeTemplates = new NotebookRuntimeTemplatesResource(service); - NotebookRuntimes = new NotebookRuntimesResource(service); - Operations = new OperationsResource(service); - PersistentResources = new PersistentResourcesResource(service); - PipelineJobs = new PipelineJobsResource(service); - Publishers = new PublishersResource(service); - RagCorpora = new RagCorporaResource(service); - RagEngineConfig = new RagEngineConfigResource(service); - ReasoningEngines = new ReasoningEnginesResource(service); - Schedules = new SchedulesResource(service); - SpecialistPools = new SpecialistPoolsResource(service); - Studies = new StudiesResource(service); - Tensorboards = new TensorboardsResource(service); - TrainingPipelines = new TrainingPipelinesResource(service); - TuningJobs = new TuningJobsResource(service); + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } } - /// Gets the BatchPredictionJobs resource. - public virtual BatchPredictionJobsResource BatchPredictionJobs { get; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The "batchPredictionJobs" collection of methods. - public class BatchPredictionJobsResource + /// The "operations" collection of methods. + public class OperationsResource { - private const string Resource = "batchPredictionJobs"; + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public BatchPredictionJobsResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// - /// 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. + /// 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`. /// - /// The body of the request. - /// - /// Required. The name of the BatchPredictionJob to cancel. Format: - /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelBatchPredictionJobRequest body, string name) + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CancelRequest(this.service, body, name); + return new CancelRequest(this.service, name); } /// - /// 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. + /// 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`. /// public class CancelRequest : AiplatformBaseServiceRequest { /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelBatchPredictionJobRequest body, string name) : base(service) + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// - /// Required. The name of the BatchPredictionJob to cancel. Format: - /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - /// + /// The name of the operation resource to be cancelled. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelBatchPredictionJobRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - /// Gets the method name. public override string MethodName => "cancel"; @@ -2205,88 +2265,28 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", }); } } /// - /// Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to - /// start. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location to create the BatchPredictionJob in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchPredictionJob body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - - /// - /// Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to - /// start. + /// 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`. /// - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchPredictionJob body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Location to create the BatchPredictionJob in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchPredictionJob Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "create"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/batchPredictionJobs"; - - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } - - /// Deletes a BatchPredictionJob. Can only be called on jobs that already finished. - /// - /// Required. The name of the BatchPredictionJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - /// + /// The name of the operation resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a BatchPredictionJob. Can only be called on jobs that already finished. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -2295,10 +2295,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The name of the BatchPredictionJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -2321,23 +2318,26 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", }); } } - /// Gets a BatchPredictionJob - /// - /// Required. The name of the BatchPredictionJob resource. Format: - /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a BatchPredictionJob - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -2346,10 +2346,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the BatchPredictionJob resource. Format: - /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -2372,49 +2369,39 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", }); } } - /// Lists BatchPredictionJobs in a Location. - /// - /// Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists BatchPredictionJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to list the BatchPredictionJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - /// `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, - /// `!=` comparisons. * `create_time` supports `=`, `!=`,`&lt;`, `&lt;=`,`&gt;`, - /// `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * - /// `labels.keyB:*` - /// + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } @@ -2422,17 +2409,20 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// The standard list page token. Typically obtained via - /// ListBatchPredictionJobsResponse.next_page_token of the previous - /// JobService.ListBatchPredictionJobs call. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -2441,19 +2431,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/batchPredictionJobs"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^datasets/[^/]+/dataItems/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -2479,9 +2469,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -2489,756 +2479,947 @@ protected override void InitParameters() }); } } - } - - /// Gets the CachedContents resource. - public virtual CachedContentsResource CachedContents { get; } - - /// The "cachedContents" collection of methods. - public class CachedContentsResource - { - private const string Resource = "cachedContents"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public CachedContentsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } /// - /// Creates cached content, this call will initialize the cached content in the data storage, and users - /// need to pay for the cache data storage. + /// 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. /// - /// The body of the request. - /// Required. The parent resource where the cached content will be created - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string parent) + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new CreateRequest(this.service, body, parent); + return new WaitRequest(this.service, name); } /// - /// Creates cached content, this call will initialize the cached content in the data storage, and users - /// need to pay for the cache data storage. + /// 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. /// - public class CreateRequest : AiplatformBaseServiceRequest + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string parent) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// Required. The parent resource where the cached content will be created - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/cachedContents"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Create parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } + } - /// Deletes cached content - /// Required. The resource name referring to the cached content - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// Deletes cached content - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// Required. The resource name referring to the cached content - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the DatasetVersions resource. + public virtual DatasetVersionsResource DatasetVersions { get; } - /// Gets the method name. - public override string MethodName => "delete"; + /// The "datasetVersions" collection of methods. + public class DatasetVersionsResource + { + private const string Resource = "datasetVersions"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public DatasetVersionsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", - }); - } - } + /// Create a version from a Dataset. + /// The body of the request. + /// + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// Gets cached content configurations - /// Required. The resource name referring to the cached content - public virtual GetRequest Get(string name) + /// Create a version from a Dataset. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) : base(service) { - return new GetRequest(this.service, name); + Parent = parent; + Body = body; + InitParameters(); } - /// Gets cached content configurations - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Required. The resource name referring to the cached content - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/datasetVersions"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+$", + }); } + } - /// Lists cached contents in a project - /// Required. The parent, which owns this collection of cached contents. - public virtual ListRequest List(string parent) + /// Deletes a Dataset version. + /// + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a Dataset version. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ListRequest(this.service, parent); + Name = name; + InitParameters(); } - /// Lists cached contents in a project - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Required. The parent, which owns this collection of cached contents. - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// - /// Optional. The maximum number of cached contents to return. The service may return fewer than - /// this value. If unspecified, some default (under maximum) number of items will be returned. The - /// maximum value is 1000; values above 1000 will be coerced to 1000. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// Optional. A page token, received from a previous `ListCachedContents` call. Provide this to - /// retrieve the subsequent page. When paginating, all other parameters provided to - /// `ListCachedContents` must match the call that provided the page token. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the method name. - public override string MethodName => "list"; + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets a Dataset version. + /// + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/cachedContents"; + /// Gets a Dataset version. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Initializes List parameter list. - protected override void InitParameters() + /// + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// Updates cached content configurations - /// The body of the request. - /// - /// Immutable. Identifier. The server-generated resource name of the cached content Format: - /// projects/{project}/locations/{location}/cachedContents/{cached_content} - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string name) + /// Lists DatasetVersions in a Dataset. + /// + /// Required. The resource name of the Dataset to list DatasetVersions from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists DatasetVersions in a Dataset. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - return new PatchRequest(this.service, body, name); + Parent = parent; + InitParameters(); } - /// Updates cached content configurations - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// + /// Required. The resource name of the Dataset to list DatasetVersions from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// - /// Immutable. Identifier. The server-generated resource name of the cached content Format: - /// projects/{project}/locations/{location}/cachedContents/{cached_content} - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Optional. The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Required. The list of fields to update. - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after + /// a field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent Body { get; set; } + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Optional. The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Optional. Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Patch parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/datasetVersions"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Gets the CustomJobs resource. - public virtual CustomJobsResource CustomJobs { get; } - - /// The "customJobs" collection of methods. - public class CustomJobsResource + /// Updates a DatasetVersion. + /// The body of the request. + /// + /// Output only. Identifier. The resource name of the DatasetVersion. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) { - private const string Resource = "customJobs"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new PatchRequest(this.service, body, name); + } - /// Constructs a new resource. - public CustomJobsResource(Google.Apis.Services.IClientService service) + /// Updates a DatasetVersion. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) : base(service) { - this.service = service; - Operations = new OperationsResource(service); + Name = name; + Body = body; + InitParameters(); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// + /// Output only. Identifier. The resource name of the DatasetVersion. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// + /// Required. The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. Updatable fields: * `display_name` + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "patch"; - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Restores a dataset version. + /// + /// Required. The name of the DatasetVersion resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + public virtual RestoreRequest Restore(string name) + { + return new RestoreRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Restores a dataset version. + public class RestoreRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Restore request. + public RestoreRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// Required. The name of the DatasetVersion resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the method name. + public override string MethodName => "restore"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:restore"; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// Initializes Restore parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/datasetVersions/[^/]+$", + }); + } + } + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "delete"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new ListRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new WaitRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the SavedQueries resource. + public virtual SavedQueriesResource SavedQueries { get; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// The "savedQueries" collection of methods. + public class SavedQueriesResource + { + private const string Resource = "savedQueries"; - /// Gets the method name. - public override string MethodName => "wait"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Constructs a new resource. + public SavedQueriesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; } /// - /// 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`. + /// 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`. /// - /// The body of the request. - /// - /// Required. The name of the CustomJob to cancel. Format: - /// `projects/{project}/locations/{location}/customJobs/{custom_job}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelCustomJobRequest body, string name) + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CancelRequest(this.service, body, name); + return new CancelRequest(this.service, name); } /// - /// 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`. + /// 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`. /// public class CancelRequest : AiplatformBaseServiceRequest { /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelCustomJobRequest body, string name) : base(service) + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// - /// Required. The name of the CustomJob to cancel. Format: - /// `projects/{project}/locations/{location}/customJobs/{custom_job}` - /// + /// The name of the operation resource to be cancelled. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelCustomJobRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - /// Gets the method name. public override string MethodName => "cancel"; @@ -3258,82 +3439,28 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + Pattern = @"^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", }); } } - /// Creates a CustomJob. A created CustomJob right away will be attempted to be run. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the CustomJob in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CustomJob body, string parent) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - return new CreateRequest(this.service, body, parent); + return new DeleteRequest(this.service, name); } - /// Creates a CustomJob. A created CustomJob right away will be attempted to be run. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CustomJob body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Location to create the CustomJob in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CustomJob Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "create"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/customJobs"; - - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } - - /// Deletes a CustomJob. - /// - /// Required. The name of the CustomJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/customJobs/{custom_job}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// Deletes a CustomJob. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -3342,10 +3469,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The name of the CustomJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/customJobs/{custom_job}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -3368,23 +3492,26 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + Pattern = @"^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", }); } } - /// Gets a CustomJob. - /// - /// Required. The name of the CustomJob resource. Format: - /// `projects/{project}/locations/{location}/customJobs/{custom_job}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a CustomJob. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -3393,10 +3520,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the CustomJob resource. Format: - /// `projects/{project}/locations/{location}/customJobs/{custom_job}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -3419,48 +3543,39 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + Pattern = @"^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", }); } } - /// Lists CustomJobs in a Location. - /// - /// Required. The resource name of the Location to list the CustomJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists CustomJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to list the CustomJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, - /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - /// + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } @@ -3468,16 +3583,20 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of - /// the previous JobService.ListCustomJobs call. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -3486,19 +3605,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/customJobs"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^datasets/[^/]+/savedQueries/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -3524,9 +3643,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -3534,2889 +3653,3277 @@ protected override void InitParameters() }); } } - } - - /// Gets the DataLabelingJobs resource. - public virtual DataLabelingJobsResource DataLabelingJobs { get; } - - /// The "dataLabelingJobs" collection of methods. - public class DataLabelingJobsResource - { - private const string Resource = "dataLabelingJobs"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - /// Constructs a new resource. - public DataLabelingJobsResource(Google.Apis.Services.IClientService service) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - this.service = service; - Operations = new OperationsResource(service); + return new WaitRequest(this.service, name); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// - /// 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`. + /// 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. /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Creates a Dataset. + /// The body of the request. + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body) + { + return new CreateRequest(this.service, body); + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Creates a Dataset. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body) : base(service) + { + Body = body; + InitParameters(); + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the Location to create the Dataset in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Parent { get; set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "create"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/datasets"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Deletes a Dataset. + /// + /// Required. The resource name of the Dataset to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "get"; + /// Deletes a Dataset. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Required. The resource name of the Dataset to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+$", + }); + } + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets a Dataset. + /// Required. The name of the Dataset resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets a Dataset. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Required. The name of the Dataset resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+$", + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Lists Datasets in a Location. + public virtual ListRequest List() + { + return new ListRequest(this.service); + } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Lists Datasets in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service) : base(service) + { + InitParameters(); + } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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"` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Parent { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Gets the method name. + public override string MethodName => "list"; - /// Cancels a DataLabelingJob. Success of cancellation is not guaranteed. - /// The body of the request. - /// - /// Required. The name of the DataLabelingJob. Format: - /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelDataLabelingJobRequest body, string name) - { - return new CancelRequest(this.service, body, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Cancels a DataLabelingJob. Success of cancellation is not guaranteed. - public class CancelRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/datasets"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelDataLabelingJobRequest body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The name of the DataLabelingJob. Format: - /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Updates a Dataset. + /// The body of the request. + /// + /// Output only. Identifier. The resource name of the Dataset. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) + { + return new PatchRequest(this.service, body, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelDataLabelingJobRequest Body { get; set; } + /// Updates a Dataset. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// Output only. Identifier. The resource name of the Dataset. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// + /// Required. The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "patch"; - /// Creates a DataLabelingJob. - /// The body of the request. - /// - /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DataLabelingJob body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; - /// Creates a DataLabelingJob. - public class CreateRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DataLabelingJob body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^datasets/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The "deploymentResourcePools" collection of methods. + public class DeploymentResourcePoolsResource + { + private const string Resource = "deploymentResourcePools"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DataLabelingJob Body { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Constructs a new resource. + public DeploymentResourcePoolsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/dataLabelingJobs"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Deletes a DataLabelingJob. - /// - /// Required. The name of the DataLabelingJob to be deleted. Format: - /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Deletes a DataLabelingJob. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the DataLabelingJob to be deleted. Format: - /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^deploymentResourcePools/[^/]+/operations/[^/]+$", + }); } + } - /// Gets a DataLabelingJob. - /// - /// Required. The name of the DataLabelingJob. Format: - /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets a DataLabelingJob. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the DataLabelingJob. Format: - /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^deploymentResourcePools/[^/]+/operations/[^/]+$", + }); } + } - /// Lists DataLabelingJobs in a Location. - /// - /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ListRequest(this.service, parent); + Name = name; + InitParameters(); } - /// Lists DataLabelingJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Parent = parent; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^deploymentResourcePools/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// - /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, - /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` - /// after a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/dataLabelingJobs"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^deploymentResourcePools/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Gets the Datasets resource. - public virtual DatasetsResource Datasets { get; } - - /// The "datasets" collection of methods. - public class DatasetsResource + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - private const string Resource = "datasets"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new WaitRequest(this.service, name); + } - /// Constructs a new resource. - public DatasetsResource(Google.Apis.Services.IClientService service) + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; - AnnotationSpecs = new AnnotationSpecsResource(service); - DataItems = new DataItemsResource(service); - DatasetVersions = new DatasetVersionsResource(service); - Operations = new OperationsResource(service); - SavedQueries = new SavedQueriesResource(service); + Name = name; + InitParameters(); } - /// Gets the AnnotationSpecs resource. - public virtual AnnotationSpecsResource AnnotationSpecs { get; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "annotationSpecs" collection of methods. - public class AnnotationSpecsResource - { - private const string Resource = "annotationSpecs"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the method name. + public override string MethodName => "wait"; - /// Constructs a new resource. - public AnnotationSpecsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// The "operations" collection of methods. - public class OperationsResource + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - private const string Resource = "operations"; + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^deploymentResourcePools/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The "endpoints" collection of methods. + public class EndpointsResource + { + private const string Resource = "endpoints"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Constructs a new resource. + public EndpointsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Chat = new ChatResource(service); + Operations = new OperationsResource(service); + } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the Chat resource. + public virtual ChatResource Chat { get; } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "chat" collection of methods. + public class ChatResource + { + private const string Resource = "chat"; - /// Gets the method name. - public override string MethodName => "cancel"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Constructs a new resource. + public ChatResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Exposes an OpenAI-compatible endpoint for chat completions. + /// The body of the request. + /// + /// Required. The name of the endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual CompletionsRequest Completions(Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) + { + return new CompletionsRequest(this.service, body, endpoint); + } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", - }); - } - } + /// Exposes an OpenAI-compatible endpoint for chat completions. + public class CompletionsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Completions request. + public CompletionsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// Required. The name of the endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody Body { get; set; } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "completions"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}/chat/completions"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes Completions parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "get"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "cancel"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "wait"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets an AnnotationSpec. - /// - /// Required. The name of the AnnotationSpec resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - /// - public virtual GetRequest Get(string name) + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new GetRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets an AnnotationSpec. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// - /// Required. The name of the AnnotationSpec resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the DataItems resource. - public virtual DataItemsResource DataItems { get; } + /// Gets the method name. + public override string MethodName => "list"; - /// The "dataItems" collection of methods. - public class DataItemsResource - { - private const string Resource = "dataItems"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Constructs a new resource. - public DataItemsResource(Google.Apis.Services.IClientService service) + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - this.service = service; - Annotations = new AnnotationsResource(service); - Operations = new OperationsResource(service); - } - - /// Gets the Annotations resource. - public virtual AnnotationsResource Annotations { get; } - - /// The "annotations" collection of methods. - public class AnnotationsResource + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - private const string Resource = "annotations"; + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Constructs a new resource. - public AnnotationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the method name. + public override string MethodName => "wait"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Return a list of tokens based on the input text. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. + /// + public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) + { + return new ComputeTokensRequest(this.service, body, endpoint); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Return a list of tokens based on the input text. + public class ComputeTokensRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ComputeTokens request. + public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", - }); - } - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "computeTokens"; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:computeTokens"; - /// Gets the method name. - public override string MethodName => "delete"; + /// Initializes ComputeTokens parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Perform a token counting. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) + { + return new CountTokensRequest(this.service, body, endpoint); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Perform a token counting. + public class CountTokensRequest : AiplatformBaseServiceRequest + { + /// Constructs a new CountTokens request. + public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "countTokens"; - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:countTokens"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Initializes CountTokens parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", - }); - } - } + /// Fetch an asynchronous online prediction operation. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) + { + return new FetchPredictOperationRequest(this.service, body, endpoint); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Fetch an asynchronous online prediction operation. + public class FetchPredictOperationRequest : AiplatformBaseServiceRequest + { + /// Constructs a new FetchPredictOperation request. + public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the method name. + public override string MethodName => "fetchPredictOperation"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// When set to `true`, operations that are reachable are returned as normal, and those - /// that are unreachable are returned in the [ListOperationsResponse.unreachable] field. - /// This can only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will - /// result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - /// service or product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; - /// Gets the method name. - public override string MethodName => "list"; + /// Initializes FetchPredictOperation parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Generate content with multimodal inputs. + /// The body of the request. + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model + /// format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + { + return new GenerateContentRequest(this.service, body, model); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Generate content with multimodal inputs. + public class GenerateContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GenerateContent request. + public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + { + Model = model; + Body = body; + InitParameters(); + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "generateContent"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+model}:generateContent"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Initializes GenerateContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + { + Name = "model", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Perform an online prediction. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) + { + return new PredictRequest(this.service, body, endpoint); + } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Perform an online prediction. + public class PredictRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Predict request. + public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// Lists Annotations belongs to a dataitem. - /// - /// Required. The resource name of the DataItem to list Annotations from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// Lists Annotations belongs to a dataitem. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } - /// - /// Required. The resource name of the DataItem to list Annotations from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the method name. + public override string MethodName => "predict"; - /// - /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" - /// after a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:predict"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Initializes Predict parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) + { + return new PredictLongRunningRequest(this.service, body, endpoint); + } - /// Gets the method name. - public override string MethodName => "list"; + /// + public class PredictLongRunningRequest : AiplatformBaseServiceRequest + { + /// Constructs a new PredictLongRunning request. + public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/annotations"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the method name. + public override string MethodName => "predictLongRunning"; - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:predictLongRunning"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Initializes PredictLongRunning parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Generate content with multimodal inputs with streaming support. + /// The body of the request. + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model + /// format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + { + return new StreamGenerateContentRequest(this.service, body, model); + } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Generate content with multimodal inputs with streaming support. + public class StreamGenerateContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new StreamGenerateContent request. + public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + { + Model = model; + Body = body; + InitParameters(); + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the method name. + public override string MethodName => "streamGenerateContent"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+model}:streamGenerateContent"; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes StreamGenerateContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + { + Name = "model", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^endpoints/[^/]+$", + }); + } + } + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "featureGroups" collection of methods. + public class FeatureGroupsResource + { + private const string Resource = "featureGroups"; - /// Gets the method name. - public override string MethodName => "delete"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Constructs a new resource. + public FeatureGroupsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Features = new FeaturesResource(service); + Operations = new OperationsResource(service); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the Features resource. + public virtual FeaturesResource Features { get; } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", - }); - } - } + /// The "features" collection of methods. + public class FeaturesResource + { + private const string Resource = "features"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Constructs a new resource. + public FeaturesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "get"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } - - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "wait"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Lists DataItems in a Dataset. - /// - /// Required. The resource name of the Dataset to list DataItems from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual ListRequest List(string parent) + /// Initializes Get parameter list. + protected override void InitParameters() { - return new ListRequest(this.service, parent); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + }); } + } - /// Lists DataItems in a Dataset. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListWaitRequest ListWait(string name) + { + return new ListWaitRequest(this.service, name); + } - /// - /// Required. The resource name of the Dataset to list DataItems from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListWaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a - /// field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "listWait"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/dataItems"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Initializes ListWait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Gets the DatasetVersions resource. - public virtual DatasetVersionsResource DatasetVersions { get; } - - /// The "datasetVersions" collection of methods. - public class DatasetVersionsResource + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - private const string Resource = "datasetVersions"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public DatasetVersionsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + return new WaitRequest(this.service, name); + } - /// Create a version from a Dataset. - /// The body of the request. - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new CreateRequest(this.service, body, parent); + Name = name; + InitParameters(); } - /// Create a version from a Dataset. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } + /// Gets the method name. + public override string MethodName => "wait"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the method name. - public override string MethodName => "create"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/datasetVersions"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Create parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } + } - /// Deletes a Dataset version. - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Deletes a Dataset version. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the method name. - public override string MethodName => "delete"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the HTTP method. - public override string HttpMethod => "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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", - }); - } - } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets a Dataset version. - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets a Dataset version. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// Required. The resource name of the Dataset version to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the method name. + public override string MethodName => "get"; - /// Lists DatasetVersions in a Dataset. - /// - /// Required. The resource name of the Dataset to list DatasetVersions from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Lists DatasetVersions in a Dataset. - public class ListRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The resource name of the Dataset to list DatasetVersions from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListWaitRequest ListWait(string name) + { + return new ListWaitRequest(this.service, name); + } - /// Optional. The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListWaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Optional. A comma-separated list of fields to order by, sorted in ascending order. Use - /// "desc" after a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Optional. The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Optional. Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "listWait"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/datasetVersions"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Updates a DatasetVersion. - /// The body of the request. - /// - /// Output only. Identifier. The resource name of the DatasetVersion. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) + /// Initializes ListWait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new PatchRequest(this.service, body, name); - } - - /// Updates a DatasetVersion. - public class PatchRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Output only. Identifier. The resource name of the DatasetVersion. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. Updatable fields: * `display_name` - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Restores a dataset version. - /// - /// Required. The name of the DatasetVersion resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - public virtual RestoreRequest Restore(string name) + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new RestoreRequest(this.service, name); - } - - /// Restores a dataset version. - public class RestoreRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureGroups/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - /// Constructs a new Restore request. - public RestoreRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// Required. The name of the DatasetVersion resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "featureOnlineStores" collection of methods. + public class FeatureOnlineStoresResource + { + private const string Resource = "featureOnlineStores"; - /// Gets the method name. - public override string MethodName => "restore"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Constructs a new resource. + public FeatureOnlineStoresResource(Google.Apis.Services.IClientService service) + { + this.service = service; + FeatureViews = new FeatureViewsResource(service); + Operations = new OperationsResource(service); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:restore"; + /// Gets the FeatureViews resource. + public virtual FeatureViewsResource FeatureViews { get; } - /// Initializes Restore parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", - }); - } - } - } + /// The "featureViews" collection of methods. + public class FeatureViewsResource + { + private const string Resource = "featureViews"; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// The "operations" collection of methods. - public class OperationsResource + /// Constructs a new resource. + public FeatureViewsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - private const string Resource = "operations"; + this.service = service; + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - return new CancelRequest(this.service, name); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); } + } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListWaitRequest ListWait(string name) + { + return new ListWaitRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListWaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new DeleteRequest(this.service, name); + Name = name; + InitParameters(); } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + /// - /// 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`. + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "listWait"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes ListWait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new GetRequest(this.service, name); + Name = name; + InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// 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. + /// 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. /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListWaitRequest ListWait(string name) + { + return new ListWaitRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListWaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "listWait"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes ListWait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featureOnlineStores/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } + + /// The "featurestores" collection of methods. + public class FeaturestoresResource + { + private const string Resource = "featurestores"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public FeaturestoresResource(Google.Apis.Services.IClientService service) + { + this.service = service; + EntityTypes = new EntityTypesResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the EntityTypes resource. + public virtual EntityTypesResource EntityTypes { get; } + + /// The "entityTypes" collection of methods. + public class EntityTypesResource + { + private const string Resource = "entityTypes"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public EntityTypesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Features = new FeaturesResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the Features resource. + public virtual FeaturesResource Features { get; } + + /// The "features" collection of methods. + public class FeaturesResource + { + private const string Resource = "features"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public FeaturesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -6517,7 +7024,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -6530,3062 +7037,2980 @@ protected override void InitParameters() } } } + } - /// Gets the SavedQueries resource. - public virtual SavedQueriesResource SavedQueries { get; } - - /// The "savedQueries" collection of methods. - public class SavedQueriesResource - { - private const string Resource = "savedQueries"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Constructs a new resource. - public SavedQueriesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } - - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new DeleteRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new GetRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new ListRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new WaitRequest(this.service, name); - } - - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } - - /// Gets the method name. - public override string MethodName => "wait"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; - - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } - - /// Deletes a SavedQuery. - /// - /// Required. The resource name of the SavedQuery to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// Deletes a SavedQuery. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// Required. The resource name of the SavedQuery to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", - }); - } - } - - /// Lists SavedQueries in a Dataset. - /// - /// Required. The resource name of the Dataset to list SavedQueries from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - - /// Lists SavedQueries in a Dataset. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// Required. The resource name of the Dataset to list SavedQueries from. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a - /// field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/savedQueries"; - - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } - - /// Creates a Dataset. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the Dataset in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - - /// Creates a Dataset. - public class CreateRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string parent) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Required. The resource name of the Location to create the Dataset in. Format: - /// `projects/{project}/locations/{location}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/datasets"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Create parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } + } - /// Deletes a Dataset. - /// - /// Required. The resource name of the Dataset to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Deletes a Dataset. - public class DeleteRequest : AiplatformBaseServiceRequest + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The resource name of the Dataset to delete. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/operations/[^/]+$", + }); } + } - /// Exports data from a Dataset. - /// The body of the request. - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual ExportRequest Export(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportDataRequest body, string name) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ExportRequest(this.service, body, name); + Name = name; + InitParameters(); } - /// Exports data from a Dataset. - public class ExportRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - /// Constructs a new Export request. - public ExportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportDataRequest body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportDataRequest Body { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "export"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:export"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Export parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/operations/[^/]+$", + }); } + } - /// Gets a Dataset. - /// Required. The name of the Dataset resource. - public virtual GetRequest Get(string name) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new GetRequest(this.service, name); + Name = name; + InitParameters(); } - /// Gets a Dataset. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Required. The name of the Dataset resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Imports data into a Dataset. - /// The body of the request. - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual ImportRequest Import(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportDataRequest body, string name) - { - return new ImportRequest(this.service, body, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Imports data into a Dataset. - public class ImportRequest : AiplatformBaseServiceRequest + /// Initializes List parameter list. + protected override void InitParameters() { - /// Constructs a new Import request. - public ImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportDataRequest body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The name of the Dataset resource. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportDataRequest Body { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "import"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:import"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Import parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Lists Datasets in a Location. - /// - /// Required. The name of the Dataset's parent resource. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// Initializes Wait parameter list. + protected override void InitParameters() { - return new ListRequest(this.service, parent); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^featurestores/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } + } - /// Lists Datasets in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// The "hyperparameterTuningJobs" collection of methods. + public class HyperparameterTuningJobsResource + { + private const string Resource = "hyperparameterTuningJobs"; - /// - /// Required. The name of the Dataset's parent resource. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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"` - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Constructs a new resource. + public HyperparameterTuningJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/datasets"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes List parameter list. - protected override void InitParameters() + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Updates a Dataset. - /// The body of the request. - /// - /// Output only. Identifier. The resource name of the Dataset. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new PatchRequest(this.service, body, name); + Name = name; + InitParameters(); } - /// Updates a Dataset. - public class PatchRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Output only. Identifier. The resource name of the Dataset. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Patch parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Searches DataItems in a Dataset. - /// - /// Required. The resource name of the Dataset from which to search DataItems. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - public virtual SearchDataItemsRequest SearchDataItems(string dataset) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new SearchDataItemsRequest(this.service, dataset); + Name = name; + InitParameters(); } - /// Searches DataItems in a Dataset. - public class SearchDataItemsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new SearchDataItems request. - public SearchDataItemsRequest(Google.Apis.Services.IClientService service, string dataset) : base(service) - { - Dataset = dataset; - InitParameters(); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. The resource name of the Dataset from which to search DataItems. Format: - /// `projects/{project}/locations/{location}/datasets/{dataset}` - /// - [Google.Apis.Util.RequestParameterAttribute("dataset", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Dataset { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("annotationFilters", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable AnnotationFilters { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// An expression for filtering the Annotations that will be returned per DataItem. * - /// `annotation_spec_id` - for = or !=. - /// - [Google.Apis.Util.RequestParameterAttribute("annotationsFilter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string AnnotationsFilter { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("annotationsLimit", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable AnnotationsLimit { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// - /// 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)` - /// - [Google.Apis.Util.RequestParameterAttribute("dataItemFilter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string DataItemFilter { get; set; } + /// Gets the method name. + public override string MethodName => "list"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("dataLabelingJob", Google.Apis.Util.RequestParameterType.Query)] - public virtual string DataLabelingJob { get; set; } - - /// Mask specifying which fields of DataItemView to read. - [Google.Apis.Util.RequestParameterAttribute("fieldMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object FieldMask { get; set; } - - /// - /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a - /// field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("orderByAnnotation.orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderByAnnotationOrderBy { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// - /// Required. Saved query of the Annotation. Only Annotations belong to this saved query will be - /// considered for ordering. - /// - [Google.Apis.Util.RequestParameterAttribute("orderByAnnotation.savedQuery", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderByAnnotationSavedQuery { get; set; } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^hyperparameterTuningJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// A comma-separated list of data item fields to order by, sorted in ascending order. Use "desc" - /// after a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderByDataItem", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderByDataItem { get; set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// - /// Requested page size. Server may return fewer results than requested. Default and maximum page - /// size is 100. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("savedQuery", Google.Apis.Util.RequestParameterType.Query)] - public virtual string SavedQuery { get; set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "searchDataItems"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+dataset}:searchDataItems"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes SearchDataItems parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("dataset", new Google.Apis.Discovery.Parameter - { - Name = "dataset", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - }); - RequestParameters.Add("annotationFilters", new Google.Apis.Discovery.Parameter - { - Name = "annotationFilters", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("annotationsFilter", new Google.Apis.Discovery.Parameter - { - Name = "annotationsFilter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("annotationsLimit", new Google.Apis.Discovery.Parameter - { - Name = "annotationsLimit", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("dataItemFilter", new Google.Apis.Discovery.Parameter - { - Name = "dataItemFilter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("dataLabelingJob", new Google.Apis.Discovery.Parameter - { - Name = "dataLabelingJob", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("fieldMask", new Google.Apis.Discovery.Parameter - { - Name = "fieldMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderByAnnotation.orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderByAnnotation.orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderByAnnotation.savedQuery", new Google.Apis.Discovery.Parameter - { - Name = "orderByAnnotation.savedQuery", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderByDataItem", new Google.Apis.Discovery.Parameter - { - Name = "orderByDataItem", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("savedQuery", new Google.Apis.Discovery.Parameter - { - Name = "savedQuery", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } + } + } - /// Gets the DeploymentResourcePools resource. - public virtual DeploymentResourcePoolsResource DeploymentResourcePools { get; } + /// The "indexEndpoints" collection of methods. + public class IndexEndpointsResource + { + private const string Resource = "indexEndpoints"; - /// The "deploymentResourcePools" collection of methods. - public class DeploymentResourcePoolsResource + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public IndexEndpointsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - private const string Resource = "deploymentResourcePools"; + this.service = service; + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Constructs a new resource. - public DeploymentResourcePoolsResource(Google.Apis.Services.IClientService service) + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; - Operations = new OperationsResource(service); + Name = name; + InitParameters(); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}: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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexEndpoints/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexEndpoints/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexEndpoints/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", - }); - } - } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "list"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexEndpoints/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the method name. + public override string MethodName => "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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexEndpoints/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// The "indexes" collection of methods. + public class IndexesResource + { + private const string Resource = "indexes"; - /// Gets the method name. - public override string MethodName => "wait"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Constructs a new resource. + public IndexesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Create a DeploymentResourcePool. - /// The body of the request. - /// - /// Required. The parent location resource where this DeploymentResourcePool will be created. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Create a DeploymentResourcePool. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// Required. The parent location resource where this DeploymentResourcePool will be created. - /// Format: `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest Body { get; set; } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/deploymentResourcePools"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Create parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexes/[^/]+/operations/[^/]+$", + }); } + } - /// Delete a DeploymentResourcePool. - /// - /// Required. The name of the DeploymentResourcePool to delete. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Delete a DeploymentResourcePool. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the DeploymentResourcePool to delete. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexes/[^/]+/operations/[^/]+$", + }); } + } - /// Get a DeploymentResourcePool. - /// - /// Required. The name of the DeploymentResourcePool to retrieve. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - public virtual GetRequest Get(string name) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new GetRequest(this.service, name); + Name = name; + InitParameters(); } - /// Get a DeploymentResourcePool. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. The name of the DeploymentResourcePool to retrieve. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexes/[^/]+/operations/[^/]+$", + }); } + } - /// List DeploymentResourcePools in a location. - /// - /// Required. The parent Location which owns this collection of DeploymentResourcePools. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// List DeploymentResourcePools in a location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The parent Location which owns this collection of DeploymentResourcePools. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// The maximum number of DeploymentResourcePools to return. The service may return fewer than this - /// value. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/deploymentResourcePools"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Update a DeploymentResourcePool. - /// The body of the request. - /// - /// Immutable. The resource name of the DeploymentResourcePool. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeploymentResourcePool body, string name) - { - return new PatchRequest(this.service, body, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Update a DeploymentResourcePool. - public class PatchRequest : AiplatformBaseServiceRequest + /// Initializes List parameter list. + protected override void InitParameters() { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeploymentResourcePool body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Immutable. The resource name of the DeploymentResourcePool. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexes/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Required. The list of fields to update. - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeploymentResourcePool Body { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// List DeployedModels that have been deployed on this DeploymentResourcePool. - /// - /// Required. The name of the target DeploymentResourcePool to query. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - public virtual QueryDeployedModelsRequest QueryDeployedModels(string deploymentResourcePool) + /// Initializes Wait parameter list. + protected override void InitParameters() { - return new QueryDeployedModelsRequest(this.service, deploymentResourcePool); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^indexes/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } + } - /// List DeployedModels that have been deployed on this DeploymentResourcePool. - public class QueryDeployedModelsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new QueryDeployedModels request. - public QueryDeployedModelsRequest(Google.Apis.Services.IClientService service, string deploymentResourcePool) : base(service) - { - DeploymentResourcePool = deploymentResourcePool; - InitParameters(); - } + /// The "media" collection of methods. + public class MediaResource + { + private const string Resource = "media"; - /// - /// Required. The name of the target DeploymentResourcePool to query. Format: - /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` - /// - [Google.Apis.Util.RequestParameterAttribute("deploymentResourcePool", Google.Apis.Util.RequestParameterType.Path)] - public virtual string DeploymentResourcePool { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// The maximum number of DeployedModels to return. The service may return fewer than this value. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Constructs a new resource. + public MediaResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Upload a file into a RagCorpus. + /// The body of the request. + /// + /// Required. The name of the RagCorpus resource into which to upload the file. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + public virtual UploadRequest Upload(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent) + { + return new UploadRequest(this.service, body, parent); + } - /// Gets the method name. - public override string MethodName => "queryDeployedModels"; + /// Upload a file into a RagCorpus. + public class UploadRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Upload request. + public UploadRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Required. The name of the RagCorpus resource into which to upload the file. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+deploymentResourcePool}:queryDeployedModels"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest Body { get; set; } - /// Initializes QueryDeployedModels parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("deploymentResourcePool", new Google.Apis.Discovery.Parameter - { - Name = "deploymentResourcePool", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the Endpoints resource. - public virtual EndpointsResource Endpoints { get; } + /// Gets the method name. + public override string MethodName => "upload"; - /// The "endpoints" collection of methods. - public class EndpointsResource - { - private const string Resource = "endpoints"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/ragFiles:upload"; - /// Constructs a new resource. - public EndpointsResource(Google.Apis.Services.IClientService service) + /// Initializes Upload parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - this.service = service; - Chat = new ChatResource(service); - DeployedModels = new DeployedModelsResource(service); - Invoke = new InvokeResource(service); - Openapi = new OpenapiResource(service); - Operations = new OperationsResource(service); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + }); + } + } - /// Gets the Chat resource. - public virtual ChatResource Chat { get; } + /// Upload a file into a RagCorpus. + /// + /// Considerations regarding : + /// + /// + /// + /// If is seekable, then the stream position will be reset to 0 before reading + /// commences. If is not seekable, then it will be read from its current position + /// + /// + /// + /// + /// Caller is responsible for maintaining the open until the upload is completed + /// + /// + /// Caller is responsible for closing the + /// + /// + /// The body of the request. + /// + /// Required. The name of the RagCorpus resource into which to upload the file. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + /// The stream to upload. See remarks for further information. + /// The content type of the stream to upload. + public virtual UploadMediaUpload Upload(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent, System.IO.Stream stream, string contentType) + { + return new UploadMediaUpload(service, body, parent, stream, contentType); + } - /// The "chat" collection of methods. - public class ChatResource - { - private const string Resource = "chat"; + /// Upload media upload which supports resumable upload. + public class UploadMediaUpload : Google.Apis.Upload.ResumableUpload + { + /// V1 error format. + [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Xgafv { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// V1 error format. + public enum XgafvEnum + { + /// v1 error format + [Google.Apis.Util.StringValueAttribute("1")] + Value1 = 0, - /// Constructs a new resource. - public ChatResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// v2 error format + [Google.Apis.Util.StringValueAttribute("2")] + Value2 = 1, + } - /// Exposes an OpenAI-compatible endpoint for chat completions. - /// The body of the request. - /// - /// Required. The name of the endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual CompletionsRequest Completions(Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) - { - return new CompletionsRequest(this.service, body, endpoint); - } + /// OAuth access token. + [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] + public virtual string AccessToken { get; set; } - /// Exposes an OpenAI-compatible endpoint for chat completions. - public class CompletionsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Completions request. - public CompletionsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// Data format for response. + [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Alt { get; set; } - /// - /// Required. The name of the endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// Data format for response. + public enum AltEnum + { + /// Responses with Content-Type of application/json + [Google.Apis.Util.StringValueAttribute("json")] + Json = 0, - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody Body { get; set; } + /// Media download with context-dependent Content-Type + [Google.Apis.Util.StringValueAttribute("media")] + Media = 1, - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Responses with Content-Type of application/x-protobuf + [Google.Apis.Util.StringValueAttribute("proto")] + Proto = 2, + } - /// Gets the method name. - public override string MethodName => "completions"; + /// JSONP + [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Callback { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Selector specifying which fields to include in a partial response. + [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Fields { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}/chat/completions"; + /// + /// API key. Your API key identifies your project and provides you with API access, quota, and reports. + /// Required unless you provide an OAuth 2.0 token. + /// + [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Key { get; set; } - /// Initializes Completions parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } - } - } + /// OAuth 2.0 token for the current user. + [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OauthToken { get; set; } - /// Gets the DeployedModels resource. - public virtual DeployedModelsResource DeployedModels { get; } + /// Returns response with indentations and line breaks. + [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PrettyPrint { get; set; } - /// The "deployedModels" collection of methods. - public class DeployedModelsResource - { - private const string Resource = "deployedModels"; + /// + /// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned + /// to a user, but should not exceed 40 characters. + /// + [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] + public virtual string QuotaUser { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Legacy upload protocol for media (e.g. "media", "multipart"). + [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] + public virtual string UploadType { get; set; } - /// Constructs a new resource. - public DeployedModelsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Invoke = new InvokeResource(service); - } + /// Upload protocol for media (e.g. "raw", "multipart"). + [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] + public virtual string UploadProtocol { get; set; } - /// Gets the Invoke resource. - public virtual InvokeResource Invoke { get; } + /// + /// Required. The name of the RagCorpus resource into which to upload the file. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The "invoke" collection of methods. - public class InvokeResource - { - private const string Resource = "invoke"; + /// Constructs a new Upload media upload instance. + /// + /// Considerations regarding : + /// + /// + /// + /// If is seekable, then the stream position will be reset to 0 before + /// reading commences. If is not seekable, then it will be read from its current + /// position + /// + /// + /// + /// + /// Caller is responsible for maintaining the open until the upload is completed + /// + /// + /// Caller is responsible for closing the + /// + /// + public UploadMediaUpload(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadRagFileRequest body, string parent, System.IO.Stream stream, string contentType) + : base(service, string.Format("/{0}/{1}{2}", "upload", service.BasePath, "v1/{+parent}/ragFiles:upload"), "POST", stream, contentType) + { + Parent = parent; + Body = body; + } + } + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The "metadataStores" collection of methods. + public class MetadataStoresResource + { + private const string Resource = "metadataStores"; - /// Constructs a new resource. - public InvokeResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - /// method, invoke_route_prefix must be set to allow the paths that will be specified in the - /// request. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - /// - /// ID of the DeployedModel that serves the invoke request. - /// - /// null - public virtual InvokeRequest Invoke(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string deployedModelId, string invokeId) - { - return new InvokeRequest(this.service, body, endpoint, deployedModelId, invokeId); - } + /// Constructs a new resource. + public MetadataStoresResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Artifacts = new ArtifactsResource(service); + Contexts = new ContextsResource(service); + Executions = new ExecutionsResource(service); + Operations = new OperationsResource(service); + } - /// - /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this - /// method, invoke_route_prefix must be set to allow the paths that will be specified in the - /// request. - /// - public class InvokeRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Invoke request. - public InvokeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string deployedModelId, string invokeId) : base(service) - { - Endpoint = endpoint; - DeployedModelId = deployedModelId; - InvokeId = invokeId; - Body = body; - InitParameters(); - } + /// Gets the Artifacts resource. + public virtual ArtifactsResource Artifacts { get; } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The "artifacts" collection of methods. + public class ArtifactsResource + { + private const string Resource = "artifacts"; - /// ID of the DeployedModel that serves the invoke request. - [Google.Apis.Util.RequestParameterAttribute("deployedModelId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string DeployedModelId { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - [Google.Apis.Util.RequestParameterAttribute("invokeId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string InvokeId { get; private set; } + /// Constructs a new resource. + public ArtifactsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest Body { get; set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the method name. - public override string MethodName => "invoke"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Initializes Invoke parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - RequestParameters.Add("deployedModelId", new Google.Apis.Discovery.Parameter - { - Name = "deployedModelId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("invokeId", new Google.Apis.Discovery.Parameter - { - Name = "invokeId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); } - } - /// Gets the Invoke resource. - public virtual InvokeResource Invoke { get; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "invoke" collection of methods. - public class InvokeResource - { - private const string Resource = "invoke"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Constructs a new resource. - public InvokeResource(Google.Apis.Services.IClientService service) + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() { - this.service = service; + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); } + } - /// - /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - /// invoke_route_prefix must be set to allow the paths that will be specified in the request. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - /// null - public virtual InvokeRequest Invoke(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string invokeId) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new InvokeRequest(this.service, body, endpoint, invokeId); + Name = name; + InitParameters(); } - /// - /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - /// invoke_route_prefix must be set to allow the paths that will be specified in the request. - /// - public class InvokeRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - /// Constructs a new Invoke request. - public InvokeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string invokeId) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Endpoint = endpoint; - InvokeId = invokeId; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); + } + } - [Google.Apis.Util.RequestParameterAttribute("invokeId", Google.Apis.Util.RequestParameterType.Path)] - public virtual string InvokeId { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest Body { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "invoke"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}/invoke/{+invokeId}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Invoke parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - RequestParameters.Add("invokeId", new Google.Apis.Discovery.Parameter - { - Name = "invokeId", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); } } - /// Gets the Openapi resource. - public virtual OpenapiResource Openapi { get; } - - /// The "openapi" collection of methods. - public class OpenapiResource + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - private const string Resource = "openapi"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new ListRequest(this.service, name); + } - /// Constructs a new resource. - public OpenapiResource(Google.Apis.Services.IClientService service) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } - /// - /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - /// invoke_route_prefix must be set to allow the paths that will be specified in the request. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual EmbeddingsRequest Embeddings(Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) - { - return new EmbeddingsRequest(this.service, body, endpoint); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, - /// invoke_route_prefix must be set to allow the paths that will be specified in the request. - /// - public class EmbeddingsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Embeddings request. - public EmbeddingsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// ID of the DeployedModel that serves the invoke request. - [Google.Apis.Util.RequestParameterAttribute("deployedModelId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string DeployedModelId { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody Body { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "embeddings"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}/embeddings"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Initializes Embeddings parameter list. - protected override void InitParameters() + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/openapi$", - }); - RequestParameters.Add("deployedModelId", new Google.Apis.Discovery.Parameter - { - Name = "deployedModelId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/artifacts/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new WaitRequest(this.service, name); + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// - /// 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`. + /// 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. /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the Contexts resource. + public virtual ContextsResource Contexts { get; } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The "contexts" collection of methods. + public class ContextsResource + { + private const string Resource = "contexts"; - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the method name. - public override string MethodName => "delete"; + /// Constructs a new resource. + public ContextsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", - }); - } - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ListRequest(this.service, name); + Name = name; + InitParameters(); } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } - - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } - - /// Gets the method name. - public override string MethodName => "wait"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; - - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); } } - /// Return a list of tokens based on the input text. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - /// - public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ComputeTokensRequest(this.service, body, endpoint); + return new ListRequest(this.service, name); } - /// Return a list of tokens based on the input text. - public class ComputeTokensRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new ComputeTokens request. - public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "computeTokens"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:computeTokens"; + public override string RestPath => "v1/{+name}/operations"; - /// Initializes ComputeTokens parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + Pattern = @"^metadataStores/[^/]+/contexts/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// Perform a token counting. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new CountTokensRequest(this.service, body, endpoint); + return new WaitRequest(this.service, name); } - /// Perform a token counting. - public class CountTokensRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new CountTokens request. - public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "countTokens"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:countTokens"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes CountTokens parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + Pattern = @"^metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } + } - /// Creates an Endpoint. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the Endpoint in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string parent) + /// Gets the Executions resource. + public virtual ExecutionsResource Executions { get; } + + /// The "executions" collection of methods. + public class ExecutionsResource + { + private const string Resource = "executions"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ExecutionsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - return new CreateRequest(this.service, body, parent); + this.service = service; } - /// Creates an Endpoint. - public class CreateRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string parent) : base(service) + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to create the Endpoint in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("endpointId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string EndpointId { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/endpoints"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Create parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("endpointId", new Google.Apis.Discovery.Parameter - { - Name = "endpointId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", }); } } - /// Deletes an Endpoint. - /// - /// Required. The name of the Endpoint resource to be deleted. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes an Endpoint. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -9594,10 +10019,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The name of the Endpoint resource to be deleted. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -9620,1291 +10042,1490 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + Pattern = @"^metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", }); } } - /// Deploys a Model into this Endpoint, creating a DeployedModel within it. - /// The body of the request. - /// - /// Required. The name of the Endpoint resource into which to deploy a Model. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual DeployModelRequest DeployModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployModelRequest body, string endpoint) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - return new DeployModelRequest(this.service, body, endpoint); + return new GetRequest(this.service, name); } - /// Deploys a Model into this Endpoint, creating a DeployedModel within it. - public class DeployModelRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { - /// Constructs a new DeployModel request. - public DeployModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployModelRequest body, string endpoint) : base(service) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint resource into which to deploy a Model. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployModelRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "deployModel"; + public override string MethodName => "get"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:deployModel"; + public override string RestPath => "v1/{+name}"; - /// Initializes DeployModel parameter list. + /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + Pattern = @"^metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", }); } } /// - /// Perform an unary online prediction request to a gRPC model server for Vertex first-party products - /// and frameworks. + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual DirectPredictRequest DirectPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectPredictRequest body, string endpoint) + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new DirectPredictRequest(this.service, body, endpoint); + return new ListRequest(this.service, name); } /// - /// Perform an unary online prediction request to a gRPC model server for Vertex first-party products - /// and frameworks. + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. /// - public class DirectPredictRequest : AiplatformBaseServiceRequest + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new DirectPredict request. - public DirectPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectPredictRequest body, string endpoint) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectPredictRequest Body { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "directPredict"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:directPredict"; + public override string RestPath => "v1/{+name}/operations"; - /// Initializes DirectPredict parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + Pattern = @"^metadataStores/[^/]+/executions/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } /// - /// Perform an unary online prediction request to a gRPC model server for custom containers. + /// 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. /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual DirectRawPredictRequest DirectRawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectRawPredictRequest body, string endpoint) + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new DirectRawPredictRequest(this.service, body, endpoint); + return new WaitRequest(this.service, name); } /// - /// Perform an unary online prediction request to a gRPC model server for custom containers. + /// 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. /// - public class DirectRawPredictRequest : AiplatformBaseServiceRequest + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new DirectRawPredict request. - public DirectRawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectRawPredictRequest body, string endpoint) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectRawPredictRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "directRawPredict"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:directRawPredict"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes DirectRawPredict parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + Pattern = @"^metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } + } - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the explanation. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual ExplainRequest Explain(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExplainRequest body, string endpoint) - { - return new ExplainRequest(this.service, body, endpoint); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - /// 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. - /// - public class ExplainRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Explain request. - public ExplainRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExplainRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// - /// Required. The name of the Endpoint requested to serve the explanation. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExplainRequest Body { get; set; } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "explain"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:explain"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Initializes Explain parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Fetch an asynchronous online prediction operation. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) - { - return new FetchPredictOperationRequest(this.service, body, endpoint); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Fetch an asynchronous online prediction operation. - public class FetchPredictOperationRequest : AiplatformBaseServiceRequest + /// Initializes Cancel parameter list. + protected override void InitParameters() { - /// Constructs a new FetchPredictOperation request. - public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "fetchPredictOperation"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes FetchPredictOperation parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/operations/[^/]+$", + }); } + } - /// Generate content with multimodal inputs. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) - { - return new GenerateContentRequest(this.service, body, model); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Generate content with multimodal inputs. - public class GenerateContentRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new GenerateContent request. - public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) - { - Model = model; - Body = body; - InitParameters(); - } - - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. - /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned - /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "generateContent"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+model}:generateContent"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes GenerateContent parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter - { - Name = "model", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/operations/[^/]+$", + }); } + } - /// Gets an Endpoint. - /// - /// Required. The name of the Endpoint resource. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual GetRequest Get(string name) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new GetRequest(this.service, name); + Name = name; + InitParameters(); } - /// Gets an Endpoint. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. The name of the Endpoint resource. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "list"; - /// Lists Endpoints in a Location. - /// - /// Required. The resource name of the Location from which to list the Endpoints. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Lists Endpoints in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Parent = parent; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The resource name of the Location from which to list the Endpoints. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// - /// 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"`. * `base_model_name` only supports `=`. Some - /// examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * - /// `baseModelName="text-bison"` - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only - /// set this field when the Endpoint is to be deployed in a GDC environment. - /// - [Google.Apis.Util.RequestParameterAttribute("gdcZone", Google.Apis.Util.RequestParameterType.Query)] - public virtual string GdcZone { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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`. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the method name. + public override string MethodName => "wait"; - /// - /// Optional. The standard list page token. Typically obtained via - /// ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Optional. Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Gets the method name. - public override string MethodName => "list"; + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^metadataStores/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The "migratableResources" collection of methods. + public class MigratableResourcesResource + { + private const string Resource = "migratableResources"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/endpoints"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("gdcZone", new Google.Apis.Discovery.Parameter - { - Name = "gdcZone", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Constructs a new resource. + public MigratableResourcesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// - /// Updates an existing deployed model. Updatable fields include `min_replica_count`, - /// `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, - /// `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual MutateDeployedModelRequest MutateDeployedModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MutateDeployedModelRequest body, string endpoint) - { - return new MutateDeployedModelRequest(this.service, body, endpoint); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - /// Updates an existing deployed model. Updatable fields include `min_replica_count`, - /// `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, - /// `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). - /// - public class MutateDeployedModelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new MutateDeployedModel request. - public MutateDeployedModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MutateDeployedModelRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// - /// Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MutateDeployedModelRequest Body { get; set; } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "mutateDeployedModel"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:mutateDeployedModel"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Initializes MutateDeployedModel parameter list. - protected override void InitParameters() + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^migratableResources/[^/]+/operations/[^/]+$", + }); } + } - /// Updates an Endpoint. - /// The body of the request. - /// Output only. The resource name of the Endpoint. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string name) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new PatchRequest(this.service, body, name); + Name = name; + InitParameters(); } - /// Updates an Endpoint. - public class PatchRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } - - /// Output only. The resource name of the Endpoint. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^migratableResources/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The update mask applies to the resource. See google.protobuf.FieldMask. - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint Body { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Patch parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^migratableResources/[^/]+/operations/[^/]+$", + }); } + } - /// Perform an online prediction. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) - { - return new PredictRequest(this.service, body, endpoint); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Perform an online prediction. - public class PredictRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Predict request. - public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "predict"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predict"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes Predict parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) - { - return new PredictLongRunningRequest(this.service, body, endpoint); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// - public class PredictLongRunningRequest : AiplatformBaseServiceRequest + /// Initializes List parameter list. + protected override void InitParameters() { - /// Constructs a new PredictLongRunning request. - public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^migratableResources/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "predictLongRunning"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predictLongRunning"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes PredictLongRunning parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual RawPredictRequest RawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) + /// Initializes Wait parameter list. + protected override void InitParameters() { - return new RawPredictRequest(this.service, body, endpoint); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^migratableResources/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } + } - /// - /// 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. - /// - public class RawPredictRequest : AiplatformBaseServiceRequest - { - /// Constructs a new RawPredict request. - public RawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// The "modelDeploymentMonitoringJobs" collection of methods. + public class ModelDeploymentMonitoringJobsResource + { + private const string Resource = "modelDeploymentMonitoringJobs"; - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest Body { get; set; } + /// Constructs a new resource. + public ModelDeploymentMonitoringJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "rawPredict"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:rawPredict"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes RawPredict parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// - /// Perform a server-side streaming online prediction request for Vertex LLM streaming. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual ServerStreamingPredictRequest ServerStreamingPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ServerStreamingPredictRequest(this.service, body, endpoint); + Name = name; + InitParameters(); } - /// - /// Perform a server-side streaming online prediction request for Vertex LLM streaming. - /// - public class ServerStreamingPredictRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ServerStreamingPredict request. - public ServerStreamingPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "serverStreamingPredict"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:serverStreamingPredict"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes ServerStreamingPredict parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Generate content with multimodal inputs with streaming support. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) - { - return new StreamGenerateContentRequest(this.service, body, model); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Generate content with multimodal inputs with streaming support. - public class StreamGenerateContentRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new StreamGenerateContent request. - public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) - { - Model = model; - Body = body; - InitParameters(); - } - - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. - /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned - /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "streamGenerateContent"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+model}:streamGenerateContent"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes StreamGenerateContent parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter - { - Name = "model", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Perform a streaming online prediction with an arbitrary HTTP payload. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual StreamRawPredictRequest StreamRawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) - { - return new StreamRawPredictRequest(this.service, body, endpoint); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Perform a streaming online prediction with an arbitrary HTTP payload. - public class StreamRawPredictRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new StreamRawPredict request. - public StreamRawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest Body { get; set; } + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "streamRawPredict"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:streamRawPredict"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes StreamRawPredict parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + }); } + } - /// - /// Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's - /// using. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint resource from which to undeploy a Model. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual UndeployModelRequest UndeployModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployModelRequest body, string endpoint) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new UndeployModelRequest(this.service, body, endpoint); + Name = name; + InitParameters(); } - /// - /// Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's - /// using. - /// - public class UndeployModelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new UndeployModel request. - public UndeployModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployModelRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. The name of the Endpoint resource from which to undeploy a Model. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployModelRequest Body { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "undeployModel"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:undeployModel"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes UndeployModel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Updates an Endpoint with a long running operation. - /// The body of the request. - /// Output only. The resource name of the Endpoint. - public virtual UpdateRequest Update(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest body, string name) + /// Initializes List parameter list. + protected override void InitParameters() { - return new UpdateRequest(this.service, body, name); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^modelDeploymentMonitoringJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// Updates an Endpoint with a long running operation. - public class UpdateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Update request. - public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Output only. The resource name of the Endpoint. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "update"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:update"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Update parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } + } + } - /// Gets the EvaluationItems resource. - public virtual EvaluationItemsResource EvaluationItems { get; } + /// The "models" collection of methods. + public class ModelsResource + { + private const string Resource = "models"; - /// The "evaluationItems" collection of methods. - public class EvaluationItemsResource + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ModelsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Evaluations = new EvaluationsResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the Evaluations resource. + public virtual EvaluationsResource Evaluations { get; } + + /// The "evaluations" collection of methods. + public class EvaluationsResource + { + private const string Resource = "evaluations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public EvaluationsResource(Google.Apis.Services.IClientService service) { - private const string Resource = "evaluationItems"; + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public EvaluationItemsResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; } - /// Creates an Evaluation Item. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the Evaluation Item in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationItem body, string parent) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CreateRequest(this.service, body, parent); + return new CancelRequest(this.service, name); } - /// Creates an Evaluation Item. - public class CreateRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationItem body, string parent) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to create the Evaluation Item in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationItem Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluationItems"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Create parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^models/[^/]+/evaluations/[^/]+/operations/[^/]+$", }); } } - /// Deletes an Evaluation Item. - /// - /// Required. The name of the EvaluationItem resource to be deleted. Format: - /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` - /// + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes an Evaluation Item. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -10913,10 +11534,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The name of the EvaluationItem resource to be deleted. Format: - /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -10939,23 +11557,26 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + Pattern = @"^models/[^/]+/evaluations/[^/]+/operations/[^/]+$", }); } } - /// Gets an Evaluation Item. - /// - /// Required. The name of the EvaluationItem resource. Format: - /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets an Evaluation Item. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -10964,10 +11585,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the EvaluationItem resource. Format: - /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -10990,64 +11608,61 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + Pattern = @"^models/[^/]+/evaluations/[^/]+/operations/[^/]+$", }); } } - /// Lists Evaluation Items. - /// - /// Required. The resource name of the Location from which to list the Evaluation Items. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists Evaluation Items. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location from which to list the Evaluation Items. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Optional. Filter expression that matches a subset of the EvaluationItems to show. For field - /// names both snake_case and camelCase are supported. For more information about filter syntax, see - /// [AIP-160](https://google.aip.dev/160). - /// + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// - /// Optional. A comma-separated list of fields to order by, sorted in ascending order by default. - /// Use `desc` after a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// Optional. The maximum number of Evaluation Items to return. + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to - /// retrieve the subsequent page. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -11055,19 +11670,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluationItems"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^models/[^/]+/evaluations/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -11077,25 +11692,25 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Name = "orderBy", + Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - Name = "pageSize", + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -11103,76 +11718,62 @@ protected override void InitParameters() }); } } - } - - /// Gets the EvaluationRuns resource. - public virtual EvaluationRunsResource EvaluationRuns { get; } - - /// The "evaluationRuns" collection of methods. - public class EvaluationRunsResource - { - private const string Resource = "evaluationRuns"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public EvaluationRunsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } /// - /// Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run - /// can be checked via GetEvaluationRun. + /// 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. /// - /// The body of the request. - /// - /// Required. The name of the EvaluationRun resource to be cancelled. Format: - /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelEvaluationRunRequest body, string name) + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new CancelRequest(this.service, body, name); + return new WaitRequest(this.service, name); } /// - /// Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run - /// can be checked via GetEvaluationRun. + /// 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. /// - public class CancelRequest : AiplatformBaseServiceRequest + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelEvaluationRunRequest body, string name) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// - /// Required. The name of the EvaluationRun resource to be cancelled. Format: - /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - /// + /// The name of the operation resource to wait on. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelEvaluationRunRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "cancel"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Cancel parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); @@ -11182,3275 +11783,3543 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + Pattern = @"^models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } + } - /// Creates an Evaluation Run. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the Evaluation Run in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationRun body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Creates an Evaluation Run. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationRun body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// - /// Required. The resource name of the Location to create the Evaluation Run in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationRun Body { get; set; } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "create"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluationRuns"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Initializes Create parameter list. - protected override void InitParameters() + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^models/[^/]+/operations/[^/]+$", + }); } + } - /// Deletes an Evaluation Run. - /// - /// Required. The name of the EvaluationRun resource to be deleted. Format: - /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Deletes an Evaluation Run. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the EvaluationRun resource to be deleted. Format: - /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^models/[^/]+/operations/[^/]+$", + }); } + } - /// Gets an Evaluation Run. - /// - /// Required. The name of the EvaluationRun resource. Format: - /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets an Evaluation Run. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the EvaluationRun resource. Format: - /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^models/[^/]+/operations/[^/]+$", + }); } + } - /// Lists Evaluation Runs. - /// - /// Required. The resource name of the Location from which to list the Evaluation Runs. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Lists Evaluation Runs. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The resource name of the Location from which to list the Evaluation Runs. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names - /// both snake_case and camelCase are supported. For more information about filter syntax, see - /// [AIP-160](https://google.aip.dev/160). - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// Optional. A comma-separated list of fields to order by, sorted in ascending order by default. - /// Use `desc` after a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Optional. The maximum number of Evaluation Runs to return. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// - /// Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to - /// retrieve the subsequent page. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluationRuns"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^models/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Gets the EvaluationSets resource. - public virtual EvaluationSetsResource EvaluationSets { get; } - - /// The "evaluationSets" collection of methods. - public class EvaluationSetsResource + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - private const string Resource = "evaluationSets"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new WaitRequest(this.service, name); + } - /// Constructs a new resource. - public EvaluationSetsResource(Google.Apis.Services.IClientService service) + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } - /// Creates an Evaluation Set. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the Evaluation Set in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Creates an Evaluation Set. - public class CreateRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string parent) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^models/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// Required. The resource name of the Location to create the Evaluation Set in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The "notebookExecutionJobs" collection of methods. + public class NotebookExecutionJobsResource + { + private const string Resource = "notebookExecutionJobs"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet Body { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Constructs a new resource. + public NotebookExecutionJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluationSets"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Deletes an Evaluation Set. - /// - /// Required. The name of the EvaluationSet resource to be deleted. Format: - /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Deletes an Evaluation Set. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the EvaluationSet resource to be deleted. Format: - /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookExecutionJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Gets an Evaluation Set. - /// - /// Required. The name of the EvaluationSet resource. Format: - /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - /// - public virtual GetRequest Get(string name) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new GetRequest(this.service, name); + Name = name; + InitParameters(); } - /// Gets an Evaluation Set. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// Required. The name of the EvaluationSet resource. Format: - /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookExecutionJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Lists Evaluation Sets. - /// - /// Required. The resource name of the Location from which to list the Evaluation Sets. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Lists Evaluation Sets. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// Required. The resource name of the Location from which to list the Evaluation Sets. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names - /// both snake_case and camelCase are supported. For more information about filter syntax, see - /// [AIP-160](https://google.aip.dev/160). - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// Optional. A comma-separated list of fields to order by, sorted in ascending order by default. - /// Use `desc` after a field name for descending. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// Optional. The maximum number of Evaluation Sets to return. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + Name = name; + InitParameters(); + } - /// - /// Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to - /// retrieve the subsequent page. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluationSets"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookExecutionJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Updates an Evaluation Set. - /// The body of the request. - /// - /// Identifier. The resource name of the EvaluationSet. Format: - /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string name) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new PatchRequest(this.service, body, name); + Name = name; + InitParameters(); } - /// Updates an Evaluation Set. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Identifier. The resource name of the EvaluationSet. Format: - /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// Optional. The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet Body { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Initializes Patch parameter list. - protected override void InitParameters() + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookExecutionJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Gets the FeatureGroups resource. - public virtual FeatureGroupsResource FeatureGroups { get; } - - /// The "featureGroups" collection of methods. - public class FeatureGroupsResource + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - private const string Resource = "featureGroups"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new WaitRequest(this.service, name); + } - /// Constructs a new resource. - public FeatureGroupsResource(Google.Apis.Services.IClientService service) + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; - Features = new FeaturesResource(service); - Operations = new OperationsResource(service); + Name = name; + InitParameters(); } - /// Gets the Features resource. - public virtual FeaturesResource Features { get; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "features" collection of methods. - public class FeaturesResource - { - private const string Resource = "features"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the method name. + public override string MethodName => "wait"; - /// Constructs a new resource. - public FeaturesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// The "operations" collection of methods. - public class OperationsResource + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookExecutionJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// The "notebookRuntimeTemplates" collection of methods. + public class NotebookRuntimeTemplatesResource + { + private const string Resource = "notebookRuntimeTemplates"; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Constructs a new resource. + public NotebookRuntimeTemplatesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "delete"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); + } + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListWaitRequest ListWait(string name) - { - return new ListWaitRequest(this.service, name); - } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListWaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ListWait request. - public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "listWait"; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes ListWait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); + } + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "wait"; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Creates a batch of Features in a given FeatureGroup. - /// The body of the request. - /// - /// Required. The resource name of the EntityType/FeatureGroup to create the batch of Features - /// under. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` - /// - public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) - { - return new BatchCreateRequest(this.service, body, parent); - } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Creates a batch of Features in a given FeatureGroup. - public class BatchCreateRequest : AiplatformBaseServiceRequest + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new BatchCreate request. - public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimeTemplates/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The resource name of the EntityType/FeatureGroup to create the batch of Features - /// under. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest Body { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "batchCreate"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/features:batchCreate"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes BatchCreate parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Creates a new Feature in a given FeatureGroup. - /// The body of the request. - /// - /// 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}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new CreateRequest(this.service, body, parent); - } - - /// Creates a new Feature in a given FeatureGroup. - public class CreateRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("featureId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string FeatureId { get; set; } + /// The "notebookRuntimes" collection of methods. + public class NotebookRuntimesResource + { + private const string Resource = "notebookRuntimes"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Constructs a new resource. + public NotebookRuntimesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/features"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - RequestParameters.Add("featureId", new Google.Apis.Discovery.Parameter - { - Name = "featureId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Deletes a single Feature. - /// - /// 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}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Deletes a single Feature. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets details of a single Feature. - /// - /// 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}` - /// - public virtual GetRequest Get(string name) + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new GetRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimes/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets details of a single Feature. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Lists Features in a given FeatureGroup. - /// - /// 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}` - /// - public virtual ListRequest List(string parent) + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new ListRequest(this.service, parent); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimes/[^/]+/operations/[^/]+$", + }); + } + } - /// Lists Features in a given FeatureGroup. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Lists the Features that match the filter expression. The following filters are supported: * - /// `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, &lt;, - /// &gt;, &gt;=, and &lt;= comparisons. Values must be in RFC 3339 format. * - /// `update_time`: Supports =, !=, &lt;, &gt;, &gt;=, and &lt;= comparisons. - /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key - /// presence. Examples: * `value_type = DOUBLE` --&gt; Features whose type is DOUBLE. * - /// `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time &gt; - /// \"2020-01-31T15:30:00.000000Z\"` --&gt; EntityTypes created or updated after - /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --&gt; - /// Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --&gt; Any - /// Feature which has a label with 'env' as the key. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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 &lt; ListFeaturesRequest.latest_stats_count, return - /// all existing stats. - /// - [Google.Apis.Util.RequestParameterAttribute("latestStatsCount", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable LatestStatsCount { get; set; } + /// Gets the method name. + public override string MethodName => "get"; - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimes/[^/]+/operations/[^/]+$", + }); + } + } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/features"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("latestStatsCount", new Google.Apis.Discovery.Parameter - { - Name = "latestStatsCount", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Updates the parameters of a single Feature. - /// The body of the request. - /// - /// 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. - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) - { - return new PatchRequest(this.service, body, name); - } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Updates the parameters of a single Feature. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "list"; - /// - /// 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 FeatureRegistryService Feature) * `point_of_contact` - /// (Not supported for FeaturestoreService FeatureStore) - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimes/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Gets the method name. - public override string MethodName => "patch"; + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the method name. + public override string MethodName => "wait"; - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^notebookRuntimes/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - return new DeleteRequest(this.service, name); - } + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the method name. - public override string MethodName => "delete"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - }); - } - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "cancel"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets the method name. - public override string MethodName => "get"; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^operations/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - }); - } - } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListWaitRequest ListWait(string name) - { - return new ListWaitRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "delete"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListWaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ListWait request. - public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^operations/[^/]+$", + }); + } + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "listWait"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes ListWait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^operations/[^/]+$", + }); + } + } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this method, + /// it returns `UNIMPLEMENTED`. + /// + public virtual ListRequest List() + { + return new ListRequest(this.service); + } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this method, + /// it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service) : base(service) + { + InitParameters(); + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Name { get; set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are unreachable + /// are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading + /// across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by + /// default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + /// otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Gets the method name. + public override string MethodName => "list"; - /// Creates a new FeatureGroup in a given project and location. - /// The body of the request. - /// - /// Required. The resource name of the Location to create FeatureGroups. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Creates a new FeatureGroup in a given project and location. - public class CreateRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The resource name of the Location to create FeatureGroups. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// - /// 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 128 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. - /// - [Google.Apis.Util.RequestParameterAttribute("featureGroupId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string FeatureGroupId { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featureGroups"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("featureGroupId", new Google.Apis.Discovery.Parameter - { - Name = "featureGroupId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// Deletes a single FeatureGroup. - /// - /// Required. The name of the FeatureGroup to be deleted. Format: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` - /// - public virtual DeleteRequest Delete(string name) + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new DeleteRequest(this.service, name); - } - - /// Deletes a single FeatureGroup. - public class DeleteRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// Required. The name of the FeatureGroup to be deleted. Format: - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "persistentResources" collection of methods. + public class PersistentResourcesResource + { + private const string Resource = "persistentResources"; - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the method name. - public override string MethodName => "delete"; + /// Constructs a new resource. + public PersistentResourcesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter - { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets details of a single FeatureGroup. - /// Required. The name of the FeatureGroup resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets details of a single FeatureGroup. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// Required. The name of the FeatureGroup resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^persistentResources/[^/]+/operations/[^/]+$", + }); } + } - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - /// - /// 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. - /// - public virtual GetIamPolicyRequest GetIamPolicy(string resource) - { - return new GetIamPolicyRequest(this.service, resource); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - public class GetIamPolicyRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new GetIamPolicy request. - public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) - { - Resource = resource; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + Name = name; + InitParameters(); + } - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "getIamPolicy"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:getIamPolicy"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes GetIamPolicy parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter - { - Name = "options.requestedPolicyVersion", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^persistentResources/[^/]+/operations/[^/]+$", + }); } + } - /// Lists FeatureGroups in a given project and location. - /// - /// Required. The resource name of the Location to list FeatureGroups. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Lists FeatureGroups in a given project and location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// Required. The resource name of the Location to list FeatureGroups. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// Lists the FeatureGroups that match the filter expression. The following fields are supported: * - /// `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` - /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `&lt;`, - /// `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 format. * - /// `labels`: Supports key-value equality and key presence. Examples: * `create_time &gt; - /// "2020-01-01" OR update_time &gt; "2020-01-01"` FeatureGroups created or updated after - /// 2020-01-01. * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + Name = name; + InitParameters(); + } - /// - /// A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide - /// this to retrieve the subsequent page. When paginating, all other parameters provided to - /// FeatureRegistryService.ListFeatureGroups must match the call that provided the page token. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featureGroups"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^persistentResources/[^/]+/operations/[^/]+$", + }); } + } - /// Updates the parameters of a single FeatureGroup. - /// The body of the request. - /// - /// Identifier. Name of the FeatureGroup. Format: - /// `projects/{project}/locations/{location}/featureGroups/{featureGroup}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string name) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new PatchRequest(this.service, body, name); + Name = name; + InitParameters(); } - /// Updates the parameters of a single FeatureGroup. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Identifier. Name of the FeatureGroup. Format: - /// `projects/{project}/locations/{location}/featureGroups/{featureGroup}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// 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` * `big_query` * - /// `big_query.entity_id_columns` * `service_agent_type` - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup Body { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Initializes Patch parameter list. - protected override void InitParameters() + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^persistentResources/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - /// The body of the request. - /// - /// 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. - /// - public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new SetIamPolicyRequest(this.service, body, resource); + Name = name; + InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// 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. /// - public class SetIamPolicyRequest : AiplatformBaseServiceRequest + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - /// Constructs a new SetIamPolicy request. - public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Resource = resource; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^persistentResources/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + /// The "pipelineJobs" collection of methods. + public class PipelineJobsResource + { + private const string Resource = "pipelineJobs"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Constructs a new resource. + public PipelineJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the method name. - public override string MethodName => "setIamPolicy"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:setIamPolicy"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes SetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - } - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// 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. - /// - /// - /// 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. - /// - public virtual TestIamPermissionsRequest TestIamPermissions(string resource) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new TestIamPermissionsRequest(this.service, resource); + Name = name; + InitParameters(); } - /// - /// 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. - /// - public class TestIamPermissionsRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() { - /// Constructs a new TestIamPermissions request. - public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Resource = resource; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^pipelineJobs/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable Permissions { get; set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "testIamPermissions"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:testIamPermissions"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes TestIamPermissions parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - }); - RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter - { - Name = "permissions", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^pipelineJobs/[^/]+/operations/[^/]+$", + }); } } - /// Gets the FeatureOnlineStores resource. - public virtual FeatureOnlineStoresResource FeatureOnlineStores { 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The "featureOnlineStores" collection of methods. - public class FeatureOnlineStoresResource + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { - private const string Resource = "featureOnlineStores"; + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Constructs a new resource. - public FeatureOnlineStoresResource(Google.Apis.Services.IClientService service) + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - this.service = service; - FeatureViews = new FeatureViewsResource(service); - Operations = new OperationsResource(service); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^pipelineJobs/[^/]+/operations/[^/]+$", + }); } + } - /// Gets the FeatureViews resource. - public virtual FeatureViewsResource FeatureViews { get; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// The "featureViews" collection of methods. - public class FeatureViewsResource + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - private const string Resource = "featureViews"; + Name = name; + InitParameters(); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Constructs a new resource. - public FeatureViewsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - FeatureViewSyncs = new FeatureViewSyncsResource(service); - Operations = new OperationsResource(service); - } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the FeatureViewSyncs resource. - public virtual FeatureViewSyncsResource FeatureViewSyncs { get; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// The "featureViewSyncs" collection of methods. - public class FeatureViewSyncsResource - { - private const string Resource = "featureViewSyncs"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Constructs a new resource. - public FeatureViewSyncsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Gets the method name. + public override string MethodName => "list"; - /// Gets details of a single FeatureViewSync. - /// - /// Required. The name of the FeatureViewSync resource. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets details of a single FeatureViewSync. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// - /// Required. The name of the FeatureViewSync resource. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^pipelineJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", - }); - } - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Lists FeatureViewSyncs in a given FeatureView. - /// - /// Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// Gets the method name. + public override string MethodName => "wait"; - /// Lists FeatureViewSyncs in a given FeatureView. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// - /// Lists the FeatureViewSyncs that match the filter expression. The following filters are - /// supported: * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&gt;=`, and - /// `&lt;=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time - /// &gt; \"2020-01-31T15:30:00.000000Z\"` --&gt; FeatureViewSyncs created after - /// 2020-01-31T15:30:00.000000Z. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^pipelineJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The "projects" collection of methods. + public class ProjectsResource + { + private const string Resource = "projects"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Constructs a new resource. + public ProjectsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Locations = new LocationsResource(service); + } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the Locations resource. + public virtual LocationsResource Locations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The "locations" collection of methods. + public class LocationsResource + { + private const string Resource = "locations"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featureViewSyncs"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Constructs a new resource. + public LocationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + BatchPredictionJobs = new BatchPredictionJobsResource(service); + CachedContents = new CachedContentsResource(service); + CustomJobs = new CustomJobsResource(service); + DataLabelingJobs = new DataLabelingJobsResource(service); + Datasets = new DatasetsResource(service); + DeploymentResourcePools = new DeploymentResourcePoolsResource(service); + Endpoints = new EndpointsResource(service); + EvaluationItems = new EvaluationItemsResource(service); + EvaluationRuns = new EvaluationRunsResource(service); + EvaluationSets = new EvaluationSetsResource(service); + FeatureGroups = new FeatureGroupsResource(service); + FeatureOnlineStores = new FeatureOnlineStoresResource(service); + Featurestores = new FeaturestoresResource(service); + HyperparameterTuningJobs = new HyperparameterTuningJobsResource(service); + IndexEndpoints = new IndexEndpointsResource(service); + Indexes = new IndexesResource(service); + MetadataStores = new MetadataStoresResource(service); + MigratableResources = new MigratableResourcesResource(service); + ModelDeploymentMonitoringJobs = new ModelDeploymentMonitoringJobsResource(service); + Models = new ModelsResource(service); + NasJobs = new NasJobsResource(service); + NotebookExecutionJobs = new NotebookExecutionJobsResource(service); + NotebookRuntimeTemplates = new NotebookRuntimeTemplatesResource(service); + NotebookRuntimes = new NotebookRuntimesResource(service); + Operations = new OperationsResource(service); + PersistentResources = new PersistentResourcesResource(service); + PipelineJobs = new PipelineJobsResource(service); + Publishers = new PublishersResource(service); + RagCorpora = new RagCorporaResource(service); + RagEngineConfig = new RagEngineConfigResource(service); + ReasoningEngines = new ReasoningEnginesResource(service); + Schedules = new SchedulesResource(service); + SpecialistPools = new SpecialistPoolsResource(service); + Studies = new StudiesResource(service); + Tensorboards = new TensorboardsResource(service); + TrainingPipelines = new TrainingPipelinesResource(service); + TuningJobs = new TuningJobsResource(service); + } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the BatchPredictionJobs resource. + public virtual BatchPredictionJobsResource BatchPredictionJobs { get; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// The "batchPredictionJobs" collection of methods. + public class BatchPredictionJobsResource + { + private const string Resource = "batchPredictionJobs"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Constructs a new resource. + public BatchPredictionJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. The name of the BatchPredictionJob to cancel. Format: + /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelBatchPredictionJobRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelBatchPredictionJobRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The name of the BatchPredictionJob to cancel. Format: + /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelBatchPredictionJobRequest Body { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + }); + } + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to + /// start. + /// + /// The body of the request. + /// + /// Required. The resource name of the Location to create the BatchPredictionJob in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchPredictionJob body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to + /// start. + /// + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchPredictionJob body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Required. The resource name of the Location to create the BatchPredictionJob in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchPredictionJob Body { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", - }); - } - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListWaitRequest ListWait(string name) - { - return new ListWaitRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "create"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListWaitRequest : AiplatformBaseServiceRequest + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/batchPredictionJobs"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - /// Constructs a new ListWait request. - public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Deletes a BatchPredictionJob. Can only be called on jobs that already finished. + /// + /// Required. The name of the BatchPredictionJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Deletes a BatchPredictionJob. Can only be called on jobs that already finished. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// Required. The name of the BatchPredictionJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the method name. - public override string MethodName => "listWait"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets a BatchPredictionJob + /// + /// Required. The name of the BatchPredictionJob resource. Format: + /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Initializes ListWait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } - - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } - - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets a BatchPredictionJob + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// Required. The name of the BatchPredictionJob resource. Format: + /// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Creates a new FeatureView in a given FeatureOnlineStore. - /// The body of the request. - /// - /// Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Creates a new FeatureView in a given FeatureOnlineStore. - public class CreateRequest : AiplatformBaseServiceRequest + /// Initializes Get parameter list. + protected override void InitParameters() { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string parent) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + }); + } + } - /// - /// Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Lists BatchPredictionJobs in a Location. + /// + /// Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("featureViewId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string FeatureViewId { get; set; } + /// Lists BatchPredictionJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } - /// - /// Immutable. If set to true, one on demand sync will be run immediately, regardless whether - /// the FeatureView.sync_config is configured or not. - /// - [Google.Apis.Util.RequestParameterAttribute("runSyncImmediately", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable RunSyncImmediately { get; set; } + /// + /// Required. The resource name of the Location to list the BatchPredictionJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView Body { get; set; } + /// + /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + /// `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, + /// `!=` comparisons. * `create_time` supports `=`, `!=`,`&lt;`, `&lt;=`,`&gt;`, + /// `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * + /// `labels.keyB:*` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "create"; + /// + /// The standard list page token. Typically obtained via + /// ListBatchPredictionJobsResponse.next_page_token of the previous + /// JobService.ListBatchPredictionJobs call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featureViews"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - }); - RequestParameters.Add("featureViewId", new Google.Apis.Discovery.Parameter - { - Name = "featureViewId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("runSyncImmediately", new Google.Apis.Discovery.Parameter - { - Name = "runSyncImmediately", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Deletes a single FeatureView. - /// - /// Required. The name of the FeatureView to be deleted. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/batchPredictionJobs"; - /// Deletes a single FeatureView. - public class DeleteRequest : AiplatformBaseServiceRequest + /// Initializes List parameter list. + protected override void InitParameters() { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = name; - InitParameters(); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// Required. The name of the FeatureView to be deleted. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the CachedContents resource. + public virtual CachedContentsResource CachedContents { get; } - /// Gets the method name. - public override string MethodName => "delete"; + /// The "cachedContents" collection of methods. + public class CachedContentsResource + { + private const string Resource = "cachedContents"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public CachedContentsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", - }); - } - } + /// + /// Creates cached content, this call will initialize the cached content in the data storage, and users + /// need to pay for the cache data storage. + /// + /// The body of the request. + /// Required. The parent resource where the cached content will be created + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// - /// Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may - /// not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce - /// latency. - /// - /// The body of the request. - /// - /// FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - public virtual DirectWriteRequest DirectWrite(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest body, string featureView) + /// + /// Creates cached content, this call will initialize the cached content in the data storage, and users + /// need to pay for the cache data storage. + /// + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string parent) : base(service) { - return new DirectWriteRequest(this.service, body, featureView); + Parent = parent; + Body = body; + InitParameters(); } - /// - /// Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may - /// not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce - /// latency. - /// - public class DirectWriteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new DirectWrite request. - public DirectWriteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest body, string featureView) : base(service) - { - FeatureView = featureView; - Body = body; - InitParameters(); - } - - /// - /// FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] - public virtual string FeatureView { get; private set; } + /// Required. The parent resource where the cached content will be created + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "directWrite"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+featureView}:directWrite"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/cachedContents"; - /// Initializes DirectWrite parameter list. - protected override void InitParameters() + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter - { - Name = "featureView", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); } + } - /// Fetch feature values under a FeatureView. - /// The body of the request. - /// - /// Required. FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - public virtual FetchFeatureValuesRequest FetchFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchFeatureValuesRequest body, string featureView) + /// Deletes cached content + /// Required. The resource name referring to the cached content + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes cached content + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new FetchFeatureValuesRequest(this.service, body, featureView); + Name = name; + InitParameters(); } - /// Fetch feature values under a FeatureView. - public class FetchFeatureValuesRequest : AiplatformBaseServiceRequest - { - /// Constructs a new FetchFeatureValues request. - public FetchFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchFeatureValuesRequest body, string featureView) : base(service) - { - FeatureView = featureView; - Body = body; - InitParameters(); - } + /// Required. The resource name referring to the cached content + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] - public virtual string FeatureView { get; private set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchFeatureValuesRequest Body { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + }); + } + } + + /// Gets cached content configurations + /// Required. The resource name referring to the cached content + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets cached content configurations + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// Required. The resource name referring to the cached content + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + }); + } + } + + /// Lists cached contents in a project + /// Required. The parent, which owns this collection of cached contents. + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists cached contents in a project + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// Required. The parent, which owns this collection of cached contents. + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The maximum number of cached contents to return. The service may return fewer than + /// this value. If unspecified, some default (under maximum) number of items will be returned. The + /// maximum value is 1000; values above 1000 will be coerced to 1000. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. A page token, received from a previous `ListCachedContents` call. Provide this to + /// retrieve the subsequent page. When paginating, all other parameters provided to + /// `ListCachedContents` must match the call that provided the page token. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/cachedContents"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates cached content configurations + /// The body of the request. + /// + /// Immutable. Identifier. The server-generated resource name of the cached content Format: + /// projects/{project}/locations/{location}/cachedContents/{cached_content} + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates cached content configurations + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Immutable. Identifier. The server-generated resource name of the cached content Format: + /// projects/{project}/locations/{location}/cachedContents/{cached_content} + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Required. The list of fields to update. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CachedContent Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/cachedContents/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the CustomJobs resource. + public virtual CustomJobsResource CustomJobs { get; } + + /// The "customJobs" collection of methods. + public class CustomJobsResource + { + private const string Resource = "customJobs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public CustomJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "fetchFeatureValues"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+featureView}:fetchFeatureValues"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes FetchFeatureValues parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "featureView", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", }); } } /// - /// RPC to generate an access token for the given feature view. FeatureViews under the same - /// FeatureOnlineStore share the same access token. + /// 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`. /// - /// The body of the request. - /// - /// FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - public virtual GenerateFetchAccessTokenRequest GenerateFetchAccessToken(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateFetchAccessTokenRequest body, string featureView) + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - return new GenerateFetchAccessTokenRequest(this.service, body, featureView); + return new DeleteRequest(this.service, name); } /// - /// RPC to generate an access token for the given feature view. FeatureViews under the same - /// FeatureOnlineStore share the same access token. + /// 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`. /// - public class GenerateFetchAccessTokenRequest : AiplatformBaseServiceRequest + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new GenerateFetchAccessToken request. - public GenerateFetchAccessTokenRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateFetchAccessTokenRequest body, string featureView) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - FeatureView = featureView; - Body = body; + Name = name; InitParameters(); } - /// - /// FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] - public virtual string FeatureView { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateFetchAccessTokenRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "generateFetchAccessToken"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+featureView}:generateFetchAccessToken"; + public override string RestPath => "v1/{+name}"; - /// Initializes GenerateFetchAccessToken parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "featureView", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", }); } } - /// Gets details of a single FeatureView. - /// - /// Required. The name of the FeatureView resource. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets details of a single FeatureView. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -14459,10 +15328,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the FeatureView resource. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -14485,84 +15351,109 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", }); } } /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists - /// and does not have a policy set. + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. /// - /// - /// 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. - /// - public virtual GetIamPolicyRequest GetIamPolicy(string resource) + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new GetIamPolicyRequest(this.service, resource); + return new ListRequest(this.service, name); } /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists - /// and does not have a policy set. + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. /// - public class GetIamPolicyRequest : AiplatformBaseServiceRequest + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new GetIamPolicy request. - public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Resource = resource; + Name = name; InitParameters(); } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } /// - /// 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). + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. /// - [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "getIamPolicy"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+resource}:getIamPolicy"; + public override string RestPath => "v1/{+name}/operations"; - /// Initializes GetIamPolicy parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "resource", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", }); - RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - Name = "options.requestedPolicyVersion", + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -14571,188 +15462,61 @@ protected override void InitParameters() } } - /// Lists FeatureViews in a given FeatureOnlineStore. - /// - /// Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - /// - public virtual ListRequest List(string parent) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new ListRequest(this.service, parent); - } - - /// Lists FeatureViews in a given FeatureOnlineStore. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// Lists the FeatureViews that match the filter expression. The following filters are - /// supported: * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&gt;=`, and - /// `&lt;=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, - /// `!=`, `&lt;`, `&gt;`, `&gt;=`, and `&lt;=` comparisons. Values must be in - /// RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: - /// * `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time &gt; - /// \"2020-01-31T15:30:00.000000Z\"` --&gt; FeatureViews created or updated after - /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --&gt; - /// FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --&gt; - /// Any FeatureView which has a label with 'env' as the key. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featureViews"; - - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// Updates the parameters of a single FeatureView. - /// The body of the request. - /// - /// Identifier. Name of the FeatureView. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string name) - { - return new PatchRequest(this.service, body, name); + return new WaitRequest(this.service, name); } - /// Updates the parameters of a single FeatureView. - public class PatchRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string name) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// - /// Identifier. Name of the FeatureView. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// + /// The name of the operation resource to wait on. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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` * - /// `service_agent_type` * `big_query_source` * `big_query_source.uri` * - /// `big_query_source.entity_id_columns` * `feature_registry_source` * - /// `feature_registry_source.feature_groups` * `sync_config` * `sync_config.cron` * - /// `optimized_config.automatic_resources` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "patch"; + public override string MethodName => "wait"; /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Patch parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); @@ -14762,11 +15526,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - Name = "updateMask", + Name = "timeout", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -14774,277 +15538,371 @@ protected override void InitParameters() }); } } + } - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - public virtual SearchNearestEntitiesRequest SearchNearestEntities(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchNearestEntitiesRequest body, string featureView) + /// + /// 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`. + /// + /// The body of the request. + /// + /// Required. The name of the CustomJob to cancel. Format: + /// `projects/{project}/locations/{location}/customJobs/{custom_job}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelCustomJobRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelCustomJobRequest body, string name) : base(service) { - return new SearchNearestEntitiesRequest(this.service, body, featureView); + Name = name; + Body = body; + InitParameters(); } /// - /// 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. + /// Required. The name of the CustomJob to cancel. Format: + /// `projects/{project}/locations/{location}/customJobs/{custom_job}` /// - public class SearchNearestEntitiesRequest : AiplatformBaseServiceRequest - { - /// Constructs a new SearchNearestEntities request. - public SearchNearestEntitiesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchNearestEntitiesRequest body, string featureView) : base(service) - { - FeatureView = featureView; - Body = body; - InitParameters(); - } - - /// - /// Required. FeatureView resource format - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` - /// - [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] - public virtual string FeatureView { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchNearestEntitiesRequest Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelCustomJobRequest Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "searchNearestEntities"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+featureView}:searchNearestEntities"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes SearchNearestEntities parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter - { - Name = "featureView", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + }); } + } - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can - /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - /// The body of the request. - /// - /// 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. - /// - public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) + /// Creates a CustomJob. A created CustomJob right away will be attempted to be run. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the CustomJob in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CustomJob body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a CustomJob. A created CustomJob right away will be attempted to be run. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CustomJob body, string parent) : base(service) { - return new SetIamPolicyRequest(this.service, body, resource); + Parent = parent; + Body = body; + InitParameters(); } /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can - /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// Required. The resource name of the Location to create the CustomJob in. Format: + /// `projects/{project}/locations/{location}` /// - public class SetIamPolicyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new SetIamPolicy request. - public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) - { - Resource = resource; - Body = body; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CustomJob Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "setIamPolicy"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:setIamPolicy"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/customJobs"; - /// Initializes SetIamPolicy parameter list. - protected override void InitParameters() + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); } + } - /// Triggers on-demand sync for the FeatureView. - /// The body of the request. - /// - /// Required. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// - public virtual SyncRequest Sync(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SyncFeatureViewRequest body, string featureView) - { - return new SyncRequest(this.service, body, featureView); - } + /// Deletes a CustomJob. + /// + /// Required. The name of the CustomJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/customJobs/{custom_job}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Triggers on-demand sync for the FeatureView. - public class SyncRequest : AiplatformBaseServiceRequest + /// Deletes a CustomJob. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Sync request. - public SyncRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SyncFeatureViewRequest body, string featureView) : base(service) - { - FeatureView = featureView; - Body = body; - InitParameters(); - } - - /// - /// Required. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` - /// - [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] - public virtual string FeatureView { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SyncFeatureViewRequest Body { get; set; } + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// Required. The name of the CustomJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/customJobs/{custom_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "sync"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+featureView}:sync"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Sync parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter - { - Name = "featureView", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + }); } + } - /// - /// 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. - /// - /// - /// 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. - /// - public virtual TestIamPermissionsRequest TestIamPermissions(string resource) + /// Gets a CustomJob. + /// + /// Required. The name of the CustomJob resource. Format: + /// `projects/{project}/locations/{location}/customJobs/{custom_job}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a CustomJob. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new TestIamPermissionsRequest(this.service, resource); + Name = name; + InitParameters(); } /// - /// 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. + /// Required. The name of the CustomJob resource. Format: + /// `projects/{project}/locations/{location}/customJobs/{custom_job}` /// - public class TestIamPermissionsRequest : AiplatformBaseServiceRequest + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - /// Constructs a new TestIamPermissions request. - public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Resource = resource; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + }); + } + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + /// Lists CustomJobs in a Location. + /// + /// Required. The resource name of the Location to list the CustomJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable Permissions { get; set; } + /// Lists CustomJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "testIamPermissions"; + /// + /// Required. The resource name of the Location to list the CustomJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, + /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:testIamPermissions"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Initializes TestIamPermissions parameter list. - protected override void InitParameters() + /// + /// The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of + /// the previous JobService.ListCustomJobs call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/customJobs"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", - }); - RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter - { - Name = "permissions", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } + } + + /// Gets the DataLabelingJobs resource. + public virtual DataLabelingJobsResource DataLabelingJobs { get; } + + /// The "dataLabelingJobs" collection of methods. + public class DataLabelingJobsResource + { + private const string Resource = "dataLabelingJobs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public DataLabelingJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } /// Gets the Operations resource. public virtual OperationsResource Operations { get; } @@ -15063,6 +15921,67 @@ public OperationsResource(Google.Apis.Services.IClientService service) this.service = service; } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + }); + } + } + /// /// 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 @@ -15111,7 +16030,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", }); } } @@ -15162,7 +16081,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", }); } } @@ -15172,19 +16091,19 @@ protected override void InitParameters() /// this method, it returns `UNIMPLEMENTED`. /// /// The name of the operation's parent resource. - public virtual ListWaitRequest ListWait(string name) + public virtual ListRequest List(string name) { - return new ListWaitRequest(this.service, name); + return new ListRequest(this.service, name); } /// /// Lists operations that match the specified filter in the request. If the server doesn't support /// this method, it returns `UNIMPLEMENTED`. /// - public class ListWaitRequest : AiplatformBaseServiceRequest + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new ListWait request. - public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); @@ -15218,15 +16137,15 @@ public ListWaitRequest(Google.Apis.Services.IClientService service, string name) public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "listWait"; + public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}/operations"; - /// Initializes ListWait parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); @@ -15236,7 +16155,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -15337,7 +16256,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -15351,22 +16270,80 @@ protected override void InitParameters() } } - /// Creates a new FeatureOnlineStore in a given project and location. + /// Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + /// The body of the request. + /// + /// Required. The name of the DataLabelingJob. Format: + /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelDataLabelingJobRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } + + /// Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelDataLabelingJobRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the DataLabelingJob. Format: + /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelDataLabelingJobRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + }); + } + } + + /// Creates a DataLabelingJob. /// The body of the request. /// - /// Required. The resource name of the Location to create FeatureOnlineStores. Format: - /// `projects/{project}/locations/{location}` + /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DataLabelingJob body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a new FeatureOnlineStore in a given project and location. - public class CreateRequest : AiplatformBaseServiceRequest + /// Creates a DataLabelingJob. + public class CreateRequest : AiplatformBaseServiceRequest { /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string parent) : base(service) + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DataLabelingJob body, string parent) : base(service) { Parent = parent; Body = body; @@ -15374,23 +16351,13 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the Location to create FeatureOnlineStores. Format: - /// `projects/{project}/locations/{location}` + /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("featureOnlineStoreId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string FeatureOnlineStoreId { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DataLabelingJob Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -15402,7 +16369,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featureOnlineStores"; + public override string RestPath => "v1/{+parent}/dataLabelingJobs"; /// Initializes Create parameter list. protected override void InitParameters() @@ -15416,32 +16383,20 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); - RequestParameters.Add("featureOnlineStoreId", new Google.Apis.Discovery.Parameter - { - Name = "featureOnlineStoreId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); } } - /// - /// Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. - /// + /// Deletes a DataLabelingJob. /// - /// Required. The name of the FeatureOnlineStore to be deleted. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + /// Required. The name of the DataLabelingJob to be deleted. Format: + /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// - /// Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. - /// + /// Deletes a DataLabelingJob. public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -15452,19 +16407,12 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The name of the FeatureOnlineStore to be deleted. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + /// Required. The name of the DataLabelingJob to be deleted. Format: + /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - /// Gets the method name. public override string MethodName => "delete"; @@ -15484,28 +16432,23 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter - { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", }); } } - /// Gets details of a single FeatureOnlineStore. - /// Required. The name of the FeatureOnlineStore resource. + /// Gets a DataLabelingJob. + /// + /// Required. The name of the DataLabelingJob. Format: + /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets details of a single FeatureOnlineStore. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets a DataLabelingJob. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -15514,7 +16457,10 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// Required. The name of the FeatureOnlineStore resource. + /// + /// Required. The name of the DataLabelingJob. Format: + /// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -15537,163 +16483,80 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", }); } } - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - /// - /// 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. + /// Lists DataLabelingJobs in a Location. + /// + /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` /// - public virtual GetIamPolicyRequest GetIamPolicy(string resource) + public virtual ListRequest List(string parent) { - return new GetIamPolicyRequest(this.service, resource); + return new ListRequest(this.service, parent); } - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - public class GetIamPolicyRequest : AiplatformBaseServiceRequest + /// Lists DataLabelingJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new GetIamPolicy request. - public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Resource = resource; + Parent = parent; InitParameters(); } /// - /// 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. + /// Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}` /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } /// - /// 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). + /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, + /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` /// - [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` + /// after a field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } /// Gets the method name. - public override string MethodName => "getIamPolicy"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+resource}:getIamPolicy"; - - /// Initializes GetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - }); - RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter - { - Name = "options.requestedPolicyVersion", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// Lists FeatureOnlineStores in a given project and location. - /// - /// Required. The resource name of the Location to list FeatureOnlineStores. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - - /// Lists FeatureOnlineStores in a given project and location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// Required. The resource name of the Location to list FeatureOnlineStores. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// Lists the FeatureOnlineStores that match the filter expression. The following fields are - /// supported: * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and - /// `&gt;=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, - /// `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 - /// format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time - /// &gt; "2020-01-01" OR update_time &gt; "2020-01-01"` FeatureOnlineStores created or - /// updated after 2020-01-01. * `labels.env = "prod"` FeatureOnlineStores with label "env" set to - /// "prod". - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featureOnlineStores"; + public override string RestPath => "v1/{+parent}/dataLabelingJobs"; /// Initializes List parameter list. protected override void InitParameters() @@ -15739,225 +16602,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - } - } - - /// Updates the parameters of a single FeatureOnlineStore. - /// The body of the request. - /// - /// Identifier. Name of the FeatureOnlineStore. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string name) - { - return new PatchRequest(this.service, body, name); - } - - /// Updates the parameters of a single FeatureOnlineStore. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Identifier. Name of the FeatureOnlineStore. Format: - /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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: * `labels` * `description` * `bigtable` * - /// `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica` - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "patch"; - - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - /// The body of the request. - /// - /// 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. - /// - public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) - { - return new SetIamPolicyRequest(this.service, body, resource); - } - - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - public class SetIamPolicyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new SetIamPolicy request. - public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) - { - Resource = resource; - Body = body; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "setIamPolicy"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:setIamPolicy"; - - /// Initializes SetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - }); - } - } - - /// - /// 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. - /// - /// - /// 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. - /// - public virtual TestIamPermissionsRequest TestIamPermissions(string resource) - { - return new TestIamPermissionsRequest(this.service, resource); - } - - /// - /// 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. - /// - public class TestIamPermissionsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new TestIamPermissions request. - public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) - { - Resource = resource; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable Permissions { get; set; } - - /// Gets the method name. - public override string MethodName => "testIamPermissions"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:testIamPermissions"; - - /// Initializes TestIamPermissions parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", - }); - RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter { - Name = "permissions", + Name = "readMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -15967,157 +16614,608 @@ protected override void InitParameters() } } - /// Gets the Featurestores resource. - public virtual FeaturestoresResource Featurestores { get; } + /// Gets the Datasets resource. + public virtual DatasetsResource Datasets { get; } - /// The "featurestores" collection of methods. - public class FeaturestoresResource + /// The "datasets" collection of methods. + public class DatasetsResource { - private const string Resource = "featurestores"; + private const string Resource = "datasets"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public FeaturestoresResource(Google.Apis.Services.IClientService service) + public DatasetsResource(Google.Apis.Services.IClientService service) { this.service = service; - EntityTypes = new EntityTypesResource(service); + AnnotationSpecs = new AnnotationSpecsResource(service); + DataItems = new DataItemsResource(service); + DatasetVersions = new DatasetVersionsResource(service); Operations = new OperationsResource(service); + SavedQueries = new SavedQueriesResource(service); } - /// Gets the EntityTypes resource. - public virtual EntityTypesResource EntityTypes { get; } + /// Gets the AnnotationSpecs resource. + public virtual AnnotationSpecsResource AnnotationSpecs { get; } - /// The "entityTypes" collection of methods. - public class EntityTypesResource + /// The "annotationSpecs" collection of methods. + public class AnnotationSpecsResource { - private const string Resource = "entityTypes"; + private const string Resource = "annotationSpecs"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public EntityTypesResource(Google.Apis.Services.IClientService service) + public AnnotationSpecsResource(Google.Apis.Services.IClientService service) { this.service = service; - Features = new FeaturesResource(service); Operations = new OperationsResource(service); } - /// Gets the Features resource. - public virtual FeaturesResource Features { get; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The "features" collection of methods. - public class FeaturesResource + /// The "operations" collection of methods. + public class OperationsResource { - private const string Resource = "features"; + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public FeaturesResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; - Operations = new OperationsResource(service); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + return new CancelRequest(this.service, name); + } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new CancelRequest(this.service, name); + Name = name; + InitParameters(); } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new DeleteRequest(this.service, name); + Name = name; + InitParameters(); } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets an AnnotationSpec. + /// + /// Required. The name of the AnnotationSpec resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets an AnnotationSpec. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the AnnotationSpec resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the DataItems resource. + public virtual DataItemsResource DataItems { get; } + + /// The "dataItems" collection of methods. + public class DataItemsResource + { + private const string Resource = "dataItems"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public DataItemsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Annotations = new AnnotationsResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the Annotations resource. + public virtual AnnotationsResource Annotations { get; } + + /// The "annotations" collection of methods. + public class AnnotationsResource + { + private const string Resource = "annotations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public AnnotationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -16149,7 +17247,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", }); } } @@ -16200,7 +17298,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", }); } } @@ -16274,7 +17372,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -16377,7 +17475,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -16391,339 +17489,49 @@ protected override void InitParameters() } } - /// Creates a batch of Features in a given EntityType. - /// The body of the request. + /// Lists Annotations belongs to a dataitem. /// - /// Required. The resource name of the EntityType/FeatureGroup to create the batch of Features - /// under. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// Required. The resource name of the DataItem to list Annotations from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` /// - public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) + public virtual ListRequest List(string parent) { - return new BatchCreateRequest(this.service, body, parent); + return new ListRequest(this.service, parent); } - /// Creates a batch of Features in a given EntityType. - public class BatchCreateRequest : AiplatformBaseServiceRequest + /// Lists Annotations belongs to a dataitem. + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new BatchCreate request. - public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; - Body = body; InitParameters(); } /// - /// Required. The resource name of the EntityType/FeatureGroup to create the batch of - /// Features under. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// Required. The resource name of the DataItem to list Annotations from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the method name. - public override string MethodName => "batchCreate"; + /// + /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" + /// after a field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/features:batchCreate"; - - /// Initializes BatchCreate parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - } - } - - /// Creates a new Feature in a given EntityType. - /// The body of the request. - /// - /// 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}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - - /// Creates a new Feature in a given EntityType. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("featureId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string FeatureId { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "create"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/features"; - - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - RequestParameters.Add("featureId", new Google.Apis.Discovery.Parameter - { - Name = "featureId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// Deletes a single Feature. - /// - /// 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}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// Deletes a single Feature. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", - }); - } - } - - /// Gets details of a single Feature. - /// - /// 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}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - - /// Gets details of a single Feature. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "get"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", - }); - } - } - - /// Lists Features in a given EntityType. - /// - /// 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}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - - /// Lists Features in a given EntityType. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// Lists the Features that match the filter expression. The following filters are - /// supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, - /// !=, &lt;, &gt;, &gt;=, and &lt;= comparisons. Values must be in RFC 3339 - /// format. * `update_time`: Supports =, !=, &lt;, &gt;, &gt;=, and &lt;= - /// comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality - /// as well as key presence. Examples: * `value_type = DOUBLE` --&gt; Features whose - /// type is DOUBLE. * `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time - /// &gt; \"2020-01-31T15:30:00.000000Z\"` --&gt; EntityTypes created or updated - /// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` - /// --&gt; Features having both (active: yes) and (env: prod) labels. * `labels.env: *` - /// --&gt; Any Feature which has a label with 'env' as the key. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// 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 &lt; - /// ListFeaturesRequest.latest_stats_count, return all existing stats. - /// - [Google.Apis.Util.RequestParameterAttribute("latestStatsCount", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable LatestStatsCount { get; set; } - - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// - /// 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. - /// + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// 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. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } @@ -16738,7 +17546,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/features"; + public override string RestPath => "v1/{+parent}/annotations"; /// Initializes List parameter list. protected override void InitParameters() @@ -16750,7 +17558,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -16760,14 +17568,6 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("latestStatsCount", new Google.Apis.Discovery.Parameter - { - Name = "latestStatsCount", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter { Name = "orderBy", @@ -16802,94 +17602,6 @@ protected override void InitParameters() }); } } - - /// Updates the parameters of a single Feature. - /// The body of the request. - /// - /// 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. - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) - { - return new PatchRequest(this.service, body, name); - } - - /// Updates the parameters of a single Feature. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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 - /// FeatureRegistryService Feature) * `point_of_contact` (Not supported for - /// FeaturestoreService FeatureStore) - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "patch"; - - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } } /// Gets the Operations resource. @@ -16965,7 +17677,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", }); } } @@ -17018,7 +17730,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", }); } } @@ -17069,7 +17781,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", }); } } @@ -17143,7 +17855,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -17244,7 +17956,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -17258,60 +17970,66 @@ protected override void InitParameters() } } - /// Creates a new EntityType in a given Featurestore. - /// The body of the request. + /// Lists DataItems in a Dataset. /// - /// Required. The resource name of the Featurestore to create EntityTypes. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Required. The resource name of the Dataset to list DataItems from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string parent) + public virtual ListRequest List(string parent) { - return new CreateRequest(this.service, body, parent); + return new ListRequest(this.service, parent); } - /// Creates a new EntityType in a given Featurestore. - public class CreateRequest : AiplatformBaseServiceRequest + /// Lists DataItems in a Dataset. + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string parent) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; - Body = body; InitParameters(); } /// - /// Required. The resource name of the Featurestore to create EntityTypes. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Required. The resource name of the Dataset to list DataItems from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + /// - /// 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. + /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a + /// field name for descending. /// - [Google.Apis.Util.RequestParameterAttribute("entityTypeId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string EntityTypeId { get; set; } + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType Body { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/entityTypes"; + public override string RestPath => "v1/{+parent}/dataItems"; - /// Initializes Create parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); @@ -17321,11 +18039,43 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); - RequestParameters.Add("entityTypeId", new Google.Apis.Discovery.Parameter + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - Name = "entityTypeId", + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -17333,225 +18083,147 @@ protected override void InitParameters() }); } } + } - /// - /// Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to - /// true for the request to succeed. - /// - /// - /// Required. The name of the EntityType to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the DatasetVersions resource. + public virtual DatasetVersionsResource DatasetVersions { get; } - /// - /// Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to - /// true for the request to succeed. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// Required. The name of the EntityType to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The "datasetVersions" collection of methods. + public class DatasetVersionsResource + { + private const string Resource = "datasetVersions"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter - { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + /// Constructs a new resource. + public DatasetVersionsResource(Google.Apis.Services.IClientService service) + { + this.service = service; } - /// - /// 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. - /// + /// Create a version from a Dataset. /// The body of the request. - /// - /// 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}` + /// + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - public virtual DeleteFeatureValuesRequest DeleteFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeleteFeatureValuesRequest body, string entityType) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) { - return new DeleteFeatureValuesRequest(this.service, body, entityType); + return new CreateRequest(this.service, body, parent); } - /// - /// 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. - /// - public class DeleteFeatureValuesRequest : AiplatformBaseServiceRequest + /// Create a version from a Dataset. + public class CreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new DeleteFeatureValues request. - public DeleteFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeleteFeatureValuesRequest body, string entityType) : base(service) + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string parent) : base(service) { - EntityType = entityType; + Parent = parent; Body = body; InitParameters(); } /// - /// 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}` + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] - public virtual string EntityType { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeleteFeatureValuesRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "deleteFeatureValues"; + public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+entityType}:deleteFeatureValues"; + public override string RestPath => "v1/{+parent}/datasetVersions"; - /// Initializes DeleteFeatureValues parameter list. + /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "entityType", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); } } - /// Exports Feature values from all the entities of a target EntityType. - /// The body of the request. - /// - /// Required. The resource name of the EntityType from which to export Feature values. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Deletes a Dataset version. + /// + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// - public virtual ExportFeatureValuesRequest ExportFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportFeatureValuesRequest body, string entityType) + public virtual DeleteRequest Delete(string name) { - return new ExportFeatureValuesRequest(this.service, body, entityType); + return new DeleteRequest(this.service, name); } - /// Exports Feature values from all the entities of a target EntityType. - public class ExportFeatureValuesRequest : AiplatformBaseServiceRequest + /// Deletes a Dataset version. + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new ExportFeatureValues request. - public ExportFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportFeatureValuesRequest body, string entityType) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - EntityType = entityType; - Body = body; + Name = name; InitParameters(); } /// - /// Required. The resource name of the EntityType from which to export Feature values. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// - [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] - public virtual string EntityType { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportFeatureValuesRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "exportFeatureValues"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+entityType}:exportFeatureValues"; + public override string RestPath => "v1/{+name}"; - /// Initializes ExportFeatureValues parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "entityType", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", }); } } - /// Gets details of a single EntityType. + /// Gets a Dataset version. /// - /// Required. The name of the EntityType resource. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets details of a single EntityType. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets a Dataset version. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -17561,12 +18233,16 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba } /// - /// Required. The name of the EntityType resource. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// Required. The resource name of the Dataset version to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + /// Gets the method name. public override string MethodName => "get"; @@ -17586,84 +18262,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - } - } - - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists - /// and does not have a policy set. - /// - /// - /// 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. - /// - public virtual GetIamPolicyRequest GetIamPolicy(string resource) - { - return new GetIamPolicyRequest(this.service, resource); - } - - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists - /// and does not have a policy set. - /// - public class GetIamPolicyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GetIamPolicy request. - public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) - { - Resource = resource; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } - - /// Gets the method name. - public override string MethodName => "getIamPolicy"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:getIamPolicy"; - - /// Initializes GetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", }); - RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter { - Name = "options.requestedPolicyVersion", + Name = "readMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -17672,103 +18275,18 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The body of the request. - /// - /// 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}` - /// - public virtual ImportFeatureValuesRequest ImportFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportFeatureValuesRequest body, string entityType) - { - return new ImportFeatureValuesRequest(this.service, body, entityType); - } - - /// - /// 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. - /// - public class ImportFeatureValuesRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ImportFeatureValues request. - public ImportFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportFeatureValuesRequest body, string entityType) : base(service) - { - EntityType = entityType; - Body = body; - InitParameters(); - } - - /// - /// 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}` - /// - [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] - public virtual string EntityType { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportFeatureValuesRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "importFeatureValues"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+entityType}:importFeatureValues"; - - /// Initializes ImportFeatureValues parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter - { - Name = "entityType", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - } - } - - /// Lists EntityTypes in a given Featurestore. + /// Lists DatasetVersions in a Dataset. /// - /// Required. The resource name of the Featurestore to list EntityTypes. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Required. The resource name of the Dataset to list DatasetVersions from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// public virtual ListRequest List(string parent) { return new ListRequest(this.service, parent); } - /// Lists EntityTypes in a given Featurestore. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists DatasetVersions in a Dataset. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -17778,52 +18296,32 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Featurestore to list EntityTypes. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Required. The resource name of the Dataset to list DatasetVersions from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// - /// Lists the EntityTypes that match the filter expression. The following filters are supported: - /// * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&gt;=`, and `&lt;=` - /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, - /// `&lt;`, `&gt;`, `&gt;=`, and `&lt;=` comparisons. Values must be in RFC 3339 - /// format. * `labels`: Supports key-value equality as well as key presence. Examples: * - /// `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time &gt; - /// \"2020-01-31T15:30:00.000000Z\"` --&gt; EntityTypes created or updated after - /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --&gt; - /// EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: *` --&gt; - /// Any EntityType which has a label with 'env' as the key. - /// + /// Optional. The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } /// - /// 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` + /// Optional. A comma-separated list of fields to order by, sorted in ascending order. Use + /// "desc" after a field name for descending. /// [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] public virtual string OrderBy { get; set; } - /// - /// 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. - /// + /// Optional. The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// 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. - /// + /// Optional. The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. + /// Optional. Mask specifying which fields to read. [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object ReadMask { get; set; } @@ -17834,7 +18332,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/entityTypes"; + public override string RestPath => "v1/{+parent}/datasetVersions"; /// Initializes List parameter list. protected override void InitParameters() @@ -17846,7 +18344,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -17891,25 +18389,22 @@ protected override void InitParameters() } } - /// Updates the parameters of a single EntityType. + /// Updates a DatasetVersion. /// The body of the request. /// - /// 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. + /// Output only. Identifier. The resource name of the DatasetVersion. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string name) + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) { return new PatchRequest(this.service, body, name); } - /// Updates the parameters of a single EntityType. - public class PatchRequest : AiplatformBaseServiceRequest + /// Updates a DatasetVersion. + public class PatchRequest : AiplatformBaseServiceRequest { /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string name) : base(service) + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion body, string name) : base(service) { Name = name; Body = body; @@ -17917,34 +18412,21 @@ public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aip } /// - /// 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. + /// Output only. Identifier. The resource name of the DatasetVersion. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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` + /// Required. The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. Updatable fields: * `display_name` /// [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DatasetVersion Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -17968,7 +18450,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { @@ -17981,357 +18463,53 @@ protected override void InitParameters() } } - /// - /// Reads Feature values of a specific entity of an EntityType. For reading feature values of - /// multiple entities of an EntityType, please use StreamingReadFeatureValues. - /// - /// The body of the request. - /// - /// 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`. + /// Restores a dataset version. + /// + /// Required. The name of the DatasetVersion resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// - public virtual ReadFeatureValuesRequest ReadFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadFeatureValuesRequest body, string entityType) + public virtual RestoreRequest Restore(string name) { - return new ReadFeatureValuesRequest(this.service, body, entityType); + return new RestoreRequest(this.service, name); } - /// - /// Reads Feature values of a specific entity of an EntityType. For reading feature values of - /// multiple entities of an EntityType, please use StreamingReadFeatureValues. - /// - public class ReadFeatureValuesRequest : AiplatformBaseServiceRequest + /// Restores a dataset version. + public class RestoreRequest : AiplatformBaseServiceRequest { - /// Constructs a new ReadFeatureValues request. - public ReadFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadFeatureValuesRequest body, string entityType) : base(service) + /// Constructs a new Restore request. + public RestoreRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - EntityType = entityType; - Body = body; + Name = name; InitParameters(); } /// - /// 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`. + /// Required. The name of the DatasetVersion resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` /// - [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] - public virtual string EntityType { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadFeatureValuesRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "readFeatureValues"; + public override string MethodName => "restore"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+entityType}:readFeatureValues"; + public override string RestPath => "v1/{+name}:restore"; - /// Initializes ReadFeatureValues parameter list. + /// Initializes Restore parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "entityType", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - } - } - - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can - /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - /// The body of the request. - /// - /// 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. - /// - public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) - { - return new SetIamPolicyRequest(this.service, body, resource); - } - - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can - /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - public class SetIamPolicyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new SetIamPolicy request. - public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) - { - Resource = resource; - Body = body; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "setIamPolicy"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:setIamPolicy"; - - /// Initializes SetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - } - } - - /// - /// Reads Feature values for multiple entities. Depending on their size, data for different entities - /// may be broken up across multiple responses. - /// - /// The body of the request. - /// - /// 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`. - /// - public virtual StreamingReadFeatureValuesRequest StreamingReadFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest body, string entityType) - { - return new StreamingReadFeatureValuesRequest(this.service, body, entityType); - } - - /// - /// Reads Feature values for multiple entities. Depending on their size, data for different entities - /// may be broken up across multiple responses. - /// - public class StreamingReadFeatureValuesRequest : AiplatformBaseServiceRequest - { - /// Constructs a new StreamingReadFeatureValues request. - public StreamingReadFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest body, string entityType) : base(service) - { - EntityType = entityType; - Body = body; - InitParameters(); - } - - /// - /// 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`. - /// - [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] - public virtual string EntityType { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "streamingReadFeatureValues"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+entityType}:streamingReadFeatureValues"; - - /// Initializes StreamingReadFeatureValues parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter - { - Name = "entityType", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - } - } - - /// - /// 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. - /// - /// - /// 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. - /// - public virtual TestIamPermissionsRequest TestIamPermissions(string resource) - { - return new TestIamPermissionsRequest(this.service, resource); - } - - /// - /// 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. - /// - public class TestIamPermissionsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new TestIamPermissions request. - public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) - { - Resource = resource; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable Permissions { get; set; } - - /// Gets the method name. - public override string MethodName => "testIamPermissions"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:testIamPermissions"; - - /// Initializes TestIamPermissions parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - }); - RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter - { - Name = "permissions", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// - /// 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. - /// - /// The body of the request. - /// - /// 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`. - /// - public virtual WriteFeatureValuesRequest WriteFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteFeatureValuesRequest body, string entityType) - { - return new WriteFeatureValuesRequest(this.service, body, entityType); - } - - /// - /// 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. - /// - public class WriteFeatureValuesRequest : AiplatformBaseServiceRequest - { - /// Constructs a new WriteFeatureValues request. - public WriteFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteFeatureValuesRequest body, string entityType) : base(service) - { - EntityType = entityType; - Body = body; - InitParameters(); - } - - /// - /// 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`. - /// - [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] - public virtual string EntityType { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteFeatureValuesRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "writeFeatureValues"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+entityType}:writeFeatureValues"; - - /// Initializes WriteFeatureValues parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter - { - Name = "entityType", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", }); } } @@ -18410,7 +18588,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", }); } } @@ -18463,7 +18641,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", }); } } @@ -18514,7 +18692,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", }); } } @@ -18588,7 +18766,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -18689,7 +18867,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -18703,168 +18881,626 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The resource name of the Featurestore from which to query Feature values. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` - /// - public virtual BatchReadFeatureValuesRequest BatchReadFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchReadFeatureValuesRequest body, string featurestore) - { - return new BatchReadFeatureValuesRequest(this.service, body, featurestore); - } + /// Gets the SavedQueries resource. + public virtual SavedQueriesResource SavedQueries { get; } - /// - /// 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. - /// - public class BatchReadFeatureValuesRequest : AiplatformBaseServiceRequest + /// The "savedQueries" collection of methods. + public class SavedQueriesResource { - /// Constructs a new BatchReadFeatureValues request. - public BatchReadFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchReadFeatureValuesRequest body, string featurestore) : base(service) + private const string Resource = "savedQueries"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SavedQueriesResource(Google.Apis.Services.IClientService service) { - Featurestore = featurestore; - Body = body; - InitParameters(); + this.service = service; + Operations = new OperationsResource(service); } - /// - /// Required. The resource name of the Featurestore from which to query Feature values. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` - /// - [Google.Apis.Util.RequestParameterAttribute("featurestore", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Featurestore { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchReadFeatureValuesRequest Body { get; set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the method name. - public override string MethodName => "batchReadFeatureValues"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+featurestore}:batchReadFeatureValues"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Initializes BatchReadFeatureValues parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("featurestore", new Google.Apis.Discovery.Parameter + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - Name = "featurestore", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", - }); - } - } + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Creates a new Featurestore in a given project and location. - /// The body of the request. - /// - /// Required. The resource name of the Location to create Featurestores. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Creates a new Featurestore in a given project and location. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "cancel"; - /// - /// Required. The resource name of the Location to create Featurestores. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("featurestoreId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string FeaturestoreId { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore Body { get; set; } + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + }); + } + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "create"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featurestores"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Deletes a SavedQuery. + /// + /// Required. The resource name of the SavedQuery to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a SavedQuery. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The resource name of the SavedQuery to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", + }); + } + } + + /// Lists SavedQueries in a Dataset. + /// + /// Required. The resource name of the Dataset to list SavedQueries from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists SavedQueries in a Dataset. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Dataset to list SavedQueries from. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a + /// field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/savedQueries"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a Dataset. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the Dataset in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a Dataset. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the Dataset in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/datasets"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); - RequestParameters.Add("featurestoreId", new Google.Apis.Discovery.Parameter - { - Name = "featurestoreId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); } } - /// - /// Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be - /// set to true for the request to succeed. - /// + /// Deletes a Dataset. /// - /// Required. The name of the Featurestore to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Required. The resource name of the Dataset to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// - /// Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be - /// set to true for the request to succeed. - /// + /// Deletes a Dataset. public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -18875,19 +19511,12 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The name of the Featurestore to be deleted. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Required. The resource name of the Dataset to delete. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - /// Gets the method name. public override string MethodName => "delete"; @@ -18907,28 +19536,79 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter - { - Name = "force", - IsRequired = false, - ParameterType = "query", + } + } + + /// Exports data from a Dataset. + /// The body of the request. + /// + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + public virtual ExportRequest Export(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportDataRequest body, string name) + { + return new ExportRequest(this.service, body, name); + } + + /// Exports data from a Dataset. + public class ExportRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Export request. + public ExportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportDataRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportDataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "export"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:export"; + + /// Initializes Export parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); } } - /// Gets details of a single Featurestore. - /// Required. The name of the Featurestore resource. + /// Gets a Dataset. + /// Required. The name of the Dataset resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets details of a single Featurestore. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets a Dataset. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -18937,10 +19617,14 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// Required. The name of the Featurestore resource. + /// Required. The name of the Dataset resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + /// Gets the method name. public override string MethodName => "get"; @@ -18960,94 +19644,81 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - /// - /// 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. + /// Imports data into a Dataset. + /// The body of the request. + /// + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - public virtual GetIamPolicyRequest GetIamPolicy(string resource) + public virtual ImportRequest Import(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportDataRequest body, string name) { - return new GetIamPolicyRequest(this.service, resource); + return new ImportRequest(this.service, body, name); } - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - public class GetIamPolicyRequest : AiplatformBaseServiceRequest + /// Imports data into a Dataset. + public class ImportRequest : AiplatformBaseServiceRequest { - /// Constructs a new GetIamPolicy request. - public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + /// Constructs a new Import request. + public ImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportDataRequest body, string name) : base(service) { - Resource = resource; + Name = name; + Body = body; InitParameters(); } /// - /// 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. + /// Required. The name of the Dataset resource. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportDataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "getIamPolicy"; + public override string MethodName => "import"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+resource}:getIamPolicy"; + public override string RestPath => "v1/{+name}:import"; - /// Initializes GetIamPolicy parameter list. + /// Initializes Import parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "resource", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", - }); - RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter - { - Name = "options.requestedPolicyVersion", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); } } - /// Lists Featurestores in a given project and location. + /// Lists Datasets in a Location. /// - /// Required. The resource name of the Location to list Featurestores. Format: + /// Required. The name of the Dataset's parent resource. Format: /// `projects/{project}/locations/{location}` /// public virtual ListRequest List(string parent) @@ -19055,8 +19726,8 @@ public virtual ListRequest List(string parent) return new ListRequest(this.service, parent); } - /// Lists Featurestores in a given project and location. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists Datasets in a Location. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -19066,47 +19737,34 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Location to list Featurestores. Format: + /// Required. The name of the Dataset's parent resource. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// - /// Lists the featurestores that match the filter expression. The following fields are supported: * - /// `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` - /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `&lt;`, - /// `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 format. * - /// `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `&lt;`, `&gt;`, - /// `&lt;=`, and `&gt;=` comparisons. * `labels`: Supports key-value equality and key - /// presence. Examples: * `create_time &gt; "2020-01-01" OR update_time &gt; "2020-01-01"` - /// Featurestores created or updated after 2020-01-01. * `labels.env = "prod"` Featurestores with - /// label "env" set to "prod". + /// 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"` /// [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } /// /// 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` + /// field name for descending. Supported fields: * `display_name` * `create_time` * `update_time` /// [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] public virtual string OrderBy { get; set; } - /// - /// 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. - /// + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// 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. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } @@ -19121,7 +19779,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/featurestores"; + public override string RestPath => "v1/{+parent}/datasets"; /// Initializes List parameter list. protected override void InitParameters() @@ -19178,22 +19836,22 @@ protected override void InitParameters() } } - /// Updates the parameters of a single Featurestore. + /// Updates a Dataset. /// The body of the request. /// - /// Output only. Name of the Featurestore. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Output only. Identifier. The resource name of the Dataset. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string name) + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) { return new PatchRequest(this.service, body, name); } - /// Updates the parameters of a single Featurestore. - public class PatchRequest : AiplatformBaseServiceRequest + /// Updates a Dataset. + public class PatchRequest : AiplatformBaseServiceRequest { /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string name) : base(service) + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset body, string name) : base(service) { Name = name; Body = body; @@ -19201,26 +19859,21 @@ public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aip } /// - /// Output only. Name of the Featurestore. Format: - /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// Output only. Identifier. The resource name of the Dataset. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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` + /// Required. The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels` /// [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Dataset Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -19244,7 +19897,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { @@ -19257,102 +19910,226 @@ protected override void InitParameters() } } - /// Searches Features matching a query in a given project. - /// - /// Required. The resource name of the Location to search Features. Format: - /// `projects/{project}/locations/{location}` + /// Searches DataItems in a Dataset. + /// + /// Required. The resource name of the Dataset from which to search DataItems. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - public virtual SearchFeaturesRequest SearchFeatures(string location) + public virtual SearchDataItemsRequest SearchDataItems(string dataset) { - return new SearchFeaturesRequest(this.service, location); + return new SearchDataItemsRequest(this.service, dataset); } - /// Searches Features matching a query in a given project. - public class SearchFeaturesRequest : AiplatformBaseServiceRequest + /// Searches DataItems in a Dataset. + public class SearchDataItemsRequest : AiplatformBaseServiceRequest { - /// Constructs a new SearchFeatures request. - public SearchFeaturesRequest(Google.Apis.Services.IClientService service, string location) : base(service) + /// Constructs a new SearchDataItems request. + public SearchDataItemsRequest(Google.Apis.Services.IClientService service, string dataset) : base(service) { - Location = location; + Dataset = dataset; InitParameters(); } /// - /// Required. The resource name of the Location to search Features. Format: - /// `projects/{project}/locations/{location}` + /// Required. The resource name of the Dataset from which to search DataItems. Format: + /// `projects/{project}/locations/{location}/datasets/{dataset}` /// - [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Location { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("dataset", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Dataset { get; private set; } /// - /// 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. + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("annotationFilters", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable AnnotationFilters { get; set; } + + /// + /// An expression for filtering the Annotations that will be returned per DataItem. * + /// `annotation_spec_id` - for = or !=. + /// + [Google.Apis.Util.RequestParameterAttribute("annotationsFilter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string AnnotationsFilter { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("annotationsLimit", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable AnnotationsLimit { get; set; } + + /// + /// 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)` + /// + [Google.Apis.Util.RequestParameterAttribute("dataItemFilter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string DataItemFilter { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("dataLabelingJob", Google.Apis.Util.RequestParameterType.Query)] + public virtual string DataLabelingJob { get; set; } + + /// Mask specifying which fields of DataItemView to read. + [Google.Apis.Util.RequestParameterAttribute("fieldMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object FieldMask { get; set; } + + /// + /// A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a + /// field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("orderByAnnotation.orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderByAnnotationOrderBy { get; set; } + + /// + /// Required. Saved query of the Annotation. Only Annotations belong to this saved query will be + /// considered for ordering. + /// + [Google.Apis.Util.RequestParameterAttribute("orderByAnnotation.savedQuery", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderByAnnotationSavedQuery { get; set; } + + /// + /// A comma-separated list of data item fields to order by, sorted in ascending order. Use "desc" + /// after a field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderByDataItem", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderByDataItem { get; set; } + + /// + /// Requested page size. Server may return fewer results than requested. Default and maximum page + /// size is 100. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// - /// 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. + /// 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. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// - /// 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` --&gt; Matches a Feature with ID containing the substring `foo` (eg. - /// `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --&gt; Matches a Feature with ID - /// containing the substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND - /// description: bar` --&gt; 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"` --&gt; Any Feature with description - /// exactly equal to `foo bar` * `value_type = DOUBLE` --&gt; Features whose type is DOUBLE. * - /// `labels.active = yes AND labels.env = prod` --&gt; Features having both (active: yes) and - /// (env: prod) labels. * `labels.env: *` --&gt; Any Feature which has a label with `env` as the - /// key. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("query", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Query { get; set; } + [Google.Apis.Util.RequestParameterAttribute("savedQuery", Google.Apis.Util.RequestParameterType.Query)] + public virtual string SavedQuery { get; set; } /// Gets the method name. - public override string MethodName => "searchFeatures"; + public override string MethodName => "searchDataItems"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+location}/featurestores:searchFeatures"; + public override string RestPath => "v1/{+dataset}:searchDataItems"; - /// Initializes SearchFeatures parameter list. + /// Initializes SearchDataItems parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + RequestParameters.Add("dataset", new Google.Apis.Discovery.Parameter { - Name = "location", + Name = "dataset", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + }); + RequestParameters.Add("annotationFilters", new Google.Apis.Discovery.Parameter + { + Name = "annotationFilters", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("annotationsFilter", new Google.Apis.Discovery.Parameter + { + Name = "annotationsFilter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("annotationsLimit", new Google.Apis.Discovery.Parameter + { + Name = "annotationsLimit", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("dataItemFilter", new Google.Apis.Discovery.Parameter + { + Name = "dataItemFilter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("dataLabelingJob", new Google.Apis.Discovery.Parameter + { + Name = "dataLabelingJob", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("fieldMask", new Google.Apis.Discovery.Parameter + { + Name = "fieldMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderByAnnotation.orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderByAnnotation.orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderByAnnotation.savedQuery", new Google.Apis.Discovery.Parameter + { + Name = "orderByAnnotation.savedQuery", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderByDataItem", new Google.Apis.Discovery.Parameter + { + Name = "orderByDataItem", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { @@ -19370,9 +20147,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("query", new Google.Apis.Discovery.Parameter + RequestParameters.Add("savedQuery", new Google.Apis.Discovery.Parameter { - Name = "query", + Name = "savedQuery", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -19380,177 +20157,31 @@ protected override void InitParameters() }); } } + } - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - /// The body of the request. - /// - /// 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. - /// - public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) + /// Gets the DeploymentResourcePools resource. + public virtual DeploymentResourcePoolsResource DeploymentResourcePools { get; } + + /// The "deploymentResourcePools" collection of methods. + public class DeploymentResourcePoolsResource + { + private const string Resource = "deploymentResourcePools"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public DeploymentResourcePoolsResource(Google.Apis.Services.IClientService service) { - return new SetIamPolicyRequest(this.service, body, resource); + this.service = service; + Operations = new OperationsResource(service); } - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - public class SetIamPolicyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new SetIamPolicy request. - public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) - { - Resource = resource; - Body = body; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "setIamPolicy"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:setIamPolicy"; - - /// Initializes SetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", - }); - } - } - - /// - /// 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. - /// - /// - /// 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. - /// - public virtual TestIamPermissionsRequest TestIamPermissions(string resource) - { - return new TestIamPermissionsRequest(this.service, resource); - } - - /// - /// 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. - /// - public class TestIamPermissionsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new TestIamPermissions request. - public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) - { - Resource = resource; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable Permissions { get; set; } - - /// Gets the method name. - public override string MethodName => "testIamPermissions"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:testIamPermissions"; - - /// Initializes TestIamPermissions parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", - }); - RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter - { - Name = "permissions", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } - - /// Gets the HyperparameterTuningJobs resource. - public virtual HyperparameterTuningJobsResource HyperparameterTuningJobs { get; } - - /// The "hyperparameterTuningJobs" collection of methods. - public class HyperparameterTuningJobsResource - { - private const string Resource = "hyperparameterTuningJobs"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public HyperparameterTuningJobsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } - - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource { private const string Resource = "operations"; @@ -19619,7 +20250,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", }); } } @@ -19672,7 +20303,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", }); } } @@ -19723,7 +20354,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", }); } } @@ -19797,7 +20428,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -19898,7 +20529,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -19912,97 +20543,22 @@ protected override void InitParameters() } } - /// - /// 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`. - /// - /// The body of the request. - /// - /// Required. The name of the HyperparameterTuningJob to cancel. Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest body, string name) - { - return new CancelRequest(this.service, body, name); - } - - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the HyperparameterTuningJob to cancel. Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "cancel"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; - - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", - }); - } - } - - /// Creates a HyperparameterTuningJob + /// Create a DeploymentResourcePool. /// The body of the request. /// - /// Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: + /// Required. The parent location resource where this DeploymentResourcePool will be created. Format: /// `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1HyperparameterTuningJob body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a HyperparameterTuningJob - public class CreateRequest : AiplatformBaseServiceRequest + /// Create a DeploymentResourcePool. + public class CreateRequest : AiplatformBaseServiceRequest { /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1HyperparameterTuningJob body, string parent) : base(service) + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest body, string parent) : base(service) { Parent = parent; Body = body; @@ -20010,14 +20566,14 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: - /// `projects/{project}/locations/{location}` + /// Required. The parent location resource where this DeploymentResourcePool will be created. + /// Format: `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1HyperparameterTuningJob Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -20029,7 +20585,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/hyperparameterTuningJobs"; + public override string RestPath => "v1/{+parent}/deploymentResourcePools"; /// Initializes Create parameter list. protected override void InitParameters() @@ -20046,17 +20602,17 @@ protected override void InitParameters() } } - /// Deletes a HyperparameterTuningJob. + /// Delete a DeploymentResourcePool. /// - /// Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// Required. The name of the DeploymentResourcePool to delete. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a HyperparameterTuningJob. + /// Delete a DeploymentResourcePool. public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -20067,8 +20623,8 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The name of the HyperparameterTuningJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// Required. The name of the DeploymentResourcePool to delete. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -20092,23 +20648,23 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", }); } } - /// Gets a HyperparameterTuningJob + /// Get a DeploymentResourcePool. /// - /// Required. The name of the HyperparameterTuningJob resource. Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// Required. The name of the DeploymentResourcePool to retrieve. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a HyperparameterTuningJob - public class GetRequest : AiplatformBaseServiceRequest + /// Get a DeploymentResourcePool. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -20118,8 +20674,8 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba } /// - /// Required. The name of the HyperparameterTuningJob resource. Format: - /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + /// Required. The name of the DeploymentResourcePool to retrieve. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -20143,14 +20699,14 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", }); } } - /// Lists HyperparameterTuningJobs in a Location. + /// List DeploymentResourcePools in a location. /// - /// Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: + /// Required. The parent Location which owns this collection of DeploymentResourcePools. Format: /// `projects/{project}/locations/{location}` /// public virtual ListRequest List(string parent) @@ -20158,8 +20714,8 @@ public virtual ListRequest List(string parent) return new ListRequest(this.service, parent); } - /// Lists HyperparameterTuningJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// List DeploymentResourcePools in a location. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -20169,41 +20725,27 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: + /// Required. The parent Location which owns this collection of DeploymentResourcePools. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// - /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, - /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + /// The maximum number of DeploymentResourcePools to return. The service may return fewer than this + /// value. /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// - /// The standard list page token. Typically obtained via - /// ListHyperparameterTuningJobsResponse.next_page_token of the previous - /// JobService.ListHyperparameterTuningJobs call. + /// 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. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } - /// Gets the method name. public override string MethodName => "list"; @@ -20211,7 +20753,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/hyperparameterTuningJobs"; + public override string RestPath => "v1/{+parent}/deploymentResourcePools"; /// Initializes List parameter list. protected override void InitParameters() @@ -20225,33 +20767,169 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Name = "filter", + Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - Name = "pageSize", + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + } + } + + /// Update a DeploymentResourcePool. + /// The body of the request. + /// + /// Immutable. The resource name of the DeploymentResourcePool. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeploymentResourcePool body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Update a DeploymentResourcePool. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeploymentResourcePool body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Immutable. The resource name of the DeploymentResourcePool. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Required. The list of fields to update. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeploymentResourcePool Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + } + } + + /// List DeployedModels that have been deployed on this DeploymentResourcePool. + /// + /// Required. The name of the target DeploymentResourcePool to query. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /// + public virtual QueryDeployedModelsRequest QueryDeployedModels(string deploymentResourcePool) + { + return new QueryDeployedModelsRequest(this.service, deploymentResourcePool); + } + + /// List DeployedModels that have been deployed on this DeploymentResourcePool. + public class QueryDeployedModelsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new QueryDeployedModels request. + public QueryDeployedModelsRequest(Google.Apis.Services.IClientService service, string deploymentResourcePool) : base(service) + { + DeploymentResourcePool = deploymentResourcePool; + InitParameters(); + } + + /// + /// Required. The name of the target DeploymentResourcePool to query. Format: + /// `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}` + /// + [Google.Apis.Util.RequestParameterAttribute("deploymentResourcePool", Google.Apis.Util.RequestParameterType.Path)] + public virtual string DeploymentResourcePool { get; private set; } + + /// + /// The maximum number of DeployedModels to return. The service may return fewer than this value. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "queryDeployedModels"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+deploymentResourcePool}:queryDeployedModels"; + + /// Initializes QueryDeployedModels parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("deploymentResourcePool", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "deploymentResourcePool", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -20261,52 +20939,457 @@ protected override void InitParameters() } } - /// Gets the IndexEndpoints resource. - public virtual IndexEndpointsResource IndexEndpoints { get; } + /// Gets the Endpoints resource. + public virtual EndpointsResource Endpoints { get; } - /// The "indexEndpoints" collection of methods. - public class IndexEndpointsResource + /// The "endpoints" collection of methods. + public class EndpointsResource { - private const string Resource = "indexEndpoints"; + private const string Resource = "endpoints"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public IndexEndpointsResource(Google.Apis.Services.IClientService service) + public EndpointsResource(Google.Apis.Services.IClientService service) { this.service = service; + Chat = new ChatResource(service); + DeployedModels = new DeployedModelsResource(service); + Invoke = new InvokeResource(service); + Openapi = new OpenapiResource(service); Operations = new OperationsResource(service); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the Chat resource. + public virtual ChatResource Chat { get; } - /// The "operations" collection of methods. - public class OperationsResource + /// The "chat" collection of methods. + public class ChatResource { - private const string Resource = "operations"; + private const string Resource = "chat"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + public ChatResource(Google.Apis.Services.IClientService service) { this.service = service; } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// Exposes an OpenAI-compatible endpoint for chat completions. + /// The body of the request. + /// + /// Required. The name of the endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual CompletionsRequest Completions(Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) + { + return new CompletionsRequest(this.service, body, endpoint); + } + + /// Exposes an OpenAI-compatible endpoint for chat completions. + public class CompletionsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Completions request. + public CompletionsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "completions"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}/chat/completions"; + + /// Initializes Completions parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + }); + } + } + } + + /// Gets the DeployedModels resource. + public virtual DeployedModelsResource DeployedModels { get; } + + /// The "deployedModels" collection of methods. + public class DeployedModelsResource + { + private const string Resource = "deployedModels"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public DeployedModelsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Invoke = new InvokeResource(service); + } + + /// Gets the Invoke resource. + public virtual InvokeResource Invoke { get; } + + /// The "invoke" collection of methods. + public class InvokeResource + { + private const string Resource = "invoke"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public InvokeResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + /// method, invoke_route_prefix must be set to allow the paths that will be specified in the + /// request. + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + /// + /// ID of the DeployedModel that serves the invoke request. + /// + /// null + public virtual InvokeRequest Invoke(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string deployedModelId, string invokeId) + { + return new InvokeRequest(this.service, body, endpoint, deployedModelId, invokeId); + } + + /// + /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this + /// method, invoke_route_prefix must be set to allow the paths that will be specified in the + /// request. + /// + public class InvokeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Invoke request. + public InvokeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string deployedModelId, string invokeId) : base(service) + { + Endpoint = endpoint; + DeployedModelId = deployedModelId; + InvokeId = invokeId; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// ID of the DeployedModel that serves the invoke request. + [Google.Apis.Util.RequestParameterAttribute("deployedModelId", Google.Apis.Util.RequestParameterType.Path)] + public virtual string DeployedModelId { get; private set; } + + [Google.Apis.Util.RequestParameterAttribute("invokeId", Google.Apis.Util.RequestParameterType.Path)] + public virtual string InvokeId { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "invoke"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}"; + + /// Initializes Invoke parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + }); + RequestParameters.Add("deployedModelId", new Google.Apis.Discovery.Parameter + { + Name = "deployedModelId", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("invokeId", new Google.Apis.Discovery.Parameter + { + Name = "invokeId", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } + + /// Gets the Invoke resource. + public virtual InvokeResource Invoke { get; } + + /// The "invoke" collection of methods. + public class InvokeResource + { + private const string Resource = "invoke"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public InvokeResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + /// invoke_route_prefix must be set to allow the paths that will be specified in the request. + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + /// null + public virtual InvokeRequest Invoke(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string invokeId) + { + return new InvokeRequest(this.service, body, endpoint, invokeId); + } + + /// + /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + /// invoke_route_prefix must be set to allow the paths that will be specified in the request. + /// + public class InvokeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Invoke request. + public InvokeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest body, string endpoint, string invokeId) : base(service) + { + Endpoint = endpoint; + InvokeId = invokeId; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + [Google.Apis.Util.RequestParameterAttribute("invokeId", Google.Apis.Util.RequestParameterType.Path)] + public virtual string InvokeId { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1InvokeRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "invoke"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}/invoke/{+invokeId}"; + + /// Initializes Invoke parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + }); + RequestParameters.Add("invokeId", new Google.Apis.Discovery.Parameter + { + Name = "invokeId", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Openapi resource. + public virtual OpenapiResource Openapi { get; } + + /// The "openapi" collection of methods. + public class OpenapiResource + { + private const string Resource = "openapi"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OpenapiResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + /// invoke_route_prefix must be set to allow the paths that will be specified in the request. + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual EmbeddingsRequest Embeddings(Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) + { + return new EmbeddingsRequest(this.service, body, endpoint); + } + + /// + /// Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, + /// invoke_route_prefix must be set to allow the paths that will be specified in the request. + /// + public class EmbeddingsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Embeddings request. + public EmbeddingsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// ID of the DeployedModel that serves the invoke request. + [Google.Apis.Util.RequestParameterAttribute("deployedModelId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string DeployedModelId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleApiHttpBody Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "embeddings"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}/embeddings"; + + /// Initializes Embeddings parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/openapi$", + }); + RequestParameters.Add("deployedModelId", new Google.Apis.Discovery.Parameter + { + Name = "deployedModelId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { return new CancelRequest(this.service, name); } @@ -20352,7 +21435,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", }); } } @@ -20405,7 +21488,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", }); } } @@ -20456,7 +21539,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", }); } } @@ -20530,7 +21613,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -20631,7 +21714,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -20645,2560 +21728,2500 @@ protected override void InitParameters() } } - /// Creates an IndexEndpoint. + /// Return a list of tokens based on the input text. /// The body of the request. - /// - /// Required. The resource name of the Location to create the IndexEndpoint in. Format: - /// `projects/{project}/locations/{location}` + /// + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string parent) + public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) { - return new CreateRequest(this.service, body, parent); + return new ComputeTokensRequest(this.service, body, endpoint); } - /// Creates an IndexEndpoint. - public class CreateRequest : AiplatformBaseServiceRequest + /// Return a list of tokens based on the input text. + public class ComputeTokensRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string parent) : base(service) + /// Constructs a new ComputeTokens request. + public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) { - Parent = parent; + Endpoint = endpoint; Body = body; InitParameters(); } /// - /// Required. The resource name of the Location to create the IndexEndpoint in. Format: - /// `projects/{project}/locations/{location}` + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "computeTokens"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/indexEndpoints"; + public override string RestPath => "v1/{+endpoint}:computeTokens"; - /// Initializes Create parameter list. + /// Initializes ComputeTokens parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Deletes an IndexEndpoint. - /// - /// Required. The name of the IndexEndpoint resource to be deleted. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Perform a token counting. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual DeleteRequest Delete(string name) + public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) { - return new DeleteRequest(this.service, name); + return new CountTokensRequest(this.service, body, endpoint); } - /// Deletes an IndexEndpoint. - public class DeleteRequest : AiplatformBaseServiceRequest + /// Perform a token counting. + public class CountTokensRequest : AiplatformBaseServiceRequest { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new CountTokens request. + public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) { - Name = name; + Endpoint = endpoint; + Body = body; InitParameters(); } /// - /// Required. The name of the IndexEndpoint resource to be deleted. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "delete"; + public override string MethodName => "countTokens"; /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+endpoint}:countTokens"; - /// Initializes Delete parameter list. + /// Initializes CountTokens parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + /// Creates an Endpoint. /// The body of the request. - /// - /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + /// Required. The resource name of the Location to create the Endpoint in. Format: + /// `projects/{project}/locations/{location}` /// - public virtual DeployIndexRequest DeployIndex(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployIndexRequest body, string indexEndpoint) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string parent) { - return new DeployIndexRequest(this.service, body, indexEndpoint); + return new CreateRequest(this.service, body, parent); } - /// Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. - public class DeployIndexRequest : AiplatformBaseServiceRequest + /// Creates an Endpoint. + public class CreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new DeployIndex request. - public DeployIndexRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployIndexRequest body, string indexEndpoint) : base(service) + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string parent) : base(service) { - IndexEndpoint = indexEndpoint; + Parent = parent; Body = body; InitParameters(); } /// - /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Required. The resource name of the Location to create the Endpoint in. Format: + /// `projects/{project}/locations/{location}` /// - [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string IndexEndpoint { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("endpointId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string EndpointId { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployIndexRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "deployIndex"; + public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+indexEndpoint}:deployIndex"; + public override string RestPath => "v1/{+parent}/endpoints"; - /// Initializes DeployIndex parameter list. + /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "indexEndpoint", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("endpointId", new Google.Apis.Discovery.Parameter + { + Name = "endpointId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// Finds the nearest neighbors of each vector within the request. - /// The body of the request. - /// - /// Required. The name of the index endpoint. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Deletes an Endpoint. + /// + /// Required. The name of the Endpoint resource to be deleted. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual FindNeighborsRequest FindNeighbors(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FindNeighborsRequest body, string indexEndpoint) + public virtual DeleteRequest Delete(string name) { - return new FindNeighborsRequest(this.service, body, indexEndpoint); + return new DeleteRequest(this.service, name); } - /// Finds the nearest neighbors of each vector within the request. - public class FindNeighborsRequest : AiplatformBaseServiceRequest + /// Deletes an Endpoint. + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new FindNeighbors request. - public FindNeighborsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FindNeighborsRequest body, string indexEndpoint) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - IndexEndpoint = indexEndpoint; - Body = body; + Name = name; InitParameters(); } /// - /// Required. The name of the index endpoint. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Required. The name of the Endpoint resource to be deleted. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string IndexEndpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FindNeighborsRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "findNeighbors"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+indexEndpoint}:findNeighbors"; + public override string RestPath => "v1/{+name}"; - /// Initializes FindNeighbors parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "indexEndpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Gets an IndexEndpoint. - /// - /// Required. The name of the IndexEndpoint resource. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Deploys a Model into this Endpoint, creating a DeployedModel within it. + /// The body of the request. + /// + /// Required. The name of the Endpoint resource into which to deploy a Model. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual GetRequest Get(string name) + public virtual DeployModelRequest DeployModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployModelRequest body, string endpoint) { - return new GetRequest(this.service, name); + return new DeployModelRequest(this.service, body, endpoint); } - /// Gets an IndexEndpoint. - public class GetRequest : AiplatformBaseServiceRequest + /// Deploys a Model into this Endpoint, creating a DeployedModel within it. + public class DeployModelRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new DeployModel request. + public DeployModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployModelRequest body, string endpoint) : base(service) { - Name = name; + Endpoint = endpoint; + Body = body; InitParameters(); } /// - /// Required. The name of the IndexEndpoint resource. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Required. The name of the Endpoint resource into which to deploy a Model. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployModelRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "deployModel"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+endpoint}:deployModel"; - /// Initializes Get parameter list. + /// Initializes DeployModel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Lists IndexEndpoints in a Location. - /// - /// Required. The resource name of the Location from which to list the IndexEndpoints. Format: - /// `projects/{project}/locations/{location}` + /// + /// Perform an unary online prediction request to a gRPC model server for Vertex first-party products + /// and frameworks. + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual ListRequest List(string parent) + public virtual DirectPredictRequest DirectPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectPredictRequest body, string endpoint) { - return new ListRequest(this.service, parent); + return new DirectPredictRequest(this.service, body, endpoint); } - /// Lists IndexEndpoints in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Perform an unary online prediction request to a gRPC model server for Vertex first-party products + /// and frameworks. + /// + public class DirectPredictRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Constructs a new DirectPredict request. + public DirectPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectPredictRequest body, string endpoint) : base(service) { - Parent = parent; + Endpoint = endpoint; + Body = body; InitParameters(); } /// - /// Required. The resource name of the Location from which to list the IndexEndpoints. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// 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") -&gt; The display name starts with an A. * - /// `labels.myKey="myValue"` + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// - /// Optional. The standard list page token. Typically obtained via - /// ListIndexEndpointsResponse.next_page_token of the previous - /// IndexEndpointService.ListIndexEndpoints call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectPredictRequest Body { get; set; } - /// Optional. Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "directPredict"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/indexEndpoints"; + public override string RestPath => "v1/{+endpoint}:directPredict"; - /// Initializes List parameter list. + /// Initializes DirectPredict parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Update an existing DeployedIndex under an IndexEndpoint. + /// + /// Perform an unary online prediction request to a gRPC model server for custom containers. + /// /// The body of the request. - /// - /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual MutateDeployedIndexRequest MutateDeployedIndex(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployedIndex body, string indexEndpoint) + public virtual DirectRawPredictRequest DirectRawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectRawPredictRequest body, string endpoint) { - return new MutateDeployedIndexRequest(this.service, body, indexEndpoint); + return new DirectRawPredictRequest(this.service, body, endpoint); } - /// Update an existing DeployedIndex under an IndexEndpoint. - public class MutateDeployedIndexRequest : AiplatformBaseServiceRequest + /// + /// Perform an unary online prediction request to a gRPC model server for custom containers. + /// + public class DirectRawPredictRequest : AiplatformBaseServiceRequest { - /// Constructs a new MutateDeployedIndex request. - public MutateDeployedIndexRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployedIndex body, string indexEndpoint) : base(service) + /// Constructs a new DirectRawPredict request. + public DirectRawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectRawPredictRequest body, string endpoint) : base(service) { - IndexEndpoint = indexEndpoint; + Endpoint = endpoint; Body = body; InitParameters(); } /// - /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string IndexEndpoint { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployedIndex Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DirectRawPredictRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "mutateDeployedIndex"; + public override string MethodName => "directRawPredict"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+indexEndpoint}:mutateDeployedIndex"; + public override string RestPath => "v1/{+endpoint}:directRawPredict"; - /// Initializes MutateDeployedIndex parameter list. + /// Initializes DirectRawPredict parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "indexEndpoint", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Updates an IndexEndpoint. + /// + /// 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. + /// /// The body of the request. - /// Output only. The resource name of the IndexEndpoint. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string name) + /// + /// Required. The name of the Endpoint requested to serve the explanation. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual ExplainRequest Explain(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExplainRequest body, string endpoint) { - return new PatchRequest(this.service, body, name); + return new ExplainRequest(this.service, body, endpoint); } - /// Updates an IndexEndpoint. - public class PatchRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class ExplainRequest : AiplatformBaseServiceRequest { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string name) : base(service) + /// Constructs a new Explain request. + public ExplainRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExplainRequest body, string endpoint) : base(service) { - Name = name; + Endpoint = endpoint; Body = body; InitParameters(); } - /// Output only. The resource name of the IndexEndpoint. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - /// - /// Required. The update mask applies to the resource. See google.protobuf.FieldMask. + /// Required. The name of the Endpoint requested to serve the explanation. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExplainRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "patch"; + public override string MethodName => "explain"; /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+endpoint}:explain"; - /// Initializes Patch parameter list. + /// Initializes Explain parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// - /// Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a - /// batch. - /// + /// Fetch an asynchronous online prediction operation. /// The body of the request. - /// - /// Required. The name of the index endpoint. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` /// - public virtual ReadIndexDatapointsRequest ReadIndexDatapoints(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadIndexDatapointsRequest body, string indexEndpoint) + public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) { - return new ReadIndexDatapointsRequest(this.service, body, indexEndpoint); + return new FetchPredictOperationRequest(this.service, body, endpoint); } - /// - /// Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a - /// batch. - /// - public class ReadIndexDatapointsRequest : AiplatformBaseServiceRequest + /// Fetch an asynchronous online prediction operation. + public class FetchPredictOperationRequest : AiplatformBaseServiceRequest { - /// Constructs a new ReadIndexDatapoints request. - public ReadIndexDatapointsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadIndexDatapointsRequest body, string indexEndpoint) : base(service) + /// Constructs a new FetchPredictOperation request. + public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) { - IndexEndpoint = indexEndpoint; + Endpoint = endpoint; Body = body; InitParameters(); } /// - /// Required. The name of the index endpoint. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` /// - [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string IndexEndpoint { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadIndexDatapointsRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "readIndexDatapoints"; + public override string MethodName => "fetchPredictOperation"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+indexEndpoint}:readIndexDatapoints"; + public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; - /// Initializes ReadIndexDatapoints parameter list. + /// Initializes FetchPredictOperation parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "indexEndpoint", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// - /// Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all - /// resources it's using. - /// + /// Generate content with multimodal inputs. /// The body of the request. - /// - /// Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual UndeployIndexRequest UndeployIndex(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployIndexRequest body, string indexEndpoint) + public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) { - return new UndeployIndexRequest(this.service, body, indexEndpoint); + return new GenerateContentRequest(this.service, body, model); } - /// - /// Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all - /// resources it's using. - /// - public class UndeployIndexRequest : AiplatformBaseServiceRequest + /// Generate content with multimodal inputs. + public class GenerateContentRequest : AiplatformBaseServiceRequest { - /// Constructs a new UndeployIndex request. - public UndeployIndexRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployIndexRequest body, string indexEndpoint) : base(service) + /// Constructs a new GenerateContent request. + public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) { - IndexEndpoint = indexEndpoint; + Model = model; Body = body; InitParameters(); } /// - /// Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: - /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. + /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned + /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string IndexEndpoint { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployIndexRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "undeployIndex"; + public override string MethodName => "generateContent"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+indexEndpoint}:undeployIndex"; + public override string RestPath => "v1/{+model}:generateContent"; - /// Initializes UndeployIndex parameter list. + /// Initializes GenerateContent parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter { - Name = "indexEndpoint", + Name = "model", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - } - - /// Gets the Indexes resource. - public virtual IndexesResource Indexes { get; } - /// The "indexes" collection of methods. - public class IndexesResource - { - private const string Resource = "indexes"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public IndexesResource(Google.Apis.Services.IClientService service) + /// Gets an Endpoint. + /// + /// Required. The name of the Endpoint resource. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual GetRequest Get(string name) { - this.service = service; - Operations = new OperationsResource(service); + return new GetRequest(this.service, name); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// Gets an Endpoint. + public class GetRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } /// - /// 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`. + /// Required. The name of the Endpoint resource. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + }); + } + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Lists Endpoints in a Location. + /// + /// Required. The resource name of the Location from which to list the Endpoints. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Lists Endpoints in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// Required. The resource name of the Location from which to list the Endpoints. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// + /// 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"`. * `base_model_name` only supports `=`. Some + /// examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey="myValue"` * + /// `baseModelName="text-bison"` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// Optional. Configures the Google Distributed Cloud (GDC) environment for online prediction. Only + /// set this field when the Endpoint is to be deployed in a GDC environment. + /// + [Google.Apis.Util.RequestParameterAttribute("gdcZone", Google.Apis.Util.RequestParameterType.Query)] + public virtual string GdcZone { get; set; } /// - /// 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`. + /// 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`. /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } /// - /// 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`. + /// Optional. The standard list page token. Typically obtained via + /// ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call. /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Optional. Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/endpoints"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("gdcZone", new Google.Apis.Discovery.Parameter + { + Name = "gdcZone", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// + /// Updates an existing deployed model. Updatable fields include `min_replica_count`, + /// `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, + /// `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual MutateDeployedModelRequest MutateDeployedModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MutateDeployedModelRequest body, string endpoint) + { + return new MutateDeployedModelRequest(this.service, body, endpoint); + } + + /// + /// Updates an existing deployed model. Updatable fields include `min_replica_count`, + /// `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, + /// `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only). + /// + public class MutateDeployedModelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new MutateDeployedModel request. + public MutateDeployedModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MutateDeployedModelRequest body, string endpoint) : base(service) { - return new GetRequest(this.service, name); + Endpoint = endpoint; + Body = body; + InitParameters(); } /// - /// 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. + /// Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MutateDeployedModelRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "mutateDeployedModel"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:mutateDeployedModel"; + + /// Initializes MutateDeployedModel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", - }); - } + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + }); } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Updates an Endpoint. + /// The body of the request. + /// Output only. The resource name of the Endpoint. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates an Endpoint. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint body, string name) : base(service) { - return new ListRequest(this.service, name); + Name = name; + Body = body; + InitParameters(); } + /// Output only. The resource name of the Endpoint. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. + /// Required. The update mask applies to the resource. See google.protobuf.FieldMask. /// - public class ListRequest : AiplatformBaseServiceRequest + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Endpoint Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Perform an online prediction. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) + { + return new PredictRequest(this.service, body, endpoint); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Perform an online prediction. + public class PredictRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Predict request. + public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "predict"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:predict"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Initializes Predict parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } - - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } - - /// Gets the method name. - public override string MethodName => "wait"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; - - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + }); } } - /// Creates an Index. + /// /// The body of the request. - /// - /// Required. The resource name of the Location to create the Index in. Format: - /// `projects/{project}/locations/{location}` + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string parent) + public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) { - return new CreateRequest(this.service, body, parent); + return new PredictLongRunningRequest(this.service, body, endpoint); } - /// Creates an Index. - public class CreateRequest : AiplatformBaseServiceRequest + /// + public class PredictLongRunningRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string parent) : base(service) + /// Constructs a new PredictLongRunning request. + public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) { - Parent = parent; + Endpoint = endpoint; Body = body; InitParameters(); } /// - /// Required. The resource name of the Location to create the Index in. Format: - /// `projects/{project}/locations/{location}` + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "predictLongRunning"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/indexes"; + public override string RestPath => "v1/{+endpoint}:predictLongRunning"; - /// Initializes Create parameter list. + /// Initializes PredictLongRunning parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } /// - /// Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. + /// 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. /// - /// - /// Required. The name of the Index resource to be deleted. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual DeleteRequest Delete(string name) + public virtual RawPredictRequest RawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) { - return new DeleteRequest(this.service, name); + return new RawPredictRequest(this.service, body, endpoint); } /// - /// Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. + /// 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. /// - public class DeleteRequest : AiplatformBaseServiceRequest + public class RawPredictRequest : AiplatformBaseServiceRequest { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new RawPredict request. + public RawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) : base(service) { - Name = name; + Endpoint = endpoint; + Body = body; InitParameters(); } /// - /// Required. The name of the Index resource to be deleted. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "delete"; + public override string MethodName => "rawPredict"; /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+endpoint}:rawPredict"; - /// Initializes Delete parameter list. + /// Initializes RawPredict parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Gets an Index. - /// - /// Required. The name of the Index resource. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` + /// + /// Perform a server-side streaming online prediction request for Vertex LLM streaming. + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual GetRequest Get(string name) + public virtual ServerStreamingPredictRequest ServerStreamingPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) { - return new GetRequest(this.service, name); + return new ServerStreamingPredictRequest(this.service, body, endpoint); } - /// Gets an Index. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// Perform a server-side streaming online prediction request for Vertex LLM streaming. + /// + public class ServerStreamingPredictRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new ServerStreamingPredict request. + public ServerStreamingPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) : base(service) { - Name = name; + Endpoint = endpoint; + Body = body; InitParameters(); } /// - /// Required. The name of the Index resource. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "serverStreamingPredict"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+endpoint}:serverStreamingPredict"; - /// Initializes Get parameter list. + /// Initializes ServerStreamingPredict parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Lists Indexes in a Location. - /// - /// Required. The resource name of the Location from which to list the Indexes. Format: - /// `projects/{project}/locations/{location}` + /// Generate content with multimodal inputs with streaming support. + /// The body of the request. + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual ListRequest List(string parent) + public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) { - return new ListRequest(this.service, parent); + return new StreamGenerateContentRequest(this.service, body, model); } - /// Lists Indexes in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// Generate content with multimodal inputs with streaming support. + public class StreamGenerateContentRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Constructs a new StreamGenerateContent request. + public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) { - Parent = parent; + Model = model; + Body = body; InitParameters(); } /// - /// Required. The resource name of the Location from which to list the Indexes. Format: - /// `projects/{project}/locations/{location}` + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. + /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned + /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } - /// - /// The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the - /// previous IndexService.ListIndexes call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "streamGenerateContent"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/indexes"; + public override string RestPath => "v1/{+model}:streamGenerateContent"; - /// Initializes List parameter list. + /// Initializes StreamGenerateContent parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "model", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Updates an Index. + /// Perform a streaming online prediction with an arbitrary HTTP payload. /// The body of the request. - /// Output only. The resource name of the Index. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string name) + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual StreamRawPredictRequest StreamRawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) { - return new PatchRequest(this.service, body, name); + return new StreamRawPredictRequest(this.service, body, endpoint); } - /// Updates an Index. - public class PatchRequest : AiplatformBaseServiceRequest + /// Perform a streaming online prediction with an arbitrary HTTP payload. + public class StreamRawPredictRequest : AiplatformBaseServiceRequest { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string name) : base(service) + /// Constructs a new StreamRawPredict request. + public StreamRawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) : base(service) { - Name = name; + Endpoint = endpoint; Body = body; InitParameters(); } - /// Output only. The resource name of the Index. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - /// - /// The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "patch"; + public override string MethodName => "streamRawPredict"; /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+endpoint}:streamRawPredict"; - /// Initializes Patch parameter list. + /// Initializes StreamRawPredict parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Remove Datapoints from an Index. + /// + /// Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's + /// using. + /// /// The body of the request. - /// - /// Required. The name of the Index resource to be updated. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` + /// + /// Required. The name of the Endpoint resource from which to undeploy a Model. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - public virtual RemoveDatapointsRequest RemoveDatapoints(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveDatapointsRequest body, string index) + public virtual UndeployModelRequest UndeployModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployModelRequest body, string endpoint) { - return new RemoveDatapointsRequest(this.service, body, index); + return new UndeployModelRequest(this.service, body, endpoint); } - /// Remove Datapoints from an Index. - public class RemoveDatapointsRequest : AiplatformBaseServiceRequest + /// + /// Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's + /// using. + /// + public class UndeployModelRequest : AiplatformBaseServiceRequest { - /// Constructs a new RemoveDatapoints request. - public RemoveDatapointsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveDatapointsRequest body, string index) : base(service) + /// Constructs a new UndeployModel request. + public UndeployModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployModelRequest body, string endpoint) : base(service) { - Index = index; + Endpoint = endpoint; Body = body; InitParameters(); } /// - /// Required. The name of the Index resource to be updated. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` + /// Required. The name of the Endpoint resource from which to undeploy a Model. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` /// - [Google.Apis.Util.RequestParameterAttribute("index", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Index { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveDatapointsRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployModelRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "removeDatapoints"; + public override string MethodName => "undeployModel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+index}:removeDatapoints"; + public override string RestPath => "v1/{+endpoint}:undeployModel"; - /// Initializes RemoveDatapoints parameter list. + /// Initializes UndeployModel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("index", new Google.Apis.Discovery.Parameter + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter { - Name = "index", + Name = "endpoint", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } - /// Add/update Datapoints into an Index. + /// Updates an Endpoint with a long running operation. /// The body of the request. - /// - /// Required. The name of the Index resource to be updated. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` - /// - public virtual UpsertDatapointsRequest UpsertDatapoints(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpsertDatapointsRequest body, string index) + /// Output only. The resource name of the Endpoint. + public virtual UpdateRequest Update(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest body, string name) { - return new UpsertDatapointsRequest(this.service, body, index); + return new UpdateRequest(this.service, body, name); } - /// Add/update Datapoints into an Index. - public class UpsertDatapointsRequest : AiplatformBaseServiceRequest + /// Updates an Endpoint with a long running operation. + public class UpdateRequest : AiplatformBaseServiceRequest { - /// Constructs a new UpsertDatapoints request. - public UpsertDatapointsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpsertDatapointsRequest body, string index) : base(service) + /// Constructs a new Update request. + public UpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest body, string name) : base(service) { - Index = index; + Name = name; Body = body; InitParameters(); } - /// - /// Required. The name of the Index resource to be updated. Format: - /// `projects/{project}/locations/{location}/indexes/{index}` - /// - [Google.Apis.Util.RequestParameterAttribute("index", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Index { get; private set; } + /// Output only. The resource name of the Endpoint. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpsertDatapointsRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "upsertDatapoints"; + public override string MethodName => "update"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+index}:upsertDatapoints"; + public override string RestPath => "v1/{+name}:update"; - /// Initializes UpsertDatapoints parameter list. + /// Initializes Update parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("index", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "index", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", }); } } } - /// Gets the MetadataStores resource. - public virtual MetadataStoresResource MetadataStores { get; } + /// Gets the EvaluationItems resource. + public virtual EvaluationItemsResource EvaluationItems { get; } - /// The "metadataStores" collection of methods. - public class MetadataStoresResource + /// The "evaluationItems" collection of methods. + public class EvaluationItemsResource { - private const string Resource = "metadataStores"; + private const string Resource = "evaluationItems"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public MetadataStoresResource(Google.Apis.Services.IClientService service) + public EvaluationItemsResource(Google.Apis.Services.IClientService service) { this.service = service; - Artifacts = new ArtifactsResource(service); - Contexts = new ContextsResource(service); - Executions = new ExecutionsResource(service); - MetadataSchemas = new MetadataSchemasResource(service); - Operations = new OperationsResource(service); } - /// Gets the Artifacts resource. - public virtual ArtifactsResource Artifacts { get; } - - /// The "artifacts" collection of methods. - public class ArtifactsResource + /// Creates an Evaluation Item. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the Evaluation Item in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationItem body, string parent) { - private const string Resource = "artifacts"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new CreateRequest(this.service, body, parent); + } - /// Constructs a new resource. - public ArtifactsResource(Google.Apis.Services.IClientService service) + /// Creates an Evaluation Item. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationItem body, string parent) : base(service) { - this.service = service; - Operations = new OperationsResource(service); + Parent = parent; + Body = body; + InitParameters(); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// + /// Required. The resource name of the Location to create the Evaluation Item in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationItem Body { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Gets the method name. + public override string MethodName => "create"; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluationItems"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Deletes an Evaluation Item. + /// + /// Required. The name of the EvaluationItem resource to be deleted. Format: + /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Deletes an Evaluation Item. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// Required. The name of the EvaluationItem resource to be deleted. Format: + /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + }); + } + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets an Evaluation Item. + /// + /// Required. The name of the EvaluationItem resource. Format: + /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets an Evaluation Item. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// + /// Required. The name of the EvaluationItem resource. Format: + /// `projects/{project}/locations/{location}/evaluationItems/{evaluation_item}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationItems/[^/]+$", + }); + } + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Lists Evaluation Items. + /// + /// Required. The resource name of the Location from which to list the Evaluation Items. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } - /// Gets the method name. - public override string MethodName => "get"; + /// Lists Evaluation Items. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Required. The resource name of the Location from which to list the Evaluation Items. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// Optional. Filter expression that matches a subset of the EvaluationItems to show. For field + /// names both snake_case and camelCase are supported. For more information about filter syntax, see + /// [AIP-160](https://google.aip.dev/160). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// Optional. A comma-separated list of fields to order by, sorted in ascending order by default. + /// Use `desc` after a field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Optional. The maximum number of Evaluation Items to return. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Optional. A page token, received from a previous `ListEvaluationItems` call. Provide this to + /// retrieve the subsequent page. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "list"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluationItems"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the EvaluationRuns resource. + public virtual EvaluationRunsResource EvaluationRuns { get; } - /// Gets the method name. - public override string MethodName => "list"; + /// The "evaluationRuns" collection of methods. + public class EvaluationRunsResource + { + private const string Resource = "evaluationRuns"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Constructs a new resource. + public EvaluationRunsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// + /// Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run + /// can be checked via GetEvaluationRun. + /// + /// The body of the request. + /// + /// Required. The name of the EvaluationRun resource to be cancelled. Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelEvaluationRunRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run asynchronously. Status of run + /// can be checked via GetEvaluationRun. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelEvaluationRunRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The name of the EvaluationRun resource to be cancelled. Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelEvaluationRunRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Creates an Artifact associated with a MetadataStore. - /// The body of the request. - /// - /// Required. The resource name of the MetadataStore where the Artifact should be created. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string parent) + /// Initializes Cancel parameter list. + protected override void InitParameters() { - return new CreateRequest(this.service, body, parent); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + }); } + } - /// Creates an Artifact associated with a MetadataStore. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// Creates an Evaluation Run. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the Evaluation Run in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationRun body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// - /// Required. The resource name of the MetadataStore where the Artifact should be created. - /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Creates an Evaluation Run. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationRun body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("artifactId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string ArtifactId { get; set; } + /// + /// Required. The resource name of the Location to create the Evaluation Run in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationRun Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/artifacts"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluationRuns"; - /// Initializes Create parameter list. - protected override void InitParameters() + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); - RequestParameters.Add("artifactId", new Google.Apis.Discovery.Parameter - { - Name = "artifactId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); } + } - /// Deletes an Artifact. - /// - /// Required. The resource name of the Artifact to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Deletes an Evaluation Run. + /// + /// Required. The name of the EvaluationRun resource to be deleted. Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Deletes an Artifact. - public class DeleteRequest : AiplatformBaseServiceRequest + /// Deletes an Evaluation Run. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// Required. The resource name of the Artifact to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = name; + InitParameters(); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("etag", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Etag { get; set; } + /// + /// Required. The name of the EvaluationRun resource to be deleted. Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", - }); - RequestParameters.Add("etag", new Google.Apis.Discovery.Parameter - { - Name = "etag", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + }); } + } - /// Retrieves a specific Artifact. - /// - /// Required. The resource name of the Artifact to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets an Evaluation Run. + /// + /// Required. The name of the EvaluationRun resource. Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Retrieves a specific Artifact. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets an Evaluation Run. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The resource name of the Artifact to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The name of the EvaluationRun resource. Format: + /// `projects/{project}/locations/{location}/evaluationRuns/{evaluation_run}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationRuns/[^/]+$", + }); } + } - /// Lists Artifacts in the MetadataStore. - /// - /// Required. The MetadataStore whose Artifacts should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual ListRequest List(string parent) + /// Lists Evaluation Runs. + /// + /// Required. The resource name of the Location from which to list the Evaluation Runs. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Evaluation Runs. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - return new ListRequest(this.service, parent); + Parent = parent; + InitParameters(); } - /// Lists Artifacts in the MetadataStore. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// + /// Required. The resource name of the Location from which to list the Evaluation Runs. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// - /// Required. The MetadataStore whose Artifacts should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Optional. Filter expression that matches a subset of the EvaluationRuns to show. For field names + /// both snake_case and camelCase are supported. For more information about filter syntax, see + /// [AIP-160](https://google.aip.dev/160). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// 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` &amp; `OR`). - /// Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND - /// metadata.field1.bool_value = true`. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// - /// The maximum number of Artifacts to return. The service may return fewer. Must be in range - /// 1-100, inclusive. Defaults to 100. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// Optional. A comma-separated list of fields to order by, sorted in ascending order by default. + /// Use `desc` after a field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Optional. The maximum number of Evaluation Runs to return. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Optional. A page token, received from a previous `ListEvaluationRuns` call. Provide this to + /// retrieve the subsequent page. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/artifacts"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Updates a stored Artifact. - /// The body of the request. - /// Output only. The resource name of the Artifact. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string name) - { - return new PatchRequest(this.service, body, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluationRuns"; - /// Updates a stored Artifact. - public class PatchRequest : AiplatformBaseServiceRequest + /// Initializes List parameter list. + protected override void InitParameters() { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } - - /// Output only. The resource name of the Artifact. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// If set to true, and the Artifact is not found, a new Artifact is created. - [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable AllowMissing { get; set; } - - /// Optional. A FieldMask indicating which fields should be updated. - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact Body { get; set; } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the EvaluationSets resource. + public virtual EvaluationSetsResource EvaluationSets { get; } - /// Gets the method name. - public override string MethodName => "patch"; + /// The "evaluationSets" collection of methods. + public class EvaluationSetsResource + { + private const string Resource = "evaluationSets"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public EvaluationSetsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", - }); - RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter - { - Name = "allowMissing", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Creates an Evaluation Set. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the Evaluation Set in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// Purges Artifacts. - /// The body of the request. - /// - /// Required. The metadata store to purge Artifacts from. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual PurgeRequest Purge(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeArtifactsRequest body, string parent) + /// Creates an Evaluation Set. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string parent) : base(service) { - return new PurgeRequest(this.service, body, parent); + Parent = parent; + Body = body; + InitParameters(); } - /// Purges Artifacts. - public class PurgeRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Purge request. - public PurgeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeArtifactsRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The metadata store to purge Artifacts from. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Required. The resource name of the Location to create the Evaluation Set in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeArtifactsRequest Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "purge"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/artifacts:purge"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluationSets"; - /// Initializes Purge parameter list. - protected override void InitParameters() + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); } + } - /// - /// Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event - /// edges and returned as a LineageSubgraph. - /// - /// - /// 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. - /// - public virtual QueryArtifactLineageSubgraphRequest QueryArtifactLineageSubgraph(string artifact) + /// Deletes an Evaluation Set. + /// + /// Required. The name of the EvaluationSet resource to be deleted. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes an Evaluation Set. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new QueryArtifactLineageSubgraphRequest(this.service, artifact); + Name = name; + InitParameters(); } /// - /// Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event - /// edges and returned as a LineageSubgraph. + /// Required. The name of the EvaluationSet resource to be deleted. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` /// - public class QueryArtifactLineageSubgraphRequest : AiplatformBaseServiceRequest - { - /// Constructs a new QueryArtifactLineageSubgraph request. - public QueryArtifactLineageSubgraphRequest(Google.Apis.Services.IClientService service, string artifact) : base(service) - { - Artifact = artifact; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("artifact", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Artifact { get; private set; } - - /// - /// 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` &amp; `OR`). Maximum nested expression - /// depth allowed is 5. For example: `display_name = "test" AND metadata.field1.bool_value = - /// true`. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("maxHops", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable MaxHops { get; set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "queryArtifactLineageSubgraph"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+artifact}:queryArtifactLineageSubgraph"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes QueryArtifactLineageSubgraph parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("artifact", new Google.Apis.Discovery.Parameter - { - Name = "artifact", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("maxHops", new Google.Apis.Discovery.Parameter - { - Name = "maxHops", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + }); } } - /// Gets the Contexts resource. - public virtual ContextsResource Contexts { get; } - - /// The "contexts" collection of methods. - public class ContextsResource + /// Gets an Evaluation Set. + /// + /// Required. The name of the EvaluationSet resource. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + /// + public virtual GetRequest Get(string name) { - private const string Resource = "contexts"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new GetRequest(this.service, name); + } - /// Constructs a new resource. - public ContextsResource(Google.Apis.Services.IClientService service) + /// Gets an Evaluation Set. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; - Operations = new OperationsResource(service); + Name = name; + InitParameters(); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// + /// Required. The name of the EvaluationSet resource. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Gets the method name. + public override string MethodName => "get"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new CancelRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + }); + } + } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// Lists Evaluation Sets. + /// + /// Required. The resource name of the Location from which to list the Evaluation Sets. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Evaluation Sets. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location from which to list the Evaluation Sets. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. Filter expression that matches a subset of the EvaluationSets to show. For field names + /// both snake_case and camelCase are supported. For more information about filter syntax, see + /// [AIP-160](https://google.aip.dev/160). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// Optional. A comma-separated list of fields to order by, sorted in ascending order by default. + /// Use `desc` after a field name for descending. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// Optional. The maximum number of Evaluation Sets to return. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. A page token, received from a previous `ListEvaluationSets` call. Provide this to + /// retrieve the subsequent page. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluationSets"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Updates an Evaluation Set. + /// The body of the request. + /// + /// Identifier. The resource name of the EvaluationSet. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string name) + { + return new PatchRequest(this.service, body, name); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Updates an Evaluation Set. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// Identifier. The resource name of the EvaluationSet. Format: + /// `projects/{project}/locations/{location}/evaluationSets/{evaluation_set}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// + /// Optional. The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", - }); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluationSet Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/evaluationSets/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the FeatureGroups resource. + public virtual FeatureGroupsResource FeatureGroups { get; } + + /// The "featureGroups" collection of methods. + public class FeatureGroupsResource + { + private const string Resource = "featureGroups"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public FeatureGroupsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Features = new FeaturesResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the Features resource. + public virtual FeaturesResource Features { get; } + + /// The "features" collection of methods. + public class FeaturesResource + { + private const string Resource = "features"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public FeaturesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; } /// @@ -23249,7 +24272,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", }); } } @@ -23300,7 +24323,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", }); } } @@ -23310,19 +24333,19 @@ protected override void InitParameters() /// support this method, it returns `UNIMPLEMENTED`. /// /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + public virtual ListWaitRequest ListWait(string name) { - return new ListRequest(this.service, name); + return new ListWaitRequest(this.service, name); } /// /// Lists operations that match the specified filter in the request. If the server doesn't /// support this method, it returns `UNIMPLEMENTED`. /// - public class ListRequest : AiplatformBaseServiceRequest + public class ListWaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); @@ -23356,15 +24379,15 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "listWait"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes List parameter list. + /// Initializes ListWait parameter list. protected override void InitParameters() { base.InitParameters(); @@ -23374,7 +24397,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -23475,7 +24498,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -23489,157 +24512,88 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The resource name of the Context that the Artifacts and Executions belong to. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - /// - public virtual AddContextArtifactsAndExecutionsRequest AddContextArtifactsAndExecutions(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest body, string context) - { - return new AddContextArtifactsAndExecutionsRequest(this.service, body, context); - } - - /// - /// 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. - /// - public class AddContextArtifactsAndExecutionsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new AddContextArtifactsAndExecutions request. - public AddContextArtifactsAndExecutionsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest body, string context) : base(service) - { - Context = context; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Context that the Artifacts and Executions belong to. - /// Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - /// - [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Context { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "addContextArtifactsAndExecutions"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+context}:addContextArtifactsAndExecutions"; - - /// Initializes AddContextArtifactsAndExecutions parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("context", new Google.Apis.Discovery.Parameter - { - Name = "context", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", - }); - } - } - - /// - /// 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. - /// + /// Creates a batch of Features in a given FeatureGroup. /// The body of the request. - /// - /// Required. The resource name of the parent Context. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + /// Required. The resource name of the EntityType/FeatureGroup to create the batch of Features + /// under. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// - public virtual AddContextChildrenRequest AddContextChildren(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextChildrenRequest body, string context) + public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) { - return new AddContextChildrenRequest(this.service, body, context); + return new BatchCreateRequest(this.service, body, parent); } - /// - /// 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. - /// - public class AddContextChildrenRequest : AiplatformBaseServiceRequest + /// Creates a batch of Features in a given FeatureGroup. + public class BatchCreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new AddContextChildren request. - public AddContextChildrenRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextChildrenRequest body, string context) : base(service) + /// Constructs a new BatchCreate request. + public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) : base(service) { - Context = context; + Parent = parent; Body = body; InitParameters(); } /// - /// Required. The resource name of the parent Context. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// Required. The resource name of the EntityType/FeatureGroup to create the batch of Features + /// under. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` /// - [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Context { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextChildrenRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "addContextChildren"; + public override string MethodName => "batchCreate"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+context}:addContextChildren"; + public override string RestPath => "v1/{+parent}/features:batchCreate"; - /// Initializes AddContextChildren parameter list. + /// Initializes BatchCreate parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("context", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "context", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", }); } } - /// Creates a Context associated with a MetadataStore. + /// Creates a new Feature in a given FeatureGroup. /// The body of the request. /// - /// Required. The resource name of the MetadataStore where the Context should be created. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// 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}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a Context associated with a MetadataStore. - public class CreateRequest : AiplatformBaseServiceRequest + /// Creates a new Feature in a given FeatureGroup. + public class CreateRequest : AiplatformBaseServiceRequest { /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string parent) : base(service) + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) : base(service) { Parent = parent; Body = body; @@ -23647,25 +24601,26 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the MetadataStore where the Context should be created. - /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// 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}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// - /// 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.) + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("contextId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string ContextId { get; set; } + [Google.Apis.Util.RequestParameterAttribute("featureId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string FeatureId { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -23677,7 +24632,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/contexts"; + public override string RestPath => "v1/{+parent}/features"; /// Initializes Create parameter list. protected override void InitParameters() @@ -23689,11 +24644,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", }); - RequestParameters.Add("contextId", new Google.Apis.Discovery.Parameter + RequestParameters.Add("featureId", new Google.Apis.Discovery.Parameter { - Name = "contextId", + Name = "featureId", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -23702,17 +24657,18 @@ protected override void InitParameters() } } - /// Deletes a stored Context. + /// Deletes a single Feature. /// - /// Required. The resource name of the Context to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// 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}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a stored Context. + /// Deletes a single Feature. public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -23723,27 +24679,15 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The resource name of the Context to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// 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}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("etag", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Etag { get; set; } - - /// - /// The force deletion semantics is still undefined. Users should not use this field. - /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "delete"; /// Gets the HTTP method. public override string HttpMethod => "DELETE"; @@ -23761,39 +24705,25 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", - }); - RequestParameters.Add("etag", new Google.Apis.Discovery.Parameter - { - Name = "etag", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter - { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", }); } } - /// Retrieves a specific Context. + /// Gets details of a single Feature. /// - /// Required. The resource name of the Context to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// 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}` /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Retrieves a specific Context. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets details of a single Feature. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -23803,8 +24733,10 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba } /// - /// Required. The resource name of the Context to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// 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}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -23828,23 +24760,25 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", }); } } - /// Lists Contexts on the MetadataStore. + /// Lists Features in a given FeatureGroup. /// - /// Required. The MetadataStore whose Contexts should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// 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}` /// public virtual ListRequest List(string parent) { return new ListRequest(this.service, parent); } - /// Lists Contexts on the MetadataStore. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists Features in a given FeatureGroup. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -23854,62 +24788,69 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The MetadataStore whose Contexts should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// 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}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// - /// 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` &amp; `OR`). - /// Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND - /// metadata.field1.bool_value = true`. + /// Lists the Features that match the filter expression. The following filters are supported: * + /// `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, &lt;, + /// &gt;, &gt;=, and &lt;= comparisons. Values must be in RFC 3339 format. * + /// `update_time`: Supports =, !=, &lt;, &gt;, &gt;=, and &lt;= comparisons. + /// Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key + /// presence. Examples: * `value_type = DOUBLE` --&gt; Features whose type is DOUBLE. * + /// `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time &gt; + /// \"2020-01-31T15:30:00.000000Z\"` --&gt; EntityTypes created or updated after + /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --&gt; + /// Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --&gt; Any + /// Feature which has a label with 'env' as the key. /// [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } /// - /// 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. + /// 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 &lt; ListFeaturesRequest.latest_stats_count, return + /// all existing stats. + /// + [Google.Apis.Util.RequestParameterAttribute("latestStatsCount", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable LatestStatsCount { get; set; } + + /// + /// 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` /// [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] public virtual string OrderBy { get; set; } /// - /// The maximum number of Contexts to return. The service may return fewer. Must be in range - /// 1-100, inclusive. Defaults to 100. + /// 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. /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// - /// 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.) + /// 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. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -23917,7 +24858,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/contexts"; + public override string RestPath => "v1/{+parent}/features"; /// Initializes List parameter list. protected override void InitParameters() @@ -23929,7 +24870,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -23939,6 +24880,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("latestStatsCount", new Google.Apis.Discovery.Parameter + { + Name = "latestStatsCount", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter { Name = "orderBy", @@ -23963,42 +24912,68 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Updates a stored Context. + /// Updates the parameters of a single Feature. /// The body of the request. - /// Immutable. The resource name of the Context. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string name) + /// + /// Immutable. Name of the Feature. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The + /// last part feature is assigned by the client. The feature can be up to 64 characters long and can + /// consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting + /// with a letter. The value will be unique given an entity type. + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) { return new PatchRequest(this.service, body, name); } - /// Updates a stored Context. - public class PatchRequest : AiplatformBaseServiceRequest + /// Updates the parameters of a single Feature. + public class PatchRequest : AiplatformBaseServiceRequest { /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string name) : base(service) + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) : base(service) { Name = name; Body = body; InitParameters(); } - /// Immutable. The resource name of the Context. + /// + /// 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. + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// If set to true, and the Context is not found, a new Context is created. - [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable AllowMissing { get; set; } - - /// Optional. A FieldMask indicating which fields should be updated. + /// + /// 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 FeatureRegistryService Feature) * `point_of_contact` + /// (Not supported for FeaturestoreService FeatureStore) + /// [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -24022,15 +24997,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", - }); - RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter - { - Name = "allowMissing", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { @@ -24042,1201 +25009,1469 @@ protected override void InitParameters() }); } } + } - /// Purges Contexts. - /// The body of the request. - /// - /// Required. The metadata store to purge Contexts from. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual PurgeRequest Purge(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeContextsRequest body, string parent) + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - return new PurgeRequest(this.service, body, parent); + this.service = service; } - /// Purges Contexts. - public class PurgeRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - /// Constructs a new Purge request. - public PurgeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeContextsRequest body, string parent) : base(service) + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The metadata store to purge Contexts from. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeContextsRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "purge"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/contexts:purge"; + public override string RestPath => "v1/{+name}"; - /// Initializes Purge parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", }); } } /// - /// Retrieves Artifacts and Executions within the specified Context, connected by Event edges and - /// returned as a LineageSubgraph. + /// 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. /// - /// - /// 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. - /// - public virtual QueryContextLineageSubgraphRequest QueryContextLineageSubgraph(string context) + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - return new QueryContextLineageSubgraphRequest(this.service, context); + return new GetRequest(this.service, name); } /// - /// Retrieves Artifacts and Executions within the specified Context, connected by Event edges and - /// returned as a LineageSubgraph. + /// 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. /// - public class QueryContextLineageSubgraphRequest : AiplatformBaseServiceRequest + public class GetRequest : AiplatformBaseServiceRequest { - /// Constructs a new QueryContextLineageSubgraph request. - public QueryContextLineageSubgraphRequest(Google.Apis.Services.IClientService service, string context) : base(service) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Context = context; + Name = name; InitParameters(); } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Context { get; private set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "queryContextLineageSubgraph"; + public override string MethodName => "get"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+context}:queryContextLineageSubgraph"; + public override string RestPath => "v1/{+name}"; - /// Initializes QueryContextLineageSubgraph parameter list. + /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("context", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "context", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", }); } } /// - /// 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. + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. /// - /// The body of the request. - /// - /// Required. The resource name of the parent Context. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - /// - public virtual RemoveContextChildrenRequest RemoveContextChildren(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveContextChildrenRequest body, string context) + /// The name of the operation's parent resource. + public virtual ListWaitRequest ListWait(string name) { - return new RemoveContextChildrenRequest(this.service, body, context); + return new ListWaitRequest(this.service, name); } /// - /// 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. + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. /// - public class RemoveContextChildrenRequest : AiplatformBaseServiceRequest + public class ListWaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new RemoveContextChildren request. - public RemoveContextChildrenRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveContextChildrenRequest body, string context) : base(service) + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Context = context; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the parent Context. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` - /// - [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Context { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveContextChildrenRequest Body { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "removeContextChildren"; + public override string MethodName => "listWait"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+context}:removeContextChildren"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes RemoveContextChildren parameter list. + /// Initializes ListWait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("context", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "context", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - } - - /// Gets the Executions resource. - public virtual ExecutionsResource Executions { get; } - - /// The "executions" collection of methods. - public class ExecutionsResource - { - private const string Resource = "executions"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - /// Constructs a new resource. - public ExecutionsResource(Google.Apis.Services.IClientService service) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - this.service = service; - Operations = new OperationsResource(service); + return new WaitRequest(this.service, name); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// 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`. + /// 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. /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } - - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Creates a new FeatureGroup in a given project and location. + /// The body of the request. + /// + /// Required. The resource name of the Location to create FeatureGroups. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Creates a new FeatureGroup in a given project and location. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the Location to create FeatureGroups. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// 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 128 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. + /// + [Google.Apis.Util.RequestParameterAttribute("featureGroupId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string FeatureGroupId { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup Body { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "create"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/featureGroups"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("featureGroupId", new Google.Apis.Discovery.Parameter + { + Name = "featureGroupId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Deletes a single FeatureGroup. + /// + /// Required. The name of the FeatureGroup to be deleted. Format: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "get"; + /// Deletes a single FeatureGroup. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Required. The name of the FeatureGroup to be deleted. Format: + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "delete"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets details of a single FeatureGroup. + /// Required. The name of the FeatureGroup resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets details of a single FeatureGroup. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Required. The name of the FeatureGroup resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the method name. + public override string MethodName => "get"; - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + /// + /// 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. + /// + public virtual GetIamPolicyRequest GetIamPolicy(string resource) + { + return new GetIamPolicyRequest(this.service, resource); + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + public class GetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GetIamPolicy request. + public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + { + Resource = resource; + InitParameters(); + } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "getIamPolicy"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:getIamPolicy"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Initializes GetIamPolicy parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + }); + RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + { + Name = "options.requestedPolicyVersion", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Lists FeatureGroups in a given project and location. + /// + /// Required. The resource name of the Location to list FeatureGroups. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Lists FeatureGroups in a given project and location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); } /// - /// 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. + /// Required. The resource name of the Location to list FeatureGroups. Format: + /// `projects/{project}/locations/{location}` /// - /// The body of the request. - /// - /// Required. The resource name of the Execution that the Events connect Artifacts with. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - /// - public virtual AddExecutionEventsRequest AddExecutionEvents(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddExecutionEventsRequest body, string execution) - { - return new AddExecutionEventsRequest(this.service, body, execution); - } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } /// - /// 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. + /// Lists the FeatureGroups that match the filter expression. The following fields are supported: * + /// `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` + /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `&lt;`, + /// `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 format. * + /// `labels`: Supports key-value equality and key presence. Examples: * `create_time &gt; + /// "2020-01-01" OR update_time &gt; "2020-01-01"` FeatureGroups created or updated after + /// 2020-01-01. * `labels.env = "prod"` FeatureGroups with label "env" set to "prod". /// - public class AddExecutionEventsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new AddExecutionEvents request. - public AddExecutionEventsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddExecutionEventsRequest body, string execution) : base(service) - { - Execution = execution; - Body = body; - InitParameters(); - } + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// Required. The resource name of the Execution that the Events connect Artifacts with. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - /// - [Google.Apis.Util.RequestParameterAttribute("execution", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Execution { get; private set; } + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddExecutionEventsRequest Body { get; set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// A page token, received from a previous FeatureRegistryService.ListFeatureGroups call. Provide + /// this to retrieve the subsequent page. When paginating, all other parameters provided to + /// FeatureRegistryService.ListFeatureGroups must match the call that provided the page token. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "addExecutionEvents"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+execution}:addExecutionEvents"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/featureGroups"; - /// Initializes AddExecutionEvents parameter list. - protected override void InitParameters() + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("execution", new Google.Apis.Discovery.Parameter - { - Name = "execution", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// Creates an Execution associated with a MetadataStore. - /// The body of the request. - /// - /// Required. The resource name of the MetadataStore where the Execution should be created. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Updates the parameters of a single FeatureGroup. + /// The body of the request. + /// + /// Identifier. Name of the FeatureGroup. Format: + /// `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string name) + { + return new PatchRequest(this.service, body, name); + } - /// Creates an Execution associated with a MetadataStore. - public class CreateRequest : AiplatformBaseServiceRequest + /// Updates the parameters of a single FeatureGroup. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup body, string name) : base(service) { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = name; + Body = body; + InitParameters(); + } - /// - /// Required. The resource name of the MetadataStore where the Execution should be created. - /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Identifier. Name of the FeatureGroup. Format: + /// `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("executionId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string ExecutionId { get; set; } + /// + /// 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` * `big_query` * + /// `big_query.entity_id_columns` * `service_agent_type` + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureGroup Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "patch"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/executions"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Create parameter list. - protected override void InitParameters() + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); - RequestParameters.Add("executionId", new Google.Apis.Discovery.Parameter - { - Name = "executionId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// Deletes an Execution. - /// - /// Required. The resource name of the Execution to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - /// - public virtual DeleteRequest Delete(string name) + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + /// The body of the request. + /// + /// 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. + /// + public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) + { + return new SetIamPolicyRequest(this.service, body, resource); + } + + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + public class SetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new SetIamPolicy request. + public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) { - return new DeleteRequest(this.service, name); + Resource = resource; + Body = body; + InitParameters(); } - /// Deletes an Execution. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// - /// Required. The resource name of the Execution to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("etag", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Etag { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "setIamPolicy"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:setIamPolicy"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes SetIamPolicy parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - }); - RequestParameters.Add("etag", new Google.Apis.Discovery.Parameter - { - Name = "etag", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + }); } + } - /// Retrieves a specific Execution. - /// - /// Required. The resource name of the Execution to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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. + /// + /// + /// 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. + /// + public virtual TestIamPermissionsRequest TestIamPermissions(string resource) + { + return new TestIamPermissionsRequest(this.service, resource); + } - /// Retrieves a specific Execution. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class TestIamPermissionsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new TestIamPermissions request. + public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Resource = resource; + InitParameters(); + } - /// - /// Required. The resource name of the Execution to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable Permissions { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "testIamPermissions"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:testIamPermissions"; + + /// Initializes TestIamPermissions parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - }); - } + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + }); + RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter + { + Name = "permissions", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } + } - /// Lists Executions in the MetadataStore. - /// - /// Required. The MetadataStore whose Executions should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual ListRequest List(string parent) + /// Gets the FeatureOnlineStores resource. + public virtual FeatureOnlineStoresResource FeatureOnlineStores { get; } + + /// The "featureOnlineStores" collection of methods. + public class FeatureOnlineStoresResource + { + private const string Resource = "featureOnlineStores"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public FeatureOnlineStoresResource(Google.Apis.Services.IClientService service) + { + this.service = service; + FeatureViews = new FeatureViewsResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the FeatureViews resource. + public virtual FeatureViewsResource FeatureViews { get; } + + /// The "featureViews" collection of methods. + public class FeatureViewsResource + { + private const string Resource = "featureViews"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public FeatureViewsResource(Google.Apis.Services.IClientService service) { - return new ListRequest(this.service, parent); + this.service = service; + FeatureViewSyncs = new FeatureViewSyncsResource(service); + Operations = new OperationsResource(service); } - /// Lists Executions in the MetadataStore. - public class ListRequest : AiplatformBaseServiceRequest + /// Gets the FeatureViewSyncs resource. + public virtual FeatureViewSyncsResource FeatureViewSyncs { get; } + + /// The "featureViewSyncs" collection of methods. + public class FeatureViewSyncsResource { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + private const string Resource = "featureViewSyncs"; - /// - /// Required. The MetadataStore whose Executions should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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` &amp; `OR`). Maximum - /// nested expression depth allowed is 5. For example: `display_name = "test" AND - /// metadata.field1.bool_value = true`. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Constructs a new resource. + public FeatureViewSyncsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// Gets details of a single FeatureViewSync. + /// + /// Required. The name of the FeatureViewSync resource. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// - /// The maximum number of Executions to return. The service may return fewer. Must be in range - /// 1-100, inclusive. Defaults to 100. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets details of a single FeatureViewSync. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// Required. The name of the FeatureViewSync resource. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/executions"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", + }); + } } - } - - /// Updates a stored Execution. - /// The body of the request. - /// Output only. The resource name of the Execution. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string name) - { - return new PatchRequest(this.service, body, name); - } - /// Updates a stored Execution. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string name) : base(service) + /// Lists FeatureViewSyncs in a given FeatureView. + /// + /// Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// + public virtual ListRequest List(string parent) { - Name = name; - Body = body; - InitParameters(); + return new ListRequest(this.service, parent); } - /// Output only. The resource name of the Execution. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Lists FeatureViewSyncs in a given FeatureView. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } - /// - /// If set to true, and the Execution is not found, a new Execution is created. - /// - [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable AllowMissing { get; set; } + /// + /// Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Optional. A FieldMask indicating which fields should be updated. - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// Lists the FeatureViewSyncs that match the filter expression. The following filters are + /// supported: * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&gt;=`, and + /// `&lt;=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time + /// &gt; \"2020-01-31T15:30:00.000000Z\"` --&gt; FeatureViewSyncs created after + /// 2020-01-31T15:30:00.000000Z. + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution Body { get; set; } + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - }); - RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter - { - Name = "allowMissing", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/featureViewSyncs"; + + /// Initializes List parameter list. + protected override void InitParameters() { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - /// Purges Executions. - /// The body of the request. - /// - /// Required. The metadata store to purge Executions from. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual PurgeRequest Purge(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeExecutionsRequest body, string parent) - { - return new PurgeRequest(this.service, body, parent); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Purges Executions. - public class PurgeRequest : AiplatformBaseServiceRequest + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new Purge request. - public PurgeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeExecutionsRequest body, string parent) : base(service) + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - Parent = parent; - Body = body; - InitParameters(); + this.service = service; } /// - /// Required. The metadata store to purge Executions from. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeExecutionsRequest Body { get; set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "purge"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/executions:purge"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Purge parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Initializes Delete parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); + } } - } - /// - /// Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph - /// that also contains the Execution and connecting Events. - /// - /// - /// 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}` - /// - public virtual QueryExecutionInputsAndOutputsRequest QueryExecutionInputsAndOutputs(string execution) - { - return new QueryExecutionInputsAndOutputsRequest(this.service, execution); - } - - /// - /// Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph - /// that also contains the Execution and connecting Events. - /// - public class QueryExecutionInputsAndOutputsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new QueryExecutionInputsAndOutputs request. - public QueryExecutionInputsAndOutputsRequest(Google.Apis.Services.IClientService service, string execution) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Execution = execution; - InitParameters(); + return new GetRequest(this.service, name); } /// - /// 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}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("execution", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Execution { get; private set; } + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "queryExecutionInputsAndOutputs"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+execution}:queryExecutionInputsAndOutputs"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes QueryExecutionInputsAndOutputs parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListWaitRequest ListWait(string name) { - base.InitParameters(); - RequestParameters.Add("execution", new Google.Apis.Discovery.Parameter + return new ListWaitRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListWaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "execution", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - }); + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "listWait"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes ListWait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } - } - } - /// Gets the MetadataSchemas resource. - public virtual MetadataSchemasResource MetadataSchemas { get; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// The "metadataSchemas" collection of methods. - public class MetadataSchemasResource - { - private const string Resource = "metadataSchemas"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Constructs a new resource. - public MetadataSchemasResource(Google.Apis.Services.IClientService service) - { - this.service = service; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } } - /// Creates a MetadataSchema. + /// Creates a new FeatureView in a given FeatureOnlineStore. /// The body of the request. /// - /// Required. The resource name of the MetadataStore where the MetadataSchema should be created. - /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataSchema body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a MetadataSchema. - public class CreateRequest : AiplatformBaseServiceRequest + /// Creates a new FeatureView in a given FeatureOnlineStore. + public class CreateRequest : AiplatformBaseServiceRequest { /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataSchema body, string parent) : base(service) + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string parent) : base(service) { Parent = parent; Body = body; @@ -25244,26 +26479,30 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the MetadataStore where the MetadataSchema should be created. - /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// - /// 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.) + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("metadataSchemaId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string MetadataSchemaId { get; set; } + [Google.Apis.Util.RequestParameterAttribute("featureViewId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string FeatureViewId { get; set; } + + /// + /// Immutable. If set to true, one on demand sync will be run immediately, regardless whether + /// the FeatureView.sync_config is configured or not. + /// + [Google.Apis.Util.RequestParameterAttribute("runSyncImmediately", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable RunSyncImmediately { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataSchema Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -25275,7 +26514,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/metadataSchemas"; + public override string RestPath => "v1/{+parent}/featureViews"; /// Initializes Create parameter list. protected override void InitParameters() @@ -25287,11 +26526,19 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", }); - RequestParameters.Add("metadataSchemaId", new Google.Apis.Discovery.Parameter + RequestParameters.Add("featureViewId", new Google.Apis.Discovery.Parameter { - Name = "metadataSchemaId", + Name = "featureViewId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("runSyncImmediately", new Google.Apis.Discovery.Parameter + { + Name = "runSyncImmediately", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -25300,43 +26547,43 @@ protected override void InitParameters() } } - /// Retrieves a specific MetadataSchema. + /// Deletes a single FeatureView. /// - /// Required. The resource name of the MetadataSchema to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + /// Required. The name of the FeatureView to be deleted. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` /// - public virtual GetRequest Get(string name) + public virtual DeleteRequest Delete(string name) { - return new GetRequest(this.service, name); + return new DeleteRequest(this.service, name); } - /// Retrieves a specific MetadataSchema. - public class GetRequest : AiplatformBaseServiceRequest + /// Deletes a single FeatureView. + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// - /// Required. The resource name of the MetadataSchema to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + /// Required. The name of the FeatureView to be deleted. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); @@ -25346,253 +26593,214 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", }); } } - /// Lists MetadataSchemas. - /// - /// Required. The MetadataStore whose MetadataSchemas should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + /// Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may + /// not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce + /// latency. + /// + /// The body of the request. + /// + /// FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` /// - public virtual ListRequest List(string parent) + public virtual DirectWriteRequest DirectWrite(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest body, string featureView) { - return new ListRequest(this.service, parent); + return new DirectWriteRequest(this.service, body, featureView); } - /// Lists MetadataSchemas. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may + /// not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce + /// latency. + /// + public class DirectWriteRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Constructs a new DirectWrite request. + public DirectWriteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest body, string featureView) : base(service) { - Parent = parent; + FeatureView = featureView; + Body = body; InitParameters(); } /// - /// Required. The MetadataStore whose MetadataSchemas should be listed. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// A query to filter available MetadataSchemas for matching results. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] + public virtual string FeatureView { get; private set; } - /// - /// The maximum number of MetadataSchemas to return. The service may return fewer. Must be in - /// range 1-100, inclusive. Defaults to 100. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureViewDirectWriteRequest Body { get; set; } - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "directWrite"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/metadataSchemas"; + public override string RestPath => "v1/{+featureView}:directWrite"; - /// Initializes List parameter list. + /// Initializes DirectWrite parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "featureView", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", }); } } - } - - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// Fetch feature values under a FeatureView. + /// The body of the request. + /// + /// Required. FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// + public virtual FetchFeatureValuesRequest FetchFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchFeatureValuesRequest body, string featureView) { - return new CancelRequest(this.service, name); + return new FetchFeatureValuesRequest(this.service, body, featureView); } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// Fetch feature values under a FeatureView. + public class FetchFeatureValuesRequest : AiplatformBaseServiceRequest { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new FetchFeatureValues request. + public FetchFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchFeatureValuesRequest body, string featureView) : base(service) { - Name = name; - InitParameters(); + FeatureView = featureView; + Body = body; + InitParameters(); } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// + [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] + public virtual string FeatureView { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchFeatureValuesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "cancel"; + public override string MethodName => "fetchFeatureValues"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + public override string RestPath => "v1/{+featureView}:fetchFeatureValues"; - /// Initializes Cancel parameter list. + /// Initializes FetchFeatureValues parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "featureView", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", }); } } /// - /// 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`. + /// RPC to generate an access token for the given feature view. FeatureViews under the same + /// FeatureOnlineStore share the same access token. /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// The body of the request. + /// + /// FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// + public virtual GenerateFetchAccessTokenRequest GenerateFetchAccessToken(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateFetchAccessTokenRequest body, string featureView) { - return new DeleteRequest(this.service, name); + return new GenerateFetchAccessTokenRequest(this.service, body, featureView); } /// - /// 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`. + /// RPC to generate an access token for the given feature view. FeatureViews under the same + /// FeatureOnlineStore share the same access token. /// - public class DeleteRequest : AiplatformBaseServiceRequest + public class GenerateFetchAccessTokenRequest : AiplatformBaseServiceRequest { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new GenerateFetchAccessToken request. + public GenerateFetchAccessTokenRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateFetchAccessTokenRequest body, string featureView) : base(service) { - Name = name; + FeatureView = featureView; + Body = body; InitParameters(); } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// + [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] + public virtual string FeatureView { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateFetchAccessTokenRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "delete"; + public override string MethodName => "generateFetchAccessToken"; /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+featureView}:generateFetchAccessToken"; - /// Initializes Delete parameter list. + /// Initializes GenerateFetchAccessToken parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "featureView", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", }); } } - /// - /// 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. - /// - /// The name of the operation resource. + /// Gets details of a single FeatureView. + /// + /// Required. The name of the FeatureView resource. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Gets details of a single FeatureView. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -25601,7 +26809,10 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// The name of the operation resource. + /// + /// Required. The name of the FeatureView resource. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -25624,60 +26835,158 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", }); } } /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists + /// and does not have a policy set. /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// + /// 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. + /// + public virtual GetIamPolicyRequest GetIamPolicy(string resource) { - return new ListRequest(this.service, name); + return new GetIamPolicyRequest(this.service, resource); } /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists + /// and does not have a policy set. /// - public class ListRequest : AiplatformBaseServiceRequest + public class GetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GetIamPolicy request. + public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + { + Resource = resource; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } + + /// Gets the method name. + public override string MethodName => "getIamPolicy"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:getIamPolicy"; + + /// Initializes GetIamPolicy parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + }); + RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + { + Name = "options.requestedPolicyVersion", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Lists FeatureViews in a given FeatureOnlineStore. + /// + /// Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists FeatureViews in a given FeatureOnlineStore. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Name = name; + Parent = parent; InitParameters(); } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The standard list filter. + /// + /// Lists the FeatureViews that match the filter expression. The following filters are + /// supported: * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&gt;=`, and + /// `&lt;=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, + /// `!=`, `&lt;`, `&gt;`, `&gt;=`, and `&lt;=` comparisons. Values must be in + /// RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: + /// * `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time &gt; + /// \"2020-01-31T15:30:00.000000Z\"` --&gt; FeatureViews created or updated after + /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --&gt; + /// FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --&gt; + /// Any FeatureView which has a label with 'env' as the key. + /// [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// The standard list page size. + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// 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. + /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -25686,19 +26995,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+parent}/featureViews"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -25708,25 +27017,25 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter { - Name = "pageSize", + Name = "orderBy", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - Name = "returnPartialSuccess", + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -25735,61 +27044,65 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Updates the parameters of a single FeatureView. + /// The body of the request. + /// + /// Identifier. Name of the FeatureView. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string name) { - return new WaitRequest(this.service, name); + return new PatchRequest(this.service, body, name); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Updates the parameters of a single FeatureView. + public class PatchRequest : AiplatformBaseServiceRequest { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView body, string name) : base(service) { Name = name; + Body = body; InitParameters(); } - /// The name of the operation resource to wait on. + /// + /// Identifier. Name of the FeatureView. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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. + /// 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` * + /// `service_agent_type` * `big_query_source` * `big_query_source.uri` * + /// `big_query_source.entity_id_columns` * `feature_registry_source` * + /// `feature_registry_source.feature_groups` * `sync_config` * `sync_config.cron` * + /// `optimized_config.automatic_resources` /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureView Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "wait"; + public override string MethodName => "patch"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "PATCH"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. + /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); @@ -25799,11 +27112,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { - Name = "timeout", + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -25811,382 +27124,294 @@ protected override void InitParameters() }); } } - } - - /// Initializes a MetadataStore, including allocation of resources. - /// The body of the request. - /// - /// Required. The resource name of the Location where the MetadataStore should be created. Format: - /// `projects/{project}/locations/{location}/` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataStore body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - /// Initializes a MetadataStore, including allocation of resources. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataStore body, string parent) : base(service) + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// + public virtual SearchNearestEntitiesRequest SearchNearestEntities(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchNearestEntitiesRequest body, string featureView) { - Parent = parent; - Body = body; - InitParameters(); + return new SearchNearestEntitiesRequest(this.service, body, featureView); } /// - /// Required. The resource name of the Location where the MetadataStore should be created. Format: - /// `projects/{project}/locations/{location}/` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + public class SearchNearestEntitiesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new SearchNearestEntities request. + public SearchNearestEntitiesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchNearestEntitiesRequest body, string featureView) : base(service) + { + FeatureView = featureView; + Body = body; + InitParameters(); + } - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("metadataStoreId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string MetadataStoreId { get; set; } + /// + /// Required. FeatureView resource format + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}` + /// + [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] + public virtual string FeatureView { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataStore Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchNearestEntitiesRequest Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "searchNearestEntities"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/metadataStores"; + /// Gets the REST path. + public override string RestPath => "v1/{+featureView}:searchNearestEntities"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("metadataStoreId", new Google.Apis.Discovery.Parameter + /// Initializes SearchNearestEntities parameter list. + protected override void InitParameters() { - Name = "metadataStoreId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter + { + Name = "featureView", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + }); + } } - } - - /// - /// Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts). - /// - /// - /// Required. The resource name of the MetadataStore to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// - /// Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts). - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can + /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + /// The body of the request. + /// + /// 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. + /// + public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) { - Name = name; - InitParameters(); + return new SetIamPolicyRequest(this.service, body, resource); } /// - /// Required. The resource name of the MetadataStore to delete. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Deprecated: Field is no longer supported. - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can + /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + public class SetIamPolicyRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + /// Constructs a new SetIamPolicy request. + public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + Resource = resource; + Body = body; + InitParameters(); + } - /// Retrieves a specific MetadataStore. - /// - /// Required. The resource name of the MetadataStore to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// Retrieves a specific MetadataStore. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } - /// - /// Required. The resource name of the MetadataStore to retrieve. Format: - /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "setIamPolicy"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:setIamPolicy"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes SetIamPolicy parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + }); + } } - } - - /// Lists MetadataStores for a Location. - /// - /// Required. The Location whose MetadataStores should be listed. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - /// Lists MetadataStores for a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Triggers on-demand sync for the FeatureView. + /// The body of the request. + /// + /// Required. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// + public virtual SyncRequest Sync(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SyncFeatureViewRequest body, string featureView) { - Parent = parent; - InitParameters(); + return new SyncRequest(this.service, body, featureView); } - /// - /// Required. The Location whose MetadataStores should be listed. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// The maximum number of Metadata Stores to return. The service may return fewer. Must be in range - /// 1-100, inclusive. Defaults to 100. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// - /// 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.) - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/metadataStores"; - - /// Initializes List parameter list. - protected override void InitParameters() + /// Triggers on-demand sync for the FeatureView. + public class SyncRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + /// Constructs a new Sync request. + public SyncRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SyncFeatureViewRequest body, string featureView) : base(service) { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } - - /// Gets the MigratableResources resource. - public virtual MigratableResourcesResource MigratableResources { get; } + FeatureView = featureView; + Body = body; + InitParameters(); + } - /// The "migratableResources" collection of methods. - public class MigratableResourcesResource - { - private const string Resource = "migratableResources"; + /// + /// Required. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}` + /// + [Google.Apis.Util.RequestParameterAttribute("featureView", Google.Apis.Util.RequestParameterType.Path)] + public virtual string FeatureView { get; private set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SyncFeatureViewRequest Body { get; set; } - /// Constructs a new resource. - public MigratableResourcesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the method name. + public override string MethodName => "sync"; - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the REST path. + public override string RestPath => "v1/{+featureView}:sync"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; + /// Initializes Sync parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("featureView", new Google.Apis.Discovery.Parameter + { + Name = "featureView", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + }); + } } /// - /// 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`. + /// 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. /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// + /// 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. + /// + public virtual TestIamPermissionsRequest TestIamPermissions(string resource) { - return new CancelRequest(this.service, name); + return new TestIamPermissionsRequest(this.service, resource); } /// - /// 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`. + /// 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. /// - public class CancelRequest : AiplatformBaseServiceRequest + public class TestIamPermissionsRequest : AiplatformBaseServiceRequest { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new TestIamPermissions request. + public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) { - Name = name; + Resource = resource; InitParameters(); } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable Permissions { get; set; } /// Gets the method name. - public override string MethodName => "cancel"; + public override string MethodName => "testIamPermissions"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + public override string RestPath => "v1/{+resource}:testIamPermissions"; - /// Initializes Cancel parameter list. + /// Initializes TestIamPermissions parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "resource", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + }); + RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter + { + Name = "permissions", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } /// /// Deletes a long-running operation. This method indicates that the client is no longer interested @@ -26236,7 +27461,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", }); } } @@ -26287,7 +27512,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", }); } } @@ -26297,19 +27522,19 @@ protected override void InitParameters() /// this method, it returns `UNIMPLEMENTED`. /// /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + public virtual ListWaitRequest ListWait(string name) { - return new ListRequest(this.service, name); + return new ListWaitRequest(this.service, name); } /// /// Lists operations that match the specified filter in the request. If the server doesn't support /// this method, it returns `UNIMPLEMENTED`. /// - public class ListRequest : AiplatformBaseServiceRequest + public class ListWaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new ListWait request. + public ListWaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); @@ -26343,15 +27568,15 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "listWait"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes List parameter list. + /// Initializes ListWait parameter list. protected override void InitParameters() { base.InitParameters(); @@ -26361,7 +27586,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -26462,7 +27687,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -26476,28 +27701,22 @@ protected override void InitParameters() } } - /// - /// Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - /// datalabeling.googleapis.com to Vertex AI. - /// + /// Creates a new FeatureOnlineStore in a given project and location. /// The body of the request. /// - /// Required. The location of the migrated resource will live in. Format: + /// Required. The resource name of the Location to create FeatureOnlineStores. Format: /// `projects/{project}/locations/{location}` /// - public virtual BatchMigrateRequest BatchMigrate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchMigrateResourcesRequest body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string parent) { - return new BatchMigrateRequest(this.service, body, parent); + return new CreateRequest(this.service, body, parent); } - /// - /// Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and - /// datalabeling.googleapis.com to Vertex AI. - /// - public class BatchMigrateRequest : AiplatformBaseServiceRequest + /// Creates a new FeatureOnlineStore in a given project and location. + public class CreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new BatchMigrate request. - public BatchMigrateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchMigrateResourcesRequest body, string parent) : base(service) + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string parent) : base(service) { Parent = parent; Body = body; @@ -26505,28 +27724,37 @@ public BatchMigrateRequest(Google.Apis.Services.IClientService service, Google.A } /// - /// Required. The location of the migrated resource will live in. Format: + /// Required. The resource name of the Location to create FeatureOnlineStores. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("featureOnlineStoreId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string FeatureOnlineStoreId { get; set; } + /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchMigrateResourcesRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "batchMigrate"; + public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/migratableResources:batchMigrate"; + public override string RestPath => "v1/{+parent}/featureOnlineStores"; - /// Initializes BatchMigrate parameter list. + /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); @@ -26538,688 +27766,286 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); + RequestParameters.Add("featureOnlineStoreId", new Google.Apis.Discovery.Parameter + { + Name = "featureOnlineStoreId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } /// - /// 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. + /// Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. /// - /// The body of the request. - /// - /// 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}` + /// + /// Required. The name of the FeatureOnlineStore to be deleted. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` /// - public virtual SearchRequest Search(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchMigratableResourcesRequest body, string parent) + public virtual DeleteRequest Delete(string name) { - return new SearchRequest(this.service, body, parent); + return new DeleteRequest(this.service, name); } /// - /// 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. + /// Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews. /// - public class SearchRequest : AiplatformBaseServiceRequest + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new Search request. - public SearchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchMigratableResourcesRequest body, string parent) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } /// - /// 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}` + /// Required. The name of the FeatureOnlineStore to be deleted. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}` /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchMigratableResourcesRequest Body { get; set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } /// Gets the method name. - public override string MethodName => "search"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/migratableResources:search"; + public override string RestPath => "v1/{+name}"; - /// Initializes Search parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - } - - /// Gets the ModelDeploymentMonitoringJobs resource. - public virtual ModelDeploymentMonitoringJobsResource ModelDeploymentMonitoringJobs { get; } - /// The "modelDeploymentMonitoringJobs" collection of methods. - public class ModelDeploymentMonitoringJobsResource - { - private const string Resource = "modelDeploymentMonitoringJobs"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public ModelDeploymentMonitoringJobsResource(Google.Apis.Services.IClientService service) + /// Gets details of a single FeatureOnlineStore. + /// Required. The name of the FeatureOnlineStore resource. + public virtual GetRequest Get(string name) { - this.service = service; - Operations = new OperationsResource(service); + return new GetRequest(this.service, name); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// Gets details of a single FeatureOnlineStore. + public class GetRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new CancelRequest(this.service, name); + Name = name; + InitParameters(); } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "cancel"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Required. The name of the FeatureOnlineStore resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// Initializes Get parameter list. + protected override void InitParameters() { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + }); } + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + /// + /// 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. + /// + public virtual GetIamPolicyRequest GetIamPolicy(string resource) + { + return new GetIamPolicyRequest(this.service, resource); + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + public class GetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GetIamPolicy request. + public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "get"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", - }); - } + Resource = resource; + InitParameters(); } /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. + /// 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. /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. + /// 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). /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the method name. + public override string MethodName => "getIamPolicy"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:getIamPolicy"; - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Initializes GetIamPolicy parameter list. + protected override void InitParameters() { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } - - /// Gets the method name. - public override string MethodName => "wait"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; - - /// Initializes Wait parameter list. - protected override void InitParameters() + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + }); + RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "options.requestedPolicyVersion", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// - /// Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. - /// - /// The body of the request. + /// Lists FeatureOnlineStores in a given project and location. /// - /// Required. The parent of the ModelDeploymentMonitoringJob. Format: + /// Required. The resource name of the Location to list FeatureOnlineStores. Format: /// `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string parent) + public virtual ListRequest List(string parent) { - return new CreateRequest(this.service, body, parent); + return new ListRequest(this.service, parent); } - /// - /// Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. - /// - public class CreateRequest : AiplatformBaseServiceRequest + /// Lists FeatureOnlineStores in a given project and location. + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string parent) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; - Body = body; InitParameters(); } /// - /// Required. The parent of the ModelDeploymentMonitoringJob. Format: + /// Required. The resource name of the Location to list FeatureOnlineStores. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob Body { get; set; } + /// + /// Lists the FeatureOnlineStores that match the filter expression. The following fields are + /// supported: * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and + /// `&gt;=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, + /// `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 + /// format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time + /// &gt; "2020-01-01" OR update_time &gt; "2020-01-01"` FeatureOnlineStores created or + /// updated after 2020-01-01. * `labels.env = "prod"` FeatureOnlineStores with label "env" set to + /// "prod". + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/modelDeploymentMonitoringJobs"; + public override string RestPath => "v1/{+parent}/featureOnlineStores"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } - - /// Deletes a ModelDeploymentMonitoringJob. - /// - /// Required. The resource name of the model monitoring job to delete. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// Deletes a ModelDeploymentMonitoringJob. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// Required. The resource name of the model monitoring job to delete. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", - }); - } - } - - /// Gets a ModelDeploymentMonitoringJob. - /// - /// Required. The resource name of the ModelDeploymentMonitoringJob. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - - /// Gets a ModelDeploymentMonitoringJob. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// Required. The resource name of the ModelDeploymentMonitoringJob. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "get"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", - }); - } - } - - /// Lists ModelDeploymentMonitoringJobs in a Location. - /// - /// Required. The parent of the ModelDeploymentMonitoringJob. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - - /// Lists ModelDeploymentMonitoringJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// Required. The parent of the ModelDeploymentMonitoringJob. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, - /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Mask specifying which fields to read - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/modelDeploymentMonitoringJobs"; - - /// Initializes List parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); @@ -27239,25 +28065,25 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter { - Name = "pageSize", + Name = "orderBy", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -27266,51 +28092,48 @@ protected override void InitParameters() } } - /// Updates a ModelDeploymentMonitoringJob. + /// Updates the parameters of a single FeatureOnlineStore. /// The body of the request. - /// Output only. Resource name of a ModelDeploymentMonitoringJob. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string name) + /// + /// Identifier. Name of the FeatureOnlineStore. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string name) { return new PatchRequest(this.service, body, name); } - /// Updates a ModelDeploymentMonitoringJob. + /// Updates the parameters of a single FeatureOnlineStore. public class PatchRequest : AiplatformBaseServiceRequest { /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string name) : base(service) + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore body, string name) : base(service) { Name = name; Body = body; InitParameters(); } - /// Output only. Resource name of a ModelDeploymentMonitoringJob. + /// + /// Identifier. Name of the FeatureOnlineStore. Format: + /// `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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` + /// 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: * `labels` * `description` * `bigtable` * + /// `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica` /// [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FeatureOnlineStore Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -27334,7 +28157,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { @@ -27348,464 +28171,915 @@ protected override void InitParameters() } /// - /// Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to - /// cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. /// /// The body of the request. - /// - /// Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /// + /// 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. /// - public virtual PauseRequest Pause(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest body, string name) + public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) { - return new PauseRequest(this.service, body, name); + return new SetIamPolicyRequest(this.service, body, resource); } /// - /// Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to - /// cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. /// - public class PauseRequest : AiplatformBaseServiceRequest + public class SetIamPolicyRequest : AiplatformBaseServiceRequest { - /// Constructs a new Pause request. - public PauseRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest body, string name) : base(service) + /// Constructs a new SetIamPolicy request. + public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) { - Name = name; + Resource = resource; Body = body; InitParameters(); } /// - /// Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "pause"; + public override string MethodName => "setIamPolicy"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:pause"; + public override string RestPath => "v1/{+resource}:setIamPolicy"; - /// Initializes Pause parameter list. + /// Initializes SetIamPolicy parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "resource", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", }); } } /// - /// Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A - /// deleted ModelDeploymentMonitoringJob can't be resumed. + /// 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. /// - /// The body of the request. - /// - /// Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /// + /// 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. /// - public virtual ResumeRequest Resume(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest body, string name) + public virtual TestIamPermissionsRequest TestIamPermissions(string resource) { - return new ResumeRequest(this.service, body, name); + return new TestIamPermissionsRequest(this.service, resource); } /// - /// Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A - /// deleted ModelDeploymentMonitoringJob can't be resumed. + /// 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. /// - public class ResumeRequest : AiplatformBaseServiceRequest + public class TestIamPermissionsRequest : AiplatformBaseServiceRequest { - /// Constructs a new Resume request. - public ResumeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest body, string name) : base(service) + /// Constructs a new TestIamPermissions request. + public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) { - Name = name; - Body = body; + Resource = resource; InitParameters(); } /// - /// Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest Body { get; set; } + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable Permissions { get; set; } /// Gets the method name. - public override string MethodName => "resume"; + public override string MethodName => "testIamPermissions"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:resume"; + public override string RestPath => "v1/{+resource}:testIamPermissions"; - /// Initializes Resume parameter list. + /// Initializes TestIamPermissions parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "resource", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", }); - } - } - - /// Searches Model Monitoring Statistics generated within a given time window. - /// The body of the request. - /// - /// Required. ModelDeploymentMonitoring Job resource name. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - /// - public virtual SearchModelDeploymentMonitoringStatsAnomaliesRequest SearchModelDeploymentMonitoringStatsAnomalies(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest body, string modelDeploymentMonitoringJob) - { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(this.service, body, modelDeploymentMonitoringJob); - } - - /// Searches Model Monitoring Statistics generated within a given time window. - public class SearchModelDeploymentMonitoringStatsAnomaliesRequest : AiplatformBaseServiceRequest - { - /// Constructs a new SearchModelDeploymentMonitoringStatsAnomalies request. - public SearchModelDeploymentMonitoringStatsAnomaliesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest body, string modelDeploymentMonitoringJob) : base(service) - { - ModelDeploymentMonitoringJob = modelDeploymentMonitoringJob; - Body = body; - InitParameters(); - } - - /// - /// Required. ModelDeploymentMonitoring Job resource name. Format: - /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("modelDeploymentMonitoringJob", Google.Apis.Util.RequestParameterType.Path)] - public virtual string ModelDeploymentMonitoringJob { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "searchModelDeploymentMonitoringStatsAnomalies"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies"; - - /// Initializes SearchModelDeploymentMonitoringStatsAnomalies parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("modelDeploymentMonitoringJob", new Google.Apis.Discovery.Parameter + RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter { - Name = "modelDeploymentMonitoringJob", - IsRequired = true, - ParameterType = "path", + Name = "permissions", + IsRequired = false, + ParameterType = "query", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + Pattern = null, }); } } } - /// Gets the Models resource. - public virtual ModelsResource Models { get; } + /// Gets the Featurestores resource. + public virtual FeaturestoresResource Featurestores { get; } - /// The "models" collection of methods. - public class ModelsResource + /// The "featurestores" collection of methods. + public class FeaturestoresResource { - private const string Resource = "models"; + private const string Resource = "featurestores"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public ModelsResource(Google.Apis.Services.IClientService service) + public FeaturestoresResource(Google.Apis.Services.IClientService service) { this.service = service; - Evaluations = new EvaluationsResource(service); + EntityTypes = new EntityTypesResource(service); Operations = new OperationsResource(service); } - /// Gets the Evaluations resource. - public virtual EvaluationsResource Evaluations { get; } + /// Gets the EntityTypes resource. + public virtual EntityTypesResource EntityTypes { get; } - /// The "evaluations" collection of methods. - public class EvaluationsResource + /// The "entityTypes" collection of methods. + public class EntityTypesResource { - private const string Resource = "evaluations"; + private const string Resource = "entityTypes"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public EvaluationsResource(Google.Apis.Services.IClientService service) + public EntityTypesResource(Google.Apis.Services.IClientService service) { this.service = service; + Features = new FeaturesResource(service); Operations = new OperationsResource(service); - Slices = new SlicesResource(service); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the Features resource. + public virtual FeaturesResource Features { get; } - /// The "operations" collection of methods. - public class OperationsResource + /// The "features" collection of methods. + public class FeaturesResource { - private const string Resource = "operations"; + private const string Resource = "features"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + public FeaturesResource(Google.Apis.Services.IClientService service) { this.service = service; + Operations = new OperationsResource(service); } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "cancel"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", - }); + this.service = service; } - } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those + /// that are unreachable are returned in the [ListOperationsResponse.unreachable] field. + /// This can only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will + /// result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + /// service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a batch of Features in a given EntityType. + /// The body of the request. + /// + /// Required. The resource name of the EntityType/FeatureGroup to create the batch of Features + /// under. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// + public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) { - return new DeleteRequest(this.service, name); + return new BatchCreateRequest(this.service, body, parent); } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// Creates a batch of Features in a given EntityType. + public class BatchCreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new BatchCreate request. + public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest body, string parent) : base(service) { - Name = name; + Parent = parent; + Body = body; InitParameters(); } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the EntityType/FeatureGroup to create the batch of + /// Features under. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// `projects/{project}/locations/{location}/featureGroups/{feature_group}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateFeaturesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "delete"; + public override string MethodName => "batchCreate"; /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+parent}/features:batchCreate"; - /// Initializes Delete parameter list. + /// Initializes BatchCreate parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); } } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// Creates a new Feature in a given EntityType. + /// The body of the request. + /// + /// 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}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) { - return new GetRequest(this.service, name); + return new CreateRequest(this.service, body, parent); } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Creates a new Feature in a given EntityType. + public class CreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string parent) : base(service) { - Name = name; + Parent = parent; + Body = body; InitParameters(); } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("featureId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string FeatureId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "create"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+parent}/features"; - /// Initializes Get parameter list. + /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + RequestParameters.Add("featureId", new Google.Apis.Discovery.Parameter + { + Name = "featureId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Deletes a single Feature. + /// + /// 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}` + /// + public virtual DeleteRequest Delete(string name) { - return new ListRequest(this.service, name); + return new DeleteRequest(this.service, name); } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// Deletes a single Feature. + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } - /// The name of the operation's parent resource. + /// + /// 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}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// The standard list filter. + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + }); + } + } + + /// Gets details of a single Feature. + /// + /// 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}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets details of a single Feature. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// 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}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + }); + } + } + + /// Lists Features in a given EntityType. + /// + /// 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}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Features in a given EntityType. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// 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}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Lists the Features that match the filter expression. The following filters are + /// supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, + /// !=, &lt;, &gt;, &gt;=, and &lt;= comparisons. Values must be in RFC 3339 + /// format. * `update_time`: Supports =, !=, &lt;, &gt;, &gt;=, and &lt;= + /// comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality + /// as well as key presence. Examples: * `value_type = DOUBLE` --&gt; Features whose + /// type is DOUBLE. * `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time + /// &gt; \"2020-01-31T15:30:00.000000Z\"` --&gt; EntityTypes created or updated + /// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` + /// --&gt; Features having both (active: yes) and (env: prod) labels. * `labels.env: *` + /// --&gt; Any Feature which has a label with 'env' as the key. + /// [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// The standard list page size. + /// + /// 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 &lt; + /// ListFeaturesRequest.latest_stats_count, return all existing stats. + /// + [Google.Apis.Util.RequestParameterAttribute("latestStatsCount", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable LatestStatsCount { get; set; } + + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// 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. + /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// The standard list page token. + /// + /// 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. + /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -27814,19 +29088,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+parent}/features"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -27836,6 +29110,22 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("latestStatsCount", new Google.Apis.Discovery.Parameter + { + Name = "latestStatsCount", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", @@ -27852,9 +29142,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter { - Name = "returnPartialSuccess", + Name = "readMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -27863,61 +29153,72 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Updates the parameters of a single Feature. + /// The body of the request. + /// + /// 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. + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) { - return new WaitRequest(this.service, name); + return new PatchRequest(this.service, body, name); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Updates the parameters of a single Feature. + public class PatchRequest : AiplatformBaseServiceRequest { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature body, string name) : base(service) { Name = name; + Body = body; InitParameters(); } - /// The name of the operation resource to wait on. + /// + /// 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. + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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. + /// 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 + /// FeatureRegistryService Feature) * `point_of_contact` (Not supported for + /// FeaturestoreService FeatureStore) /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Feature Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "wait"; + public override string MethodName => "patch"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "PATCH"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. + /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); @@ -27927,11 +29228,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { - Name = "timeout", + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -27941,94 +29242,152 @@ protected override void InitParameters() } } - /// Gets the Slices resource. - public virtual SlicesResource Slices { get; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The "slices" collection of methods. - public class SlicesResource + /// The "operations" collection of methods. + public class OperationsResource { - private const string Resource = "slices"; + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public SlicesResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; } - /// Imports a list of externally generated EvaluatedAnnotations. - /// The body of the request. - /// - /// Required. The name of the parent ModelEvaluationSlice resource. Format: - /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - /// - public virtual BatchImportRequest BatchImport(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest body, string parent) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new BatchImportRequest(this.service, body, parent); + return new CancelRequest(this.service, name); } - /// Imports a list of externally generated EvaluatedAnnotations. - public class BatchImportRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new BatchImport request. - public BatchImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest body, string parent) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the parent ModelEvaluationSlice resource. Format: - /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest Body { get; set; } + /// Gets the method name. + public override string MethodName => "cancel"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "batchImport"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}:batchImport"; + public override string RestPath => "v1/{+name}"; - /// Initializes BatchImport parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", }); } } - /// Gets a ModelEvaluationSlice. - /// - /// Required. The name of the ModelEvaluationSlice resource. Format: - /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a ModelEvaluationSlice. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -28037,10 +29396,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the ModelEvaluationSlice resource. Format: - /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -28063,40 +29419,39 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", }); } } - /// Lists ModelEvaluationSlices in a ModelEvaluation. - /// - /// Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices from. - /// Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists ModelEvaluationSlices in a ModelEvaluation. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices - /// from. Format: - /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list filter. * `slice.dimension` - for =. + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } @@ -28104,17 +29459,20 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// The standard list page token. Typically obtained via - /// ListModelEvaluationSlicesResponse.next_page_token of the previous - /// ModelService.ListModelEvaluationSlices call. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -28123,19 +29481,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/slices"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -28161,9 +29519,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -28171,75 +29529,101 @@ protected override void InitParameters() }); } } - } - - /// Gets a ModelEvaluation. - /// - /// Required. The name of the ModelEvaluation resource. Format: - /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - /// Gets a ModelEvaluation. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - Name = name; - InitParameters(); + return new WaitRequest(this.service, name); } /// - /// Required. The name of the ModelEvaluation resource. Format: - /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - /// Imports an externally generated ModelEvaluation. + /// Creates a new EntityType in a given Featurestore. /// The body of the request. /// - /// Required. The name of the parent model resource. Format: - /// `projects/{project}/locations/{location}/models/{model}` + /// Required. The resource name of the Featurestore to create EntityTypes. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// - public virtual ImportRequest Import(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportModelEvaluationRequest body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string parent) { - return new ImportRequest(this.service, body, parent); + return new CreateRequest(this.service, body, parent); } - /// Imports an externally generated ModelEvaluation. - public class ImportRequest : AiplatformBaseServiceRequest + /// Creates a new EntityType in a given Featurestore. + public class CreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new Import request. - public ImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportModelEvaluationRequest body, string parent) : base(service) + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string parent) : base(service) { Parent = parent; Body = body; @@ -28247,28 +29631,37 @@ public ImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The name of the parent model resource. Format: - /// `projects/{project}/locations/{location}/models/{model}` + /// Required. The resource name of the Featurestore to create EntityTypes. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("entityTypeId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string EntityTypeId { get; set; } + /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportModelEvaluationRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "import"; + public override string MethodName => "create"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluations:import"; + public override string RestPath => "v1/{+parent}/entityTypes"; - /// Initializes Import parameter list. + /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); @@ -28278,106 +29671,83 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + }); + RequestParameters.Add("entityTypeId", new Google.Apis.Discovery.Parameter + { + Name = "entityTypeId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// Lists ModelEvaluations in a Model. - /// - /// Required. The resource name of the Model to list the ModelEvaluations from. Format: - /// `projects/{project}/locations/{location}/models/{model}` + /// + /// Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to + /// true for the request to succeed. + /// + /// + /// Required. The name of the EntityType to be deleted. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` /// - public virtual ListRequest List(string parent) + public virtual DeleteRequest Delete(string name) { - return new ListRequest(this.service, parent); + return new DeleteRequest(this.service, name); } - /// Lists ModelEvaluations in a Model. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to + /// true for the request to succeed. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } /// - /// Required. The resource name of the Model to list the ModelEvaluations from. Format: - /// `projects/{project}/locations/{location}/models/{model}` + /// Required. The name of the EntityType to be deleted. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// - /// The standard list page token. Typically obtained via - /// ListModelEvaluationsResponse.next_page_token of the previous - /// ModelService.ListModelEvaluations call. + /// 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.) /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/evaluations"; + public override string RestPath => "v1/{+name}"; - /// Initializes List parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "force", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -28385,154 +29755,153 @@ protected override void InitParameters() }); } } - } - - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } /// - /// 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`. + /// 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. /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// The body of the request. + /// + /// 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}` + /// + public virtual DeleteFeatureValuesRequest DeleteFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeleteFeatureValuesRequest body, string entityType) { - return new CancelRequest(this.service, name); + return new DeleteFeatureValuesRequest(this.service, body, entityType); } /// - /// 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`. + /// 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. /// - public class CancelRequest : AiplatformBaseServiceRequest + public class DeleteFeatureValuesRequest : AiplatformBaseServiceRequest { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new DeleteFeatureValues request. + public DeleteFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeleteFeatureValuesRequest body, string entityType) : base(service) { - Name = name; + EntityType = entityType; + Body = body; InitParameters(); } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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}` + /// + [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] + public virtual string EntityType { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeleteFeatureValuesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "cancel"; + public override string MethodName => "deleteFeatureValues"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + public override string RestPath => "v1/{+entityType}:deleteFeatureValues"; - /// Initializes Cancel parameter list. + /// Initializes DeleteFeatureValues parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "entityType", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); } } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// Exports Feature values from all the entities of a target EntityType. + /// The body of the request. + /// + /// Required. The resource name of the EntityType from which to export Feature values. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// + public virtual ExportFeatureValuesRequest ExportFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportFeatureValuesRequest body, string entityType) { - return new DeleteRequest(this.service, name); + return new ExportFeatureValuesRequest(this.service, body, entityType); } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// Exports Feature values from all the entities of a target EntityType. + public class ExportFeatureValuesRequest : AiplatformBaseServiceRequest { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new ExportFeatureValues request. + public ExportFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportFeatureValuesRequest body, string entityType) : base(service) { - Name = name; + EntityType = entityType; + Body = body; InitParameters(); } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the EntityType from which to export Feature values. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// + [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] + public virtual string EntityType { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportFeatureValuesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "delete"; + public override string MethodName => "exportFeatureValues"; /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+entityType}:exportFeatureValues"; - /// Initializes Delete parameter list. + /// Initializes ExportFeatureValues parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "entityType", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); } } - /// - /// 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. - /// - /// The name of the operation resource. + /// Gets details of a single EntityType. + /// + /// Required. The name of the EntityType resource. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Gets details of a single EntityType. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -28541,7 +29910,10 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// The name of the operation resource. + /// + /// Required. The name of the EntityType resource. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -28564,81 +29936,267 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); } } /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists + /// and does not have a policy set. /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// + /// 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. + /// + public virtual GetIamPolicyRequest GetIamPolicy(string resource) { - return new ListRequest(this.service, name); + return new GetIamPolicyRequest(this.service, resource); } /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists + /// and does not have a policy set. /// - public class ListRequest : AiplatformBaseServiceRequest + public class GetIamPolicyRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new GetIamPolicy request. + public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) { - Name = name; + Resource = resource; InitParameters(); } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. + /// 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). /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "getIamPolicy"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+resource}:getIamPolicy"; - /// Initializes List parameter list. + /// Initializes GetIamPolicy parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "resource", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + { + Name = "options.requestedPolicyVersion", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The body of the request. + /// + /// 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}` + /// + public virtual ImportFeatureValuesRequest ImportFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportFeatureValuesRequest body, string entityType) + { + return new ImportFeatureValuesRequest(this.service, body, entityType); + } + + /// + /// 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. + /// + public class ImportFeatureValuesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ImportFeatureValues request. + public ImportFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportFeatureValuesRequest body, string entityType) : base(service) + { + EntityType = entityType; + Body = body; + InitParameters(); + } + + /// + /// 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}` + /// + [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] + public virtual string EntityType { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportFeatureValuesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "importFeatureValues"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+entityType}:importFeatureValues"; + + /// Initializes ImportFeatureValues parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter + { + Name = "entityType", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + } + } + + /// Lists EntityTypes in a given Featurestore. + /// + /// Required. The resource name of the Featurestore to list EntityTypes. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists EntityTypes in a given Featurestore. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Featurestore to list EntityTypes. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Lists the EntityTypes that match the filter expression. The following filters are supported: + /// * `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&gt;=`, and `&lt;=` + /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, + /// `&lt;`, `&gt;`, `&gt;=`, and `&lt;=` comparisons. Values must be in RFC 3339 + /// format. * `labels`: Supports key-value equality as well as key presence. Examples: * + /// `create_time &gt; \"2020-01-31T15:30:00.000000Z\" OR update_time &gt; + /// \"2020-01-31T15:30:00.000000Z\"` --&gt; EntityTypes created or updated after + /// 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --&gt; + /// EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: *` --&gt; + /// Any EntityType which has a label with 'env' as the key. + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/entityTypes"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -28648,6 +30206,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", @@ -28664,9 +30230,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter { - Name = "returnPartialSuccess", + Name = "readMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -28675,61 +30241,74 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Updates the parameters of a single EntityType. + /// The body of the request. + /// + /// 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. + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string name) { - return new WaitRequest(this.service, name); + return new PatchRequest(this.service, body, name); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Updates the parameters of a single EntityType. + public class PatchRequest : AiplatformBaseServiceRequest { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType body, string name) : base(service) { Name = name; + Body = body; InitParameters(); } - /// The name of the operation resource to wait on. + /// + /// 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. + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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. + /// 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` /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EntityType Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "wait"; + public override string MethodName => "patch"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "PATCH"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. + /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); @@ -28739,11 +30318,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { - Name = "timeout", + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -28751,722 +30330,866 @@ protected override void InitParameters() }); } } - } - - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location into which to copy the Model. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CopyRequest Copy(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CopyModelRequest body, string parent) - { - return new CopyRequest(this.service, body, parent); - } - /// - /// 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. - /// - public class CopyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Copy request. - public CopyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CopyModelRequest body, string parent) : base(service) + /// + /// Reads Feature values of a specific entity of an EntityType. For reading feature values of + /// multiple entities of an EntityType, please use StreamingReadFeatureValues. + /// + /// The body of the request. + /// + /// 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`. + /// + public virtual ReadFeatureValuesRequest ReadFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadFeatureValuesRequest body, string entityType) { - Parent = parent; - Body = body; - InitParameters(); + return new ReadFeatureValuesRequest(this.service, body, entityType); } /// - /// Required. The resource name of the Location into which to copy the Model. Format: - /// `projects/{project}/locations/{location}` + /// Reads Feature values of a specific entity of an EntityType. For reading feature values of + /// multiple entities of an EntityType, please use StreamingReadFeatureValues. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + public class ReadFeatureValuesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ReadFeatureValues request. + public ReadFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadFeatureValuesRequest body, string entityType) : base(service) + { + EntityType = entityType; + Body = body; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CopyModelRequest Body { get; set; } + /// + /// 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`. + /// + [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] + public virtual string EntityType { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadFeatureValuesRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "copy"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "readFeatureValues"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/models:copy"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Copy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+entityType}:readFeatureValues"; + + /// Initializes ReadFeatureValues parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter + { + Name = "entityType", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + } } - } - - /// - /// Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the - /// model in its deployed_models field. - /// - /// - /// Required. The name of the Model resource to be deleted. Format: - /// `projects/{project}/locations/{location}/models/{model}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// - /// Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the - /// model in its deployed_models field. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can + /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + /// The body of the request. + /// + /// 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. + /// + public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) { - Name = name; - InitParameters(); + return new SetIamPolicyRequest(this.service, body, resource); } /// - /// Required. The name of the Model resource to be deleted. Format: - /// `projects/{project}/locations/{location}/models/{model}` + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can + /// return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + public class SetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new SetIamPolicy request. + public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) + { + Resource = resource; + Body = body; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "setIamPolicy"; - /// - /// 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. - /// - /// - /// Required. The name of the model version to be deleted, with a version ID explicitly included. - /// Example: `projects/{project}/locations/{location}/models/{model}@1234` - /// - public virtual DeleteVersionRequest DeleteVersion(string name) - { - return new DeleteVersionRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - public class DeleteVersionRequest : AiplatformBaseServiceRequest - { - /// Constructs a new DeleteVersion request. - public DeleteVersionRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:setIamPolicy"; - /// - /// Required. The name of the model version to be deleted, with a version ID explicitly included. - /// Example: `projects/{project}/locations/{location}/models/{model}@1234` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "deleteVersion"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:deleteVersion"; - - /// Initializes DeleteVersion parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes SetIamPolicy parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + } } - } - - /// - /// 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. - /// - /// The body of the request. - /// - /// 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. - /// - public virtual ExportRequest Export(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportModelRequest body, string name) - { - return new ExportRequest(this.service, body, name); - } - /// - /// 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. - /// - public class ExportRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Export request. - public ExportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportModelRequest body, string name) : base(service) + /// + /// Reads Feature values for multiple entities. Depending on their size, data for different entities + /// may be broken up across multiple responses. + /// + /// The body of the request. + /// + /// 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`. + /// + public virtual StreamingReadFeatureValuesRequest StreamingReadFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest body, string entityType) { - Name = name; - Body = body; - InitParameters(); + return new StreamingReadFeatureValuesRequest(this.service, body, entityType); } /// - /// 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. + /// Reads Feature values for multiple entities. Depending on their size, data for different entities + /// may be broken up across multiple responses. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + public class StreamingReadFeatureValuesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new StreamingReadFeatureValues request. + public StreamingReadFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest body, string entityType) : base(service) + { + EntityType = entityType; + Body = body; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportModelRequest Body { get; set; } + /// + /// 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`. + /// + [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] + public virtual string EntityType { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "export"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "streamingReadFeatureValues"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:export"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Export parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+entityType}:streamingReadFeatureValues"; + + /// Initializes StreamingReadFeatureValues parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter + { + Name = "entityType", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + } } - } - - /// Gets a Model. - /// - /// 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. - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - /// Gets a Model. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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. + /// + /// + /// 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. + /// + public virtual TestIamPermissionsRequest TestIamPermissions(string resource) { - Name = name; - InitParameters(); + return new TestIamPermissionsRequest(this.service, resource); } /// - /// 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. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + public class TestIamPermissionsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new TestIamPermissions request. + public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + { + Resource = resource; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable Permissions { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "testIamPermissions"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - /// - /// 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. - /// - public virtual GetIamPolicyRequest GetIamPolicy(string resource) - { - return new GetIamPolicyRequest(this.service, resource); - } + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:testIamPermissions"; - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - public class GetIamPolicyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GetIamPolicy request. - public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) - { - Resource = resource; - InitParameters(); + /// Initializes TestIamPermissions parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter + { + Name = "permissions", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } /// - /// 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. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + /// The body of the request. + /// + /// 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`. + /// + public virtual WriteFeatureValuesRequest WriteFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteFeatureValuesRequest body, string entityType) + { + return new WriteFeatureValuesRequest(this.service, body, entityType); + } /// - /// 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). + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } + public class WriteFeatureValuesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new WriteFeatureValues request. + public WriteFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteFeatureValuesRequest body, string entityType) : base(service) + { + EntityType = entityType; + Body = body; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "getIamPolicy"; + /// + /// 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`. + /// + [Google.Apis.Util.RequestParameterAttribute("entityType", Google.Apis.Util.RequestParameterType.Path)] + public virtual string EntityType { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteFeatureValuesRequest Body { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:getIamPolicy"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Initializes GetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); - RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + /// Gets the method name. + public override string MethodName => "writeFeatureValues"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+entityType}:writeFeatureValues"; + + /// Initializes WriteFeatureValues parameter list. + protected override void InitParameters() { - Name = "options.requestedPolicyVersion", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("entityType", new Google.Apis.Discovery.Parameter + { + Name = "entityType", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + }); + } } } - /// Lists Models in a Location. - /// - /// Required. The resource name of the Location to list the Models from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Lists Models in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - Parent = parent; - InitParameters(); + this.service = service; } /// - /// Required. The resource name of the Location to list the Models from. Format: - /// `projects/{project}/locations/{location}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } /// - /// 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"`. * `base_model_name` only supports = Some examples: * `model=1234` * - /// `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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`. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the method name. + public override string MethodName => "cancel"; - /// - /// The standard list page token. Typically obtained via ListModelsResponse.next_page_token of the - /// previous ModelService.ListModels call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets the method name. - public override string MethodName => "list"; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/models"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Initializes List parameter list. - protected override void InitParameters() + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - /// Lists checkpoints of the specified model version. - /// - /// Required. The name of the model version to list checkpoints for. - /// `projects/{project}/locations/{location}/models/{model}@{version}` 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 latest version will be used. + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. The resource name of the Featurestore from which to query Feature values. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// - public virtual ListCheckpointsRequest ListCheckpoints(string name) + public virtual BatchReadFeatureValuesRequest BatchReadFeatureValues(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchReadFeatureValuesRequest body, string featurestore) { - return new ListCheckpointsRequest(this.service, name); + return new BatchReadFeatureValuesRequest(this.service, body, featurestore); } - /// Lists checkpoints of the specified model version. - public class ListCheckpointsRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class BatchReadFeatureValuesRequest : AiplatformBaseServiceRequest { - /// Constructs a new ListCheckpoints request. - public ListCheckpointsRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new BatchReadFeatureValues request. + public BatchReadFeatureValuesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchReadFeatureValuesRequest body, string featurestore) : base(service) { - Name = name; + Featurestore = featurestore; + Body = body; InitParameters(); } /// - /// Required. The name of the model version to list checkpoints for. - /// `projects/{project}/locations/{location}/models/{model}@{version}` 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 latest version will be used. + /// Required. The resource name of the Featurestore from which to query Feature values. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("featurestore", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Featurestore { get; private set; } - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchReadFeatureValuesRequest Body { get; set; } - /// - /// Optional. The standard list page token. Typically obtained via next_page_token of the previous - /// ListModelVersionCheckpoints call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "listCheckpoints"; + public override string MethodName => "batchReadFeatureValues"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:listCheckpoints"; + public override string RestPath => "v1/{+featurestore}:batchReadFeatureValues"; - /// Initializes ListCheckpoints parameter list. + /// Initializes BatchReadFeatureValues parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("featurestore", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "featurestore", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", }); } } - /// Lists versions of the specified model. - /// Required. The name of the model to list versions for. - public virtual ListVersionsRequest ListVersions(string name) + /// Creates a new Featurestore in a given project and location. + /// The body of the request. + /// + /// Required. The resource name of the Location to create Featurestores. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string parent) { - return new ListVersionsRequest(this.service, name); + return new CreateRequest(this.service, body, parent); } - /// Lists versions of the specified model. - public class ListVersionsRequest : AiplatformBaseServiceRequest + /// Creates a new Featurestore in a given project and location. + public class CreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new ListVersions request. - public ListVersionsRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string parent) : base(service) { - Name = name; + Parent = parent; + Body = body; InitParameters(); } - /// Required. The name of the model to list versions for. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - /// - /// 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"` + /// Required. The resource name of the Location to create Featurestores. Format: + /// `projects/{project}/locations/{location}` /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } /// - /// 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`. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + [Google.Apis.Util.RequestParameterAttribute("featurestoreId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string FeaturestoreId { get; set; } - /// - /// The standard list page token. Typically obtained via next_page_token of the previous - /// ListModelVersions call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore Body { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "listVersions"; + public override string MethodName => "create"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:listVersions"; + public override string RestPath => "v1/{+parent}/featurestores"; - /// Initializes ListVersions parameter list. + /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("featurestoreId", new Google.Apis.Discovery.Parameter { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", + Name = "featurestoreId", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -29475,51 +31198,109 @@ protected override void InitParameters() } } - /// Merges a set of aliases for a Model version. - /// The body of the request. + /// + /// Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be + /// set to true for the request to succeed. + /// /// - /// Required. The name of the model version to merge aliases, with a version ID explicitly included. - /// Example: `projects/{project}/locations/{location}/models/{model}@1234` + /// Required. The name of the Featurestore to be deleted. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// - public virtual MergeVersionAliasesRequest MergeVersionAliases(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MergeVersionAliasesRequest body, string name) + public virtual DeleteRequest Delete(string name) { - return new MergeVersionAliasesRequest(this.service, body, name); + return new DeleteRequest(this.service, name); } - /// Merges a set of aliases for a Model version. - public class MergeVersionAliasesRequest : AiplatformBaseServiceRequest + /// + /// Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be + /// set to true for the request to succeed. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new MergeVersionAliases request. - public MergeVersionAliasesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MergeVersionAliasesRequest body, string name) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } /// - /// Required. The name of the model version to merge aliases, with a version ID explicitly included. - /// Example: `projects/{project}/locations/{location}/models/{model}@1234` + /// Required. The name of the Featurestore to be deleted. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MergeVersionAliasesRequest Body { get; set; } + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets details of a single Featurestore. + /// Required. The name of the Featurestore resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets details of a single Featurestore. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// Required. The name of the Featurestore resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "mergeVersionAliases"; + public override string MethodName => "get"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:mergeVersionAliases"; + public override string RestPath => "v1/{+name}"; - /// Initializes MergeVersionAliases parameter list. + /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); @@ -29529,43 +31310,267 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", }); } } - /// Updates a Model. + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + /// + /// 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. + /// + public virtual GetIamPolicyRequest GetIamPolicy(string resource) + { + return new GetIamPolicyRequest(this.service, resource); + } + + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + public class GetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GetIamPolicy request. + public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + { + Resource = resource; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } + + /// Gets the method name. + public override string MethodName => "getIamPolicy"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:getIamPolicy"; + + /// Initializes GetIamPolicy parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + }); + RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + { + Name = "options.requestedPolicyVersion", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Lists Featurestores in a given project and location. + /// + /// Required. The resource name of the Location to list Featurestores. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Featurestores in a given project and location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list Featurestores. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Lists the featurestores that match the filter expression. The following fields are supported: * + /// `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` + /// comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `&lt;`, + /// `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 format. * + /// `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `&lt;`, `&gt;`, + /// `&lt;=`, and `&gt;=` comparisons. * `labels`: Supports key-value equality and key + /// presence. Examples: * `create_time &gt; "2020-01-01" OR update_time &gt; "2020-01-01"` + /// Featurestores created or updated after 2020-01-01. * `labels.env = "prod"` Featurestores with + /// label "env" set to "prod". + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/featurestores"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates the parameters of a single Featurestore. /// The body of the request. - /// The resource name of the Model. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Model body, string name) + /// + /// Output only. Name of the Featurestore. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string name) { return new PatchRequest(this.service, body, name); } - /// Updates a Model. - public class PatchRequest : AiplatformBaseServiceRequest + /// Updates the parameters of a single Featurestore. + public class PatchRequest : AiplatformBaseServiceRequest { /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Model body, string name) : base(service) + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore body, string name) : base(service) { Name = name; Body = body; InitParameters(); } - /// The resource name of the Model. + /// + /// Output only. Name of the Featurestore. Format: + /// `projects/{project}/locations/{location}/featurestores/{featurestore}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// Required. The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. + /// 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` /// [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Model Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Featurestore Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -29589,7 +31594,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { @@ -29602,6 +31607,130 @@ protected override void InitParameters() } } + /// Searches Features matching a query in a given project. + /// + /// Required. The resource name of the Location to search Features. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual SearchFeaturesRequest SearchFeatures(string location) + { + return new SearchFeaturesRequest(this.service, location); + } + + /// Searches Features matching a query in a given project. + public class SearchFeaturesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new SearchFeatures request. + public SearchFeaturesRequest(Google.Apis.Services.IClientService service, string location) : base(service) + { + Location = location; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to search Features. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Location { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// 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` --&gt; Matches a Feature with ID containing the substring `foo` (eg. + /// `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --&gt; Matches a Feature with ID + /// containing the substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND + /// description: bar` --&gt; 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"` --&gt; Any Feature with description + /// exactly equal to `foo bar` * `value_type = DOUBLE` --&gt; Features whose type is DOUBLE. * + /// `labels.active = yes AND labels.env = prod` --&gt; Features having both (active: yes) and + /// (env: prod) labels. * `labels.env: *` --&gt; Any Feature which has a label with `env` as the + /// key. + /// + [Google.Apis.Util.RequestParameterAttribute("query", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Query { get; set; } + + /// Gets the method name. + public override string MethodName => "searchFeatures"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+location}/featurestores:searchFeatures"; + + /// Initializes SearchFeatures parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + { + Name = "location", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("query", new Google.Apis.Discovery.Parameter + { + Name = "query", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + /// /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. @@ -29664,7 +31793,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", }); } } @@ -29735,7 +31864,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", }); RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter { @@ -29747,173 +31876,172 @@ protected override void InitParameters() }); } } + } - /// Incrementally update the dataset used for an examples model. - /// The body of the request. - /// - /// Required. The resource name of the Model to update. Format: - /// `projects/{project}/locations/{location}/models/{model}` - /// - public virtual UpdateExplanationDatasetRequest UpdateExplanationDataset(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest body, string model) + /// Gets the HyperparameterTuningJobs resource. + public virtual HyperparameterTuningJobsResource HyperparameterTuningJobs { get; } + + /// The "hyperparameterTuningJobs" collection of methods. + public class HyperparameterTuningJobsResource + { + private const string Resource = "hyperparameterTuningJobs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public HyperparameterTuningJobsResource(Google.Apis.Services.IClientService service) { - return new UpdateExplanationDatasetRequest(this.service, body, model); + this.service = service; + Operations = new OperationsResource(service); } - /// Incrementally update the dataset used for an examples model. - public class UpdateExplanationDatasetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new UpdateExplanationDataset request. - public UpdateExplanationDatasetRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest body, string model) : base(service) - { - Model = model; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Model to update. Format: - /// `projects/{project}/locations/{location}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "updateExplanationDataset"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+model}:updateExplanationDataset"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes UpdateExplanationDataset parameter list. - protected override void InitParameters() + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter - { - Name = "model", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", - }); + this.service = service; } - } - - /// Uploads a Model artifact into Vertex AI. - /// The body of the request. - /// - /// Required. The resource name of the Location into which to upload the Model. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual UploadRequest Upload(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadModelRequest body, string parent) - { - return new UploadRequest(this.service, body, parent); - } - /// Uploads a Model artifact into Vertex AI. - public class UploadRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Upload request. - public UploadRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadModelRequest body, string parent) : base(service) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - Parent = parent; - Body = body; - InitParameters(); + return new CancelRequest(this.service, name); } /// - /// Required. The resource name of the Location into which to upload the Model. Format: - /// `projects/{project}/locations/{location}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadModelRequest Body { get; set; } + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "upload"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/models:upload"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Upload parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Initializes Cancel parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + }); + } } - } - } - - /// Gets the NasJobs resource. - public virtual NasJobsResource NasJobs { get; } - /// The "nasJobs" collection of methods. - public class NasJobsResource - { - private const string Resource = "nasJobs"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Constructs a new resource. - public NasJobsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - NasTrialDetails = new NasTrialDetailsResource(service); - } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the NasTrialDetails resource. - public virtual NasTrialDetailsResource NasTrialDetails { get; } + /// Gets the method name. + public override string MethodName => "delete"; - /// The "nasTrialDetails" collection of methods. - public class NasTrialDetailsResource - { - private const string Resource = "nasTrialDetails"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Constructs a new resource. - public NasTrialDetailsResource(Google.Apis.Services.IClientService service) - { - this.service = service; + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + }); + } } - /// Gets a NasTrialDetail. - /// - /// Required. The name of the NasTrialDetail resource. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a NasTrialDetail. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -29922,10 +32050,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the NasTrialDetail resource. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -29948,50 +32073,61 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+/nasTrialDetails/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", }); } } - /// List top NasTrialDetails of a NasJob. - /// - /// Required. The name of the NasJob resource. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// List top NasTrialDetails of a NasJob. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The name of the NasJob resource. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// The standard list page token. Typically obtained via - /// ListNasTrialDetailsResponse.next_page_token of the previous JobService.ListNasTrialDetails - /// call. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -29999,19 +32135,27 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/nasTrialDetails"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { @@ -30029,40 +32173,127 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } /// - /// 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`. + /// 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`. /// /// The body of the request. /// - /// Required. The name of the NasJob to cancel. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// Required. The name of the HyperparameterTuningJob to cancel. Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelNasJobRequest body, string name) + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest body, string name) { return new CancelRequest(this.service, body, name); } /// - /// 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`. + /// 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`. /// public class CancelRequest : AiplatformBaseServiceRequest { /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelNasJobRequest body, string name) : base(service) + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest body, string name) : base(service) { Name = name; Body = body; @@ -30070,14 +32301,14 @@ public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The name of the NasJob to cancel. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// Required. The name of the HyperparameterTuningJob to cancel. Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelNasJobRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -30101,27 +32332,27 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", }); } } - /// Creates a NasJob + /// Creates a HyperparameterTuningJob /// The body of the request. /// - /// Required. The resource name of the Location to create the NasJob in. Format: + /// Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: /// `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NasJob body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1HyperparameterTuningJob body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a NasJob - public class CreateRequest : AiplatformBaseServiceRequest + /// Creates a HyperparameterTuningJob + public class CreateRequest : AiplatformBaseServiceRequest { /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NasJob body, string parent) : base(service) + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1HyperparameterTuningJob body, string parent) : base(service) { Parent = parent; Body = body; @@ -30129,14 +32360,14 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the Location to create the NasJob in. Format: + /// Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NasJob Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1HyperparameterTuningJob Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -30148,7 +32379,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/nasJobs"; + public override string RestPath => "v1/{+parent}/hyperparameterTuningJobs"; /// Initializes Create parameter list. protected override void InitParameters() @@ -30165,17 +32396,17 @@ protected override void InitParameters() } } - /// Deletes a NasJob. + /// Deletes a HyperparameterTuningJob. /// - /// Required. The name of the NasJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// Required. The name of the HyperparameterTuningJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a NasJob. + /// Deletes a HyperparameterTuningJob. public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -30186,8 +32417,8 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The name of the NasJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// Required. The name of the HyperparameterTuningJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -30211,23 +32442,23 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", }); } } - /// Gets a NasJob + /// Gets a HyperparameterTuningJob /// - /// Required. The name of the NasJob resource. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// Required. The name of the HyperparameterTuningJob resource. Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a NasJob - public class GetRequest : AiplatformBaseServiceRequest + /// Gets a HyperparameterTuningJob + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -30237,8 +32468,8 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba } /// - /// Required. The name of the NasJob resource. Format: - /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// Required. The name of the HyperparameterTuningJob resource. Format: + /// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -30262,14 +32493,14 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", }); } } - /// Lists NasJobs in a Location. + /// Lists HyperparameterTuningJobs in a Location. /// - /// Required. The resource name of the Location to list the NasJobs from. Format: + /// Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: /// `projects/{project}/locations/{location}` /// public virtual ListRequest List(string parent) @@ -30277,8 +32508,8 @@ public virtual ListRequest List(string parent) return new ListRequest(this.service, parent); } - /// Lists NasJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists HyperparameterTuningJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -30288,7 +32519,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Location to list the NasJobs from. Format: + /// Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] @@ -30312,8 +32543,9 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public virtual System.Nullable PageSize { get; set; } /// - /// The standard list page token. Typically obtained via ListNasJobsResponse.next_page_token of the - /// previous JobService.ListNasJobs call. + /// The standard list page token. Typically obtained via + /// ListHyperparameterTuningJobsResponse.next_page_token of the previous + /// JobService.ListHyperparameterTuningJobs call. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } @@ -30329,7 +32561,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/nasJobs"; + public override string RestPath => "v1/{+parent}/hyperparameterTuningJobs"; /// Initializes List parameter list. protected override void InitParameters() @@ -30379,19 +32611,19 @@ protected override void InitParameters() } } - /// Gets the NotebookExecutionJobs resource. - public virtual NotebookExecutionJobsResource NotebookExecutionJobs { get; } + /// Gets the IndexEndpoints resource. + public virtual IndexEndpointsResource IndexEndpoints { get; } - /// The "notebookExecutionJobs" collection of methods. - public class NotebookExecutionJobsResource + /// The "indexEndpoints" collection of methods. + public class IndexEndpointsResource { - private const string Resource = "notebookExecutionJobs"; + private const string Resource = "indexEndpoints"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public NotebookExecutionJobsResource(Google.Apis.Services.IClientService service) + public IndexEndpointsResource(Google.Apis.Services.IClientService service) { this.service = service; Operations = new OperationsResource(service); @@ -30470,7 +32702,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", }); } } @@ -30523,7 +32755,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", }); } } @@ -30574,7 +32806,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", }); } } @@ -30648,7 +32880,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -30749,7 +32981,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -30763,22 +32995,22 @@ protected override void InitParameters() } } - /// Creates a NotebookExecutionJob. + /// Creates an IndexEndpoint. /// The body of the request. /// - /// Required. The resource name of the Location to create the NotebookExecutionJob. Format: + /// Required. The resource name of the Location to create the IndexEndpoint in. Format: /// `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookExecutionJob body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a NotebookExecutionJob. + /// Creates an IndexEndpoint. public class CreateRequest : AiplatformBaseServiceRequest { /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookExecutionJob body, string parent) : base(service) + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string parent) : base(service) { Parent = parent; Body = body; @@ -30786,18 +33018,14 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the Location to create the NotebookExecutionJob. Format: + /// Required. The resource name of the Location to create the IndexEndpoint in. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// Optional. User specified ID for the NotebookExecutionJob. - [Google.Apis.Util.RequestParameterAttribute("notebookExecutionJobId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string NotebookExecutionJobId { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookExecutionJob Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -30809,7 +33037,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/notebookExecutionJobs"; + public override string RestPath => "v1/{+parent}/indexEndpoints"; /// Initializes Create parameter list. protected override void InitParameters() @@ -30823,25 +33051,20 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); - RequestParameters.Add("notebookExecutionJobId", new Google.Apis.Discovery.Parameter - { - Name = "notebookExecutionJobId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); } } - /// Deletes a NotebookExecutionJob. - /// Required. The name of the NotebookExecutionJob resource to be deleted. + /// Deletes an IndexEndpoint. + /// + /// Required. The name of the IndexEndpoint resource to be deleted. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a NotebookExecutionJob. + /// Deletes an IndexEndpoint. public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -30851,7 +33074,10 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// Required. The name of the NotebookExecutionJob resource to be deleted. + /// + /// Required. The name of the IndexEndpoint resource to be deleted. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -30874,20 +33100,141 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", }); } } - /// Gets a NotebookExecutionJob. - /// Required. The name of the NotebookExecutionJob resource. + /// Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + /// The body of the request. + /// + /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + public virtual DeployIndexRequest DeployIndex(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployIndexRequest body, string indexEndpoint) + { + return new DeployIndexRequest(this.service, body, indexEndpoint); + } + + /// Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. + public class DeployIndexRequest : AiplatformBaseServiceRequest + { + /// Constructs a new DeployIndex request. + public DeployIndexRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployIndexRequest body, string indexEndpoint) : base(service) + { + IndexEndpoint = indexEndpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string IndexEndpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployIndexRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "deployIndex"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+indexEndpoint}:deployIndex"; + + /// Initializes DeployIndex parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + { + Name = "indexEndpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + }); + } + } + + /// Finds the nearest neighbors of each vector within the request. + /// The body of the request. + /// + /// Required. The name of the index endpoint. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + public virtual FindNeighborsRequest FindNeighbors(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FindNeighborsRequest body, string indexEndpoint) + { + return new FindNeighborsRequest(this.service, body, indexEndpoint); + } + + /// Finds the nearest neighbors of each vector within the request. + public class FindNeighborsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new FindNeighbors request. + public FindNeighborsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FindNeighborsRequest body, string indexEndpoint) : base(service) + { + IndexEndpoint = indexEndpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the index endpoint. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string IndexEndpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FindNeighborsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "findNeighbors"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+indexEndpoint}:findNeighbors"; + + /// Initializes FindNeighbors parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + { + Name = "indexEndpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + }); + } + } + + /// Gets an IndexEndpoint. + /// + /// Required. The name of the IndexEndpoint resource. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a NotebookExecutionJob. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets an IndexEndpoint. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -30896,30 +33243,13 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// Required. The name of the NotebookExecutionJob resource. + /// + /// Required. The name of the IndexEndpoint resource. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Optional. The NotebookExecutionJob view. Defaults to BASIC. - [Google.Apis.Util.RequestParameterAttribute("view", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable View { get; set; } - - /// Optional. The NotebookExecutionJob view. Defaults to BASIC. - public enum ViewEnum - { - /// When unspecified, the API defaults to the BASIC view. - [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED")] - NOTEBOOKEXECUTIONJOBVIEWUNSPECIFIED = 0, - - /// Includes all fields except for direct notebook inputs. - [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_BASIC")] - NOTEBOOKEXECUTIONJOBVIEWBASIC = 1, - - /// Includes all fields. - [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_FULL")] - NOTEBOOKEXECUTIONJOBVIEWFULL = 2, - } - /// Gets the method name. public override string MethodName => "get"; @@ -30939,22 +33269,14 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", - }); - RequestParameters.Add("view", new Google.Apis.Discovery.Parameter - { - Name = "view", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", }); } } - /// Lists NotebookExecutionJobs in a Location. + /// Lists IndexEndpoints in a Location. /// - /// Required. The resource name of the Location from which to list the NotebookExecutionJobs. Format: + /// Required. The resource name of the Location from which to list the IndexEndpoints. Format: /// `projects/{project}/locations/{location}` /// public virtual ListRequest List(string parent) @@ -30962,8 +33284,8 @@ public virtual ListRequest List(string parent) return new ListRequest(this.service, parent); } - /// Lists NotebookExecutionJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists IndexEndpoints in a Location. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -30973,62 +33295,41 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Location from which to list the NotebookExecutionJobs. - /// Format: `projects/{project}/locations/{location}` + /// Required. The resource name of the Location from which to list the IndexEndpoints. Format: + /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// /// Optional. An expression for filtering the results of the request. For field names both - /// snake_case and camelCase are supported. * `notebookExecutionJob` supports = and !=. - /// `notebookExecutionJob` represents the NotebookExecutionJob ID. * `displayName` supports = and != - /// and regex. * `schedule` supports = and != and regex. Some examples: * - /// `notebookExecutionJob="123"` * `notebookExecutionJob="my-execution-job"` * - /// `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"` + /// 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") -&gt; The display name starts with an A. * + /// `labels.myKey="myValue"` /// [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// - /// 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`. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - /// Optional. The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// /// Optional. The standard list page token. Typically obtained via - /// ListNotebookExecutionJobsResponse.next_page_token of the previous - /// NotebookService.ListNotebookExecutionJobs call. + /// ListIndexEndpointsResponse.next_page_token of the previous + /// IndexEndpointService.ListIndexEndpoints call. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Optional. The NotebookExecutionJob view. Defaults to BASIC. - [Google.Apis.Util.RequestParameterAttribute("view", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable View { get; set; } - - /// Optional. The NotebookExecutionJob view. Defaults to BASIC. - public enum ViewEnum - { - /// When unspecified, the API defaults to the BASIC view. - [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED")] - NOTEBOOKEXECUTIONJOBVIEWUNSPECIFIED = 0, - - /// Includes all fields except for direct notebook inputs. - [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_BASIC")] - NOTEBOOKEXECUTIONJOBVIEWBASIC = 1, - - /// Includes all fields. - [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_FULL")] - NOTEBOOKEXECUTIONJOBVIEWFULL = 2, - } + /// Optional. Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -31037,7 +33338,7 @@ public enum ViewEnum public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/notebookExecutionJobs"; + public override string RestPath => "v1/{+parent}/indexEndpoints"; /// Initializes List parameter list. protected override void InitParameters() @@ -31059,33 +33360,151 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Name = "orderBy", + Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - Name = "pageSize", + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "readMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("view", new Google.Apis.Discovery.Parameter + } + } + + /// Update an existing DeployedIndex under an IndexEndpoint. + /// The body of the request. + /// + /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + public virtual MutateDeployedIndexRequest MutateDeployedIndex(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployedIndex body, string indexEndpoint) + { + return new MutateDeployedIndexRequest(this.service, body, indexEndpoint); + } + + /// Update an existing DeployedIndex under an IndexEndpoint. + public class MutateDeployedIndexRequest : AiplatformBaseServiceRequest + { + /// Constructs a new MutateDeployedIndex request. + public MutateDeployedIndexRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployedIndex body, string indexEndpoint) : base(service) + { + IndexEndpoint = indexEndpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string IndexEndpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployedIndex Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "mutateDeployedIndex"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+indexEndpoint}:mutateDeployedIndex"; + + /// Initializes MutateDeployedIndex parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter { - Name = "view", + Name = "indexEndpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + }); + } + } + + /// Updates an IndexEndpoint. + /// The body of the request. + /// Output only. The resource name of the IndexEndpoint. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates an IndexEndpoint. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// Output only. The resource name of the IndexEndpoint. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. The update mask applies to the resource. See google.protobuf.FieldMask. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1IndexEndpoint Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -31093,21 +33512,151 @@ protected override void InitParameters() }); } } + + /// + /// Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a + /// batch. + /// + /// The body of the request. + /// + /// Required. The name of the index endpoint. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + public virtual ReadIndexDatapointsRequest ReadIndexDatapoints(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadIndexDatapointsRequest body, string indexEndpoint) + { + return new ReadIndexDatapointsRequest(this.service, body, indexEndpoint); + } + + /// + /// Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a + /// batch. + /// + public class ReadIndexDatapointsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ReadIndexDatapoints request. + public ReadIndexDatapointsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadIndexDatapointsRequest body, string indexEndpoint) : base(service) + { + IndexEndpoint = indexEndpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the index endpoint. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string IndexEndpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReadIndexDatapointsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "readIndexDatapoints"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+indexEndpoint}:readIndexDatapoints"; + + /// Initializes ReadIndexDatapoints parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + { + Name = "indexEndpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + }); + } + } + + /// + /// Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + /// resources it's using. + /// + /// The body of the request. + /// + /// Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + public virtual UndeployIndexRequest UndeployIndex(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployIndexRequest body, string indexEndpoint) + { + return new UndeployIndexRequest(this.service, body, indexEndpoint); + } + + /// + /// Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all + /// resources it's using. + /// + public class UndeployIndexRequest : AiplatformBaseServiceRequest + { + /// Constructs a new UndeployIndex request. + public UndeployIndexRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployIndexRequest body, string indexEndpoint) : base(service) + { + IndexEndpoint = indexEndpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: + /// `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("indexEndpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string IndexEndpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UndeployIndexRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "undeployIndex"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+indexEndpoint}:undeployIndex"; + + /// Initializes UndeployIndex parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("indexEndpoint", new Google.Apis.Discovery.Parameter + { + Name = "indexEndpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + }); + } + } } - /// Gets the NotebookRuntimeTemplates resource. - public virtual NotebookRuntimeTemplatesResource NotebookRuntimeTemplates { get; } + /// Gets the Indexes resource. + public virtual IndexesResource Indexes { get; } - /// The "notebookRuntimeTemplates" collection of methods. - public class NotebookRuntimeTemplatesResource + /// The "indexes" collection of methods. + public class IndexesResource { - private const string Resource = "notebookRuntimeTemplates"; + private const string Resource = "indexes"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public NotebookRuntimeTemplatesResource(Google.Apis.Services.IClientService service) + public IndexesResource(Google.Apis.Services.IClientService service) { this.service = service; Operations = new OperationsResource(service); @@ -31186,7 +33735,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", }); } } @@ -31239,7 +33788,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", }); } } @@ -31290,7 +33839,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", }); } } @@ -31364,7 +33913,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -31465,7 +34014,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -31479,22 +34028,22 @@ protected override void InitParameters() } } - /// Creates a NotebookRuntimeTemplate. + /// Creates an Index. /// The body of the request. /// - /// Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: + /// Required. The resource name of the Location to create the Index in. Format: /// `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a NotebookRuntimeTemplate. + /// Creates an Index. public class CreateRequest : AiplatformBaseServiceRequest { /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string parent) : base(service) + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string parent) : base(service) { Parent = parent; Body = body; @@ -31502,18 +34051,14 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: + /// Required. The resource name of the Location to create the Index in. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// Optional. User specified ID for the notebook runtime template. - [Google.Apis.Util.RequestParameterAttribute("notebookRuntimeTemplateId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string NotebookRuntimeTemplateId { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -31525,7 +34070,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/notebookRuntimeTemplates"; + public override string RestPath => "v1/{+parent}/indexes"; /// Initializes Create parameter list. protected override void InitParameters() @@ -31539,28 +34084,24 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); - RequestParameters.Add("notebookRuntimeTemplateId", new Google.Apis.Discovery.Parameter - { - Name = "notebookRuntimeTemplateId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); } } - /// Deletes a NotebookRuntimeTemplate. + /// + /// Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. + /// /// - /// Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: - /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// Required. The name of the Index resource to be deleted. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a NotebookRuntimeTemplate. + /// + /// Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed. + /// public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -31571,8 +34112,8 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: - /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// Required. The name of the Index resource to be deleted. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -31596,23 +34137,23 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", }); } } - /// Gets a NotebookRuntimeTemplate. + /// Gets an Index. /// - /// Required. The name of the NotebookRuntimeTemplate resource. Format: - /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// Required. The name of the Index resource. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a NotebookRuntimeTemplate. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets an Index. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -31622,8 +34163,8 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba } /// - /// Required. The name of the NotebookRuntimeTemplate resource. Format: - /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// Required. The name of the Index resource. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -31647,94 +34188,14 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", - }); - } - } - - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - /// - /// 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. - /// - public virtual GetIamPolicyRequest GetIamPolicy(string resource) - { - return new GetIamPolicyRequest(this.service, resource); - } - - /// - /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and - /// does not have a policy set. - /// - public class GetIamPolicyRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GetIamPolicy request. - public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) - { - Resource = resource; - InitParameters(); - } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } - - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } - - /// Gets the method name. - public override string MethodName => "getIamPolicy"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+resource}:getIamPolicy"; - - /// Initializes GetIamPolicy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter - { - Name = "resource", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", - }); - RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter - { - Name = "options.requestedPolicyVersion", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", }); } } - /// Lists NotebookRuntimeTemplates in a Location. + /// Lists Indexes in a Location. /// - /// Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. Format: + /// Required. The resource name of the Location from which to list the Indexes. Format: /// `projects/{project}/locations/{location}` /// public virtual ListRequest List(string parent) @@ -31742,8 +34203,8 @@ public virtual ListRequest List(string parent) return new ListRequest(this.service, parent); } - /// Lists NotebookRuntimeTemplates in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists Indexes in a Location. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -31753,49 +34214,28 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. - /// Format: `projects/{project}/locations/{location}` + /// Required. The resource name of the Location from which to list the Indexes. Format: + /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// - /// 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]. * `machineType` supports = and !=. * `acceleratorType` supports = and !=. Some - /// examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName="myDisplayName"` - /// * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * - /// `acceleratorType=NVIDIA_TESLA_T4` - /// + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// - /// 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`. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } - - /// Optional. The standard list page size. + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// - /// Optional. The standard list page token. Typically obtained via - /// ListNotebookRuntimeTemplatesResponse.next_page_token of the previous - /// NotebookService.ListNotebookRuntimeTemplates call. + /// The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the + /// previous IndexService.ListIndexes call. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Optional. Mask specifying which fields to read. + /// Mask specifying which fields to read. [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object ReadMask { get; set; } @@ -31806,7 +34246,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/notebookRuntimeTemplates"; + public override string RestPath => "v1/{+parent}/indexes"; /// Initializes List parameter list. protected override void InitParameters() @@ -31828,14 +34268,6 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", @@ -31863,39 +34295,38 @@ protected override void InitParameters() } } - /// Updates a NotebookRuntimeTemplate. + /// Updates an Index. /// The body of the request. - /// The resource name of the NotebookRuntimeTemplate. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string name) + /// Output only. The resource name of the Index. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string name) { return new PatchRequest(this.service, body, name); } - /// Updates a NotebookRuntimeTemplate. - public class PatchRequest : AiplatformBaseServiceRequest + /// Updates an Index. + public class PatchRequest : AiplatformBaseServiceRequest { /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string name) : base(service) + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index body, string name) : base(service) { Name = name; Body = body; InitParameters(); } - /// The resource name of the NotebookRuntimeTemplate. + /// Output only. The resource name of the Index. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// Required. The update mask applies to the resource. For the `FieldMask` definition, see - /// google.protobuf.FieldMask. Input format: `{paths: "${updated_filed}"}` Updatable fields: * - /// `encryption_spec.kms_key_name` + /// The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. /// [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Index Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -31919,7 +34350,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { @@ -31932,451 +34363,601 @@ protected override void InitParameters() } } - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// + /// Remove Datapoints from an Index. /// The body of the request. - /// - /// 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. + /// + /// Required. The name of the Index resource to be updated. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// - public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) + public virtual RemoveDatapointsRequest RemoveDatapoints(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveDatapointsRequest body, string index) { - return new SetIamPolicyRequest(this.service, body, resource); + return new RemoveDatapointsRequest(this.service, body, index); } - /// - /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return - /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. - /// - public class SetIamPolicyRequest : AiplatformBaseServiceRequest + /// Remove Datapoints from an Index. + public class RemoveDatapointsRequest : AiplatformBaseServiceRequest { - /// Constructs a new SetIamPolicy request. - public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) + /// Constructs a new RemoveDatapoints request. + public RemoveDatapointsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveDatapointsRequest body, string index) : base(service) { - Resource = resource; + Index = index; Body = body; InitParameters(); } /// - /// 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. + /// Required. The name of the Index resource to be updated. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("index", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Index { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveDatapointsRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "setIamPolicy"; + public override string MethodName => "removeDatapoints"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+resource}:setIamPolicy"; + public override string RestPath => "v1/{+index}:removeDatapoints"; - /// Initializes SetIamPolicy parameter list. + /// Initializes RemoveDatapoints parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + RequestParameters.Add("index", new Google.Apis.Discovery.Parameter { - Name = "resource", + Name = "index", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", }); } } - /// - /// 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. - /// - /// - /// 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. + /// Add/update Datapoints into an Index. + /// The body of the request. + /// + /// Required. The name of the Index resource to be updated. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// - public virtual TestIamPermissionsRequest TestIamPermissions(string resource) + public virtual UpsertDatapointsRequest UpsertDatapoints(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpsertDatapointsRequest body, string index) { - return new TestIamPermissionsRequest(this.service, resource); + return new UpsertDatapointsRequest(this.service, body, index); } - /// - /// 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. - /// - public class TestIamPermissionsRequest : AiplatformBaseServiceRequest + /// Add/update Datapoints into an Index. + public class UpsertDatapointsRequest : AiplatformBaseServiceRequest { - /// Constructs a new TestIamPermissions request. - public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + /// Constructs a new UpsertDatapoints request. + public UpsertDatapointsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpsertDatapointsRequest body, string index) : base(service) { - Resource = resource; + Index = index; + Body = body; InitParameters(); } /// - /// 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. + /// Required. The name of the Index resource to be updated. Format: + /// `projects/{project}/locations/{location}/indexes/{index}` /// - [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Resource { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("index", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Index { get; private set; } - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable Permissions { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpsertDatapointsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "testIamPermissions"; + public override string MethodName => "upsertDatapoints"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+resource}:testIamPermissions"; + public override string RestPath => "v1/{+index}:upsertDatapoints"; - /// Initializes TestIamPermissions parameter list. + /// Initializes UpsertDatapoints parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + RequestParameters.Add("index", new Google.Apis.Discovery.Parameter { - Name = "resource", + Name = "index", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", - }); - RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter - { - Name = "permissions", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", }); } } } - /// Gets the NotebookRuntimes resource. - public virtual NotebookRuntimesResource NotebookRuntimes { get; } + /// Gets the MetadataStores resource. + public virtual MetadataStoresResource MetadataStores { get; } - /// The "notebookRuntimes" collection of methods. - public class NotebookRuntimesResource + /// The "metadataStores" collection of methods. + public class MetadataStoresResource { - private const string Resource = "notebookRuntimes"; + private const string Resource = "metadataStores"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public NotebookRuntimesResource(Google.Apis.Services.IClientService service) + public MetadataStoresResource(Google.Apis.Services.IClientService service) { this.service = service; + Artifacts = new ArtifactsResource(service); + Contexts = new ContextsResource(service); + Executions = new ExecutionsResource(service); + MetadataSchemas = new MetadataSchemasResource(service); Operations = new OperationsResource(service); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the Artifacts resource. + public virtual ArtifactsResource Artifacts { get; } - /// The "operations" collection of methods. - public class OperationsResource + /// The "artifacts" collection of methods. + public class ArtifactsResource { - private const string Resource = "operations"; + private const string Resource = "artifacts"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + public ArtifactsResource(Google.Apis.Services.IClientService service) { this.service = service; + Operations = new OperationsResource(service); } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - Name = name; - InitParameters(); + this.service = service; } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); + } } - } - - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - Name = name; - InitParameters(); + return new DeleteRequest(this.service, name); } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); + } } - } - - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Name = name; - InitParameters(); + return new GetRequest(this.service, name); } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); + } } - } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } - - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - Name = name; - InitParameters(); + return new ListRequest(this.service, name); } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "list"; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates an Artifact associated with a MetadataStore. + /// The body of the request. + /// + /// Required. The resource name of the MetadataStore where the Artifact should be created. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates an Artifact associated with a MetadataStore. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the MetadataStore where the Artifact should be created. + /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("artifactId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string ArtifactId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/artifacts"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", + Name = "parent", + IsRequired = true, + ParameterType = "path", DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + RequestParameters.Add("artifactId", new Google.Apis.Discovery.Parameter { - Name = "returnPartialSuccess", + Name = "artifactId", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -32385,61 +34966,50 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Deletes an Artifact. + /// + /// Required. The resource name of the Artifact to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + /// + public virtual DeleteRequest Delete(string name) { - return new WaitRequest(this.service, name); + return new DeleteRequest(this.service, name); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Deletes an Artifact. + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } - /// The name of the operation resource to wait on. + /// + /// Required. The resource name of the Artifact to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + [Google.Apis.Util.RequestParameterAttribute("etag", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Etag { get; set; } /// Gets the method name. - public override string MethodName => "wait"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); @@ -32449,11 +35019,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + RequestParameters.Add("etag", new Google.Apis.Discovery.Parameter { - Name = "timeout", + Name = "etag", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -32461,1126 +35031,1077 @@ protected override void InitParameters() }); } } - } - /// - /// Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns - /// an existing assignment or generates a new one. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location to get the NotebookRuntime assignment. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual AssignRequest Assign(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AssignNotebookRuntimeRequest body, string parent) - { - return new AssignRequest(this.service, body, parent); - } - - /// - /// Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns - /// an existing assignment or generates a new one. - /// - public class AssignRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Assign request. - public AssignRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AssignNotebookRuntimeRequest body, string parent) : base(service) + /// Retrieves a specific Artifact. + /// + /// Required. The resource name of the Artifact to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + /// + public virtual GetRequest Get(string name) { - Parent = parent; - Body = body; - InitParameters(); + return new GetRequest(this.service, name); } - /// - /// Required. The resource name of the Location to get the NotebookRuntime assignment. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AssignNotebookRuntimeRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "assign"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/notebookRuntimes:assign"; - - /// Initializes Assign parameter list. - protected override void InitParameters() + /// Retrieves a specific Artifact. + public class GetRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } - - /// Deletes a NotebookRuntime. - /// - /// 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. - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// Deletes a NotebookRuntime. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the Artifact to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + }); + } } - } - - /// Gets a NotebookRuntime. - /// - /// 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. - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - /// Gets a NotebookRuntime. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Lists Artifacts in the MetadataStore. + /// + /// Required. The MetadataStore whose Artifacts should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual ListRequest List(string parent) { - Name = name; - InitParameters(); + return new ListRequest(this.service, parent); } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "get"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Get parameter list. - protected override void InitParameters() + /// Lists Artifacts in the MetadataStore. + public class ListRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", - }); - } - } + Parent = parent; + InitParameters(); + } - /// Lists NotebookRuntimes in a Location. - /// - /// Required. The resource name of the Location from which to list the NotebookRuntimes. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - - /// Lists NotebookRuntimes in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// + /// Required. The MetadataStore whose Artifacts should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// - /// Required. The resource name of the Location from which to list the NotebookRuntimes. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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` &amp; `OR`). + /// Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND + /// metadata.field1.bool_value = true`. + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// Optional. An expression for filtering the results of the request. For field names both - /// snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` - /// represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. - /// * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. - /// `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of - /// the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState - /// enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. - /// runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, - /// BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: - /// `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, - /// UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, - /// UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. - /// notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports = and !=. * - /// `acceleratorType` supports = and !=. 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` * - /// `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4` - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } - /// - /// 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`. - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// + /// The maximum number of Artifacts to return. The service may return fewer. Must be in range + /// 1-100, inclusive. Defaults to 100. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// - /// Optional. The standard list page token. Typically obtained via - /// ListNotebookRuntimesResponse.next_page_token of the previous - /// NotebookService.ListNotebookRuntimes call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the method name. + public override string MethodName => "list"; - /// Optional. Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/artifacts"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/notebookRuntimes"; + /// Updates a stored Artifact. + /// The body of the request. + /// Output only. The resource name of the Artifact. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string name) + { + return new PatchRequest(this.service, body, name); + } - /// Initializes List parameter list. - protected override void InitParameters() + /// Updates a stored Artifact. + public class PatchRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact body, string name) : base(service) { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + Name = name; + Body = body; + InitParameters(); + } - /// Starts a NotebookRuntime. - /// The body of the request. - /// - /// 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. - /// - public virtual StartRequest Start(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StartNotebookRuntimeRequest body, string name) - { - return new StartRequest(this.service, body, name); - } + /// Output only. The resource name of the Artifact. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Starts a NotebookRuntime. - public class StartRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Start request. - public StartRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StartNotebookRuntimeRequest body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// If set to true, and the Artifact is not found, a new Artifact is created. + [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable AllowMissing { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Optional. A FieldMask indicating which fields should be updated. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StartNotebookRuntimeRequest Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Artifact Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "start"; + /// Gets the method name. + public override string MethodName => "patch"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:start"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Start parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes Patch parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + }); + RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter + { + Name = "allowMissing", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } - } - - /// Stops a NotebookRuntime. - /// The body of the request. - /// - /// Required. The name of the NotebookRuntime resource to be stopped. 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. - /// - public virtual StopRequest Stop(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopNotebookRuntimeRequest body, string name) - { - return new StopRequest(this.service, body, name); - } - /// Stops a NotebookRuntime. - public class StopRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Stop request. - public StopRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopNotebookRuntimeRequest body, string name) : base(service) + /// Purges Artifacts. + /// The body of the request. + /// + /// Required. The metadata store to purge Artifacts from. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual PurgeRequest Purge(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeArtifactsRequest body, string parent) { - Name = name; - Body = body; - InitParameters(); + return new PurgeRequest(this.service, body, parent); } - /// - /// Required. The name of the NotebookRuntime resource to be stopped. 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. - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Purges Artifacts. + public class PurgeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Purge request. + public PurgeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeArtifactsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopNotebookRuntimeRequest Body { get; set; } + /// + /// Required. The metadata store to purge Artifacts from. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeArtifactsRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "stop"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "purge"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:stop"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Stop parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/artifacts:purge"; + + /// Initializes Purge parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + } } - } - - /// Upgrades a NotebookRuntime. - /// The body of the request. - /// - /// 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. - /// - public virtual UpgradeRequest Upgrade(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest body, string name) - { - return new UpgradeRequest(this.service, body, name); - } - /// Upgrades a NotebookRuntime. - public class UpgradeRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Upgrade request. - public UpgradeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest body, string name) : base(service) + /// + /// Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event + /// edges and returned as a LineageSubgraph. + /// + /// + /// 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. + /// + public virtual QueryArtifactLineageSubgraphRequest QueryArtifactLineageSubgraph(string artifact) { - Name = name; - Body = body; - InitParameters(); + return new QueryArtifactLineageSubgraphRequest(this.service, artifact); } /// - /// 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. + /// Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event + /// edges and returned as a LineageSubgraph. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "upgrade"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:upgrade"; - - /// Initializes Upgrade parameter list. - protected override void InitParameters() + public class QueryArtifactLineageSubgraphRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Constructs a new QueryArtifactLineageSubgraph request. + public QueryArtifactLineageSubgraphRequest(Google.Apis.Services.IClientService service, string artifact) : base(service) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", - }); - } - } - } - - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + Artifact = artifact; + InitParameters(); + } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("artifact", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Artifact { get; private set; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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` &amp; `OR`). Maximum nested expression + /// depth allowed is 5. For example: `display_name = "test" AND metadata.field1.bool_value = + /// true`. + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("maxHops", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable MaxHops { get; set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "queryArtifactLineageSubgraph"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+artifact}:queryArtifactLineageSubgraph"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes QueryArtifactLineageSubgraph parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("artifact", new Google.Apis.Discovery.Parameter + { + Name = "artifact", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("maxHops", new Google.Apis.Discovery.Parameter + { + Name = "maxHops", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the Contexts resource. + public virtual ContextsResource Contexts { get; } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// The "contexts" collection of methods. + public class ContextsResource { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + private const string Resource = "contexts"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Constructs a new resource. + public ContextsResource(Google.Apis.Services.IClientService service) { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - }); + this.service = service; + Operations = new OperationsResource(service); } - } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// The "operations" collection of methods. + public class OperationsResource { - Name = name; - InitParameters(); - } - - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + private const string Resource = "operations"; - /// Gets the method name. - public override string MethodName => "get"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - }); - } - } + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support this - /// method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support this - /// method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "cancel"; - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); + } + } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in an - /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "list"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the PersistentResources resource. - public virtual PersistentResourcesResource PersistentResources { get; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "persistentResources" collection of methods. - public class PersistentResourcesResource - { - private const string Resource = "persistentResources"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Constructs a new resource. - public PersistentResourcesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Gets the method name. + public override string MethodName => "list"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } } /// - /// 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`. + /// 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. /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// The body of the request. + /// + /// Required. The resource name of the Context that the Artifacts and Executions belong to. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + public virtual AddContextArtifactsAndExecutionsRequest AddContextArtifactsAndExecutions(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest body, string context) { - return new CancelRequest(this.service, name); + return new AddContextArtifactsAndExecutionsRequest(this.service, body, context); } /// - /// 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`. + /// 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. /// - public class CancelRequest : AiplatformBaseServiceRequest + public class AddContextArtifactsAndExecutionsRequest : AiplatformBaseServiceRequest { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new AddContextArtifactsAndExecutions request. + public AddContextArtifactsAndExecutionsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest body, string context) : base(service) { - Name = name; + Context = context; + Body = body; InitParameters(); } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the Context that the Artifacts and Executions belong to. + /// Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Context { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "cancel"; + public override string MethodName => "addContextArtifactsAndExecutions"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + public override string RestPath => "v1/{+context}:addContextArtifactsAndExecutions"; - /// Initializes Cancel parameter list. + /// Initializes AddContextArtifactsAndExecutions parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("context", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "context", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", }); } } /// - /// 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`. + /// 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. /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// The body of the request. + /// + /// Required. The resource name of the parent Context. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + public virtual AddContextChildrenRequest AddContextChildren(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextChildrenRequest body, string context) { - return new DeleteRequest(this.service, name); + return new AddContextChildrenRequest(this.service, body, context); } /// - /// 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`. + /// 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. /// - public class DeleteRequest : AiplatformBaseServiceRequest + public class AddContextChildrenRequest : AiplatformBaseServiceRequest { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new AddContextChildren request. + public AddContextChildrenRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextChildrenRequest body, string context) : base(service) { - Name = name; + Context = context; + Body = body; InitParameters(); } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the parent Context. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Context { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddContextChildrenRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "delete"; + public override string MethodName => "addContextChildren"; /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+context}:addContextChildren"; - /// Initializes Delete parameter list. + /// Initializes AddContextChildren parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("context", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "context", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", }); } } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// Creates a Context associated with a MetadataStore. + /// The body of the request. + /// + /// Required. The resource name of the MetadataStore where the Context should be created. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string parent) { - return new GetRequest(this.service, name); + return new CreateRequest(this.service, body, parent); } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Creates a Context associated with a MetadataStore. + public class CreateRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string parent) : base(service) { - Name = name; + Parent = parent; + Body = body; InitParameters(); } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The resource name of the MetadataStore where the Context should be created. + /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("contextId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string ContextId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "create"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+parent}/contexts"; - /// Initializes Get parameter list. + /// Initializes Create parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("contextId", new Google.Apis.Discovery.Parameter + { + Name = "contextId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Deletes a stored Context. + /// + /// Required. The resource name of the Context to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + public virtual DeleteRequest Delete(string name) { - return new ListRequest(this.service, name); + return new DeleteRequest(this.service, name); } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// Deletes a stored Context. + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } - /// The name of the operation's parent resource. + /// + /// Required. The resource name of the Context to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("etag", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Etag { get; set; } /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. + /// The force deletion semantics is still undefined. Users should not use this field. /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+name}"; - /// Initializes List parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); @@ -33590,35 +36111,203 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + RequestParameters.Add("etag", new Google.Apis.Discovery.Parameter { - Name = "filter", + Name = "etag", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter { - Name = "pageSize", + Name = "force", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + } + } + + /// Retrieves a specific Context. + /// + /// Required. The resource name of the Context to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Retrieves a specific Context. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The resource name of the Context to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + }); + } + } + + /// Lists Contexts on the MetadataStore. + /// + /// Required. The MetadataStore whose Contexts should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Contexts on the MetadataStore. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The MetadataStore whose Contexts should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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` &amp; `OR`). + /// Maximum nested expression depth allowed is 5. For example: `display_name = "test" AND + /// metadata.field1.bool_value = true`. + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// The maximum number of Contexts to return. The service may return fewer. Must be in range + /// 1-100, inclusive. Defaults to 100. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/contexts"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter { - Name = "returnPartialSuccess", + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -33627,61 +36316,53 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Updates a stored Context. + /// The body of the request. + /// Immutable. The resource name of the Context. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string name) { - return new WaitRequest(this.service, name); + return new PatchRequest(this.service, body, name); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Updates a stored Context. + public class PatchRequest : AiplatformBaseServiceRequest { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context body, string name) : base(service) { Name = name; + Body = body; InitParameters(); } - /// The name of the operation resource to wait on. + /// Immutable. The resource name of the Context. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// If set to true, and the Context is not found, a new Context is created. + [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable AllowMissing { get; set; } + + /// Optional. A FieldMask indicating which fields should be updated. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Context Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "wait"; + public override string MethodName => "patch"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "PATCH"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. + /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); @@ -33691,11 +36372,19 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter { - Name = "timeout", + Name = "allowMissing", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -33703,524 +36392,766 @@ protected override void InitParameters() }); } } - } - - /// Creates a PersistentResource. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the PersistentResource in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - /// Creates a PersistentResource. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string parent) : base(service) + /// Purges Contexts. + /// The body of the request. + /// + /// Required. The metadata store to purge Contexts from. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual PurgeRequest Purge(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeContextsRequest body, string parent) { - Parent = parent; - Body = body; - InitParameters(); + return new PurgeRequest(this.service, body, parent); } - /// - /// Required. The resource name of the Location to create the PersistentResource in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Purges Contexts. + public class PurgeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Purge request. + public PurgeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeContextsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// - /// 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])?$/`. - /// - [Google.Apis.Util.RequestParameterAttribute("persistentResourceId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PersistentResourceId { get; set; } + /// + /// Required. The metadata store to purge Contexts from. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeContextsRequest Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "purge"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/persistentResources"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/contexts:purge"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("persistentResourceId", new Google.Apis.Discovery.Parameter + /// Initializes Purge parameter list. + protected override void InitParameters() { - Name = "persistentResourceId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + } } - } - - /// Deletes a PersistentResource. - /// - /// Required. The name of the PersistentResource to be deleted. Format: - /// `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// Deletes a PersistentResource. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + /// returned as a LineageSubgraph. + /// + /// + /// 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. + /// + public virtual QueryContextLineageSubgraphRequest QueryContextLineageSubgraph(string context) { - Name = name; - InitParameters(); + return new QueryContextLineageSubgraphRequest(this.service, context); } /// - /// Required. The name of the PersistentResource to be deleted. Format: - /// `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` + /// Retrieves Artifacts and Executions within the specified Context, connected by Event edges and + /// returned as a LineageSubgraph. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + public class QueryContextLineageSubgraphRequest : AiplatformBaseServiceRequest + { + /// Constructs a new QueryContextLineageSubgraph request. + public QueryContextLineageSubgraphRequest(Google.Apis.Services.IClientService service, string context) : base(service) + { + Context = context; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Context { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "queryContextLineageSubgraph"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+context}:queryContextLineageSubgraph"; + + /// Initializes QueryContextLineageSubgraph parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("context", new Google.Apis.Discovery.Parameter + { + Name = "context", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + }); + } } - } - - /// Gets a PersistentResource. - /// - /// Required. The name of the PersistentResource resource. Format: - /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - /// Gets a PersistentResource. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. The resource name of the parent Context. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + public virtual RemoveContextChildrenRequest RemoveContextChildren(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveContextChildrenRequest body, string context) { - Name = name; - InitParameters(); + return new RemoveContextChildrenRequest(this.service, body, context); } /// - /// Required. The name of the PersistentResource resource. Format: - /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + public class RemoveContextChildrenRequest : AiplatformBaseServiceRequest + { + /// Constructs a new RemoveContextChildren request. + public RemoveContextChildrenRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveContextChildrenRequest body, string context) : base(service) + { + Context = context; + Body = body; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// Required. The resource name of the parent Context. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` + /// + [Google.Apis.Util.RequestParameterAttribute("context", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Context { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RemoveContextChildrenRequest Body { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", - }); - } - } - - /// Lists PersistentResources in a Location. - /// - /// Required. The resource name of the Location to list the PersistentResources from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - - /// Lists PersistentResources in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } - - /// - /// Required. The resource name of the Location to list the PersistentResources from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// - /// Optional. The standard list page token. Typically obtained via - /// ListPersistentResourcesResponse.next_page_token of the previous - /// PersistentResourceService.ListPersistentResource call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "removeContextChildren"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/persistentResources"; + /// Gets the REST path. + public override string RestPath => "v1/{+context}:removeContextChildren"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + /// Initializes RemoveContextChildren parameter list. + protected override void InitParameters() { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("context", new Google.Apis.Discovery.Parameter + { + Name = "context", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + }); + } } } - /// Updates a PersistentResource. - /// The body of the request. - /// Immutable. Resource name of a PersistentResource. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string name) - { - return new PatchRequest(this.service, body, name); - } + /// Gets the Executions resource. + public virtual ExecutionsResource Executions { get; } - /// Updates a PersistentResource. - public class PatchRequest : AiplatformBaseServiceRequest + /// The "executions" collection of methods. + public class ExecutionsResource { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// Immutable. Resource name of a PersistentResource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// Required. Specify the fields to be overwritten in the PersistentResource by the update method. - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "patch"; - - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + private const string Resource = "executions"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Patch parameter list. - protected override void InitParameters() + /// Constructs a new resource. + public ExecutionsResource(Google.Apis.Services.IClientService service) { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + this.service = service; + Operations = new OperationsResource(service); } - } - /// Reboots a PersistentResource. - /// The body of the request. - /// - /// Required. The name of the PersistentResource resource. Format: - /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` - /// - public virtual RebootRequest Reboot(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebootPersistentResourceRequest body, string name) - { - return new RebootRequest(this.service, body, name); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Reboots a PersistentResource. - public class RebootRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Reboot request. - public RebootRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebootPersistentResourceRequest body, string name) : base(service) + /// The "operations" collection of methods. + public class OperationsResource { - Name = name; - Body = body; - InitParameters(); - } + private const string Resource = "operations"; - /// - /// Required. The name of the PersistentResource resource. Format: - /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebootPersistentResourceRequest Body { get; set; } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "reboot"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:reboot"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Initializes Reboot parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", - }); - } - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the PipelineJobs resource. - public virtual PipelineJobsResource PipelineJobs { get; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// The "pipelineJobs" collection of methods. - public class PipelineJobsResource - { - private const string Resource = "pipelineJobs"; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + }); + } + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Constructs a new resource. - public PipelineJobsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Gets the method name. + public override string MethodName => "delete"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Name = name; - InitParameters(); + return new GetRequest(this.service, name); } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "cancel"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + }); + } } - } - - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - Name = name; - InitParameters(); + return new ListRequest(this.service, name); } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. The resource name of the Execution that the Events connect Artifacts with. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /// + public virtual AddExecutionEventsRequest AddExecutionEvents(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddExecutionEventsRequest body, string execution) + { + return new AddExecutionEventsRequest(this.service, body, execution); + } + + /// + /// 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. + /// + public class AddExecutionEventsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new AddExecutionEvents request. + public AddExecutionEventsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddExecutionEventsRequest body, string execution) : base(service) + { + Execution = execution; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Execution that the Events connect Artifacts with. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /// + [Google.Apis.Util.RequestParameterAttribute("execution", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Execution { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddExecutionEventsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "addExecutionEvents"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+execution}:addExecutionEvents"; + + /// Initializes AddExecutionEvents parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("execution", new Google.Apis.Discovery.Parameter + { + Name = "execution", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + }); + } + } + + /// Creates an Execution associated with a MetadataStore. + /// The body of the request. + /// + /// Required. The resource name of the MetadataStore where the Execution should be created. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates an Execution associated with a MetadataStore. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the MetadataStore where the Execution should be created. + /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("executionId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string ExecutionId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/executions"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("executionId", new Google.Apis.Discovery.Parameter + { + Name = "executionId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes an Execution. + /// + /// Required. The resource name of the Execution to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes an Execution. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The resource name of the Execution to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("etag", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Etag { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; /// Initializes Delete parameter list. protected override void InitParameters() @@ -34232,26 +37163,31 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + }); + RequestParameters.Add("etag", new Google.Apis.Discovery.Parameter + { + Name = "etag", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// - /// 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. - /// - /// The name of the operation resource. + /// Retrieves a specific Execution. + /// + /// Required. The resource name of the Execution to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Retrieves a specific Execution. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -34260,7 +37196,10 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// The name of the operation resource. + /// + /// Required. The resource name of the Execution to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -34283,60 +37222,83 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", }); } } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Lists Executions in the MetadataStore. + /// + /// Required. The MetadataStore whose Executions should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual ListRequest List(string parent) { - return new ListRequest(this.service, name); + return new ListRequest(this.service, parent); } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// Lists Executions in the MetadataStore. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Name = name; + Parent = parent; InitParameters(); } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The MetadataStore whose Executions should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The standard list 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` &amp; `OR`). Maximum + /// nested expression depth allowed is 5. For example: `display_name = "test" AND + /// metadata.field1.bool_value = true`. + /// [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// The standard list page size. + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// The maximum number of Executions to return. The service may return fewer. Must be in range + /// 1-100, inclusive. Defaults to 100. + /// [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. + /// 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.) /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -34345,19 +37307,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+parent}/executions"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -34367,25 +37329,25 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter { - Name = "pageSize", + Name = "orderBy", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - Name = "returnPartialSuccess", + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -34394,61 +37356,55 @@ protected override void InitParameters() } } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Updates a stored Execution. + /// The body of the request. + /// Output only. The resource name of the Execution. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string name) { - return new WaitRequest(this.service, name); + return new PatchRequest(this.service, body, name); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Updates a stored Execution. + public class PatchRequest : AiplatformBaseServiceRequest { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution body, string name) : base(service) { Name = name; + Body = body; InitParameters(); } - /// The name of the operation resource to wait on. + /// Output only. The resource name of the Execution. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// 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. + /// If set to true, and the Execution is not found, a new Execution is created. /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + [Google.Apis.Util.RequestParameterAttribute("allowMissing", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable AllowMissing { get; set; } + + /// Optional. A FieldMask indicating which fields should be updated. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Execution Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "wait"; + public override string MethodName => "patch"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "PATCH"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. + /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); @@ -34458,11 +37414,19 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + RequestParameters.Add("allowMissing", new Google.Apis.Discovery.Parameter { - Name = "timeout", + Name = "allowMissing", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -34470,1256 +37434,1030 @@ protected override void InitParameters() }); } } - } - - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The name of the PipelineJobs' parent resource. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual BatchCancelRequest BatchCancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest body, string parent) - { - return new BatchCancelRequest(this.service, body, parent); - } - /// - /// 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. - /// - public class BatchCancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new BatchCancel request. - public BatchCancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest body, string parent) : base(service) + /// Purges Executions. + /// The body of the request. + /// + /// Required. The metadata store to purge Executions from. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual PurgeRequest Purge(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeExecutionsRequest body, string parent) { - Parent = parent; - Body = body; - InitParameters(); + return new PurgeRequest(this.service, body, parent); } - /// - /// Required. The name of the PipelineJobs' parent resource. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Purges Executions. + public class PurgeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Purge request. + public PurgeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeExecutionsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest Body { get; set; } + /// + /// Required. The metadata store to purge Executions from. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PurgeExecutionsRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "batchCancel"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "purge"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/pipelineJobs:batchCancel"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes BatchCancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/executions:purge"; + + /// Initializes Purge parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + } } - } - - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The name of the PipelineJobs' parent resource. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual BatchDeleteRequest BatchDelete(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest body, string parent) - { - return new BatchDeleteRequest(this.service, body, parent); - } - /// - /// 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. - /// - public class BatchDeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new BatchDelete request. - public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest body, string parent) : base(service) + /// + /// Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph + /// that also contains the Execution and connecting Events. + /// + /// + /// 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}` + /// + public virtual QueryExecutionInputsAndOutputsRequest QueryExecutionInputsAndOutputs(string execution) { - Parent = parent; - Body = body; - InitParameters(); + return new QueryExecutionInputsAndOutputsRequest(this.service, execution); } /// - /// Required. The name of the PipelineJobs' parent resource. Format: - /// `projects/{project}/locations/{location}` + /// Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph + /// that also contains the Execution and connecting Events. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest Body { get; set; } + public class QueryExecutionInputsAndOutputsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new QueryExecutionInputsAndOutputs request. + public QueryExecutionInputsAndOutputsRequest(Google.Apis.Services.IClientService service, string execution) : base(service) + { + Execution = execution; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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}` + /// + [Google.Apis.Util.RequestParameterAttribute("execution", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Execution { get; private set; } - /// Gets the method name. - public override string MethodName => "batchDelete"; + /// Gets the method name. + public override string MethodName => "queryExecutionInputsAndOutputs"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/pipelineJobs:batchDelete"; + /// Gets the REST path. + public override string RestPath => "v1/{+execution}:queryExecutionInputsAndOutputs"; - /// Initializes BatchDelete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Initializes QueryExecutionInputsAndOutputs parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("execution", new Google.Apis.Discovery.Parameter + { + Name = "execution", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + }); + } } } - /// - /// 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`. - /// - /// The body of the request. - /// - /// Required. The name of the PipelineJob to cancel. Format: - /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelPipelineJobRequest body, string name) - { - return new CancelRequest(this.service, body, name); - } + /// Gets the MetadataSchemas resource. + public virtual MetadataSchemasResource MetadataSchemas { get; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// The "metadataSchemas" collection of methods. + public class MetadataSchemasResource { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelPipelineJobRequest body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the PipelineJob to cancel. Format: - /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelPipelineJobRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "cancel"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + private const string Resource = "metadataSchemas"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Constructs a new resource. + public MetadataSchemasResource(Google.Apis.Services.IClientService service) { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", - }); + this.service = service; } - } - - /// Creates a PipelineJob. A PipelineJob will run immediately when created. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the PipelineJob in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PipelineJob body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - /// Creates a PipelineJob. A PipelineJob will run immediately when created. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PipelineJob body, string parent) : base(service) + /// Creates a MetadataSchema. + /// The body of the request. + /// + /// Required. The resource name of the MetadataStore where the MetadataSchema should be created. + /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataSchema body, string parent) { - Parent = parent; - Body = body; - InitParameters(); + return new CreateRequest(this.service, body, parent); } - /// - /// Required. The resource name of the Location to create the PipelineJob in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Creates a MetadataSchema. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataSchema body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// - /// 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-/`. - /// - [Google.Apis.Util.RequestParameterAttribute("pipelineJobId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PipelineJobId { get; set; } + /// + /// Required. The resource name of the MetadataStore where the MetadataSchema should be created. + /// Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PipelineJob Body { get; set; } + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("metadataSchemaId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string MetadataSchemaId { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataSchema Body { get; set; } - /// Gets the method name. - public override string MethodName => "create"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/pipelineJobs"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("pipelineJobId", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/metadataSchemas"; + + /// Initializes Create parameter list. + protected override void InitParameters() { - Name = "pipelineJobId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("metadataSchemaId", new Google.Apis.Discovery.Parameter + { + Name = "metadataSchemaId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } - } - - /// Deletes a PipelineJob. - /// - /// Required. The name of the PipelineJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// Deletes a PipelineJob. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Retrieves a specific MetadataSchema. + /// + /// Required. The resource name of the MetadataSchema to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + /// + public virtual GetRequest Get(string name) { - Name = name; - InitParameters(); + return new GetRequest(this.service, name); } - /// - /// Required. The name of the PipelineJob resource to be deleted. Format: - /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Retrieves a specific MetadataSchema. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// Required. The resource name of the MetadataSchema to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", - }); - } - } - - /// Gets a PipelineJob. - /// - /// Required. The name of the PipelineJob resource. Format: - /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - - /// Gets a PipelineJob. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// - /// Required. The name of the PipelineJob resource. Format: - /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "get"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$", + }); + } } - } - - /// Lists PipelineJobs in a Location. - /// - /// Required. The resource name of the Location to list the PipelineJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } - /// Lists PipelineJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Lists MetadataSchemas. + /// + /// Required. The MetadataStore whose MetadataSchemas should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual ListRequest List(string parent) { - Parent = parent; - InitParameters(); + return new ListRequest(this.service, parent); } - /// - /// Required. The resource name of the Location to list the PipelineJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// 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 - /// `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in - /// RFC 3339 format. * `update_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and - /// `&gt;=` comparisons. Values must be in RFC 3339 format. * `end_time`: Supports `=`, `!=`, - /// `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` 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` &amp; `OR`). For example: `pipeline_name="test" AND - /// create_time&gt;"2020-05-18T13:30:00Z"`. The syntax to define filter expression is based on - /// https://google.aip.dev/160. Examples: * `create_time&gt;"2021-05-18T00:00:00Z" OR - /// update_time&gt;"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". - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Lists MetadataSchemas. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } - /// - /// 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` - /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// + /// Required. The MetadataStore whose MetadataSchemas should be listed. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// A query to filter available MetadataSchemas for matching results. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// The standard list page token. Typically obtained via ListPipelineJobsResponse.next_page_token of - /// the previous PipelineService.ListPipelineJobs call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// + /// The maximum number of MetadataSchemas to return. The service may return fewer. Must be in + /// range 1-100, inclusive. Defaults to 100. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/pipelineJobs"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/metadataSchemas"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + /// Initializes List parameter list. + protected override void InitParameters() { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - } - - /// Gets the Publishers resource. - public virtual PublishersResource Publishers { get; } - - /// The "publishers" collection of methods. - public class PublishersResource - { - private const string Resource = "publishers"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public PublishersResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Models = new ModelsResource(service); - } - /// Gets the Models resource. - public virtual ModelsResource Models { get; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The "models" collection of methods. - public class ModelsResource + /// The "operations" collection of methods. + public class OperationsResource { - private const string Resource = "models"; + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public ModelsResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; } - /// Return a list of tokens based on the input text. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - /// - public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new ComputeTokensRequest(this.service, body, endpoint); + return new CancelRequest(this.service, name); } - /// Return a list of tokens based on the input text. - public class ComputeTokensRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new ComputeTokens request. - public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "computeTokens"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:computeTokens"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes ComputeTokens parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", }); } } - /// Perform a token counting. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - return new CountTokensRequest(this.service, body, endpoint); + return new DeleteRequest(this.service, name); } - /// Perform a token counting. - public class CountTokensRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new CountTokens request. - public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "countTokens"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:countTokens"; + public override string RestPath => "v1/{+name}"; - /// Initializes CountTokens parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", }); } } - /// Embed content with multimodal inputs. - /// The body of the request. - /// - /// Required. The name of the publisher model requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/publishers/*/models/*` - /// - public virtual EmbedContentRequest EmbedContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EmbedContentRequest body, string model) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - return new EmbedContentRequest(this.service, body, model); + return new GetRequest(this.service, name); } - /// Embed content with multimodal inputs. - public class EmbedContentRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { - /// Constructs a new EmbedContent request. - public EmbedContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EmbedContentRequest body, string model) : base(service) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Model = model; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the publisher model requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/publishers/*/models/*` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EmbedContentRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "embedContent"; + public override string MethodName => "get"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+model}:embedContent"; + public override string RestPath => "v1/{+name}"; - /// Initializes EmbedContent parameter list. + /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "model", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", }); } } - /// Fetch an asynchronous online prediction operation. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new FetchPredictOperationRequest(this.service, body, endpoint); + return new ListRequest(this.service, name); } - /// Fetch an asynchronous online prediction operation. - public class FetchPredictOperationRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new FetchPredictOperation request. - public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "fetchPredictOperation"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; + public override string RestPath => "v1/{+name}/operations"; - /// Initializes FetchPredictOperation parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// Generate content with multimodal inputs. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. - /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned - /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new GenerateContentRequest(this.service, body, model); + return new WaitRequest(this.service, name); } - /// Generate content with multimodal inputs. - public class GenerateContentRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new GenerateContent request. - public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Model = model; - Body = body; + Name = name; InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. - /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` - /// Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "generateContent"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+model}:generateContent"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes GenerateContent parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "model", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } - /// Perform an online prediction. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) + /// Initializes a MetadataStore, including allocation of resources. + /// The body of the request. + /// + /// Required. The resource name of the Location where the MetadataStore should be created. Format: + /// `projects/{project}/locations/{location}/` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataStore body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Initializes a MetadataStore, including allocation of resources. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataStore body, string parent) : base(service) { - return new PredictRequest(this.service, body, endpoint); + Parent = parent; + Body = body; + InitParameters(); } - /// Perform an online prediction. - public class PredictRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Predict request. - public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } + /// + /// Required. The resource name of the Location where the MetadataStore should be created. Format: + /// `projects/{project}/locations/{location}/` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("metadataStoreId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string MetadataStoreId { get; set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MetadataStore Body { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "predict"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predict"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/metadataStores"; - /// Initializes Predict parameter list. - protected override void InitParameters() + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("metadataStoreId", new Google.Apis.Discovery.Parameter + { + Name = "metadataStoreId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) - { - return new PredictLongRunningRequest(this.service, body, endpoint); - } + /// + /// Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts). + /// + /// + /// Required. The resource name of the MetadataStore to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// - public class PredictLongRunningRequest : AiplatformBaseServiceRequest + /// + /// Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts). + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new PredictLongRunning request. - public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } + /// + /// Required. The resource name of the MetadataStore to delete. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Deprecated: Field is no longer supported. + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } - /// Gets the method name. - public override string MethodName => "predictLongRunning"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predictLongRunning"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes PredictLongRunning parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// 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. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual RawPredictRequest RawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) + /// Retrieves a specific MetadataStore. + /// + /// Required. The resource name of the MetadataStore to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Retrieves a specific MetadataStore. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new RawPredictRequest(this.service, body, endpoint); + Name = name; + InitParameters(); } /// - /// 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. + /// Required. The resource name of the MetadataStore to retrieve. Format: + /// `projects/{project}/locations/{location}/metadataStores/{metadatastore}` /// - public class RawPredictRequest : AiplatformBaseServiceRequest - { - /// Constructs a new RawPredict request. - public RawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "rawPredict"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:rawPredict"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes RawPredict parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + }); } + } - /// - /// Perform a server-side streaming online prediction request for Vertex LLM streaming. - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual ServerStreamingPredictRequest ServerStreamingPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) + /// Lists MetadataStores for a Location. + /// + /// Required. The Location whose MetadataStores should be listed. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists MetadataStores for a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - return new ServerStreamingPredictRequest(this.service, body, endpoint); + Parent = parent; + InitParameters(); } /// - /// Perform a server-side streaming online prediction request for Vertex LLM streaming. + /// Required. The Location whose MetadataStores should be listed. Format: + /// `projects/{project}/locations/{location}` /// - public class ServerStreamingPredictRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ServerStreamingPredict request. - public ServerStreamingPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets the method name. - public override string MethodName => "serverStreamingPredict"; + /// + /// The maximum number of Metadata Stores to return. The service may return fewer. Must be in range + /// 1-100, inclusive. Defaults to 100. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// 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.) + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:serverStreamingPredict"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes ServerStreamingPredict parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Generate content with multimodal inputs with streaming support. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. - /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned - /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) - { - return new StreamGenerateContentRequest(this.service, body, model); - } + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/metadataStores"; - /// Generate content with multimodal inputs with streaming support. - public class StreamGenerateContentRequest : AiplatformBaseServiceRequest + /// Initializes List parameter list. + protected override void InitParameters() { - /// Constructs a new StreamGenerateContent request. - public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) - { - Model = model; - Body = body; - InitParameters(); - } - - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. - /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` - /// Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "streamGenerateContent"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+model}:streamGenerateContent"; - - /// Initializes StreamGenerateContent parameter list. - protected override void InitParameters() + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter - { - Name = "model", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", - }); - } - } - - /// Perform a streaming online prediction with an arbitrary HTTP payload. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual StreamRawPredictRequest StreamRawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) - { - return new StreamRawPredictRequest(this.service, body, endpoint); - } - - /// Perform a streaming online prediction with an arbitrary HTTP payload. - public class StreamRawPredictRequest : AiplatformBaseServiceRequest - { - /// Constructs a new StreamRawPredict request. - public StreamRawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) : base(service) + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "streamRawPredict"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:streamRawPredict"; - - /// Initializes StreamRawPredict parameter list. - protected override void InitParameters() + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", - }); - } + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } - /// Gets the RagCorpora resource. - public virtual RagCorporaResource RagCorpora { get; } + /// Gets the MigratableResources resource. + public virtual MigratableResourcesResource MigratableResources { get; } - /// The "ragCorpora" collection of methods. - public class RagCorporaResource + /// The "migratableResources" collection of methods. + public class MigratableResourcesResource { - private const string Resource = "ragCorpora"; + private const string Resource = "migratableResources"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public RagCorporaResource(Google.Apis.Services.IClientService service) + public MigratableResourcesResource(Google.Apis.Services.IClientService service) { this.service = service; Operations = new OperationsResource(service); - RagFiles = new RagFilesResource(service); } /// Gets the Operations resource. @@ -35795,7 +38533,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", }); } } @@ -35848,7 +38586,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", }); } } @@ -35899,7 +38637,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", }); } } @@ -35973,7 +38711,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -36074,7 +38812,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -36088,402 +38826,252 @@ protected override void InitParameters() } } - /// Gets the RagFiles resource. - public virtual RagFilesResource RagFiles { get; } - - /// The "ragFiles" collection of methods. - public class RagFilesResource + /// + /// Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and + /// datalabeling.googleapis.com to Vertex AI. + /// + /// The body of the request. + /// + /// Required. The location of the migrated resource will live in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual BatchMigrateRequest BatchMigrate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchMigrateResourcesRequest body, string parent) { - private const string Resource = "ragFiles"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new BatchMigrateRequest(this.service, body, parent); + } - /// Constructs a new resource. - public RagFilesResource(Google.Apis.Services.IClientService service) + /// + /// Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and + /// datalabeling.googleapis.com to Vertex AI. + /// + public class BatchMigrateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new BatchMigrate request. + public BatchMigrateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchMigrateResourcesRequest body, string parent) : base(service) { - this.service = service; - Operations = new OperationsResource(service); + Parent = parent; + Body = body; + InitParameters(); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// + /// Required. The location of the migrated resource will live in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchMigrateResourcesRequest Body { get; set; } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "batchMigrate"; - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/migratableResources:batchMigrate"; - /// Gets the method name. - public override string MethodName => "cancel"; + /// Initializes BatchMigrate parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// 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. + /// + /// The body of the request. + /// + /// 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}` + /// + public virtual SearchRequest Search(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchMigratableResourcesRequest body, string parent) + { + return new SearchRequest(this.service, body, parent); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// + /// 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. + /// + public class SearchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Search request. + public SearchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchMigratableResourcesRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// 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}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchMigratableResourcesRequest Body { get; set; } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "search"; - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/migratableResources:search"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Initializes Search parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the ModelDeploymentMonitoringJobs resource. + public virtual ModelDeploymentMonitoringJobsResource ModelDeploymentMonitoringJobs { 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// The "modelDeploymentMonitoringJobs" collection of methods. + public class ModelDeploymentMonitoringJobsResource + { + private const string Resource = "modelDeploymentMonitoringJobs"; - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Constructs a new resource. + public ModelDeploymentMonitoringJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", - }); - } - } - - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } - - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new WaitRequest(this.service, name); + Name = name; + InitParameters(); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Wait parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + }); } } - /// Deletes a RagFile. - /// - /// Required. The name of the RagFile resource to be deleted. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` - /// + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a RagFile. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -36492,20 +39080,10 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The name of the RagFile resource to be deleted. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// - /// Optional. If set to true, any errors generated by external vector database during the - /// deletion will be ignored. The default value is false. - /// - [Google.Apis.Util.RequestParameterAttribute("forceDelete", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ForceDelete { get; set; } - /// Gets the method name. public override string MethodName => "delete"; @@ -36525,31 +39103,26 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+$", - }); - RequestParameters.Add("forceDelete", new Google.Apis.Discovery.Parameter - { - Name = "forceDelete", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", }); } } - /// Gets a RagFile. - /// - /// Required. The name of the RagFile resource. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a RagFile. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -36558,10 +39131,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the RagFile resource. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -36584,140 +39154,186 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", }); } } - /// Import files from Google Cloud Storage or Google Drive into a RagCorpus. - /// The body of the request. - /// - /// Required. The name of the RagCorpus resource into which to import files. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - public virtual ImportRequest Import(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportRagFilesRequest body, string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ImportRequest(this.service, body, parent); + return new ListRequest(this.service, name); } - /// Import files from Google Cloud Storage or Google Drive into a RagCorpus. - public class ImportRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new Import request. - public ImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportRagFilesRequest body, string parent) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the RagCorpus resource into which to import files. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportRagFilesRequest Body { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "import"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/ragFiles:import"; + public override string RestPath => "v1/{+name}/operations"; - /// Initializes Import parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// Lists RagFiles in a RagCorpus. - /// - /// Required. The resource name of the RagCorpus from which to list the RagFiles. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - public virtual ListRequest List(string parent) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new ListRequest(this.service, parent); + return new WaitRequest(this.service, name); } - /// Lists RagFiles in a RagCorpus. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the RagCorpus from which to list the RagFiles. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// - /// Optional. The standard list page token. Typically obtained via - /// ListRagFilesResponse.next_page_token of the previous VertexRagDataService.ListRagFiles call. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "wait"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/ragFiles"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes List parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - Name = "pageToken", + Name = "timeout", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -36727,22 +39343,26 @@ protected override void InitParameters() } } - /// Creates a RagCorpus. + /// + /// Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + /// /// The body of the request. /// - /// Required. The resource name of the Location to create the RagCorpus in. Format: + /// Required. The parent of the ModelDeploymentMonitoringJob. Format: /// `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string parent) + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string parent) { return new CreateRequest(this.service, body, parent); } - /// Creates a RagCorpus. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string parent) : base(service) + /// + /// Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval. + /// + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string parent) : base(service) { Parent = parent; Body = body; @@ -36750,14 +39370,14 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the Location to create the RagCorpus in. Format: + /// Required. The parent of the ModelDeploymentMonitoringJob. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -36769,7 +39389,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/ragCorpora"; + public override string RestPath => "v1/{+parent}/modelDeploymentMonitoringJobs"; /// Initializes Create parameter list. protected override void InitParameters() @@ -36786,17 +39406,17 @@ protected override void InitParameters() } } - /// Deletes a RagCorpus. + /// Deletes a ModelDeploymentMonitoringJob. /// - /// Required. The name of the RagCorpus resource to be deleted. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// Required. The resource name of the model monitoring job to delete. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a RagCorpus. + /// Deletes a ModelDeploymentMonitoringJob. public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -36807,19 +39427,12 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The name of the RagCorpus resource to be deleted. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// Required. The resource name of the model monitoring job to delete. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// - /// Optional. If set to true, any RagFiles in this RagCorpus will also be deleted. Otherwise, the - /// request will only work if the RagCorpus has no RagFiles. - /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - /// Gets the method name. public override string MethodName => "delete"; @@ -36839,31 +39452,23 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter - { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", }); } } - /// Gets a RagCorpus. + /// Gets a ModelDeploymentMonitoringJob. /// - /// Required. The name of the RagCorpus resource. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// Required. The resource name of the ModelDeploymentMonitoringJob. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a RagCorpus. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets a ModelDeploymentMonitoringJob. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -36873,8 +39478,8 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba } /// - /// Required. The name of the RagCorpus resource. Format: - /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// Required. The resource name of the ModelDeploymentMonitoringJob. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -36898,14 +39503,14 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", }); } } - /// Lists RagCorpora in a Location. + /// Lists ModelDeploymentMonitoringJobs in a Location. /// - /// Required. The resource name of the Location from which to list the RagCorpora. Format: + /// Required. The parent of the ModelDeploymentMonitoringJob. Format: /// `projects/{project}/locations/{location}` /// public virtual ListRequest List(string parent) @@ -36913,8 +39518,8 @@ public virtual ListRequest List(string parent) return new ListRequest(this.service, parent); } - /// Lists RagCorpora in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists ModelDeploymentMonitoringJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -36924,23 +39529,37 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Location from which to list the RagCorpora. Format: + /// Required. The parent of the ModelDeploymentMonitoringJob. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } - /// Optional. The standard list page size. + /// + /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, + /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// Optional. The standard list page token. Typically obtained via - /// ListRagCorporaResponse.next_page_token of the previous VertexRagDataService.ListRagCorpora call. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// Mask specifying which fields to read + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -36948,7 +39567,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/ragCorpora"; + public override string RestPath => "v1/{+parent}/modelDeploymentMonitoringJobs"; /// Initializes List parameter list. protected override void InitParameters() @@ -36962,6 +39581,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", @@ -36978,34 +39605,62 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Updates a RagCorpus. + /// Updates a ModelDeploymentMonitoringJob. /// The body of the request. - /// Output only. The resource name of the RagCorpus. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string name) + /// Output only. Resource name of a ModelDeploymentMonitoringJob. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string name) { return new PatchRequest(this.service, body, name); } - /// Updates a RagCorpus. + /// Updates a ModelDeploymentMonitoringJob. public class PatchRequest : AiplatformBaseServiceRequest { /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string name) : base(service) + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob body, string name) : base(service) { Name = name; Body = body; InitParameters(); } - /// Output only. The resource name of the RagCorpus. + /// Output only. Resource name of a ModelDeploymentMonitoringJob. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ModelDeploymentMonitoringJob Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -37029,758 +39684,882 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - } - - /// Gets the RagEngineConfig resource. - public virtual RagEngineConfigResource RagEngineConfig { get; } - - /// The "ragEngineConfig" collection of methods. - public class RagEngineConfigResource - { - private const string Resource = "ragEngineConfig"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - /// Constructs a new resource. - public RagEngineConfigResource(Google.Apis.Services.IClientService service) + /// + /// Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + /// cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. + /// + /// The body of the request. + /// + /// Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /// + public virtual PauseRequest Pause(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest body, string name) { - this.service = service; - Operations = new OperationsResource(service); + return new PauseRequest(this.service, body, name); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// + /// Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to + /// cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'. + /// + public class PauseRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// Constructs a new Pause request. + public PauseRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest body, string name) : base(service) { - this.service = service; + Name = name; + Body = body; + InitParameters(); } /// - /// 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`. + /// Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest Body { get; set; } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "pause"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:pause"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Pause parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + }); } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// + /// Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + /// deleted ModelDeploymentMonitoringJob can't be resumed. + /// + /// The body of the request. + /// + /// Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /// + public virtual ResumeRequest Resume(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest body, string name) + { + return new ResumeRequest(this.service, body, name); + } + + /// + /// Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A + /// deleted ModelDeploymentMonitoringJob can't be resumed. + /// + public class ResumeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Resume request. + public ResumeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest body, string name) : base(service) { - return new DeleteRequest(this.service, name); + Name = name; + Body = body; + InitParameters(); } /// - /// 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`. + /// Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeModelDeploymentMonitoringJobRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "resume"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+name}:resume"; + + /// Initializes Resume parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + }); } + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// Searches Model Monitoring Statistics generated within a given time window. + /// The body of the request. + /// + /// Required. ModelDeploymentMonitoring Job resource name. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + /// + public virtual SearchModelDeploymentMonitoringStatsAnomaliesRequest SearchModelDeploymentMonitoringStatsAnomalies(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest body, string modelDeploymentMonitoringJob) + { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(this.service, body, modelDeploymentMonitoringJob); + } + + /// Searches Model Monitoring Statistics generated within a given time window. + public class SearchModelDeploymentMonitoringStatsAnomaliesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new SearchModelDeploymentMonitoringStatsAnomalies request. + public SearchModelDeploymentMonitoringStatsAnomaliesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest body, string modelDeploymentMonitoringJob) : base(service) { - return new GetRequest(this.service, name); + ModelDeploymentMonitoringJob = modelDeploymentMonitoringJob; + Body = body; + InitParameters(); } /// - /// 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. + /// Required. ModelDeploymentMonitoring Job resource name. Format: + /// `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + [Google.Apis.Util.RequestParameterAttribute("modelDeploymentMonitoringJob", Google.Apis.Util.RequestParameterType.Path)] + public virtual string ModelDeploymentMonitoringJob { get; private set; } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SearchModelDeploymentMonitoringStatsAnomaliesRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "searchModelDeploymentMonitoringStatsAnomalies"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Initializes SearchModelDeploymentMonitoringStatsAnomalies parameter list. + protected override void InitParameters() { - return new ListRequest(this.service, name); + base.InitParameters(); + RequestParameters.Add("modelDeploymentMonitoringJob", new Google.Apis.Discovery.Parameter + { + Name = "modelDeploymentMonitoringJob", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + }); } + } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the Models resource. + public virtual ModelsResource Models { get; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "models" collection of methods. + public class ModelsResource + { + private const string Resource = "models"; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Constructs a new resource. + public ModelsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Evaluations = new EvaluationsResource(service); + Operations = new OperationsResource(service); + } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the Evaluations resource. + public virtual EvaluationsResource Evaluations { get; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// The "evaluations" collection of methods. + public class EvaluationsResource + { + private const string Resource = "evaluations"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Constructs a new resource. + public EvaluationsResource(Google.Apis.Services.IClientService service) { - return new WaitRequest(this.service, name); + this.service = service; + Operations = new OperationsResource(service); + Slices = new SlicesResource(service); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - Name = name; - InitParameters(); + this.service = service; } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - /// - /// 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. + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } - - /// Gets the method name. - public override string MethodName => "wait"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; - - /// Initializes Wait parameter list. - protected override void InitParameters() + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + return new CancelRequest(this.service, name); } - } - } - } - - /// Gets the ReasoningEngines resource. - public virtual ReasoningEnginesResource ReasoningEngines { get; } - - /// The "reasoningEngines" collection of methods. - public class ReasoningEnginesResource - { - private const string Resource = "reasoningEngines"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public ReasoningEnginesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } - - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - Name = name; - InitParameters(); - } + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes Cancel parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + }); + } } - } - - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - Name = name; - InitParameters(); + return new DeleteRequest(this.service, name); } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + }); + } } - } - - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Name = name; - InitParameters(); + return new GetRequest(this.service, name); } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + }); + } } - } - - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - Name = name; - InitParameters(); + return new ListRequest(this.service, name); } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Initializes List parameter list. - protected override void InitParameters() + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Slices resource. + public virtual SlicesResource Slices { get; } + + /// The "slices" collection of methods. + public class SlicesResource + { + private const string Resource = "slices"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SlicesResource(Google.Apis.Services.IClientService service) { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + this.service = service; + } + + /// Imports a list of externally generated EvaluatedAnnotations. + /// The body of the request. + /// + /// Required. The name of the parent ModelEvaluationSlice resource. Format: + /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + /// + public virtual BatchImportRequest BatchImport(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest body, string parent) + { + return new BatchImportRequest(this.service, body, parent); + } + + /// Imports a list of externally generated EvaluatedAnnotations. + public class BatchImportRequest : AiplatformBaseServiceRequest + { + /// Constructs a new BatchImport request. + public BatchImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest body, string parent) : base(service) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the parent ModelEvaluationSlice resource. Format: + /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchImportEvaluatedAnnotationsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "batchImport"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}:batchImport"; + + /// Initializes BatchImport parameter list. + protected override void InitParameters() { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", + }); + } + } + + /// Gets a ModelEvaluationSlice. + /// + /// Required. The name of the ModelEvaluationSlice resource. Format: + /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a ModelEvaluationSlice. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the ModelEvaluationSlice resource. Format: + /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", + }); + } + } + + /// Lists ModelEvaluationSlices in a ModelEvaluation. + /// + /// Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices from. + /// Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists ModelEvaluationSlices in a ModelEvaluation. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices + /// from. Format: + /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// The standard list filter. * `slice.dimension` - for =. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// The standard list page token. Typically obtained via + /// ListModelEvaluationSlicesResponse.next_page_token of the previous + /// ModelService.ListModelEvaluationSlices call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/slices"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Gets a ModelEvaluation. + /// + /// Required. The name of the ModelEvaluation resource. Format: + /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + /// + public virtual GetRequest Get(string name) { - return new WaitRequest(this.service, name); + return new GetRequest(this.service, name); } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + /// Gets a ModelEvaluation. + public class GetRequest : AiplatformBaseServiceRequest { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - /// - /// 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. + /// Required. The name of the ModelEvaluation resource. Format: + /// `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "wait"; + public override string MethodName => "get"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + public override string RestPath => "v1/{+name}"; - /// Initializes Wait parameter list. + /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); @@ -37790,633 +40569,313 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", }); } } - } - - /// Creates a reasoning engine. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the ReasoningEngine in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - /// Creates a reasoning engine. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string parent) : base(service) + /// Imports an externally generated ModelEvaluation. + /// The body of the request. + /// + /// Required. The name of the parent model resource. Format: + /// `projects/{project}/locations/{location}/models/{model}` + /// + public virtual ImportRequest Import(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportModelEvaluationRequest body, string parent) { - Parent = parent; - Body = body; - InitParameters(); + return new ImportRequest(this.service, body, parent); } - /// - /// Required. The resource name of the Location to create the ReasoningEngine in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Imports an externally generated ModelEvaluation. + public class ImportRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Import request. + public ImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportModelEvaluationRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } + /// + /// Required. The name of the parent model resource. Format: + /// `projects/{project}/locations/{location}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportModelEvaluationRequest Body { get; set; } - /// Gets the method name. - public override string MethodName => "create"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "import"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/reasoningEngines"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluations:import"; + + /// Initializes Import parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + }); + } } - } - - /// Deletes a reasoning engine. - /// - /// Required. The name of the ReasoningEngine resource to be deleted. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - /// Deletes a reasoning engine. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Lists ModelEvaluations in a Model. + /// + /// Required. The resource name of the Model to list the ModelEvaluations from. Format: + /// `projects/{project}/locations/{location}/models/{model}` + /// + public virtual ListRequest List(string parent) { - Name = name; - InitParameters(); + return new ListRequest(this.service, parent); } - /// - /// Required. The name of the ReasoningEngine resource to be deleted. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// Optional. If set to true, child resources of this reasoning engine will also be deleted. - /// Otherwise, the request will fail with FAILED_PRECONDITION error when the reasoning engine has - /// undeleted child resources. - /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Lists ModelEvaluations in a Model. + public class ListRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + Parent = parent; + InitParameters(); + } - /// Gets a reasoning engine. - /// - /// Required. The name of the ReasoningEngine resource. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// Required. The resource name of the Model to list the ModelEvaluations from. Format: + /// `projects/{project}/locations/{location}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets a reasoning engine. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// Required. The name of the ReasoningEngine resource. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// The standard list page token. Typically obtained via + /// ListModelEvaluationsResponse.next_page_token of the previous + /// ModelService.ListModelEvaluations call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/evaluations"; + + /// Initializes List parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - /// Lists reasoning engines in a location. - /// - /// Required. The resource name of the Location to list the ReasoningEngines from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Lists reasoning engines in a location. - public class ListRequest : AiplatformBaseServiceRequest + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - Parent = parent; - InitParameters(); + this.service = service; } /// - /// Required. The resource name of the Location to list the ReasoningEngines from. Format: - /// `projects/{project}/locations/{location}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } /// - /// Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Optional. The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/reasoningEngines"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + /// Initializes Cancel parameter list. + protected override void InitParameters() { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + }); + } } - } - - /// Updates a reasoning engine. - /// The body of the request. - /// - /// Identifier. The resource name of the ReasoningEngine. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) - { - return new PatchRequest(this.service, body, name); - } - /// Updates a reasoning engine. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) : base(service) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - Name = name; - Body = body; - InitParameters(); + return new DeleteRequest(this.service, name); } /// - /// Identifier. The resource name of the ReasoningEngine. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Optional. Mask specifying which fields to update. - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + /// Initializes Delete parameter list. + protected override void InitParameters() { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + }); + } } - } - - /// Queries using a reasoning engine. - /// The body of the request. - /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual QueryRequest Query(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) - { - return new QueryRequest(this.service, body, name); - } - /// Queries using a reasoning engine. - public class QueryRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Query request. - public QueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "query"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:query"; - - /// Initializes Query parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", - }); - } - } - - /// Streams queries using a reasoning engine. - /// The body of the request. - /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual StreamQueryRequest StreamQuery(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) - { - return new StreamQueryRequest(this.service, body, name); - } - - /// Streams queries using a reasoning engine. - public class StreamQueryRequest : AiplatformBaseServiceRequest - { - /// Constructs a new StreamQuery request. - public StreamQueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "streamQuery"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:streamQuery"; - - /// Initializes StreamQuery parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", - }); - } - } - } - - /// Gets the Schedules resource. - public virtual SchedulesResource Schedules { get; } - - /// The "schedules" collection of methods. - public class SchedulesResource - { - private const string Resource = "schedules"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public SchedulesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } - - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } - - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "cancel"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; - - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", - }); - } - } - - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", - }); - } - } - - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); + return new GetRequest(this.service, name); } /// @@ -38455,7 +40914,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", }); } } @@ -38529,7 +40988,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -38630,7 +41089,7 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", }); RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { @@ -38644,22 +41103,32 @@ protected override void InitParameters() } } - /// Creates a Schedule. + /// + /// 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. + /// /// The body of the request. /// - /// Required. The resource name of the Location to create the Schedule in. Format: + /// Required. The resource name of the Location into which to copy the Model. Format: /// `projects/{project}/locations/{location}` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string parent) + public virtual CopyRequest Copy(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CopyModelRequest body, string parent) { - return new CreateRequest(this.service, body, parent); + return new CopyRequest(this.service, body, parent); } - /// Creates a Schedule. - public class CreateRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class CopyRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string parent) : base(service) + /// Constructs a new Copy request. + public CopyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CopyModelRequest body, string parent) : base(service) { Parent = parent; Body = body; @@ -38667,28 +41136,28 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai } /// - /// Required. The resource name of the Location to create the Schedule in. Format: + /// Required. The resource name of the Location into which to copy the Model. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CopyModelRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "copy"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/schedules"; + public override string RestPath => "v1/{+parent}/models:copy"; - /// Initializes Create parameter list. + /// Initializes Copy parameter list. protected override void InitParameters() { base.InitParameters(); @@ -38703,17 +41172,23 @@ protected override void InitParameters() } } - /// Deletes a Schedule. + /// + /// Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the + /// model in its deployed_models field. + /// /// - /// Required. The name of the Schedule resource to be deleted. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// Required. The name of the Model resource to be deleted. Format: + /// `projects/{project}/locations/{location}/models/{model}` /// public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a Schedule. + /// + /// Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the + /// model in its deployed_models field. + /// public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -38724,8 +41199,8 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : } /// - /// Required. The name of the Schedule resource to be deleted. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// Required. The name of the Model resource to be deleted. Format: + /// `projects/{project}/locations/{location}/models/{model}` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -38749,48 +41224,56 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); } } - /// Gets a Schedule. + /// + /// 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. + /// /// - /// Required. The name of the Schedule resource. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// Required. The name of the model version to be deleted, with a version ID explicitly included. + /// Example: `projects/{project}/locations/{location}/models/{model}@1234` /// - public virtual GetRequest Get(string name) + public virtual DeleteVersionRequest DeleteVersion(string name) { - return new GetRequest(this.service, name); + return new DeleteVersionRequest(this.service, name); } - /// Gets a Schedule. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class DeleteVersionRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new DeleteVersion request. + public DeleteVersionRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// - /// Required. The name of the Schedule resource. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// Required. The name of the model version to be deleted, with a version ID explicitly included. + /// Example: `projects/{project}/locations/{location}/models/{model}@1234` /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "deleteVersion"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+name}:deleteVersion"; - /// Initializes Get parameter list. + /// Initializes DeleteVersion parameter list. protected override void InitParameters() { base.InitParameters(); @@ -38800,192 +41283,127 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); } } - /// Lists Schedules in a Location. - /// - /// Required. The resource name of the Location to list the Schedules from. Format: - /// `projects/{project}/locations/{location}` + /// + /// 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. + /// + /// The body of the request. + /// + /// 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. /// - public virtual ListRequest List(string parent) + public virtual ExportRequest Export(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportModelRequest body, string name) { - return new ListRequest(this.service, parent); + return new ExportRequest(this.service, body, name); } - /// Lists Schedules in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class ExportRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Constructs a new Export request. + public ExportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportModelRequest body, string name) : base(service) { - Parent = parent; + Name = name; + Body = body; InitParameters(); } /// - /// Required. The resource name of the Location to list the Schedules from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// - /// Lists the Schedules that match the filter expression. The following fields are supported: * - /// `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * `state`: Supports `=` and - /// `!=` comparisons. * `request`: Supports existence of the check. (e.g. - /// `create_pipeline_job_request:*` --&gt; Schedule has create_pipeline_job_request). * - /// `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` - /// comparisons. Values must be in RFC 3339 format. * `start_time`: Supports `=`, `!=`, `&lt;`, - /// `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 format. * - /// `end_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, `&gt;=` comparisons and - /// `:*` existence check. Values must be in RFC 3339 format. * `next_run_time`: Supports `=`, `!=`, - /// `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 - /// format. Filter expressions can be combined together using logical operators (`NOT`, `AND` - /// &amp; `OR`). The syntax to define filter expression is based on https://google.aip.dev/160. - /// Examples: * `state="ACTIVE" AND display_name:"my_schedule_*"` * `NOT display_name="my_schedule"` - /// * `create_time&gt;"2021-05-18T00:00:00Z"` * `end_time&gt;"2021-05-18T00:00:00Z" OR NOT - /// end_time:*` * `create_pipeline_job_request:*` - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// - /// 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. For - /// example, using "create_time desc, end_time" will order results by create time in descending - /// order, and if there are multiple schedules 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 with create_time - /// in descending order. Supported fields: * `create_time` * `start_time` * `end_time` * - /// `next_run_time` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page size. Default to 100 if not specified. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportModelRequest Body { get; set; } - /// - /// The standard list page token. Typically obtained via ListSchedulesResponse.next_page_token of - /// the previous ScheduleService.ListSchedules call. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "export"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/schedules"; + public override string RestPath => "v1/{+name}:export"; - /// Initializes List parameter list. + /// Initializes Export parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); } } - /// - /// Updates an active or paused Schedule. When the Schedule is updated, new runs will be scheduled - /// starting from the updated next execution time after the update time based on the time_specification - /// in the updated Schedule. All unstarted runs before the update time will be skipped while already - /// created runs will NOT be paused or canceled. - /// - /// The body of the request. - /// Immutable. The resource name of the Schedule. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string name) + /// Gets a Model. + /// + /// 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. + /// + public virtual GetRequest Get(string name) { - return new PatchRequest(this.service, body, name); + return new GetRequest(this.service, name); } - /// - /// Updates an active or paused Schedule. When the Schedule is updated, new runs will be scheduled - /// starting from the updated next execution time after the update time based on the time_specification - /// in the updated Schedule. All unstarted runs before the update time will be skipped while already - /// created runs will NOT be paused or canceled. - /// - public class PatchRequest : AiplatformBaseServiceRequest + /// Gets a Model. + public class GetRequest : AiplatformBaseServiceRequest { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string name) : base(service) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// Immutable. The resource name of the Schedule. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - /// - /// Required. The update mask applies to the resource. See google.protobuf.FieldMask. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "patch"; + public override string MethodName => "get"; /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + public override string HttpMethod => "GET"; /// Gets the REST path. public override string RestPath => "v1/{+name}"; - /// Initializes Patch parameter list. + /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); @@ -38995,641 +41413,523 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); } } /// - /// Pauses a Schedule. Will mark Schedule.state to 'PAUSED'. If the schedule is paused, no new runs will - /// be created. Already created runs will NOT be paused or canceled. + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. /// - /// The body of the request. - /// - /// Required. The name of the Schedule resource to be paused. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + /// 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. /// - public virtual PauseRequest Pause(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseScheduleRequest body, string name) + public virtual GetIamPolicyRequest GetIamPolicy(string resource) { - return new PauseRequest(this.service, body, name); + return new GetIamPolicyRequest(this.service, resource); } /// - /// Pauses a Schedule. Will mark Schedule.state to 'PAUSED'. If the schedule is paused, no new runs will - /// be created. Already created runs will NOT be paused or canceled. + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. /// - public class PauseRequest : AiplatformBaseServiceRequest + public class GetIamPolicyRequest : AiplatformBaseServiceRequest { - /// Constructs a new Pause request. - public PauseRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseScheduleRequest body, string name) : base(service) + /// Constructs a new GetIamPolicy request. + public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) { - Name = name; - Body = body; + Resource = resource; InitParameters(); } /// - /// Required. The name of the Schedule resource to be paused. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseScheduleRequest Body { get; set; } + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } /// Gets the method name. - public override string MethodName => "pause"; + public override string MethodName => "getIamPolicy"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:pause"; + public override string RestPath => "v1/{+resource}:getIamPolicy"; - /// Initializes Pause parameter list. + /// Initializes GetIamPolicy parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "resource", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + }); + RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + { + Name = "options.requestedPolicyVersion", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// - /// Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only - /// paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting - /// from the next execution time after the current time based on the time_specification in the Schedule. - /// If Schedule.catch_up is set up true, all missed runs will be scheduled for backfill first. - /// - /// The body of the request. - /// - /// Required. The name of the Schedule resource to be resumed. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// Lists Models in a Location. + /// + /// Required. The resource name of the Location to list the Models from. Format: + /// `projects/{project}/locations/{location}` /// - public virtual ResumeRequest Resume(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeScheduleRequest body, string name) + public virtual ListRequest List(string parent) { - return new ResumeRequest(this.service, body, name); + return new ListRequest(this.service, parent); } - /// - /// Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only - /// paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting - /// from the next execution time after the current time based on the time_specification in the Schedule. - /// If Schedule.catch_up is set up true, all missed runs will be scheduled for backfill first. - /// - public class ResumeRequest : AiplatformBaseServiceRequest + /// Lists Models in a Location. + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new Resume request. - public ResumeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeScheduleRequest body, string name) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Name = name; - Body = body; + Parent = parent; InitParameters(); } /// - /// Required. The name of the Schedule resource to be resumed. Format: - /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// Required. The resource name of the Location to list the Models from. Format: + /// `projects/{project}/locations/{location}` /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeScheduleRequest Body { get; set; } + /// + /// 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"`. * `base_model_name` only supports = Some examples: * `model=1234` * + /// `displayName="myDisplayName"` * `labels.myKey="myValue"` * `baseModelName="text-bison"` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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`. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// The standard list page token. Typically obtained via ListModelsResponse.next_page_token of the + /// previous ModelService.ListModels call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } /// Gets the method name. - public override string MethodName => "resume"; + public override string MethodName => "list"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:resume"; + public override string RestPath => "v1/{+parent}/models"; - /// Initializes Resume parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - } - - /// Gets the SpecialistPools resource. - public virtual SpecialistPoolsResource SpecialistPools { get; } - - /// The "specialistPools" collection of methods. - public class SpecialistPoolsResource - { - private const string Resource = "specialistPools"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - /// Constructs a new resource. - public SpecialistPoolsResource(Google.Apis.Services.IClientService service) + /// Lists checkpoints of the specified model version. + /// + /// Required. The name of the model version to list checkpoints for. + /// `projects/{project}/locations/{location}/models/{model}@{version}` 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 latest version will be used. + /// + public virtual ListCheckpointsRequest ListCheckpoints(string name) { - this.service = service; - Operations = new OperationsResource(service); + return new ListCheckpointsRequest(this.service, name); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// Lists checkpoints of the specified model version. + public class ListCheckpointsRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// Constructs a new ListCheckpoints request. + public ListCheckpointsRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } /// - /// 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`. + /// Required. The name of the model version to list checkpoints for. + /// `projects/{project}/locations/{location}/models/{model}@{version}` 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 latest version will be used. /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } /// - /// 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`. + /// Optional. The standard list page token. Typically obtained via next_page_token of the previous + /// ListModelVersionCheckpoints call. /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "listCheckpoints"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:listCheckpoints"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes ListCheckpoints parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// Lists versions of the specified model. + /// Required. The name of the model to list versions for. + public virtual ListVersionsRequest ListVersions(string name) + { + return new ListVersionsRequest(this.service, name); + } + + /// Lists versions of the specified model. + public class ListVersionsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ListVersions request. + public ListVersionsRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new DeleteRequest(this.service, name); + Name = name; + InitParameters(); } + /// Required. The name of the model to list versions for. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// 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`. + /// 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"` /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", - }); - } - } + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } /// - /// 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. + /// 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`. /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } /// - /// 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. + /// The standard list page token. Typically obtained via next_page_token of the previous + /// ListModelVersions call. /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// Gets the method name. - public override string MethodName => "get"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "listVersions"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:listVersions"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// Initializes ListVersions parameter list. + protected override void InitParameters() { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - InitParameters(); - } - - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; - - /// Initializes List parameter list. - protected override void InitParameters() + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } - - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } - - /// Gets the method name. - public override string MethodName => "wait"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; - - /// Initializes Wait parameter list. - protected override void InitParameters() + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Creates a SpecialistPool. + /// Merges a set of aliases for a Model version. /// The body of the request. - /// - /// Required. The parent Project name for the new SpecialistPool. The form is - /// `projects/{project}/locations/{location}`. + /// + /// Required. The name of the model version to merge aliases, with a version ID explicitly included. + /// Example: `projects/{project}/locations/{location}/models/{model}@1234` /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string parent) + public virtual MergeVersionAliasesRequest MergeVersionAliases(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MergeVersionAliasesRequest body, string name) { - return new CreateRequest(this.service, body, parent); + return new MergeVersionAliasesRequest(this.service, body, name); } - /// Creates a SpecialistPool. - public class CreateRequest : AiplatformBaseServiceRequest + /// Merges a set of aliases for a Model version. + public class MergeVersionAliasesRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string parent) : base(service) + /// Constructs a new MergeVersionAliases request. + public MergeVersionAliasesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MergeVersionAliasesRequest body, string name) : base(service) { - Parent = parent; + Name = name; Body = body; InitParameters(); } /// - /// Required. The parent Project name for the new SpecialistPool. The form is - /// `projects/{project}/locations/{location}`. + /// Required. The name of the model version to merge aliases, with a version ID explicitly included. + /// Example: `projects/{project}/locations/{location}/models/{model}@1234` /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1MergeVersionAliasesRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "mergeVersionAliases"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/specialistPools"; + public override string RestPath => "v1/{+name}:mergeVersionAliases"; - /// Initializes Create parameter list. + /// Initializes MergeVersionAliases parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); } } - /// Deletes a SpecialistPool as well as all Specialists in the pool. - /// - /// Required. The resource name of the SpecialistPool to delete. Format: - /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` - /// - public virtual DeleteRequest Delete(string name) + /// Updates a Model. + /// The body of the request. + /// The resource name of the Model. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Model body, string name) { - return new DeleteRequest(this.service, name); + return new PatchRequest(this.service, body, name); } - /// Deletes a SpecialistPool as well as all Specialists in the pool. - public class DeleteRequest : AiplatformBaseServiceRequest + /// Updates a Model. + public class PatchRequest : AiplatformBaseServiceRequest { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Model body, string name) : base(service) { Name = name; + Body = body; InitParameters(); } - /// - /// Required. The resource name of the SpecialistPool to delete. Format: - /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` - /// + /// The resource name of the Model. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// - /// If set to true, any specialist managers in this SpecialistPool will also be deleted. (Otherwise, - /// the request will only work if the SpecialistPool has no specialist managers.) + /// Required. The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Model Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "delete"; + public override string MethodName => "patch"; /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + public override string HttpMethod => "PATCH"; /// Gets the REST path. public override string RestPath => "v1/{+name}"; - /// Initializes Delete parameter list. + /// Initializes Patch parameter list. protected override void InitParameters() { base.InitParameters(); @@ -39639,11 +41939,11 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { - Name = "force", + Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -39652,139 +41952,144 @@ protected override void InitParameters() } } - /// Gets a SpecialistPool. - /// - /// Required. The name of the SpecialistPool resource. The form is - /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + /// The body of the request. + /// + /// 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. /// - public virtual GetRequest Get(string name) + public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) { - return new GetRequest(this.service, name); + return new SetIamPolicyRequest(this.service, body, resource); } - /// Gets a SpecialistPool. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + public class SetIamPolicyRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new SetIamPolicy request. + public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) { - Name = name; + Resource = resource; + Body = body; InitParameters(); } /// - /// Required. The name of the SpecialistPool resource. The form is - /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "setIamPolicy"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+resource}:setIamPolicy"; - /// Initializes Get parameter list. + /// Initializes SetIamPolicy parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "resource", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); } } - /// Lists SpecialistPools in a Location. - /// - /// Required. The name of the SpecialistPool's parent resource. Format: - /// `projects/{project}/locations/{location}` + /// + /// 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. + /// + /// + /// 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. /// - public virtual ListRequest List(string parent) + public virtual TestIamPermissionsRequest TestIamPermissions(string resource) { - return new ListRequest(this.service, parent); + return new TestIamPermissionsRequest(this.service, resource); } - /// Lists SpecialistPools in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class TestIamPermissionsRequest : AiplatformBaseServiceRequest { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + /// Constructs a new TestIamPermissions request. + public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) { - Parent = parent; + Resource = resource; InitParameters(); } /// - /// Required. The name of the SpecialistPool's parent resource. Format: - /// `projects/{project}/locations/{location}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } /// - /// The standard list page token. Typically obtained by ListSpecialistPoolsResponse.next_page_token - /// of the previous SpecialistPoolService.ListSpecialistPools call. Return first page if empty. + /// 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). /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// Mask specifying which fields to read. FieldMask represents a set of - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable Permissions { get; set; } /// Gets the method name. - public override string MethodName => "list"; + public override string MethodName => "testIamPermissions"; /// Gets the HTTP method. - public override string HttpMethod => "GET"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/specialistPools"; + public override string RestPath => "v1/{+resource}:testIamPermissions"; - /// Initializes List parameter list. + /// Initializes TestIamPermissions parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "resource", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "permissions", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -39793,237 +42098,172 @@ protected override void InitParameters() } } - /// Updates a SpecialistPool. + /// Incrementally update the dataset used for an examples model. /// The body of the request. - /// Required. The resource name of the SpecialistPool. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string name) + /// + /// Required. The resource name of the Model to update. Format: + /// `projects/{project}/locations/{location}/models/{model}` + /// + public virtual UpdateExplanationDatasetRequest UpdateExplanationDataset(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest body, string model) { - return new PatchRequest(this.service, body, name); + return new UpdateExplanationDatasetRequest(this.service, body, model); } - /// Updates a SpecialistPool. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string name) : base(service) + /// Incrementally update the dataset used for an examples model. + public class UpdateExplanationDatasetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new UpdateExplanationDataset request. + public UpdateExplanationDatasetRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest body, string model) : base(service) { - Name = name; + Model = model; Body = body; InitParameters(); } - /// Required. The resource name of the SpecialistPool. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Required. The update mask applies to the resource. - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// Required. The resource name of the Model to update. Format: + /// `projects/{project}/locations/{location}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpdateExplanationDatasetRequest Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; /// Gets the method name. - public override string MethodName => "patch"; + public override string MethodName => "updateExplanationDataset"; /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+model}:updateExplanationDataset"; - /// Initializes Patch parameter list. + /// Initializes UpdateExplanationDataset parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "model", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/models/[^/]+$", }); } } - } - - /// Gets the Studies resource. - public virtual StudiesResource Studies { get; } - - /// The "studies" collection of methods. - public class StudiesResource - { - private const string Resource = "studies"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - /// Constructs a new resource. - public StudiesResource(Google.Apis.Services.IClientService service) + /// Uploads a Model artifact into Vertex AI. + /// The body of the request. + /// + /// Required. The resource name of the Location into which to upload the Model. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual UploadRequest Upload(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadModelRequest body, string parent) { - this.service = service; - Operations = new OperationsResource(service); - Trials = new TrialsResource(service); + return new UploadRequest(this.service, body, parent); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// Uploads a Model artifact into Vertex AI. + public class UploadRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// Constructs a new Upload request. + public UploadRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadModelRequest body, string parent) : base(service) { - this.service = service; + Parent = parent; + Body = body; + InitParameters(); } /// - /// 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`. + /// Required. The resource name of the Location into which to upload the Model. Format: + /// `projects/{project}/locations/{location}` /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UploadModelRequest Body { get; set; } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "upload"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/models:upload"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Upload parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", - }); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); } + } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets the NasJobs resource. + public virtual NasJobsResource NasJobs { get; } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The "nasJobs" collection of methods. + public class NasJobsResource + { + private const string Resource = "nasJobs"; - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the method name. - public override string MethodName => "delete"; + /// Constructs a new resource. + public NasJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + NasTrialDetails = new NasTrialDetailsResource(service); + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the NasTrialDetails resource. + public virtual NasTrialDetailsResource NasTrialDetails { get; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The "nasTrialDetails" collection of methods. + public class NasTrialDetailsResource + { + private const string Resource = "nasTrialDetails"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", - }); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public NasTrialDetailsResource(Google.Apis.Services.IClientService service) + { + this.service = service; } - /// - /// 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. - /// - /// The name of the operation resource. + /// Gets a NasTrialDetail. + /// + /// Required. The name of the NasTrialDetail resource. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + /// public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// Gets a NasTrialDetail. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -40032,7 +42272,10 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// The name of the operation resource. + /// + /// Required. The name of the NasTrialDetail resource. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -40055,60 +42298,49 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+/nasTrialDetails/[^/]+$", }); } } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// List top NasTrialDetails of a NasJob. + /// + /// Required. The name of the NasJob resource. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// + public virtual ListRequest List(string parent) { - return new ListRequest(this.service, name); + return new ListRequest(this.service, parent); } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// List top NasTrialDetails of a NasJob. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { - Name = name; + Parent = parent; InitParameters(); } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Required. The name of the NasJob resource. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. + /// The standard list page token. Typically obtained via + /// ListNasTrialDetailsResponse.next_page_token of the previous JobService.ListNasTrialDetails + /// call. /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -40117,27 +42349,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + public override string RestPath => "v1/{+parent}/nasTrialDetails"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - Name = "name", + Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { @@ -40155,654 +42379,438 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); } } + } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// + /// 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`. + /// + /// The body of the request. + /// + /// Required. The name of the NasJob to cancel. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelNasJobRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelNasJobRequest body, string name) : base(service) { - return new WaitRequest(this.service, name); + Name = name; + Body = body; + InitParameters(); } /// - /// 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. + /// Required. The name of the NasJob to cancel. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelNasJobRequest Body { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Wait parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + }); } } - /// Gets the Trials resource. - public virtual TrialsResource Trials { get; } - - /// The "trials" collection of methods. - public class TrialsResource + /// Creates a NasJob + /// The body of the request. + /// + /// Required. The resource name of the Location to create the NasJob in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NasJob body, string parent) { - private const string Resource = "trials"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new CreateRequest(this.service, body, parent); + } - /// Constructs a new resource. - public TrialsResource(Google.Apis.Services.IClientService service) + /// Creates a NasJob + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NasJob body, string parent) : base(service) { - this.service = service; - Operations = new OperationsResource(service); + Parent = parent; + Body = body; + InitParameters(); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// + /// Required. The resource name of the Location to create the NasJob in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NasJob Body { get; set; } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } - - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "cancel"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/nasJobs"; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - return new DeleteRequest(this.service, name); - } + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Deletes a NasJob. + /// + /// Required. The name of the NasJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Deletes a NasJob. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// Required. The name of the NasJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new GetRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + }); + } + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets a NasJob + /// + /// Required. The name of the NasJob resource. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets a NasJob + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// + /// Required. The name of the NasJob resource. Format: + /// `projects/{project}/locations/{location}/nasJobs/{nas_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new ListRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + }); + } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Lists NasJobs in a Location. + /// + /// Required. The resource name of the Location to list the NasJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Lists NasJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Required. The resource name of the Location to list the NasJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, + /// `!=`,`&lt;`, `&lt;=`,`&gt;`, `&gt;=` 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&gt;"2021-05-18T00:00:00Z"` * `labels.keyA=valueA` * `labels.keyB:*` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// + /// The standard list page token. Typically obtained via ListNasJobsResponse.next_page_token of the + /// previous JobService.ListNasJobs call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/nasJobs"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - return new WaitRequest(this.service, name); - } - - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// Gets the NotebookExecutionJobs resource. + public virtual NotebookExecutionJobsResource NotebookExecutionJobs { get; } - /// Gets the method name. - public override string MethodName => "wait"; + /// The "notebookExecutionJobs" collection of methods. + public class NotebookExecutionJobsResource + { + private const string Resource = "notebookExecutionJobs"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Constructs a new resource. + public NotebookExecutionJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } - - /// - /// Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been - /// taken before the Trial is complete. - /// - /// The body of the request. - /// - /// Required. The name of the trial to add measurement. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// - public virtual AddTrialMeasurementRequest AddTrialMeasurement(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddTrialMeasurementRequest body, string trialName) - { - return new AddTrialMeasurementRequest(this.service, body, trialName); - } - - /// - /// Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been - /// taken before the Trial is complete. - /// - public class AddTrialMeasurementRequest : AiplatformBaseServiceRequest - { - /// Constructs a new AddTrialMeasurement request. - public AddTrialMeasurementRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddTrialMeasurementRequest body, string trialName) : base(service) - { - TrialName = trialName; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the trial to add measurement. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// - [Google.Apis.Util.RequestParameterAttribute("trialName", Google.Apis.Util.RequestParameterType.Path)] - public virtual string TrialName { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddTrialMeasurementRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "addTrialMeasurement"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+trialName}:addTrialMeasurement"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes AddTrialMeasurement parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("trialName", new Google.Apis.Discovery.Parameter - { - Name = "trialName", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", - }); - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; } /// - /// Checks whether a Trial should stop or not. Returns a long-running operation. When the operation - /// is successful, it will contain a CheckTrialEarlyStoppingStateResponse. + /// 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`. /// - /// The body of the request. - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// - public virtual CheckTrialEarlyStoppingStateRequest CheckTrialEarlyStoppingState(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest body, string trialName) + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CheckTrialEarlyStoppingStateRequest(this.service, body, trialName); + return new CancelRequest(this.service, name); } /// - /// Checks whether a Trial should stop or not. Returns a long-running operation. When the operation - /// is successful, it will contain a CheckTrialEarlyStoppingStateResponse. + /// 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`. /// - public class CheckTrialEarlyStoppingStateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new CheckTrialEarlyStoppingState request. - public CheckTrialEarlyStoppingStateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest body, string trialName) : base(service) - { - TrialName = trialName; - Body = body; - InitParameters(); - } - - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// - [Google.Apis.Util.RequestParameterAttribute("trialName", Google.Apis.Util.RequestParameterType.Path)] - public virtual string TrialName { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "checkTrialEarlyStoppingState"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+trialName}:checkTrialEarlyStoppingState"; - - /// Initializes CheckTrialEarlyStoppingState parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("trialName", new Google.Apis.Discovery.Parameter - { - Name = "trialName", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", - }); - } - } - - /// Marks a Trial as complete. - /// The body of the request. - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// - public virtual CompleteRequest Complete(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CompleteTrialRequest body, string name) - { - return new CompleteRequest(this.service, body, name); - } - - /// Marks a Trial as complete. - public class CompleteRequest : AiplatformBaseServiceRequest + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new Complete request. - public CompleteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CompleteTrialRequest body, string name) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// + /// The name of the operation resource to be cancelled. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CompleteTrialRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "complete"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+name}:complete"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Complete parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); @@ -40812,81 +42820,27 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", - }); - } - } - - /// Adds a user provided Trial to a Study. - /// The body of the request. - /// - /// Required. The resource name of the Study to create the Trial in. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Trial body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - - /// Adds a user provided Trial to a Study. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Trial body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Study to create the Trial in. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Trial Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "create"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/trials"; - - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", }); } } - /// Deletes a Trial. - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a Trial. + /// + /// 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`. + /// public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. @@ -40896,10 +42850,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -40922,23 +42873,26 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", }); } } - /// Gets a Trial. - /// - /// Required. The name of the Trial resource. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a Trial. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -40947,10 +42901,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the Trial resource. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -40973,52 +42924,61 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", }); } } - /// Lists the Trials associated with a Study. - /// - /// Required. The resource name of the Study to list the Trial from. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists the Trials associated with a Study. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Study to list the Trial from. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Optional. The number of Trials to retrieve per "page" of results. If unspecified, the - /// service will pick an appropriate default. - /// + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// Optional. A page token to request the next page of results. If unspecified, there are no - /// subsequent pages. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -41026,19 +42986,27 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/trials"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { @@ -41056,228 +43024,130 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } /// - /// Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for - /// single-objective Study. The definition of pareto-optimal can be checked in wiki page. - /// https://en.wikipedia.org/wiki/Pareto_efficiency + /// 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. /// - /// The body of the request. - /// Required. The name of the Study that the optimal Trial belongs to. - public virtual ListOptimalTrialsRequest ListOptimalTrials(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ListOptimalTrialsRequest body, string parent) + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new ListOptimalTrialsRequest(this.service, body, parent); + return new WaitRequest(this.service, name); } /// - /// Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for - /// single-objective Study. The definition of pareto-optimal can be checked in wiki page. - /// https://en.wikipedia.org/wiki/Pareto_efficiency + /// 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. /// - public class ListOptimalTrialsRequest : AiplatformBaseServiceRequest + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new ListOptimalTrials request. - public ListOptimalTrialsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ListOptimalTrialsRequest body, string parent) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// Required. The name of the Study that the optimal Trial belongs to. - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ListOptimalTrialsRequest Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "listOptimalTrials"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/trials:listOptimalTrials"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes ListOptimalTrials parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } - /// Stops a Trial. - /// The body of the request. - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// - public virtual StopRequest Stop(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopTrialRequest body, string name) - { - return new StopRequest(this.service, body, name); - } + /// Creates a NotebookExecutionJob. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the NotebookExecutionJob. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookExecutionJob body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// Stops a Trial. - public class StopRequest : AiplatformBaseServiceRequest + /// Creates a NotebookExecutionJob. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookExecutionJob body, string parent) : base(service) { - /// Constructs a new Stop request. - public StopRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopTrialRequest body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Required. The Trial's name. Format: - /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopTrialRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "stop"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:stop"; - - /// Initializes Stop parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", - }); - } - } - - /// - /// Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns - /// a long-running operation associated with the generation of Trial suggestions. When this - /// long-running operation succeeds, it will contain a SuggestTrialsResponse. - /// - /// The body of the request. - /// - /// Required. The project and location that the Study belongs to. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// - public virtual SuggestRequest Suggest(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SuggestTrialsRequest body, string parent) - { - return new SuggestRequest(this.service, body, parent); - } - - /// - /// Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns - /// a long-running operation associated with the generation of Trial suggestions. When this - /// long-running operation succeeds, it will contain a SuggestTrialsResponse. - /// - public class SuggestRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Suggest request. - public SuggestRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SuggestTrialsRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The project and location that the Study belongs to. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SuggestTrialsRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "suggest"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/trials:suggest"; - - /// Initializes Suggest parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", - }); - } - } - } - - /// Creates a Study. A resource name will be generated after creation of the Study. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the CustomJob in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Study body, string parent) - { - return new CreateRequest(this.service, body, parent); - } - - /// Creates a Study. A resource name will be generated after creation of the Study. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Study body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Parent = parent; + Body = body; + InitParameters(); + } /// - /// Required. The resource name of the Location to create the CustomJob in. Format: + /// Required. The resource name of the Location to create the NotebookExecutionJob. Format: /// `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } + /// Optional. User specified ID for the NotebookExecutionJob. + [Google.Apis.Util.RequestParameterAttribute("notebookExecutionJobId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string NotebookExecutionJobId { get; set; } + /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Study Body { get; set; } + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookExecutionJob Body { get; set; } /// Returns the body of the request. protected override object GetBody() => Body; @@ -41289,7 +43159,7 @@ public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Ai public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/studies"; + public override string RestPath => "v1/{+parent}/notebookExecutionJobs"; /// Initializes Create parameter list. protected override void InitParameters() @@ -41303,21 +43173,26 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); + RequestParameters.Add("notebookExecutionJobId", new Google.Apis.Discovery.Parameter + { + Name = "notebookExecutionJobId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } - /// Deletes a Study. - /// - /// Required. The name of the Study resource to be deleted. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// + /// Deletes a NotebookExecutionJob. + /// Required. The name of the NotebookExecutionJob resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a Study. - public class DeleteRequest : AiplatformBaseServiceRequest + /// Deletes a NotebookExecutionJob. + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -41326,10 +43201,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The name of the Study resource to be deleted. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// + /// Required. The name of the NotebookExecutionJob resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -41352,23 +43224,20 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", }); } } - /// Gets a Study by name. - /// - /// Required. The name of the Study resource. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// + /// Gets a NotebookExecutionJob. + /// Required. The name of the NotebookExecutionJob resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a Study by name. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets a NotebookExecutionJob. + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -41377,13 +43246,30 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the Study resource. Format: - /// `projects/{project}/locations/{location}/studies/{study}` - /// + /// Required. The name of the NotebookExecutionJob resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } + /// Optional. The NotebookExecutionJob view. Defaults to BASIC. + [Google.Apis.Util.RequestParameterAttribute("view", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable View { get; set; } + + /// Optional. The NotebookExecutionJob view. Defaults to BASIC. + public enum ViewEnum + { + /// When unspecified, the API defaults to the BASIC view. + [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED")] + NOTEBOOKEXECUTIONJOBVIEWUNSPECIFIED = 0, + + /// Includes all fields except for direct notebook inputs. + [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_BASIC")] + NOTEBOOKEXECUTIONJOBVIEWBASIC = 1, + + /// Includes all fields. + [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_FULL")] + NOTEBOOKEXECUTIONJOBVIEWFULL = 2, + } + /// Gets the method name. public override string MethodName => "get"; @@ -41403,14 +43289,22 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", + }); + RequestParameters.Add("view", new Google.Apis.Discovery.Parameter + { + Name = "view", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } - /// Lists all the studies in a region for an associated project. + /// Lists NotebookExecutionJobs in a Location. /// - /// Required. The resource name of the Location to list the Study from. Format: + /// Required. The resource name of the Location from which to list the NotebookExecutionJobs. Format: /// `projects/{project}/locations/{location}` /// public virtual ListRequest List(string parent) @@ -41418,8 +43312,8 @@ public virtual ListRequest List(string parent) return new ListRequest(this.service, parent); } - /// Lists all the studies in a region for an associated project. - public class ListRequest : AiplatformBaseServiceRequest + /// Lists NotebookExecutionJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) @@ -41429,26 +43323,63 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : } /// - /// Required. The resource name of the Location to list the Study from. Format: - /// `projects/{project}/locations/{location}` + /// Required. The resource name of the Location from which to list the NotebookExecutionJobs. + /// Format: `projects/{project}/locations/{location}` /// [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// - /// Optional. The maximum number of studies to return per "page" of results. If unspecified, service - /// will pick an appropriate default. + /// Optional. An expression for filtering the results of the request. For field names both + /// snake_case and camelCase are supported. * `notebookExecutionJob` supports = and !=. + /// `notebookExecutionJob` represents the NotebookExecutionJob ID. * `displayName` supports = and != + /// and regex. * `schedule` supports = and != and regex. Some examples: * + /// `notebookExecutionJob="123"` * `notebookExecutionJob="my-execution-job"` * + /// `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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`. /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// Optional. The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } /// - /// Optional. A page token to request the next page of results. If unspecified, there are no - /// subsequent pages. + /// Optional. The standard list page token. Typically obtained via + /// ListNotebookExecutionJobsResponse.next_page_token of the previous + /// NotebookService.ListNotebookExecutionJobs call. /// [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// Optional. The NotebookExecutionJob view. Defaults to BASIC. + [Google.Apis.Util.RequestParameterAttribute("view", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable View { get; set; } + + /// Optional. The NotebookExecutionJob view. Defaults to BASIC. + public enum ViewEnum + { + /// When unspecified, the API defaults to the BASIC view. + [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED")] + NOTEBOOKEXECUTIONJOBVIEWUNSPECIFIED = 0, + + /// Includes all fields except for direct notebook inputs. + [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_BASIC")] + NOTEBOOKEXECUTIONJOBVIEWBASIC = 1, + + /// Includes all fields. + [Google.Apis.Util.StringValueAttribute("NOTEBOOK_EXECUTION_JOB_VIEW_FULL")] + NOTEBOOKEXECUTIONJOBVIEWFULL = 2, + } + /// Gets the method name. public override string MethodName => "list"; @@ -41456,7 +43387,7 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/studies"; + public override string RestPath => "v1/{+parent}/notebookExecutionJobs"; /// Initializes List parameter list. protected override void InitParameters() @@ -41470,6 +43401,22 @@ protected override void InitParameters() DefaultValue = null, Pattern = @"^projects/[^/]+/locations/[^/]+$", }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", @@ -41486,4301 +43433,20177 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - } - } - - /// - /// Looks a study up using the user-defined display_name field instead of the fully qualified resource - /// name. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location to get the Study from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual LookupRequest Lookup(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1LookupStudyRequest body, string parent) - { - return new LookupRequest(this.service, body, parent); - } - - /// - /// Looks a study up using the user-defined display_name field instead of the fully qualified resource - /// name. - /// - public class LookupRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Lookup request. - public LookupRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1LookupStudyRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Location to get the Study from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1LookupStudyRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "lookup"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/studies:lookup"; - - /// Initializes Lookup parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("view", new Google.Apis.Discovery.Parameter { - Name = "parent", - IsRequired = true, - ParameterType = "path", + Name = "view", + IsRequired = false, + ParameterType = "query", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = null, }); } } } - /// Gets the Tensorboards resource. - public virtual TensorboardsResource Tensorboards { get; } + /// Gets the NotebookRuntimeTemplates resource. + public virtual NotebookRuntimeTemplatesResource NotebookRuntimeTemplates { get; } - /// The "tensorboards" collection of methods. - public class TensorboardsResource + /// The "notebookRuntimeTemplates" collection of methods. + public class NotebookRuntimeTemplatesResource { - private const string Resource = "tensorboards"; + private const string Resource = "notebookRuntimeTemplates"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public TensorboardsResource(Google.Apis.Services.IClientService service) + public NotebookRuntimeTemplatesResource(Google.Apis.Services.IClientService service) { this.service = service; - Experiments = new ExperimentsResource(service); Operations = new OperationsResource(service); } - /// Gets the Experiments resource. - public virtual ExperimentsResource Experiments { get; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The "experiments" collection of methods. - public class ExperimentsResource + /// The "operations" collection of methods. + public class OperationsResource { - private const string Resource = "experiments"; + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public ExperimentsResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; - Operations = new OperationsResource(service); - Runs = new RunsResource(service); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + return new CancelRequest(this.service, name); + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - this.service = service; + Name = name; + InitParameters(); } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() { - return new CancelRequest(this.service, name); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); } + } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Cancel parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); } + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "get"; + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", - }); - } - } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that - /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can - /// only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result - /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or - /// product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new WaitRequest(this.service, name); + Name = name; + InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// 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. + /// 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. /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Wait parameter list. - protected override void InitParameters() + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } + } - /// Gets the Runs resource. - public virtual RunsResource Runs { get; } + /// Creates a NotebookRuntimeTemplate. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string parent) + { + return new CreateRequest(this.service, body, parent); + } - /// The "runs" collection of methods. - public class RunsResource + /// Creates a NotebookRuntimeTemplate. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string parent) : base(service) { - private const string Resource = "runs"; + Parent = parent; + Body = body; + InitParameters(); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// + /// Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Constructs a new resource. - public RunsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - TimeSeries = new TimeSeriesResource(service); - } + /// Optional. User specified ID for the notebook runtime template. + [Google.Apis.Util.RequestParameterAttribute("notebookRuntimeTemplateId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string NotebookRuntimeTemplateId { get; set; } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate Body { get; set; } - /// The "operations" collection of methods. - public class OperationsResource + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/notebookRuntimeTemplates"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - private const string Resource = "operations"; + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("notebookRuntimeTemplateId", new Google.Apis.Discovery.Parameter + { + Name = "notebookRuntimeTemplateId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Deletes a NotebookRuntimeTemplate. + /// + /// Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: + /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Deletes a NotebookRuntimeTemplate. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// + /// Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: + /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "delete"; - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets a NotebookRuntimeTemplate. + /// + /// Required. The name of the NotebookRuntimeTemplate resource. Format: + /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets a NotebookRuntimeTemplate. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// Required. The name of the NotebookRuntimeTemplate resource. Format: + /// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "get"; - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + /// + /// 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. + /// + public virtual GetIamPolicyRequest GetIamPolicy(string resource) + { + return new GetIamPolicyRequest(this.service, resource); + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", - }); - } - } + /// + /// Gets the access control policy for a resource. Returns an empty policy if the resource exists and + /// does not have a policy set. + /// + public class GetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GetIamPolicy request. + public GetIamPolicyRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + { + Resource = resource; + InitParameters(); + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("options.requestedPolicyVersion", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable OptionsRequestedPolicyVersion { get; set; } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "getIamPolicy"; - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:getIamPolicy"; + + /// Initializes GetIamPolicy parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + }); + RequestParameters.Add("options.requestedPolicyVersion", new Google.Apis.Discovery.Parameter + { + Name = "options.requestedPolicyVersion", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Lists NotebookRuntimeTemplates in a Location. + /// + /// Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists NotebookRuntimeTemplates in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. + /// Format: `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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]. * `machineType` supports = and !=. * `acceleratorType` supports = and !=. Some + /// examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName="myDisplayName"` + /// * `labels.myKey="myValue"` * `notebookRuntimeType=USER_DEFINED` * `machineType=e2-standard-4` * + /// `acceleratorType=NVIDIA_TESLA_T4` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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`. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. The standard list page token. Typically obtained via + /// ListNotebookRuntimeTemplatesResponse.next_page_token of the previous + /// NotebookService.ListNotebookRuntimeTemplates call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Optional. Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/notebookRuntimeTemplates"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a NotebookRuntimeTemplate. + /// The body of the request. + /// The resource name of the NotebookRuntimeTemplate. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a NotebookRuntimeTemplate. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// The resource name of the NotebookRuntimeTemplate. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. The update mask applies to the resource. For the `FieldMask` definition, see + /// google.protobuf.FieldMask. Input format: `{paths: "${updated_filed}"}` Updatable fields: * + /// `encryption_spec.kms_key_name` + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1NotebookRuntimeTemplate Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + /// The body of the request. + /// + /// 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. + /// + public virtual SetIamPolicyRequest SetIamPolicy(Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) + { + return new SetIamPolicyRequest(this.service, body, resource); + } + + /// + /// Sets the access control policy on the specified resource. Replaces any existing policy. Can return + /// `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + /// + public class SetIamPolicyRequest : AiplatformBaseServiceRequest + { + /// Constructs a new SetIamPolicy request. + public SetIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest body, string resource) : base(service) + { + Resource = resource; + Body = body; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleIamV1SetIamPolicyRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "setIamPolicy"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:setIamPolicy"; + + /// Initializes SetIamPolicy parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// + /// 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. + /// + public virtual TestIamPermissionsRequest TestIamPermissions(string resource) + { + return new TestIamPermissionsRequest(this.service, resource); + } + + /// + /// 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. + /// + public class TestIamPermissionsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new TestIamPermissions request. + public TestIamPermissionsRequest(Google.Apis.Services.IClientService service, string resource) : base(service) + { + Resource = resource; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("resource", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Resource { get; private set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("permissions", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable Permissions { get; set; } + + /// Gets the method name. + public override string MethodName => "testIamPermissions"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+resource}:testIamPermissions"; + + /// Initializes TestIamPermissions parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("resource", new Google.Apis.Discovery.Parameter + { + Name = "resource", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + }); + RequestParameters.Add("permissions", new Google.Apis.Discovery.Parameter + { + Name = "permissions", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the NotebookRuntimes resource. + public virtual NotebookRuntimesResource NotebookRuntimes { get; } + + /// The "notebookRuntimes" collection of methods. + public class NotebookRuntimesResource + { + private const string Resource = "notebookRuntimes"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public NotebookRuntimesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns + /// an existing assignment or generates a new one. + /// + /// The body of the request. + /// + /// Required. The resource name of the Location to get the NotebookRuntime assignment. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual AssignRequest Assign(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AssignNotebookRuntimeRequest body, string parent) + { + return new AssignRequest(this.service, body, parent); + } + + /// + /// Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns + /// an existing assignment or generates a new one. + /// + public class AssignRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Assign request. + public AssignRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AssignNotebookRuntimeRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to get the NotebookRuntime assignment. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AssignNotebookRuntimeRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "assign"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/notebookRuntimes:assign"; + + /// Initializes Assign parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a NotebookRuntime. + /// + /// 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. + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a NotebookRuntime. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + }); + } + } + + /// Gets a NotebookRuntime. + /// + /// 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. + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a NotebookRuntime. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + }); + } + } + + /// Lists NotebookRuntimes in a Location. + /// + /// Required. The resource name of the Location from which to list the NotebookRuntimes. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists NotebookRuntimes in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location from which to list the NotebookRuntimes. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. An expression for filtering the results of the request. For field names both + /// snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` + /// represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. + /// * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. + /// `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of + /// the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState + /// enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. + /// runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, + /// BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. * API version is UI only: + /// `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, + /// UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, + /// UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. + /// notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. * `machineType` supports = and !=. * + /// `acceleratorType` supports = and !=. 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` * + /// `machineType=e2-standard-4` * `acceleratorType=NVIDIA_TESLA_T4` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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`. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. The standard list page token. Typically obtained via + /// ListNotebookRuntimesResponse.next_page_token of the previous + /// NotebookService.ListNotebookRuntimes call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Optional. Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/notebookRuntimes"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Starts a NotebookRuntime. + /// The body of the request. + /// + /// 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. + /// + public virtual StartRequest Start(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StartNotebookRuntimeRequest body, string name) + { + return new StartRequest(this.service, body, name); + } + + /// Starts a NotebookRuntime. + public class StartRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Start request. + public StartRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StartNotebookRuntimeRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StartNotebookRuntimeRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "start"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:start"; + + /// Initializes Start parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + }); + } + } + + /// Stops a NotebookRuntime. + /// The body of the request. + /// + /// Required. The name of the NotebookRuntime resource to be stopped. 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. + /// + public virtual StopRequest Stop(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopNotebookRuntimeRequest body, string name) + { + return new StopRequest(this.service, body, name); + } + + /// Stops a NotebookRuntime. + public class StopRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Stop request. + public StopRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopNotebookRuntimeRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the NotebookRuntime resource to be stopped. 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. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopNotebookRuntimeRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "stop"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:stop"; + + /// Initializes Stop parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + }); + } + } + + /// Upgrades a NotebookRuntime. + /// The body of the request. + /// + /// 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. + /// + public virtual UpgradeRequest Upgrade(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest body, string name) + { + return new UpgradeRequest(this.service, body, name); + } + + /// Upgrades a NotebookRuntime. + public class UpgradeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Upgrade request. + public UpgradeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "upgrade"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:upgrade"; + + /// Initializes Upgrade parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + }); + } + } + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the PersistentResources resource. + public virtual PersistentResourcesResource PersistentResources { get; } + + /// The "persistentResources" collection of methods. + public class PersistentResourcesResource + { + private const string Resource = "persistentResources"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public PersistentResourcesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a PersistentResource. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the PersistentResource in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a PersistentResource. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the PersistentResource in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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])?$/`. + /// + [Google.Apis.Util.RequestParameterAttribute("persistentResourceId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PersistentResourceId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/persistentResources"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("persistentResourceId", new Google.Apis.Discovery.Parameter + { + Name = "persistentResourceId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes a PersistentResource. + /// + /// Required. The name of the PersistentResource to be deleted. Format: + /// `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a PersistentResource. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the PersistentResource to be deleted. Format: + /// `projects/{project}/locations/{location}/persistentResources/{persistent_resource}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + }); + } + } + + /// Gets a PersistentResource. + /// + /// Required. The name of the PersistentResource resource. Format: + /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a PersistentResource. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the PersistentResource resource. Format: + /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + }); + } + } + + /// Lists PersistentResources in a Location. + /// + /// Required. The resource name of the Location to list the PersistentResources from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists PersistentResources in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list the PersistentResources from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. The standard list page token. Typically obtained via + /// ListPersistentResourcesResponse.next_page_token of the previous + /// PersistentResourceService.ListPersistentResource call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/persistentResources"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a PersistentResource. + /// The body of the request. + /// Immutable. Resource name of a PersistentResource. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a PersistentResource. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// Immutable. Resource name of a PersistentResource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. Specify the fields to be overwritten in the PersistentResource by the update method. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PersistentResource Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Reboots a PersistentResource. + /// The body of the request. + /// + /// Required. The name of the PersistentResource resource. Format: + /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` + /// + public virtual RebootRequest Reboot(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebootPersistentResourceRequest body, string name) + { + return new RebootRequest(this.service, body, name); + } + + /// Reboots a PersistentResource. + public class RebootRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Reboot request. + public RebootRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebootPersistentResourceRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the PersistentResource resource. Format: + /// `projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebootPersistentResourceRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "reboot"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:reboot"; + + /// Initializes Reboot parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + }); + } + } + } + + /// Gets the PipelineJobs resource. + public virtual PipelineJobsResource PipelineJobs { get; } + + /// The "pipelineJobs" collection of methods. + public class PipelineJobsResource + { + private const string Resource = "pipelineJobs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public PipelineJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. The name of the PipelineJobs' parent resource. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual BatchCancelRequest BatchCancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest body, string parent) + { + return new BatchCancelRequest(this.service, body, parent); + } + + /// + /// 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. + /// + public class BatchCancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new BatchCancel request. + public BatchCancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the PipelineJobs' parent resource. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCancelPipelineJobsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "batchCancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/pipelineJobs:batchCancel"; + + /// Initializes BatchCancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. The name of the PipelineJobs' parent resource. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual BatchDeleteRequest BatchDelete(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest body, string parent) + { + return new BatchDeleteRequest(this.service, body, parent); + } + + /// + /// 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. + /// + public class BatchDeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new BatchDelete request. + public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the PipelineJobs' parent resource. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchDeletePipelineJobsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "batchDelete"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/pipelineJobs:batchDelete"; + + /// Initializes BatchDelete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The body of the request. + /// + /// Required. The name of the PipelineJob to cancel. Format: + /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelPipelineJobRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelPipelineJobRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the PipelineJob to cancel. Format: + /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelPipelineJobRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + }); + } + } + + /// Creates a PipelineJob. A PipelineJob will run immediately when created. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the PipelineJob in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PipelineJob body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a PipelineJob. A PipelineJob will run immediately when created. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PipelineJob body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the PipelineJob in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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-/`. + /// + [Google.Apis.Util.RequestParameterAttribute("pipelineJobId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PipelineJobId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PipelineJob Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/pipelineJobs"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pipelineJobId", new Google.Apis.Discovery.Parameter + { + Name = "pipelineJobId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes a PipelineJob. + /// + /// Required. The name of the PipelineJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a PipelineJob. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the PipelineJob resource to be deleted. Format: + /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + }); + } + } + + /// Gets a PipelineJob. + /// + /// Required. The name of the PipelineJob resource. Format: + /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a PipelineJob. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the PipelineJob resource. Format: + /// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + }); + } + } + + /// Lists PipelineJobs in a Location. + /// + /// Required. The resource name of the Location to list the PipelineJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists PipelineJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list the PipelineJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// 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 + /// `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in + /// RFC 3339 format. * `update_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and + /// `&gt;=` comparisons. Values must be in RFC 3339 format. * `end_time`: Supports `=`, `!=`, + /// `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` 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` &amp; `OR`). For example: `pipeline_name="test" AND + /// create_time&gt;"2020-05-18T13:30:00Z"`. The syntax to define filter expression is based on + /// https://google.aip.dev/160. Examples: * `create_time&gt;"2021-05-18T00:00:00Z" OR + /// update_time&gt;"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". + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// The standard list page token. Typically obtained via ListPipelineJobsResponse.next_page_token of + /// the previous PipelineService.ListPipelineJobs call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/pipelineJobs"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Publishers resource. + public virtual PublishersResource Publishers { get; } + + /// The "publishers" collection of methods. + public class PublishersResource + { + private const string Resource = "publishers"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public PublishersResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Models = new ModelsResource(service); + } + + /// Gets the Models resource. + public virtual ModelsResource Models { get; } + + /// The "models" collection of methods. + public class ModelsResource + { + private const string Resource = "models"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ModelsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// Return a list of tokens based on the input text. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. + /// + public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) + { + return new ComputeTokensRequest(this.service, body, endpoint); + } + + /// Return a list of tokens based on the input text. + public class ComputeTokensRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ComputeTokens request. + public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "computeTokens"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:computeTokens"; + + /// Initializes ComputeTokens parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// Perform a token counting. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) + { + return new CountTokensRequest(this.service, body, endpoint); + } + + /// Perform a token counting. + public class CountTokensRequest : AiplatformBaseServiceRequest + { + /// Constructs a new CountTokens request. + public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "countTokens"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:countTokens"; + + /// Initializes CountTokens parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// Embed content with multimodal inputs. + /// The body of the request. + /// + /// Required. The name of the publisher model requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/publishers/*/models/*` + /// + public virtual EmbedContentRequest EmbedContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EmbedContentRequest body, string model) + { + return new EmbedContentRequest(this.service, body, model); + } + + /// Embed content with multimodal inputs. + public class EmbedContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new EmbedContent request. + public EmbedContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EmbedContentRequest body, string model) : base(service) + { + Model = model; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the publisher model requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/publishers/*/models/*` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EmbedContentRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "embedContent"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+model}:embedContent"; + + /// Initializes EmbedContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + { + Name = "model", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// Fetch an asynchronous online prediction operation. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) + { + return new FetchPredictOperationRequest(this.service, body, endpoint); + } + + /// Fetch an asynchronous online prediction operation. + public class FetchPredictOperationRequest : AiplatformBaseServiceRequest + { + /// Constructs a new FetchPredictOperation request. + public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "fetchPredictOperation"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; + + /// Initializes FetchPredictOperation parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// Generate content with multimodal inputs. + /// The body of the request. + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. + /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned + /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + { + return new GenerateContentRequest(this.service, body, model); + } + + /// Generate content with multimodal inputs. + public class GenerateContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GenerateContent request. + public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + { + Model = model; + Body = body; + InitParameters(); + } + + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. + /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` + /// Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "generateContent"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+model}:generateContent"; + + /// Initializes GenerateContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + { + Name = "model", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// Perform an online prediction. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) + { + return new PredictRequest(this.service, body, endpoint); + } + + /// Perform an online prediction. + public class PredictRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Predict request. + public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "predict"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:predict"; + + /// Initializes Predict parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) + { + return new PredictLongRunningRequest(this.service, body, endpoint); + } + + /// + public class PredictLongRunningRequest : AiplatformBaseServiceRequest + { + /// Constructs a new PredictLongRunning request. + public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "predictLongRunning"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:predictLongRunning"; + + /// Initializes PredictLongRunning parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual RawPredictRequest RawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) + { + return new RawPredictRequest(this.service, body, endpoint); + } + + /// + /// 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. + /// + public class RawPredictRequest : AiplatformBaseServiceRequest + { + /// Constructs a new RawPredict request. + public RawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RawPredictRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "rawPredict"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:rawPredict"; + + /// Initializes RawPredict parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// + /// Perform a server-side streaming online prediction request for Vertex LLM streaming. + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual ServerStreamingPredictRequest ServerStreamingPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) + { + return new ServerStreamingPredictRequest(this.service, body, endpoint); + } + + /// + /// Perform a server-side streaming online prediction request for Vertex LLM streaming. + /// + public class ServerStreamingPredictRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ServerStreamingPredict request. + public ServerStreamingPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamingPredictRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "serverStreamingPredict"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:serverStreamingPredict"; + + /// Initializes ServerStreamingPredict parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// Generate content with multimodal inputs with streaming support. + /// The body of the request. + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. + /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned + /// model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + { + return new StreamGenerateContentRequest(this.service, body, model); + } + + /// Generate content with multimodal inputs with streaming support. + public class StreamGenerateContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new StreamGenerateContent request. + public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + { + Model = model; + Body = body; + InitParameters(); + } + + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. + /// Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` + /// Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "streamGenerateContent"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+model}:streamGenerateContent"; + + /// Initializes StreamGenerateContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + { + Name = "model", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + + /// Perform a streaming online prediction with an arbitrary HTTP payload. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual StreamRawPredictRequest StreamRawPredict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) + { + return new StreamRawPredictRequest(this.service, body, endpoint); + } + + /// Perform a streaming online prediction with an arbitrary HTTP payload. + public class StreamRawPredictRequest : AiplatformBaseServiceRequest + { + /// Constructs a new StreamRawPredict request. + public StreamRawPredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamRawPredictRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "streamRawPredict"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:streamRawPredict"; + + /// Initializes StreamRawPredict parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + }); + } + } + } + } + + /// Gets the RagCorpora resource. + public virtual RagCorporaResource RagCorpora { get; } + + /// The "ragCorpora" collection of methods. + public class RagCorporaResource + { + private const string Resource = "ragCorpora"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public RagCorporaResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + RagFiles = new RagFilesResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the RagFiles resource. + public virtual RagFilesResource RagFiles { get; } + + /// The "ragFiles" collection of methods. + public class RagFilesResource + { + private const string Resource = "ragFiles"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public RagFilesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Deletes a RagFile. + /// + /// Required. The name of the RagFile resource to be deleted. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a RagFile. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the RagFile resource to be deleted. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. If set to true, any errors generated by external vector database during the + /// deletion will be ignored. The default value is false. + /// + [Google.Apis.Util.RequestParameterAttribute("forceDelete", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ForceDelete { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+$", + }); + RequestParameters.Add("forceDelete", new Google.Apis.Discovery.Parameter + { + Name = "forceDelete", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets a RagFile. + /// + /// Required. The name of the RagFile resource. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a RagFile. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the RagFile resource. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}/ragFiles/{rag_file}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+/ragFiles/[^/]+$", + }); + } + } + + /// Import files from Google Cloud Storage or Google Drive into a RagCorpus. + /// The body of the request. + /// + /// Required. The name of the RagCorpus resource into which to import files. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + public virtual ImportRequest Import(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportRagFilesRequest body, string parent) + { + return new ImportRequest(this.service, body, parent); + } + + /// Import files from Google Cloud Storage or Google Drive into a RagCorpus. + public class ImportRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Import request. + public ImportRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportRagFilesRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the RagCorpus resource into which to import files. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ImportRagFilesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "import"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/ragFiles:import"; + + /// Initializes Import parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + }); + } + } + + /// Lists RagFiles in a RagCorpus. + /// + /// Required. The resource name of the RagCorpus from which to list the RagFiles. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists RagFiles in a RagCorpus. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the RagCorpus from which to list the RagFiles. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. The standard list page token. Typically obtained via + /// ListRagFilesResponse.next_page_token of the previous VertexRagDataService.ListRagFiles call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/ragFiles"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a RagCorpus. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the RagCorpus in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a RagCorpus. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the RagCorpus in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/ragCorpora"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a RagCorpus. + /// + /// Required. The name of the RagCorpus resource to be deleted. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a RagCorpus. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the RagCorpus resource to be deleted. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. If set to true, any RagFiles in this RagCorpus will also be deleted. Otherwise, the + /// request will only work if the RagCorpus has no RagFiles. + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets a RagCorpus. + /// + /// Required. The name of the RagCorpus resource. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a RagCorpus. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the RagCorpus resource. Format: + /// `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + }); + } + } + + /// Lists RagCorpora in a Location. + /// + /// Required. The resource name of the Location from which to list the RagCorpora. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists RagCorpora in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location from which to list the RagCorpora. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. The standard list page token. Typically obtained via + /// ListRagCorporaResponse.next_page_token of the previous VertexRagDataService.ListRagCorpora call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/ragCorpora"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a RagCorpus. + /// The body of the request. + /// Output only. The resource name of the RagCorpus. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a RagCorpus. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// Output only. The resource name of the RagCorpus. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagCorpus Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragCorpora/[^/]+$", + }); + } + } + } + + /// Gets the RagEngineConfig resource. + public virtual RagEngineConfigResource RagEngineConfig { get; } + + /// The "ragEngineConfig" collection of methods. + public class RagEngineConfigResource + { + private const string Resource = "ragEngineConfig"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public RagEngineConfigResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } + + /// Gets the ReasoningEngines resource. + public virtual ReasoningEnginesResource ReasoningEngines { get; } + + /// The "reasoningEngines" collection of methods. + public class ReasoningEnginesResource + { + private const string Resource = "reasoningEngines"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ReasoningEnginesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a reasoning engine. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the ReasoningEngine in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a reasoning engine. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the ReasoningEngine in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/reasoningEngines"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a reasoning engine. + /// + /// Required. The name of the ReasoningEngine resource to be deleted. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a reasoning engine. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the ReasoningEngine resource to be deleted. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. If set to true, child resources of this reasoning engine will also be deleted. + /// Otherwise, the request will fail with FAILED_PRECONDITION error when the reasoning engine has + /// undeleted child resources. + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets a reasoning engine. + /// + /// Required. The name of the ReasoningEngine resource. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a reasoning engine. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the ReasoningEngine resource. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + }); + } + } + + /// Lists reasoning engines in a location. + /// + /// Required. The resource name of the Location to list the ReasoningEngines from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists reasoning engines in a location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list the ReasoningEngines from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// Optional. The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/reasoningEngines"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a reasoning engine. + /// The body of the request. + /// + /// Identifier. The resource name of the ReasoningEngine. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a reasoning engine. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. The resource name of the ReasoningEngine. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Optional. Mask specifying which fields to update. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Queries using a reasoning engine. + /// The body of the request. + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual QueryRequest Query(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) + { + return new QueryRequest(this.service, body, name); + } + + /// Queries using a reasoning engine. + public class QueryRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Query request. + public QueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "query"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:query"; + + /// Initializes Query parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + }); + } + } + + /// Streams queries using a reasoning engine. + /// The body of the request. + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual StreamQueryRequest StreamQuery(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) + { + return new StreamQueryRequest(this.service, body, name); + } + + /// Streams queries using a reasoning engine. + public class StreamQueryRequest : AiplatformBaseServiceRequest + { + /// Constructs a new StreamQuery request. + public StreamQueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "streamQuery"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:streamQuery"; + + /// Initializes StreamQuery parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", + }); + } + } + } + + /// Gets the Schedules resource. + public virtual SchedulesResource Schedules { get; } + + /// The "schedules" collection of methods. + public class SchedulesResource + { + private const string Resource = "schedules"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SchedulesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a Schedule. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the Schedule in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a Schedule. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the Schedule in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/schedules"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a Schedule. + /// + /// Required. The name of the Schedule resource to be deleted. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a Schedule. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Schedule resource to be deleted. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + }); + } + } + + /// Gets a Schedule. + /// + /// Required. The name of the Schedule resource. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a Schedule. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Schedule resource. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + }); + } + } + + /// Lists Schedules in a Location. + /// + /// Required. The resource name of the Location to list the Schedules from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Schedules in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list the Schedules from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Lists the Schedules that match the filter expression. The following fields are supported: * + /// `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * `state`: Supports `=` and + /// `!=` comparisons. * `request`: Supports existence of the check. (e.g. + /// `create_pipeline_job_request:*` --&gt; Schedule has create_pipeline_job_request). * + /// `create_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` + /// comparisons. Values must be in RFC 3339 format. * `start_time`: Supports `=`, `!=`, `&lt;`, + /// `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 format. * + /// `end_time`: Supports `=`, `!=`, `&lt;`, `&gt;`, `&lt;=`, `&gt;=` comparisons and + /// `:*` existence check. Values must be in RFC 3339 format. * `next_run_time`: Supports `=`, `!=`, + /// `&lt;`, `&gt;`, `&lt;=`, and `&gt;=` comparisons. Values must be in RFC 3339 + /// format. Filter expressions can be combined together using logical operators (`NOT`, `AND` + /// &amp; `OR`). The syntax to define filter expression is based on https://google.aip.dev/160. + /// Examples: * `state="ACTIVE" AND display_name:"my_schedule_*"` * `NOT display_name="my_schedule"` + /// * `create_time&gt;"2021-05-18T00:00:00Z"` * `end_time&gt;"2021-05-18T00:00:00Z" OR NOT + /// end_time:*` * `create_pipeline_job_request:*` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// 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. For + /// example, using "create_time desc, end_time" will order results by create time in descending + /// order, and if there are multiple schedules 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 with create_time + /// in descending order. Supported fields: * `create_time` * `start_time` * `end_time` * + /// `next_run_time` + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// The standard list page size. Default to 100 if not specified. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// The standard list page token. Typically obtained via ListSchedulesResponse.next_page_token of + /// the previous ScheduleService.ListSchedules call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/schedules"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Updates an active or paused Schedule. When the Schedule is updated, new runs will be scheduled + /// starting from the updated next execution time after the update time based on the time_specification + /// in the updated Schedule. All unstarted runs before the update time will be skipped while already + /// created runs will NOT be paused or canceled. + /// + /// The body of the request. + /// Immutable. The resource name of the Schedule. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// + /// Updates an active or paused Schedule. When the Schedule is updated, new runs will be scheduled + /// starting from the updated next execution time after the update time based on the time_specification + /// in the updated Schedule. All unstarted runs before the update time will be skipped while already + /// created runs will NOT be paused or canceled. + /// + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// Immutable. The resource name of the Schedule. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. The update mask applies to the resource. See google.protobuf.FieldMask. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Schedule Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Pauses a Schedule. Will mark Schedule.state to 'PAUSED'. If the schedule is paused, no new runs will + /// be created. Already created runs will NOT be paused or canceled. + /// + /// The body of the request. + /// + /// Required. The name of the Schedule resource to be paused. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + public virtual PauseRequest Pause(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseScheduleRequest body, string name) + { + return new PauseRequest(this.service, body, name); + } + + /// + /// Pauses a Schedule. Will mark Schedule.state to 'PAUSED'. If the schedule is paused, no new runs will + /// be created. Already created runs will NOT be paused or canceled. + /// + public class PauseRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Pause request. + public PauseRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseScheduleRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Schedule resource to be paused. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PauseScheduleRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "pause"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:pause"; + + /// Initializes Pause parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + }); + } + } + + /// + /// Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only + /// paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting + /// from the next execution time after the current time based on the time_specification in the Schedule. + /// If Schedule.catch_up is set up true, all missed runs will be scheduled for backfill first. + /// + /// The body of the request. + /// + /// Required. The name of the Schedule resource to be resumed. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + public virtual ResumeRequest Resume(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeScheduleRequest body, string name) + { + return new ResumeRequest(this.service, body, name); + } + + /// + /// Resumes a paused Schedule to start scheduling new runs. Will mark Schedule.state to 'ACTIVE'. Only + /// paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting + /// from the next execution time after the current time based on the time_specification in the Schedule. + /// If Schedule.catch_up is set up true, all missed runs will be scheduled for backfill first. + /// + public class ResumeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Resume request. + public ResumeRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeScheduleRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the Schedule resource to be resumed. Format: + /// `projects/{project}/locations/{location}/schedules/{schedule}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ResumeScheduleRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "resume"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:resume"; + + /// Initializes Resume parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schedules/[^/]+$", + }); + } + } + } + + /// Gets the SpecialistPools resource. + public virtual SpecialistPoolsResource SpecialistPools { get; } + + /// The "specialistPools" collection of methods. + public class SpecialistPoolsResource + { + private const string Resource = "specialistPools"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SpecialistPoolsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a SpecialistPool. + /// The body of the request. + /// + /// Required. The parent Project name for the new SpecialistPool. The form is + /// `projects/{project}/locations/{location}`. + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a SpecialistPool. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The parent Project name for the new SpecialistPool. The form is + /// `projects/{project}/locations/{location}`. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/specialistPools"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a SpecialistPool as well as all Specialists in the pool. + /// + /// Required. The resource name of the SpecialistPool to delete. Format: + /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a SpecialistPool as well as all Specialists in the pool. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The resource name of the SpecialistPool to delete. Format: + /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// If set to true, any specialist managers in this SpecialistPool will also be deleted. (Otherwise, + /// the request will only work if the SpecialistPool has no specialist managers.) + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets a SpecialistPool. + /// + /// Required. The name of the SpecialistPool resource. The form is + /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a SpecialistPool. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the SpecialistPool resource. The form is + /// `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", + }); + } + } + + /// Lists SpecialistPools in a Location. + /// + /// Required. The name of the SpecialistPool's parent resource. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists SpecialistPools in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The name of the SpecialistPool's parent resource. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// The standard list page token. Typically obtained by ListSpecialistPoolsResponse.next_page_token + /// of the previous SpecialistPoolService.ListSpecialistPools call. Return first page if empty. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. FieldMask represents a set of + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/specialistPools"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a SpecialistPool. + /// The body of the request. + /// Required. The resource name of the SpecialistPool. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a SpecialistPool. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// Required. The resource name of the SpecialistPool. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Required. The update mask applies to the resource. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SpecialistPool Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/specialistPools/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Studies resource. + public virtual StudiesResource Studies { get; } + + /// The "studies" collection of methods. + public class StudiesResource + { + private const string Resource = "studies"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public StudiesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + Trials = new TrialsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Trials resource. + public virtual TrialsResource Trials { get; } + + /// The "trials" collection of methods. + public class TrialsResource + { + private const string Resource = "trials"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TrialsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been + /// taken before the Trial is complete. + /// + /// The body of the request. + /// + /// Required. The name of the trial to add measurement. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + public virtual AddTrialMeasurementRequest AddTrialMeasurement(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddTrialMeasurementRequest body, string trialName) + { + return new AddTrialMeasurementRequest(this.service, body, trialName); + } + + /// + /// Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been + /// taken before the Trial is complete. + /// + public class AddTrialMeasurementRequest : AiplatformBaseServiceRequest + { + /// Constructs a new AddTrialMeasurement request. + public AddTrialMeasurementRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddTrialMeasurementRequest body, string trialName) : base(service) + { + TrialName = trialName; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the trial to add measurement. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + [Google.Apis.Util.RequestParameterAttribute("trialName", Google.Apis.Util.RequestParameterType.Path)] + public virtual string TrialName { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AddTrialMeasurementRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "addTrialMeasurement"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+trialName}:addTrialMeasurement"; + + /// Initializes AddTrialMeasurement parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("trialName", new Google.Apis.Discovery.Parameter + { + Name = "trialName", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + }); + } + } + + /// + /// Checks whether a Trial should stop or not. Returns a long-running operation. When the operation + /// is successful, it will contain a CheckTrialEarlyStoppingStateResponse. + /// + /// The body of the request. + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + public virtual CheckTrialEarlyStoppingStateRequest CheckTrialEarlyStoppingState(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest body, string trialName) + { + return new CheckTrialEarlyStoppingStateRequest(this.service, body, trialName); + } + + /// + /// Checks whether a Trial should stop or not. Returns a long-running operation. When the operation + /// is successful, it will contain a CheckTrialEarlyStoppingStateResponse. + /// + public class CheckTrialEarlyStoppingStateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new CheckTrialEarlyStoppingState request. + public CheckTrialEarlyStoppingStateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest body, string trialName) : base(service) + { + TrialName = trialName; + Body = body; + InitParameters(); + } + + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + [Google.Apis.Util.RequestParameterAttribute("trialName", Google.Apis.Util.RequestParameterType.Path)] + public virtual string TrialName { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "checkTrialEarlyStoppingState"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+trialName}:checkTrialEarlyStoppingState"; + + /// Initializes CheckTrialEarlyStoppingState parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("trialName", new Google.Apis.Discovery.Parameter + { + Name = "trialName", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + }); + } + } + + /// Marks a Trial as complete. + /// The body of the request. + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + public virtual CompleteRequest Complete(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CompleteTrialRequest body, string name) + { + return new CompleteRequest(this.service, body, name); + } + + /// Marks a Trial as complete. + public class CompleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Complete request. + public CompleteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CompleteTrialRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CompleteTrialRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "complete"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:complete"; + + /// Initializes Complete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + }); + } + } + + /// Adds a user provided Trial to a Study. + /// The body of the request. + /// + /// Required. The resource name of the Study to create the Trial in. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Trial body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Adds a user provided Trial to a Study. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Trial body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Study to create the Trial in. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Trial Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/trials"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + }); + } + } + + /// Deletes a Trial. + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a Trial. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + }); + } + } + + /// Gets a Trial. + /// + /// Required. The name of the Trial resource. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a Trial. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Trial resource. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + }); + } + } + + /// Lists the Trials associated with a Study. + /// + /// Required. The resource name of the Study to list the Trial from. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists the Trials associated with a Study. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Study to list the Trial from. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The number of Trials to retrieve per "page" of results. If unspecified, the + /// service will pick an appropriate default. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. A page token to request the next page of results. If unspecified, there are no + /// subsequent pages. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/trials"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for + /// single-objective Study. The definition of pareto-optimal can be checked in wiki page. + /// https://en.wikipedia.org/wiki/Pareto_efficiency + /// + /// The body of the request. + /// Required. The name of the Study that the optimal Trial belongs to. + public virtual ListOptimalTrialsRequest ListOptimalTrials(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ListOptimalTrialsRequest body, string parent) + { + return new ListOptimalTrialsRequest(this.service, body, parent); + } + + /// + /// Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for + /// single-objective Study. The definition of pareto-optimal can be checked in wiki page. + /// https://en.wikipedia.org/wiki/Pareto_efficiency + /// + public class ListOptimalTrialsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ListOptimalTrials request. + public ListOptimalTrialsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ListOptimalTrialsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// Required. The name of the Study that the optimal Trial belongs to. + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ListOptimalTrialsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "listOptimalTrials"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/trials:listOptimalTrials"; + + /// Initializes ListOptimalTrials parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + }); + } + } + + /// Stops a Trial. + /// The body of the request. + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + public virtual StopRequest Stop(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopTrialRequest body, string name) + { + return new StopRequest(this.service, body, name); + } + + /// Stops a Trial. + public class StopRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Stop request. + public StopRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopTrialRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The Trial's name. Format: + /// `projects/{project}/locations/{location}/studies/{study}/trials/{trial}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StopTrialRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "stop"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:stop"; + + /// Initializes Stop parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+/trials/[^/]+$", + }); + } + } + + /// + /// Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns + /// a long-running operation associated with the generation of Trial suggestions. When this + /// long-running operation succeeds, it will contain a SuggestTrialsResponse. + /// + /// The body of the request. + /// + /// Required. The project and location that the Study belongs to. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + public virtual SuggestRequest Suggest(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SuggestTrialsRequest body, string parent) + { + return new SuggestRequest(this.service, body, parent); + } + + /// + /// Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns + /// a long-running operation associated with the generation of Trial suggestions. When this + /// long-running operation succeeds, it will contain a SuggestTrialsResponse. + /// + public class SuggestRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Suggest request. + public SuggestRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SuggestTrialsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The project and location that the Study belongs to. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1SuggestTrialsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "suggest"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/trials:suggest"; + + /// Initializes Suggest parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + }); + } + } + } + + /// Creates a Study. A resource name will be generated after creation of the Study. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the CustomJob in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Study body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a Study. A resource name will be generated after creation of the Study. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Study body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the CustomJob in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Study Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/studies"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a Study. + /// + /// Required. The name of the Study resource to be deleted. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a Study. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Study resource to be deleted. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + }); + } + } + + /// Gets a Study by name. + /// + /// Required. The name of the Study resource. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a Study by name. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Study resource. Format: + /// `projects/{project}/locations/{location}/studies/{study}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/studies/[^/]+$", + }); + } + } + + /// Lists all the studies in a region for an associated project. + /// + /// Required. The resource name of the Location to list the Study from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists all the studies in a region for an associated project. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list the Study from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The maximum number of studies to return per "page" of results. If unspecified, service + /// will pick an appropriate default. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. A page token to request the next page of results. If unspecified, there are no + /// subsequent pages. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/studies"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Looks a study up using the user-defined display_name field instead of the fully qualified resource + /// name. + /// + /// The body of the request. + /// + /// Required. The resource name of the Location to get the Study from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual LookupRequest Lookup(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1LookupStudyRequest body, string parent) + { + return new LookupRequest(this.service, body, parent); + } + + /// + /// Looks a study up using the user-defined display_name field instead of the fully qualified resource + /// name. + /// + public class LookupRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Lookup request. + public LookupRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1LookupStudyRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to get the Study from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1LookupStudyRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "lookup"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/studies:lookup"; + + /// Initializes Lookup parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + } + + /// Gets the Tensorboards resource. + public virtual TensorboardsResource Tensorboards { get; } + + /// The "tensorboards" collection of methods. + public class TensorboardsResource + { + private const string Resource = "tensorboards"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TensorboardsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Experiments = new ExperimentsResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the Experiments resource. + public virtual ExperimentsResource Experiments { get; } + + /// The "experiments" collection of methods. + public class ExperimentsResource + { + private const string Resource = "experiments"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ExperimentsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + Runs = new RunsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Runs resource. + public virtual RunsResource Runs { get; } + + /// The "runs" collection of methods. + public class RunsResource + { + private const string Resource = "runs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public RunsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + TimeSeries = new TimeSeriesResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those + /// that are unreachable are returned in the [ListOperationsResponse.unreachable] field. + /// This can only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will + /// result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + /// service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the TimeSeries resource. + public virtual TimeSeriesResource TimeSeries { get; } + + /// The "timeSeries" collection of methods. + public class TimeSeriesResource + { + private const string Resource = "timeSeries"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TimeSeriesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server + /// doesn't support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server + /// doesn't support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and + /// those that are unreachable are returned in the + /// [ListOperationsResponse.unreachable] field. This can only be `true` when reading + /// across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and + /// will result in an `UNIMPLEMENTED` error if set unless explicitly documented + /// otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a TensorboardTimeSeries. + /// The body of the request. + /// + /// Required. The resource name of the TensorboardRun to create the TensorboardTimeSeries + /// in. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a TensorboardTimeSeries. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardRun to create the + /// TensorboardTimeSeries in. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The user specified unique ID to use for the TensorboardTimeSeries, which + /// becomes the final component of the TensorboardTimeSeries's resource name. This value + /// should match "a-z0-9{0, 127}" + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboardTimeSeriesId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string TensorboardTimeSeriesId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/timeSeries"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + RequestParameters.Add("tensorboardTimeSeriesId", new Google.Apis.Discovery.Parameter + { + Name = "tensorboardTimeSeriesId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes a TensorboardTimeSeries. + /// + /// Required. The name of the TensorboardTimeSeries to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a TensorboardTimeSeries. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TensorboardTimeSeries to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + } + } + + /// + /// Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + /// + /// The body of the request. + /// + /// Required. The resource name of the TensorboardTimeSeries to export data from. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + public virtual ExportTensorboardTimeSeriesRequest ExportTensorboardTimeSeries(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest body, string tensorboardTimeSeries) + { + return new ExportTensorboardTimeSeriesRequest(this.service, body, tensorboardTimeSeries); + } + + /// + /// Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. + /// + public class ExportTensorboardTimeSeriesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ExportTensorboardTimeSeries request. + public ExportTensorboardTimeSeriesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest body, string tensorboardTimeSeries) : base(service) + { + TensorboardTimeSeries = tensorboardTimeSeries; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardTimeSeries to export data from. + /// Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboardTimeSeries", Google.Apis.Util.RequestParameterType.Path)] + public virtual string TensorboardTimeSeries { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "exportTensorboardTimeSeries"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+tensorboardTimeSeries}:exportTensorboardTimeSeries"; + + /// Initializes ExportTensorboardTimeSeries parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("tensorboardTimeSeries", new Google.Apis.Discovery.Parameter + { + Name = "tensorboardTimeSeries", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + } + } + + /// Gets a TensorboardTimeSeries. + /// + /// Required. The name of the TensorboardTimeSeries resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a TensorboardTimeSeries. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TensorboardTimeSeries resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + } + } + + /// Lists TensorboardTimeSeries in a Location. + /// + /// Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists TensorboardTimeSeries in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. + /// Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Lists the TensorboardTimeSeries that match the filter expression. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// Field to use to sort the list. + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// The maximum number of TensorboardTimeSeries to return. The service may return fewer + /// than this value. If unspecified, at most 50 TensorboardTimeSeries are returned. The + /// maximum value is 1000; values above 1000 are coerced to 1000. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token, received from a previous TensorboardService.ListTensorboardTimeSeries + /// call. Provide this to retrieve the subsequent page. When paginating, all other + /// parameters provided to TensorboardService.ListTensorboardTimeSeries must match the + /// call that provided the page token. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/timeSeries"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a TensorboardTimeSeries. + /// The body of the request. + /// Output only. Name of the TensorboardTimeSeries. + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a TensorboardTimeSeries. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// Output only. Name of the TensorboardTimeSeries. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. Field mask is used to specify the fields to be overwritten in the + /// TensorboardTimeSeries resource by the update. The fields specified in the + /// update_mask are relative to the resource, not the full request. A field is + /// overwritten if it's in the mask. If the user does not provide a mask then all fields + /// are overwritten if new values are specified. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is + /// less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected + /// from this time series and returned. This value can be changed by changing + /// max_data_points, which can't be greater than 10k. + /// + /// + /// Required. The resource name of the TensorboardTimeSeries to read data from. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + public virtual ReadRequest Read(string tensorboardTimeSeries) + { + return new ReadRequest(this.service, tensorboardTimeSeries); + } + + /// + /// Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is + /// less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected + /// from this time series and returned. This value can be changed by changing + /// max_data_points, which can't be greater than 10k. + /// + public class ReadRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Read request. + public ReadRequest(Google.Apis.Services.IClientService service, string tensorboardTimeSeries) : base(service) + { + TensorboardTimeSeries = tensorboardTimeSeries; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardTimeSeries to read data from. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboardTimeSeries", Google.Apis.Util.RequestParameterType.Path)] + public virtual string TensorboardTimeSeries { get; private set; } + + /// + /// Reads the TensorboardTimeSeries' data that match the filter expression. + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// The maximum number of TensorboardTimeSeries' data to return. This value should be a + /// positive integer. This value can be set to -1 to return all data. + /// + [Google.Apis.Util.RequestParameterAttribute("maxDataPoints", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable MaxDataPoints { get; set; } + + /// Gets the method name. + public override string MethodName => "read"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+tensorboardTimeSeries}:read"; + + /// Initializes Read parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("tensorboardTimeSeries", new Google.Apis.Discovery.Parameter + { + Name = "tensorboardTimeSeries", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("maxDataPoints", new Google.Apis.Discovery.Parameter + { + Name = "maxDataPoints", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer + /// project's Cloud Storage bucket without users having to obtain Cloud Storage access + /// permission. + /// + /// + /// Required. The resource name of the TensorboardTimeSeries to list Blobs. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + public virtual ReadBlobDataRequest ReadBlobData(string timeSeries) + { + return new ReadBlobDataRequest(this.service, timeSeries); + } + + /// + /// Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer + /// project's Cloud Storage bucket without users having to obtain Cloud Storage access + /// permission. + /// + public class ReadBlobDataRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ReadBlobData request. + public ReadBlobDataRequest(Google.Apis.Services.IClientService service, string timeSeries) : base(service) + { + TimeSeries = timeSeries; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardTimeSeries to list Blobs. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + [Google.Apis.Util.RequestParameterAttribute("timeSeries", Google.Apis.Util.RequestParameterType.Path)] + public virtual string TimeSeries { get; private set; } + + /// IDs of the blobs to read. + [Google.Apis.Util.RequestParameterAttribute("blobIds", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable BlobIds { get; set; } + + /// Gets the method name. + public override string MethodName => "readBlobData"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+timeSeries}:readBlobData"; + + /// Initializes ReadBlobData parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("timeSeries", new Google.Apis.Discovery.Parameter + { + Name = "timeSeries", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + RequestParameters.Add("blobIds", new Google.Apis.Discovery.Parameter + { + Name = "blobIds", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Batch create TensorboardRuns. + /// The body of the request. + /// + /// Required. The resource name of the TensorboardExperiment to create the TensorboardRuns in. + /// Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// The parent field in the CreateTensorboardRunRequest messages must match this field. + /// + public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest body, string parent) + { + return new BatchCreateRequest(this.service, body, parent); + } + + /// Batch create TensorboardRuns. + public class BatchCreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new BatchCreate request. + public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardExperiment to create the TensorboardRuns + /// in. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// The parent field in the CreateTensorboardRunRequest messages must match this field. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "batchCreate"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/runs:batchCreate"; + + /// Initializes BatchCreate parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + } + } + + /// Creates a TensorboardRun. + /// The body of the request. + /// + /// Required. The resource name of the TensorboardExperiment to create the TensorboardRun in. + /// Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a TensorboardRun. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardExperiment to create the TensorboardRun + /// in. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Required. The ID to use for the Tensorboard run, which becomes the final component of + /// the Tensorboard run's resource name. This value should be 1-128 characters, and valid + /// characters are `/a-z-/`. + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboardRunId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string TensorboardRunId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/runs"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + RequestParameters.Add("tensorboardRunId", new Google.Apis.Discovery.Parameter + { + Name = "tensorboardRunId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes a TensorboardRun. + /// + /// Required. The name of the TensorboardRun to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a TensorboardRun. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TensorboardRun to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + } + } + + /// Gets a TensorboardRun. + /// + /// Required. The name of the TensorboardRun resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a TensorboardRun. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TensorboardRun resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + } + } + + /// Lists TensorboardRuns in a Location. + /// + /// Required. The resource name of the TensorboardExperiment to list TensorboardRuns. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists TensorboardRuns in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardExperiment to list TensorboardRuns. + /// Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Lists the TensorboardRuns that match the filter expression. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// Field to use to sort the list. + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// The maximum number of TensorboardRuns to return. The service may return fewer than this + /// value. If unspecified, at most 50 TensorboardRuns are returned. The maximum value is + /// 1000; values above 1000 are coerced to 1000. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token, received from a previous TensorboardService.ListTensorboardRuns call. + /// Provide this to retrieve the subsequent page. When paginating, all other parameters + /// provided to TensorboardService.ListTensorboardRuns must match the call that provided the + /// page token. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/runs"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a TensorboardRun. + /// The body of the request. + /// + /// Output only. Name of the TensorboardRun. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a TensorboardRun. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Output only. Name of the TensorboardRun. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. Field mask is used to specify the fields to be overwritten in the + /// TensorboardRun resource by the update. The fields specified in the update_mask are + /// relative to the resource, not the full request. A field is overwritten if it's in the + /// mask. If the user does not provide a mask then all fields are overwritten if new values + /// are specified. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If + /// any data fail to be ingested, an error is returned. + /// + /// The body of the request. + /// + /// Required. The resource name of the TensorboardRun to write data to. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + public virtual WriteRequest Write(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest body, string tensorboardRun) + { + return new WriteRequest(this.service, body, tensorboardRun); + } + + /// + /// Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If + /// any data fail to be ingested, an error is returned. + /// + public class WriteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Write request. + public WriteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest body, string tensorboardRun) : base(service) + { + TensorboardRun = tensorboardRun; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardRun to write data to. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboardRun", Google.Apis.Util.RequestParameterType.Path)] + public virtual string TensorboardRun { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "write"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+tensorboardRun}:write"; + + /// Initializes Write parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("tensorboardRun", new Google.Apis.Discovery.Parameter + { + Name = "tensorboardRun", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + } + } + } + + /// Batch create TensorboardTimeSeries that belong to a TensorboardExperiment. + /// The body of the request. + /// + /// Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. + /// Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest + /// messages must be sub resources of this TensorboardExperiment. + /// + public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest body, string parent) + { + return new BatchCreateRequest(this.service, body, parent); + } + + /// Batch create TensorboardTimeSeries that belong to a TensorboardExperiment. + public class BatchCreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new BatchCreate request. + public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries + /// in. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// The TensorboardRuns referenced by the parent fields in the + /// CreateTensorboardTimeSeriesRequest messages must be sub resources of this + /// TensorboardExperiment. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "batchCreate"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}:batchCreate"; + + /// Initializes BatchCreate parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + } + } + + /// Creates a TensorboardExperiment. + /// The body of the request. + /// + /// Required. The resource name of the Tensorboard to create the TensorboardExperiment in. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a TensorboardExperiment. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Tensorboard to create the TensorboardExperiment in. + /// Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Required. The ID to use for the Tensorboard experiment, which becomes the final component of + /// the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid + /// characters are `/a-z-/`. + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboardExperimentId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string TensorboardExperimentId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/experiments"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + RequestParameters.Add("tensorboardExperimentId", new Google.Apis.Discovery.Parameter + { + Name = "tensorboardExperimentId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes a TensorboardExperiment. + /// + /// Required. The name of the TensorboardExperiment to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a TensorboardExperiment. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TensorboardExperiment to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + } + } + + /// Gets a TensorboardExperiment. + /// + /// Required. The name of the TensorboardExperiment resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a TensorboardExperiment. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TensorboardExperiment resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + } + } + + /// Lists TensorboardExperiments in a Location. + /// + /// Required. The resource name of the Tensorboard to list TensorboardExperiments. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists TensorboardExperiments in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Tensorboard to list TensorboardExperiments. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Lists the TensorboardExperiments that match the filter expression. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// Field to use to sort the list. + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// The maximum number of TensorboardExperiments to return. The service may return fewer than + /// this value. If unspecified, at most 50 TensorboardExperiments are returned. The maximum + /// value is 1000; values above 1000 are coerced to 1000. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token, received from a previous TensorboardService.ListTensorboardExperiments call. + /// Provide this to retrieve the subsequent page. When paginating, all other parameters provided + /// to TensorboardService.ListTensorboardExperiments must match the call that provided the page + /// token. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/experiments"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a TensorboardExperiment. + /// The body of the request. + /// + /// Output only. Name of the TensorboardExperiment. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a TensorboardExperiment. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Output only. Name of the TensorboardExperiment. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. Field mask is used to specify the fields to be overwritten in the + /// TensorboardExperiment resource by the update. The fields specified in the update_mask are + /// relative to the resource, not the full request. A field is overwritten if it's in the mask. + /// If the user does not provide a mask then all fields are overwritten if new values are + /// specified. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If + /// any data fail to be ingested, an error is returned. + /// + /// The body of the request. + /// + /// Required. The resource name of the TensorboardExperiment to write data to. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + public virtual WriteRequest Write(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest body, string tensorboardExperiment) + { + return new WriteRequest(this.service, body, tensorboardExperiment); + } + + /// + /// Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If + /// any data fail to be ingested, an error is returned. + /// + public class WriteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Write request. + public WriteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest body, string tensorboardExperiment) : base(service) + { + TensorboardExperiment = tensorboardExperiment; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the TensorboardExperiment to write data to. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboardExperiment", Google.Apis.Util.RequestParameterType.Path)] + public virtual string TensorboardExperiment { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "write"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+tensorboardExperiment}:write"; + + /// Initializes Write parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("tensorboardExperiment", new Google.Apis.Discovery.Parameter + { + Name = "tensorboardExperiment", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", + }); + } + } + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for + /// tensors and blob references. If the number of data points stored is less than the limit, all data is + /// returned. Otherwise, the number limit of data points is randomly selected from this time series and + /// returned. + /// + /// + /// Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. + /// Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The + /// TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard. + /// + public virtual BatchReadRequest BatchRead(string tensorboard) + { + return new BatchReadRequest(this.service, tensorboard); + } + + /// + /// Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for + /// tensors and blob references. If the number of data points stored is less than the limit, all data is + /// returned. Otherwise, the number limit of data points is randomly selected from this time series and + /// returned. + /// + public class BatchReadRequest : AiplatformBaseServiceRequest + { + /// Constructs a new BatchRead request. + public BatchReadRequest(Google.Apis.Services.IClientService service, string tensorboard) : base(service) + { + Tensorboard = tensorboard; + InitParameters(); + } + + /// + /// Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data + /// from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The + /// TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard. + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboard", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Tensorboard { get; private set; } + + /// + /// Required. The resource names of the TensorboardTimeSeries to read data from. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` + /// + [Google.Apis.Util.RequestParameterAttribute("timeSeries", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable TimeSeries { get; set; } + + /// Gets the method name. + public override string MethodName => "batchRead"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+tensorboard}:batchRead"; + + /// Initializes BatchRead parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("tensorboard", new Google.Apis.Discovery.Parameter + { + Name = "tensorboard", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + RequestParameters.Add("timeSeries", new Google.Apis.Discovery.Parameter + { + Name = "timeSeries", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Creates a Tensorboard. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the Tensorboard in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a Tensorboard. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the Tensorboard in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/tensorboards"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a Tensorboard. + /// + /// Required. The name of the Tensorboard to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a Tensorboard. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Tensorboard to be deleted. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + } + } + + /// Gets a Tensorboard. + /// + /// Required. The name of the Tensorboard resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a Tensorboard. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Tensorboard resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + } + } + + /// Lists Tensorboards in a Location. + /// + /// Required. The resource name of the Location to list Tensorboards. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Tensorboards in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list Tensorboards. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Lists the Tensorboards that match the filter expression. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// Field to use to sort the list. + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// The maximum number of Tensorboards to return. The service may return fewer than this value. If + /// unspecified, at most 100 Tensorboards are returned. The maximum value is 100; values above 100 + /// are coerced to 100. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token, received from a previous TensorboardService.ListTensorboards call. Provide this to + /// retrieve the subsequent page. When paginating, all other parameters provided to + /// TensorboardService.ListTensorboards must match the call that provided the page token. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/tensorboards"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter + { + Name = "orderBy", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a Tensorboard. + /// The body of the request. + /// + /// Output only. Name of the Tensorboard. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a Tensorboard. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Output only. Name of the Tensorboard. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Required. Field mask is used to specify the fields to be overwritten in the Tensorboard resource + /// by the update. The fields specified in the update_mask are relative to the resource, not the + /// full request. A field is overwritten if it's in the mask. If the user does not provide a mask + /// then all fields are overwritten if new values are specified. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Returns the storage size for a given TensorBoard instance. + /// + /// Required. The name of the Tensorboard resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + public virtual ReadSizeRequest ReadSize(string tensorboard) + { + return new ReadSizeRequest(this.service, tensorboard); + } + + /// Returns the storage size for a given TensorBoard instance. + public class ReadSizeRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ReadSize request. + public ReadSizeRequest(Google.Apis.Services.IClientService service, string tensorboard) : base(service) + { + Tensorboard = tensorboard; + InitParameters(); + } + + /// + /// Required. The name of the Tensorboard resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboard", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Tensorboard { get; private set; } + + /// Gets the method name. + public override string MethodName => "readSize"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+tensorboard}:readSize"; + + /// Initializes ReadSize parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("tensorboard", new Google.Apis.Discovery.Parameter + { + Name = "tensorboard", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + } + } + + /// Returns a list of monthly active users for a given TensorBoard instance. + /// + /// Required. The name of the Tensorboard resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + public virtual ReadUsageRequest ReadUsage(string tensorboard) + { + return new ReadUsageRequest(this.service, tensorboard); + } + + /// Returns a list of monthly active users for a given TensorBoard instance. + public class ReadUsageRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ReadUsage request. + public ReadUsageRequest(Google.Apis.Services.IClientService service, string tensorboard) : base(service) + { + Tensorboard = tensorboard; + InitParameters(); + } + + /// + /// Required. The name of the Tensorboard resource. Format: + /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` + /// + [Google.Apis.Util.RequestParameterAttribute("tensorboard", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Tensorboard { get; private set; } + + /// Gets the method name. + public override string MethodName => "readUsage"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+tensorboard}:readUsage"; + + /// Initializes ReadUsage parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("tensorboard", new Google.Apis.Discovery.Parameter + { + Name = "tensorboard", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", + }); + } + } + } + + /// Gets the TrainingPipelines resource. + public virtual TrainingPipelinesResource TrainingPipelines { get; } + + /// The "trainingPipelines" collection of methods. + public class TrainingPipelinesResource + { + private const string Resource = "trainingPipelines"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TrainingPipelinesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server + /// makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use + /// PipelineService.GetTrainingPipeline or other methods to check whether the cancellation succeeded or + /// whether the pipeline completed despite cancellation. On successful cancellation, the + /// TrainingPipeline is not deleted; instead it becomes a pipeline with a TrainingPipeline.error value + /// with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TrainingPipeline.state is + /// set to `CANCELLED`. + /// + /// The body of the request. + /// + /// Required. The name of the TrainingPipeline to cancel. Format: + /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTrainingPipelineRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } + + /// + /// Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server + /// makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use + /// PipelineService.GetTrainingPipeline or other methods to check whether the cancellation succeeded or + /// whether the pipeline completed despite cancellation. On successful cancellation, the + /// TrainingPipeline is not deleted; instead it becomes a pipeline with a TrainingPipeline.error value + /// with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TrainingPipeline.state is + /// set to `CANCELLED`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTrainingPipelineRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the TrainingPipeline to cancel. Format: + /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTrainingPipelineRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + }); + } + } + + /// + /// Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run. + /// + /// The body of the request. + /// + /// Required. The resource name of the Location to create the TrainingPipeline in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TrainingPipeline body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// + /// Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run. + /// + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TrainingPipeline body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the TrainingPipeline in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TrainingPipeline Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/trainingPipelines"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a TrainingPipeline. + /// + /// Required. The name of the TrainingPipeline resource to be deleted. Format: + /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a TrainingPipeline. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TrainingPipeline resource to be deleted. Format: + /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + }); + } + } + + /// Gets a TrainingPipeline. + /// + /// Required. The name of the TrainingPipeline resource. Format: + /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a TrainingPipeline. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TrainingPipeline resource. Format: + /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + }); + } + } + + /// Lists TrainingPipelines in a Location. + /// + /// Required. The resource name of the Location to list the TrainingPipelines from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists TrainingPipelines in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list the TrainingPipelines from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and + /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `training_task_definition` `=`, `!=` + /// comparisons, and `:` wildcard. * `create_time` supports `=`, `!=`,`&lt;`, + /// `&lt;=`,`&gt;`, `&gt;=` 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="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"` * + /// `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"` * `NOT + /// display_name="my_pipeline"` * `create_time&gt;"2021-05-18T00:00:00Z"` * + /// `training_task_definition:"*automl_text_classification*"` + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// The standard list page token. Typically obtained via + /// ListTrainingPipelinesResponse.next_page_token of the previous + /// PipelineService.ListTrainingPipelines call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Mask specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object ReadMask { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/trainingPipelines"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + { + Name = "readMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the TuningJobs resource. + public virtual TuningJobsResource TuningJobs { get; } + + /// The "tuningJobs" collection of methods. + public class TuningJobsResource + { + private const string Resource = "tuningJobs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TuningJobsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } + + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best + /// effort to cancel the job, but success is not guaranteed. Clients can use + /// GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or + /// whether the job completed despite cancellation. On successful cancellation, the TuningJob is not + /// deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, + /// corresponding to `Code.CANCELLED`, and TuningJob.state is set to `CANCELLED`. + /// + /// The body of the request. + /// + /// Required. The name of the TuningJob to cancel. Format: + /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` + /// + public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTuningJobRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } + + /// + /// Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best + /// effort to cancel the job, but success is not guaranteed. Clients can use + /// GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or + /// whether the job completed despite cancellation. On successful cancellation, the TuningJob is not + /// deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, + /// corresponding to `Code.CANCELLED`, and TuningJob.state is set to `CANCELLED`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTuningJobRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Required. The name of the TuningJob to cancel. Format: + /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTuningJobRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + }); + } + } + + /// Creates a TuningJob. A created TuningJob right away will be attempted to be run. + /// The body of the request. + /// + /// Required. The resource name of the Location to create the TuningJob in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TuningJob body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a TuningJob. A created TuningJob right away will be attempted to be run. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TuningJob body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to create the TuningJob in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TuningJob Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/tuningJobs"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Gets a TuningJob. + /// + /// Required. The name of the TuningJob resource. Format: + /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a TuningJob. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the TuningJob resource. Format: + /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + }); + } + } + + /// Lists TuningJobs in a Location. + /// + /// Required. The resource name of the Location to list the TuningJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists TuningJobs in a Location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to list the TuningJobs from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Optional. The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. The standard list page token. Typically obtained via + /// ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.ListTuningJob][] call. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/tuningJobs"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Rebase a TunedModel. + /// The body of the request. + /// + /// Required. The resource name of the Location into which to rebase the Model. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual RebaseTunedModelRequest RebaseTunedModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebaseTunedModelRequest body, string parent) + { + return new RebaseTunedModelRequest(this.service, body, parent); + } + + /// Rebase a TunedModel. + public class RebaseTunedModelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new RebaseTunedModel request. + public RebaseTunedModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebaseTunedModelRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location into which to rebase the Model. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebaseTunedModelRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "rebaseTunedModel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/tuningJobs:rebaseTunedModel"; + + /// Initializes RebaseTunedModel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + } + + /// + /// Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating + /// grounded responses. + /// + /// The body of the request. + /// + /// Required. The resource name of the Location from which to augment prompt. The users must have permission + /// to make a call in the project. Format: `projects/{project}/locations/{location}`. + /// + public virtual AugmentPromptRequest AugmentPrompt(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AugmentPromptRequest body, string parent) + { + return new AugmentPromptRequest(this.service, body, parent); + } + + /// + /// Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating + /// grounded responses. + /// + public class AugmentPromptRequest : AiplatformBaseServiceRequest + { + /// Constructs a new AugmentPrompt request. + public AugmentPromptRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AugmentPromptRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location from which to augment prompt. The users must have + /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AugmentPromptRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "augmentPrompt"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}:augmentPrompt"; + + /// Initializes AugmentPrompt parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// + /// Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and + /// returns claims from the text and provides supporting facts. + /// + /// The body of the request. + /// + /// Required. The resource name of the Location from which to corroborate text. The users must have + /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. + /// + public virtual CorroborateContentRequest CorroborateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CorroborateContentRequest body, string parent) + { + return new CorroborateContentRequest(this.service, body, parent); + } + + /// + /// Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and + /// returns claims from the text and provides supporting facts. + /// + public class CorroborateContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new CorroborateContent request. + public CorroborateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CorroborateContentRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location from which to corroborate text. The users must have + /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CorroborateContentRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "corroborateContent"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}:corroborateContent"; + + /// Initializes CorroborateContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deploys a model to a new endpoint. + /// The body of the request. + /// + /// Required. The resource name of the Location to deploy the model in. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual DeployRequest Deploy(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployRequest body, string destination) + { + return new DeployRequest(this.service, body, destination); + } + + /// Deploys a model to a new endpoint. + public class DeployRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Deploy request. + public DeployRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployRequest body, string destination) : base(service) + { + Destination = destination; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to deploy the model in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("destination", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Destination { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "deploy"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+destination}:deploy"; + + /// Initializes Deploy parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("destination", new Google.Apis.Discovery.Parameter + { + Name = "destination", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Evaluates a dataset based on a set of given metrics. + /// The body of the request. + /// + /// Required. The resource name of the Location to evaluate the dataset. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual EvaluateDatasetRequest EvaluateDataset(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateDatasetRequest body, string location) + { + return new EvaluateDatasetRequest(this.service, body, location); + } + + /// Evaluates a dataset based on a set of given metrics. + public class EvaluateDatasetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new EvaluateDataset request. + public EvaluateDatasetRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateDatasetRequest body, string location) : base(service) + { + Location = location; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to evaluate the dataset. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Location { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateDatasetRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "evaluateDataset"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+location}:evaluateDataset"; + + /// Initializes EvaluateDataset parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + { + Name = "location", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Evaluates instances based on a given metric. + /// The body of the request. + /// + /// Required. The resource name of the Location to evaluate the instances. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual EvaluateInstancesRequest EvaluateInstances(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateInstancesRequest body, string location) + { + return new EvaluateInstancesRequest(this.service, body, location); + } + + /// Evaluates instances based on a given metric. + public class EvaluateInstancesRequest : AiplatformBaseServiceRequest + { + /// Constructs a new EvaluateInstances request. + public EvaluateInstancesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateInstancesRequest body, string location) : base(service) + { + Location = location; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to evaluate the instances. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Location { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateInstancesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "evaluateInstances"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+location}:evaluateInstances"; + + /// Initializes EvaluateInstances parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + { + Name = "location", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// + /// Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. + /// One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on + /// provided prompt, which can then be reviewed and used for subsequent evaluations. + /// + /// The body of the request. + /// + /// Required. The resource name of the Location to generate rubrics from. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual GenerateInstanceRubricsRequest GenerateInstanceRubrics(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest body, string location) + { + return new GenerateInstanceRubricsRequest(this.service, body, location); + } + + /// + /// Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. + /// One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on + /// provided prompt, which can then be reviewed and used for subsequent evaluations. + /// + public class GenerateInstanceRubricsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GenerateInstanceRubrics request. + public GenerateInstanceRubricsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest body, string location) : base(service) + { + Location = location; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to generate rubrics from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Location { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "generateInstanceRubrics"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+location}:generateInstanceRubrics"; + + /// Initializes GenerateInstanceRubrics parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + { + Name = "location", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Generates synthetic data based on the provided configuration. + /// The body of the request. + /// + /// Required. The resource name of the Location to run the job. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual GenerateSyntheticDataRequest GenerateSyntheticData(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateSyntheticDataRequest body, string location) + { + return new GenerateSyntheticDataRequest(this.service, body, location); + } + + /// Generates synthetic data based on the provided configuration. + public class GenerateSyntheticDataRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GenerateSyntheticData request. + public GenerateSyntheticDataRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateSyntheticDataRequest body, string location) : base(service) + { + Location = location; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location to run the job. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Location { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateSyntheticDataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "generateSyntheticData"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+location}:generateSyntheticData"; + + /// Initializes GenerateSyntheticData parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + { + Name = "location", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Gets information about a location. + /// Resource name for the location. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets information about a location. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// Resource name for the location. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Gets a RagEngineConfig. + /// + /// Required. The name of the RagEngineConfig resource. Format: + /// `projects/{project}/locations/{location}/ragEngineConfig` + /// + public virtual GetRagEngineConfigRequest GetRagEngineConfig(string name) + { + return new GetRagEngineConfigRequest(this.service, name); + } + + /// Gets a RagEngineConfig. + public class GetRagEngineConfigRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GetRagEngineConfig request. + public GetRagEngineConfigRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the RagEngineConfig resource. Format: + /// `projects/{project}/locations/{location}/ragEngineConfig` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "getRagEngineConfig"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes GetRagEngineConfig parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + }); + } + } + + /// Lists information about the supported locations for this service. + /// The resource that owns the locations collection, if applicable. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// Lists information about the supported locations for this service. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The resource that owns the locations collection, if applicable. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is + /// primarily intended for internal usage. + /// + [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// The maximum number of results to return. If not set, the service selects a default. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token received from the `next_page_token` field in the response. Send that page token to + /// receive the subsequent page. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/locations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+$", + }); + RequestParameters.Add("extraLocationTypes", new Google.Apis.Discovery.Parameter + { + Name = "extraLocationTypes", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Retrieves relevant contexts for a query. + /// The body of the request. + /// + /// Required. The resource name of the Location from which to retrieve RagContexts. The users must have + /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. + /// + public virtual RetrieveContextsRequest RetrieveContexts(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RetrieveContextsRequest body, string parent) + { + return new RetrieveContextsRequest(this.service, body, parent); + } + + /// Retrieves relevant contexts for a query. + public class RetrieveContextsRequest : AiplatformBaseServiceRequest + { + /// Constructs a new RetrieveContexts request. + public RetrieveContextsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RetrieveContextsRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The resource name of the Location from which to retrieve RagContexts. The users must have + /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RetrieveContextsRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "retrieveContexts"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}:retrieveContexts"; + + /// Initializes RetrieveContexts parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Updates a RagEngineConfig. + /// The body of the request. + /// + /// Identifier. The name of the RagEngineConfig. Format: + /// `projects/{project}/locations/{location}/ragEngineConfig` + /// + public virtual UpdateRagEngineConfigRequest UpdateRagEngineConfig(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagEngineConfig body, string name) + { + return new UpdateRagEngineConfigRequest(this.service, body, name); + } + + /// Updates a RagEngineConfig. + public class UpdateRagEngineConfigRequest : AiplatformBaseServiceRequest + { + /// Constructs a new UpdateRagEngineConfig request. + public UpdateRagEngineConfigRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagEngineConfig body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. The name of the RagEngineConfig. Format: + /// `projects/{project}/locations/{location}/ragEngineConfig` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagEngineConfig Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "updateRagEngineConfig"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes UpdateRagEngineConfig parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig$", + }); + } + } + } + + /// Gets a GenAI cache config. + /// Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`. + public virtual GetCacheConfigRequest GetCacheConfig(string name) + { + return new GetCacheConfigRequest(this.service, name); + } + + /// Gets a GenAI cache config. + public class GetCacheConfigRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GetCacheConfig request. + public GetCacheConfigRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "getCacheConfig"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes GetCacheConfig parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/cacheConfig$", + }); + } + } + + /// Updates a cache config. + /// The body of the request. + /// Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`. + public virtual UpdateCacheConfigRequest UpdateCacheConfig(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CacheConfig body, string name) + { + return new UpdateCacheConfigRequest(this.service, body, name); + } + + /// Updates a cache config. + public class UpdateCacheConfigRequest : AiplatformBaseServiceRequest + { + /// Constructs a new UpdateCacheConfig request. + public UpdateCacheConfigRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CacheConfig body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CacheConfig Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "updateCacheConfig"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes UpdateCacheConfig parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/cacheConfig$", + }); + } + } + } + + /// The "publishers" collection of methods. + public class PublishersResource + { + private const string Resource = "publishers"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public PublishersResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Models = new ModelsResource(service); + } + + /// Gets the Models resource. + public virtual ModelsResource Models { get; } + + /// The "models" collection of methods. + public class ModelsResource + { + private const string Resource = "models"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ModelsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Return a list of tokens based on the input text. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. + /// + public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) + { + return new ComputeTokensRequest(this.service, body, endpoint); + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", - }); - } - } + /// Return a list of tokens based on the input text. + public class ComputeTokensRequest : AiplatformBaseServiceRequest + { + /// Constructs a new ComputeTokens request. + public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// + /// Required. The name of the Endpoint requested to get lists of tokens and token ids. + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't - /// support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the method name. + public override string MethodName => "computeTokens"; - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:computeTokens"; - /// - /// When set to `true`, operations that are reachable are returned as normal, and those - /// that are unreachable are returned in the [ListOperationsResponse.unreachable] field. - /// This can only be `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will - /// result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - /// service or product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Initializes ComputeTokens parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "list"; + /// Perform a token counting. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) + { + return new CountTokensRequest(this.service, body, endpoint); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Perform a token counting. + public class CountTokensRequest : AiplatformBaseServiceRequest + { + /// Constructs a new CountTokens request. + public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// + /// Required. The name of the Endpoint requested to perform token counting. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "countTokens"; - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:countTokens"; - /// Gets the method name. - public override string MethodName => "wait"; + /// Initializes CountTokens parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Fetch an asynchronous online prediction operation. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) + { + return new FetchPredictOperationRequest(this.service, body, endpoint); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Fetch an asynchronous online prediction operation. + public class FetchPredictOperationRequest : AiplatformBaseServiceRequest + { + /// Constructs a new FetchPredictOperation request. + public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// Gets the TimeSeries resource. - public virtual TimeSeriesResource TimeSeries { get; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } - /// The "timeSeries" collection of methods. - public class TimeSeriesResource - { - private const string Resource = "timeSeries"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the method name. + public override string MethodName => "fetchPredictOperation"; - /// Constructs a new resource. - public TimeSeriesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Operations = new OperationsResource(service); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Initializes FetchPredictOperation parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + } + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Generate content with multimodal inputs. + /// The body of the request. + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + { + return new GenerateContentRequest(this.service, body, model); + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Generate content with multimodal inputs. + public class GenerateContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new GenerateContent request. + public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + { + Model = model; + Body = body; + InitParameters(); + } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the method name. + public override string MethodName => "generateContent"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the REST path. + public override string RestPath => "v1/{+model}:generateContent"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", - }); - } - } + /// Initializes GenerateContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + { + Name = "model", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + } + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets a Model Garden publisher model. + /// + /// Required. The name of the PublisherModel resource. Format: + /// `publishers/{publisher}/models/{publisher_model}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets a Model Garden publisher model. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the PublisherModel resource. Format: + /// `publishers/{publisher}/models/{publisher_model}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Optional. Token used to access Hugging Face gated models. + [Google.Apis.Util.RequestParameterAttribute("huggingFaceToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string HuggingFaceToken { get; set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Optional. Boolean indicates whether the requested model is a Hugging Face model. + [Google.Apis.Util.RequestParameterAttribute("isHuggingFaceModel", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable IsHuggingFaceModel { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// + /// Optional. The IETF BCP-47 language code representing the language in which the publisher model's + /// text information should be written in. + /// + [Google.Apis.Util.RequestParameterAttribute("languageCode", Google.Apis.Util.RequestParameterType.Query)] + public virtual string LanguageCode { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Optional. PublisherModel view specifying which fields to read. + [Google.Apis.Util.RequestParameterAttribute("view", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable View { get; set; } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", - }); - } - } + /// Optional. PublisherModel view specifying which fields to read. + public enum ViewEnum + { + /// The default / unset value. The API will default to the BASIC view. + [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VIEW_UNSPECIFIED")] + PUBLISHERMODELVIEWUNSPECIFIED = 0, - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Include basic metadata about the publisher model, but not the full contents. + [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VIEW_BASIC")] + PUBLISHERMODELVIEWBASIC = 1, - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Include everything. + [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VIEW_FULL")] + PUBLISHERMODELVIEWFULL = 2, - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Include: VersionId, ModelVersionExternalName, and SupportedActions. + [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VERSION_VIEW_BASIC")] + PUBLISHERMODELVERSIONVIEWBASIC = 3, + } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", - }); - } - } + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + RequestParameters.Add("huggingFaceToken", new Google.Apis.Discovery.Parameter + { + Name = "huggingFaceToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("isHuggingFaceModel", new Google.Apis.Discovery.Parameter + { + Name = "isHuggingFaceModel", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("languageCode", new Google.Apis.Discovery.Parameter + { + Name = "languageCode", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("view", new Google.Apis.Discovery.Parameter + { + Name = "view", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Lists operations that match the specified filter in the request. If the server - /// doesn't support this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Perform an online prediction. + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) + { + return new PredictRequest(this.service, body, endpoint); + } - /// - /// Lists operations that match the specified filter in the request. If the server - /// doesn't support this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Perform an online prediction. + public class PredictRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Predict request. + public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the method name. + public override string MethodName => "predict"; - /// - /// When set to `true`, operations that are reachable are returned as normal, and - /// those that are unreachable are returned in the - /// [ListOperationsResponse.unreachable] field. This can only be `true` when reading - /// across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and - /// will result in an `UNIMPLEMENTED` error if set unless explicitly documented - /// otherwise in service or product specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the method name. - public override string MethodName => "list"; + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:predict"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Initializes Predict parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// + /// The body of the request. + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) + { + return new PredictLongRunningRequest(this.service, body, endpoint); + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + public class PredictLongRunningRequest : AiplatformBaseServiceRequest + { + /// Constructs a new PredictLongRunning request. + public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) + { + Endpoint = endpoint; + Body = body; + InitParameters(); + } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// + /// Required. The name of the Endpoint requested to serve the prediction. Format: + /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or + /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` + /// + [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Endpoint { get; private set; } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// Gets the method name. + public override string MethodName => "predictLongRunning"; - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the REST path. + public override string RestPath => "v1/{+endpoint}:predictLongRunning"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Initializes PredictLongRunning parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + { + Name = "endpoint", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + } + } - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Generate content with multimodal inputs with streaming support. + /// The body of the request. + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + { + return new StreamGenerateContentRequest(this.service, body, model); + } - /// Creates a TensorboardTimeSeries. - /// The body of the request. - /// - /// Required. The resource name of the TensorboardRun to create the TensorboardTimeSeries - /// in. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Generate content with multimodal inputs with streaming support. + public class StreamGenerateContentRequest : AiplatformBaseServiceRequest + { + /// Constructs a new StreamGenerateContent request. + public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + { + Model = model; + Body = body; + InitParameters(); + } - /// Creates a TensorboardTimeSeries. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// + /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher + /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint + /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// + [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Model { get; private set; } - /// - /// Required. The resource name of the TensorboardRun to create the - /// TensorboardTimeSeries in. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - /// - /// Optional. The user specified unique ID to use for the TensorboardTimeSeries, which - /// becomes the final component of the TensorboardTimeSeries's resource name. This value - /// should match "a-z0-9{0, 127}" - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboardTimeSeriesId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string TensorboardTimeSeriesId { get; set; } + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries Body { get; set; } + /// Gets the method name. + public override string MethodName => "streamGenerateContent"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the REST path. + public override string RestPath => "v1/{+model}:streamGenerateContent"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Initializes StreamGenerateContent parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + { + Name = "model", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^publishers/[^/]+/models/[^/]+$", + }); + } + } + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/timeSeries"; + /// The "ragCorpora" collection of methods. + public class RagCorporaResource + { + private const string Resource = "ragCorpora"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", - }); - RequestParameters.Add("tensorboardTimeSeriesId", new Google.Apis.Discovery.Parameter - { - Name = "tensorboardTimeSeriesId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Deletes a TensorboardTimeSeries. - /// - /// Required. The name of the TensorboardTimeSeries to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Constructs a new resource. + public RagCorporaResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + RagFiles = new RagFilesResource(service); + } - /// Deletes a TensorboardTimeSeries. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - /// Required. The name of the TensorboardTimeSeries to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the method name. - public override string MethodName => "delete"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", - }); - } - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. - /// - /// The body of the request. - /// - /// Required. The resource name of the TensorboardTimeSeries to export data from. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - public virtual ExportTensorboardTimeSeriesRequest ExportTensorboardTimeSeries(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest body, string tensorboardTimeSeries) - { - return new ExportTensorboardTimeSeriesRequest(this.service, body, tensorboardTimeSeries); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Exports a TensorboardTimeSeries' data. Data is returned in paginated responses. - /// - public class ExportTensorboardTimeSeriesRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ExportTensorboardTimeSeries request. - public ExportTensorboardTimeSeriesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest body, string tensorboardTimeSeries) : base(service) - { - TensorboardTimeSeries = tensorboardTimeSeries; - Body = body; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "cancel"; - /// - /// Required. The resource name of the TensorboardTimeSeries to export data from. - /// Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboardTimeSeries", Google.Apis.Util.RequestParameterType.Path)] - public virtual string TensorboardTimeSeries { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataRequest Body { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "exportTensorboardTimeSeries"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+tensorboardTimeSeries}:exportTensorboardTimeSeries"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes ExportTensorboardTimeSeries parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("tensorboardTimeSeries", new Google.Apis.Discovery.Parameter - { - Name = "tensorboardTimeSeries", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets a TensorboardTimeSeries. - /// - /// Required. The name of the TensorboardTimeSeries resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets a TensorboardTimeSeries. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Required. The name of the TensorboardTimeSeries resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "get"; - /// Lists TensorboardTimeSeries in a Location. - /// - /// Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Lists TensorboardTimeSeries in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Required. The resource name of the TensorboardRun to list TensorboardTimeSeries. - /// Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/operations/[^/]+$", + }); + } + } - /// Lists the TensorboardTimeSeries that match the filter expression. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Field to use to sort the list. - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// The maximum number of TensorboardTimeSeries to return. The service may return fewer - /// than this value. If unspecified, at most 50 TensorboardTimeSeries are returned. The - /// maximum value is 1000; values above 1000 are coerced to 1000. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// A page token, received from a previous TensorboardService.ListTensorboardTimeSeries - /// call. Provide this to retrieve the subsequent page. When paginating, all other - /// parameters provided to TensorboardService.ListTensorboardTimeSeries must match the - /// call that provided the page token. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/timeSeries"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Updates a TensorboardTimeSeries. - /// The body of the request. - /// Output only. Name of the TensorboardTimeSeries. - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string name) - { - return new PatchRequest(this.service, body, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Updates a TensorboardTimeSeries. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Output only. Name of the TensorboardTimeSeries. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// - /// Required. Field mask is used to specify the fields to be overwritten in the - /// TensorboardTimeSeries resource by the update. The fields specified in the - /// update_mask are relative to the resource, not the full request. A field is - /// overwritten if it's in the mask. If the user does not provide a mask then all fields - /// are overwritten if new values are specified. - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardTimeSeries Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is - /// less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected - /// from this time series and returned. This value can be changed by changing - /// max_data_points, which can't be greater than 10k. - /// - /// - /// Required. The resource name of the TensorboardTimeSeries to read data from. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - public virtual ReadRequest Read(string tensorboardTimeSeries) - { - return new ReadRequest(this.service, tensorboardTimeSeries); - } + /// Gets the RagFiles resource. + public virtual RagFilesResource RagFiles { get; } - /// - /// Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is - /// less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected - /// from this time series and returned. This value can be changed by changing - /// max_data_points, which can't be greater than 10k. - /// - public class ReadRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Read request. - public ReadRequest(Google.Apis.Services.IClientService service, string tensorboardTimeSeries) : base(service) - { - TensorboardTimeSeries = tensorboardTimeSeries; - InitParameters(); - } + /// The "ragFiles" collection of methods. + public class RagFilesResource + { + private const string Resource = "ragFiles"; - /// - /// Required. The resource name of the TensorboardTimeSeries to read data from. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboardTimeSeries", Google.Apis.Util.RequestParameterType.Path)] - public virtual string TensorboardTimeSeries { get; private set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// Reads the TensorboardTimeSeries' data that match the filter expression. - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Constructs a new resource. + public RagFilesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// - /// The maximum number of TensorboardTimeSeries' data to return. This value should be a - /// positive integer. This value can be set to -1 to return all data. - /// - [Google.Apis.Util.RequestParameterAttribute("maxDataPoints", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable MaxDataPoints { get; set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "read"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+tensorboardTimeSeries}:read"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Read parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("tensorboardTimeSeries", new Google.Apis.Discovery.Parameter - { - Name = "tensorboardTimeSeries", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("maxDataPoints", new Google.Apis.Discovery.Parameter - { - Name = "maxDataPoints", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// - /// Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer - /// project's Cloud Storage bucket without users having to obtain Cloud Storage access - /// permission. - /// - /// - /// Required. The resource name of the TensorboardTimeSeries to list Blobs. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - public virtual ReadBlobDataRequest ReadBlobData(string timeSeries) - { - return new ReadBlobDataRequest(this.service, timeSeries); - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer - /// project's Cloud Storage bucket without users having to obtain Cloud Storage access - /// permission. - /// - public class ReadBlobDataRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ReadBlobData request. - public ReadBlobDataRequest(Google.Apis.Services.IClientService service, string timeSeries) : base(service) - { - TimeSeries = timeSeries; - InitParameters(); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. The resource name of the TensorboardTimeSeries to list Blobs. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - [Google.Apis.Util.RequestParameterAttribute("timeSeries", Google.Apis.Util.RequestParameterType.Path)] - public virtual string TimeSeries { get; private set; } + /// Gets the method name. + public override string MethodName => "cancel"; - /// IDs of the blobs to read. - [Google.Apis.Util.RequestParameterAttribute("blobIds", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable BlobIds { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the method name. - public override string MethodName => "readBlobData"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the REST path. - public override string RestPath => "v1/{+timeSeries}:readBlobData"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Initializes ReadBlobData parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("timeSeries", new Google.Apis.Discovery.Parameter - { - Name = "timeSeries", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", - }); - RequestParameters.Add("blobIds", new Google.Apis.Discovery.Parameter - { - Name = "blobIds", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Batch create TensorboardRuns. - /// The body of the request. - /// - /// Required. The resource name of the TensorboardExperiment to create the TensorboardRuns in. - /// Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// The parent field in the CreateTensorboardRunRequest messages must match this field. - /// - public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest body, string parent) - { - return new BatchCreateRequest(this.service, body, parent); - } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Batch create TensorboardRuns. - public class BatchCreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new BatchCreate request. - public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "delete"; - /// - /// Required. The resource name of the TensorboardExperiment to create the TensorboardRuns - /// in. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// The parent field in the CreateTensorboardRunRequest messages must match this field. - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardRunsRequest Body { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "batchCreate"; + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/runs:batchCreate"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes BatchCreate parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "get"; - /// Creates a TensorboardRun. - /// The body of the request. - /// - /// Required. The resource name of the TensorboardExperiment to create the TensorboardRun in. - /// Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Creates a TensorboardRun. - public class CreateRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The resource name of the TensorboardExperiment to create the TensorboardRun - /// in. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// - /// Required. The ID to use for the Tensorboard run, which becomes the final component of - /// the Tensorboard run's resource name. This value should be 1-128 characters, and valid - /// characters are `/a-z-/`. - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboardRunId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string TensorboardRunId { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun Body { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the method name. - public override string MethodName => "create"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/runs"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - RequestParameters.Add("tensorboardRunId", new Google.Apis.Discovery.Parameter - { - Name = "tensorboardRunId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Deletes a TensorboardRun. - /// - /// Required. The name of the TensorboardRun to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - public virtual DeleteRequest Delete(string name) + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new DeleteRequest(this.service, name); - } - - /// Deletes a TensorboardRun. - public class DeleteRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/ragFiles/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The name of the TensorboardRun to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets a TensorboardRun. - /// - /// Required. The name of the TensorboardRun resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets a TensorboardRun. - public class GetRequest : AiplatformBaseServiceRequest + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragCorpora/[^/]+/ragFiles/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } + } - /// - /// Required. The name of the TensorboardRun resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "ragEngineConfig" collection of methods. + public class RagEngineConfigResource + { + private const string Resource = "ragEngineConfig"; - /// Gets the method name. - public override string MethodName => "get"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Constructs a new resource. + public RagEngineConfigResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", - }); - } - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Lists TensorboardRuns in a Location. - /// - /// Required. The resource name of the TensorboardExperiment to list TensorboardRuns. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Lists TensorboardRuns in a Location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// Required. The resource name of the TensorboardExperiment to list TensorboardRuns. - /// Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Lists the TensorboardRuns that match the filter expression. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Field to use to sort the list. - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// The maximum number of TensorboardRuns to return. The service may return fewer than this - /// value. If unspecified, at most 50 TensorboardRuns are returned. The maximum value is - /// 1000; values above 1000 are coerced to 1000. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the method name. + public override string MethodName => "cancel"; - /// - /// A page token, received from a previous TensorboardService.ListTensorboardRuns call. - /// Provide this to retrieve the subsequent page. When paginating, all other parameters - /// provided to TensorboardService.ListTensorboardRuns must match the call that provided the - /// page token. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets the method name. - public override string MethodName => "list"; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragEngineConfig/operations/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/runs"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Updates a TensorboardRun. - /// The body of the request. - /// - /// Output only. Name of the TensorboardRun. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string name) - { - return new PatchRequest(this.service, body, name); - } + /// Gets the method name. + public override string MethodName => "delete"; - /// Updates a TensorboardRun. - public class PatchRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// Output only. Name of the TensorboardRun. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Required. Field mask is used to specify the fields to be overwritten in the - /// TensorboardRun resource by the update. The fields specified in the update_mask are - /// relative to the resource, not the full request. A field is overwritten if it's in the - /// mask. If the user does not provide a mask then all fields are overwritten if new values - /// are specified. - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragEngineConfig/operations/[^/]+$", + }); + } + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardRun Body { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "patch"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragEngineConfig/operations/[^/]+$", + }); + } + } - /// - /// Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If - /// any data fail to be ingested, an error is returned. - /// - /// The body of the request. - /// - /// Required. The resource name of the TensorboardRun to write data to. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - public virtual WriteRequest Write(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest body, string tensorboardRun) - { - return new WriteRequest(this.service, body, tensorboardRun); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// - /// Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If - /// any data fail to be ingested, an error is returned. - /// - public class WriteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Write request. - public WriteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest body, string tensorboardRun) : base(service) - { - TensorboardRun = tensorboardRun; - Body = body; - InitParameters(); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Required. The resource name of the TensorboardRun to write data to. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}` - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboardRun", Google.Apis.Util.RequestParameterType.Path)] - public virtual string TensorboardRun { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardRunDataRequest Body { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "write"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+tensorboardRun}:write"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes Write parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("tensorboardRun", new Google.Apis.Discovery.Parameter - { - Name = "tensorboardRun", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", - }); - } - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Batch create TensorboardTimeSeries that belong to a TensorboardExperiment. - /// The body of the request. - /// - /// Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries in. - /// Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// The TensorboardRuns referenced by the parent fields in the CreateTensorboardTimeSeriesRequest - /// messages must be sub resources of this TensorboardExperiment. - /// - public virtual BatchCreateRequest BatchCreate(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest body, string parent) - { - return new BatchCreateRequest(this.service, body, parent); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Batch create TensorboardTimeSeries that belong to a TensorboardExperiment. - public class BatchCreateRequest : AiplatformBaseServiceRequest + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new BatchCreate request. - public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragEngineConfig$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. The resource name of the TensorboardExperiment to create the TensorboardTimeSeries - /// in. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// The TensorboardRuns referenced by the parent fields in the - /// CreateTensorboardTimeSeriesRequest messages must be sub resources of this - /// TensorboardExperiment. - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest Body { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "batchCreate"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}:batchCreate"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes BatchCreate parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Creates a TensorboardExperiment. - /// The body of the request. - /// - /// Required. The resource name of the Tensorboard to create the TensorboardExperiment in. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string parent) + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new CreateRequest(this.service, body, parent); - } - - /// Creates a TensorboardExperiment. - public class CreateRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^ragEngineConfig/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// Required. The resource name of the Tensorboard to create the TensorboardExperiment in. - /// Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The "reasoningEngines" collection of methods. + public class ReasoningEnginesResource + { + private const string Resource = "reasoningEngines"; - /// - /// Required. The ID to use for the Tensorboard experiment, which becomes the final component of - /// the Tensorboard experiment's resource name. This value should be 1-128 characters, and valid - /// characters are `/a-z-/`. - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboardExperimentId", Google.Apis.Util.RequestParameterType.Query)] - public virtual string TensorboardExperimentId { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment Body { get; set; } + /// Constructs a new resource. + public ReasoningEnginesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "create"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/experiments"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - RequestParameters.Add("tensorboardExperimentId", new Google.Apis.Discovery.Parameter - { - Name = "tensorboardExperimentId", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Deletes a TensorboardExperiment. - /// - /// Required. The name of the TensorboardExperiment to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Deletes a TensorboardExperiment. - public class DeleteRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The name of the TensorboardExperiment to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets a TensorboardExperiment. - /// - /// Required. The name of the TensorboardExperiment resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets a TensorboardExperiment. - public class GetRequest : AiplatformBaseServiceRequest + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The name of the TensorboardExperiment resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Lists TensorboardExperiments in a Location. - /// - /// Required. The resource name of the Tensorboard to list TensorboardExperiments. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - public virtual ListRequest List(string parent) - { - return new ListRequest(this.service, parent); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Lists TensorboardExperiments in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The resource name of the Tensorboard to list TensorboardExperiments. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Lists the TensorboardExperiments that match the filter expression. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Field to use to sort the list. - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// The maximum number of TensorboardExperiments to return. The service may return fewer than - /// this value. If unspecified, at most 50 TensorboardExperiments are returned. The maximum - /// value is 1000; values above 1000 are coerced to 1000. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// A page token, received from a previous TensorboardService.ListTensorboardExperiments call. - /// Provide this to retrieve the subsequent page. When paginating, all other parameters provided - /// to TensorboardService.ListTensorboardExperiments must match the call that provided the page - /// token. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/experiments"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Updates a TensorboardExperiment. - /// The body of the request. - /// - /// Output only. Name of the TensorboardExperiment. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string name) + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new PatchRequest(this.service, body, name); - } - - /// Updates a TensorboardExperiment. - public class PatchRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } - - /// - /// Output only. Name of the TensorboardExperiment. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// Required. Field mask is used to specify the fields to be overwritten in the - /// TensorboardExperiment resource by the update. The fields specified in the update_mask are - /// relative to the resource, not the full request. A field is overwritten if it's in the mask. - /// If the user does not provide a mask then all fields are overwritten if new values are - /// specified. - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TensorboardExperiment Body { get; set; } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "patch"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// - /// Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If - /// any data fail to be ingested, an error is returned. - /// - /// The body of the request. - /// - /// Required. The resource name of the TensorboardExperiment to write data to. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - public virtual WriteRequest Write(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest body, string tensorboardExperiment) + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new WriteRequest(this.service, body, tensorboardExperiment); - } - - /// - /// Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If - /// any data fail to be ingested, an error is returned. - /// - public class WriteRequest : AiplatformBaseServiceRequest + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter { - /// Constructs a new Write request. - public WriteRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest body, string tensorboardExperiment) : base(service) - { - TensorboardExperiment = tensorboardExperiment; - Body = body; - InitParameters(); - } + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// Required. The resource name of the TensorboardExperiment to write data to. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}` - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboardExperiment", Google.Apis.Util.RequestParameterType.Path)] - public virtual string TensorboardExperiment { get; private set; } + /// Creates a reasoning engine. + /// The body of the request. + public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body) + { + return new CreateRequest(this.service, body); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1WriteTensorboardExperimentDataRequest Body { get; set; } + /// Creates a reasoning engine. + public class CreateRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body) : base(service) + { + Body = body; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// Required. The resource name of the Location to create the ReasoningEngine in. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Parent { get; set; } - /// Gets the method name. - public override string MethodName => "write"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the REST path. - public override string RestPath => "v1/{+tensorboardExperiment}:write"; + /// Gets the method name. + public override string MethodName => "create"; - /// Initializes Write parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("tensorboardExperiment", new Google.Apis.Discovery.Parameter - { - Name = "tensorboardExperiment", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/experiments/[^/]+$", - }); - } - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Gets the REST path. + public override string RestPath => "v1/reasoningEngines"; - /// The "operations" collection of methods. - public class OperationsResource + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { - private const string Resource = "operations"; + Name = "parent", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Deletes a reasoning engine. + /// + /// Required. The name of the ReasoningEngine resource to be deleted. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Deletes a reasoning engine. + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// + /// Required. The name of the ReasoningEngine resource to be deleted. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Optional. If set to true, child resources of this reasoning engine will also be deleted. Otherwise, the + /// request will fail with FAILED_PRECONDITION error when the reasoning engine has undeleted child + /// resources. + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the method name. - public override string MethodName => "cancel"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets a reasoning engine. + /// + /// Required. The name of the ReasoningEngine resource. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// Gets a reasoning engine. + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Required. The name of the ReasoningEngine resource. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+$", + }); + } + } - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", - }); - } - } + /// Lists reasoning engines in a location. + public virtual ListRequest List() + { + return new ListRequest(this.service); + } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Lists reasoning engines in a location. + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service) : base(service) + { + InitParameters(); + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Optional. The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Optional. The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Required. The resource name of the Location to list the ReasoningEngines from. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Parent { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/reasoningEngines"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Updates a reasoning engine. + /// The body of the request. + /// + /// Identifier. The resource name of the ReasoningEngine. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) + { + return new PatchRequest(this.service, body, name); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Updates a reasoning engine. + public class PatchRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// + /// Identifier. The resource name of the ReasoningEngine. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Optional. Mask specifying which fields to update. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "patch"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Queries using a reasoning engine. + /// The body of the request. + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual QueryRequest Query(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) + { + return new QueryRequest(this.service, body, name); + } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Queries using a reasoning engine. + public class QueryRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Query request. + public QueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest Body { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the method name. + public override string MethodName => "query"; - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for - /// tensors and blob references. If the number of data points stored is less than the limit, all data is - /// returned. Otherwise, the number limit of data points is randomly selected from this time series and - /// returned. - /// - /// - /// Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data from. - /// Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The - /// TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard. - /// - public virtual BatchReadRequest BatchRead(string tensorboard) - { - return new BatchReadRequest(this.service, tensorboard); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:query"; - /// - /// Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for - /// tensors and blob references. If the number of data points stored is less than the limit, all data is - /// returned. Otherwise, the number limit of data points is randomly selected from this time series and - /// returned. - /// - public class BatchReadRequest : AiplatformBaseServiceRequest + /// Initializes Query parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new BatchRead request. - public BatchReadRequest(Google.Apis.Services.IClientService service, string tensorboard) : base(service) - { - Tensorboard = tensorboard; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+$", + }); + } + } - /// - /// Required. The resource name of the Tensorboard containing TensorboardTimeSeries to read data - /// from. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}`. The - /// TensorboardTimeSeries referenced by time_series must be sub resources of this Tensorboard. - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboard", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Tensorboard { get; private set; } + /// Streams queries using a reasoning engine. + /// The body of the request. + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + public virtual StreamQueryRequest StreamQuery(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) + { + return new StreamQueryRequest(this.service, body, name); + } + + /// Streams queries using a reasoning engine. + public class StreamQueryRequest : AiplatformBaseServiceRequest + { + /// Constructs a new StreamQuery request. + public StreamQueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } - /// - /// Required. The resource names of the TensorboardTimeSeries to read data from. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}` - /// - [Google.Apis.Util.RequestParameterAttribute("timeSeries", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable TimeSeries { get; set; } + /// + /// Required. The name of the ReasoningEngine resource to use. Format: + /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "batchRead"; + /// Gets or sets the body of this request. + Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest Body { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the REST path. - public override string RestPath => "v1/{+tensorboard}:batchRead"; + /// Gets the method name. + public override string MethodName => "streamQuery"; - /// Initializes BatchRead parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("tensorboard", new Google.Apis.Discovery.Parameter - { - Name = "tensorboard", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - RequestParameters.Add("timeSeries", new Google.Apis.Discovery.Parameter - { - Name = "timeSeries", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Creates a Tensorboard. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the Tensorboard in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string parent) - { - return new CreateRequest(this.service, body, parent); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:streamQuery"; - /// Creates a Tensorboard. - public class CreateRequest : AiplatformBaseServiceRequest + /// Initializes StreamQuery parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^reasoningEngines/[^/]+$", + }); + } + } + } - /// - /// Required. The resource name of the Location to create the Tensorboard in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The "schedules" collection of methods. + public class SchedulesResource + { + private const string Resource = "schedules"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard Body { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Constructs a new resource. + public SchedulesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/tensorboards"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Deletes a Tensorboard. - /// - /// Required. The name of the Tensorboard to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Deletes a Tensorboard. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the Tensorboard to be deleted. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "delete"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Delete parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^schedules/[^/]+/operations/[^/]+$", + }); } + } - /// Gets a Tensorboard. - /// - /// Required. The name of the Tensorboard resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets a Tensorboard. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = name; + InitParameters(); + } - /// - /// Required. The name of the Tensorboard resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Get parameter list. - protected override void InitParameters() + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^schedules/[^/]+/operations/[^/]+$", + }); } + } - /// Lists Tensorboards in a Location. - /// - /// Required. The resource name of the Location to list Tensorboards. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ListRequest(this.service, parent); + Name = name; + InitParameters(); } - /// Lists Tensorboards in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Parent = parent; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^schedules/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The resource name of the Location to list Tensorboards. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Lists the Tensorboards that match the filter expression. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Field to use to sort the list. - [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] - public virtual string OrderBy { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// The maximum number of Tensorboards to return. The service may return fewer than this value. If - /// unspecified, at most 100 Tensorboards are returned. The maximum value is 100; values above 100 - /// are coerced to 100. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// A page token, received from a previous TensorboardService.ListTensorboards call. Provide this to - /// retrieve the subsequent page. When paginating, all other parameters provided to - /// TensorboardService.ListTensorboards must match the call that provided the page token. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/tensorboards"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes List parameter list. - protected override void InitParameters() + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("orderBy", new Google.Apis.Discovery.Parameter - { - Name = "orderBy", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter - { - Name = "readMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^schedules/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// Updates a Tensorboard. - /// The body of the request. - /// - /// Output only. Name of the Tensorboard. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string name) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new PatchRequest(this.service, body, name); + Name = name; + InitParameters(); } - /// Updates a Tensorboard. - public class PatchRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^schedules/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// - /// Output only. Name of the Tensorboard. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "specialistPools" collection of methods. + public class SpecialistPoolsResource + { + private const string Resource = "specialistPools"; - /// - /// Required. Field mask is used to specify the fields to be overwritten in the Tensorboard resource - /// by the update. The fields specified in the update_mask are relative to the resource, not the - /// full request. A field is overwritten if it's in the mask. If the user does not provide a mask - /// then all fields are overwritten if new values are specified. - /// - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1Tensorboard Body { get; set; } + /// Constructs a new resource. + public SpecialistPoolsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the method name. - public override string MethodName => "patch"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes Patch parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter - { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Returns the storage size for a given TensorBoard instance. - /// - /// Required. The name of the Tensorboard resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - public virtual ReadSizeRequest ReadSize(string tensorboard) + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ReadSizeRequest(this.service, tensorboard); + Name = name; + InitParameters(); } - /// Returns the storage size for a given TensorBoard instance. - public class ReadSizeRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ReadSize request. - public ReadSizeRequest(Google.Apis.Services.IClientService service, string tensorboard) : base(service) - { - Tensorboard = tensorboard; - InitParameters(); - } - - /// - /// Required. The name of the Tensorboard resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboard", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Tensorboard { get; private set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "readSize"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+tensorboard}:readSize"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes ReadSize parameter list. - protected override void InitParameters() + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("tensorboard", new Google.Apis.Discovery.Parameter - { - Name = "tensorboard", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^specialistPools/[^/]+/operations/[^/]+$", + }); } + } - /// Returns a list of monthly active users for a given TensorBoard instance. - /// - /// Required. The name of the Tensorboard resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - public virtual ReadUsageRequest ReadUsage(string tensorboard) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new ReadUsageRequest(this.service, tensorboard); + Name = name; + InitParameters(); } - /// Returns a list of monthly active users for a given TensorBoard instance. - public class ReadUsageRequest : AiplatformBaseServiceRequest + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - /// Constructs a new ReadUsage request. - public ReadUsageRequest(Google.Apis.Services.IClientService service, string tensorboard) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Tensorboard = tensorboard; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^specialistPools/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Required. The name of the Tensorboard resource. Format: - /// `projects/{project}/locations/{location}/tensorboards/{tensorboard}` - /// - [Google.Apis.Util.RequestParameterAttribute("tensorboard", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Tensorboard { get; private set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "readUsage"; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the REST path. - public override string RestPath => "v1/{+tensorboard}:readUsage"; + /// Gets the method name. + public override string MethodName => "get"; - /// Initializes ReadUsage parameter list. - protected override void InitParameters() + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("tensorboard", new Google.Apis.Discovery.Parameter - { - Name = "tensorboard", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tensorboards/[^/]+$", - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^specialistPools/[^/]+/operations/[^/]+$", + }); } } - /// Gets the TrainingPipelines resource. - public virtual TrainingPipelinesResource TrainingPipelines { get; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// The "trainingPipelines" collection of methods. - public class TrainingPipelinesResource + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { - private const string Resource = "trainingPipelines"; + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Constructs a new resource. - public TrainingPipelinesResource(Google.Apis.Services.IClientService service) + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() { - this.service = service; - Operations = new OperationsResource(service); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^specialistPools/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// The "operations" collection of methods. - public class OperationsResource + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - private const string Resource = "operations"; + Name = name; + InitParameters(); + } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } + /// Gets the method name. + public override string MethodName => "wait"; - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^specialistPools/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The "studies" collection of methods. + public class StudiesResource + { + private const string Resource = "studies"; - /// Gets the method name. - public override string MethodName => "cancel"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Constructs a new resource. + public StudiesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + Trials = new TrialsResource(service); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", - }); - } - } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Gets the method name. - public override string MethodName => "delete"; + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new GetRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^studies/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// 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. - /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "get"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "delete"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - return new ListRequest(this.service, name); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^studies/[^/]+/operations/[^/]+$", + }); + } + } - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the method name. + public override string MethodName => "get"; - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets the method name. - public override string MethodName => "list"; + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^studies/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// 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. - /// - /// The name of the operation resource to wait on. - public virtual WaitRequest Wait(string name) - { - return new WaitRequest(this.service, name); - } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// 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. - /// - public class WaitRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Wait request. - public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// The name of the operation resource to wait on. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// - /// 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. - /// - [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] - public virtual object Timeout { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the method name. - public override string MethodName => "wait"; + /// Gets the method name. + public override string MethodName => "list"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:wait"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Initializes Wait parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+/operations/[^/]+$", - }); - RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter - { - Name = "timeout", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^studies/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } + } - /// - /// Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server - /// makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use - /// PipelineService.GetTrainingPipeline or other methods to check whether the cancellation succeeded or - /// whether the pipeline completed despite cancellation. On successful cancellation, the - /// TrainingPipeline is not deleted; instead it becomes a pipeline with a TrainingPipeline.error value - /// with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TrainingPipeline.state is - /// set to `CANCELLED`. - /// - /// The body of the request. - /// - /// Required. The name of the TrainingPipeline to cancel. Format: - /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTrainingPipelineRequest body, string name) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } + + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - return new CancelRequest(this.service, body, name); + Name = name; + InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server - /// makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use - /// PipelineService.GetTrainingPipeline or other methods to check whether the cancellation succeeded or - /// whether the pipeline completed despite cancellation. On successful cancellation, the - /// TrainingPipeline is not deleted; instead it becomes a pipeline with a TrainingPipeline.error value - /// with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and TrainingPipeline.state is - /// set to `CANCELLED`. + /// 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. /// - public class CancelRequest : AiplatformBaseServiceRequest + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } + + /// Gets the method name. + public override string MethodName => "wait"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTrainingPipelineRequest body, string name) : base(service) + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = name; - Body = body; - InitParameters(); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^studies/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } - /// - /// Required. The name of the TrainingPipeline to cancel. Format: - /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the Trials resource. + public virtual TrialsResource Trials { get; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTrainingPipelineRequest Body { get; set; } + /// The "trials" collection of methods. + public class TrialsResource + { + private const string Resource = "trials"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the method name. - public override string MethodName => "cancel"; + /// Constructs a new resource. + public TrialsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", - }); - } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; } /// - /// Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location to create the TrainingPipeline in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TrainingPipeline body, string parent) + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CreateRequest(this.service, body, parent); + return new CancelRequest(this.service, name); } /// - /// Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run. + /// 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`. /// - public class CreateRequest : AiplatformBaseServiceRequest + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TrainingPipeline body, string parent) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to create the TrainingPipeline in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TrainingPipeline Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/trainingPipelines"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes Create parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^studies/[^/]+/trials/[^/]+/operations/[^/]+$", }); } } - /// Deletes a TrainingPipeline. - /// - /// Required. The name of the TrainingPipeline resource to be deleted. Format: - /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` - /// + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. public virtual DeleteRequest Delete(string name) { return new DeleteRequest(this.service, name); } - /// Deletes a TrainingPipeline. - public class DeleteRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { /// Constructs a new Delete request. public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -45789,10 +63612,7 @@ public DeleteRequest(Google.Apis.Services.IClientService service, string name) : InitParameters(); } - /// - /// Required. The name of the TrainingPipeline resource to be deleted. Format: - /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` - /// + /// The name of the operation resource to be deleted. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -45815,23 +63635,26 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + Pattern = @"^studies/[^/]+/trials/[^/]+/operations/[^/]+$", }); } } - /// Gets a TrainingPipeline. - /// - /// Required. The name of the TrainingPipeline resource. Format: - /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a TrainingPipeline. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -45840,10 +63663,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the TrainingPipeline resource. Format: - /// `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -45866,50 +63686,39 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/trainingPipelines/[^/]+$", + Pattern = @"^studies/[^/]+/trials/[^/]+/operations/[^/]+$", }); } } - /// Lists TrainingPipelines in a Location. - /// - /// Required. The resource name of the Location to list the TrainingPipelines from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists TrainingPipelines in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to list the TrainingPipelines from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and - /// `:` wildcard. * `state` supports `=`, `!=` comparisons. * `training_task_definition` `=`, `!=` - /// comparisons, and `:` wildcard. * `create_time` supports `=`, `!=`,`&lt;`, - /// `&lt;=`,`&gt;`, `&gt;=` 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="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"` * - /// `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"` * `NOT - /// display_name="my_pipeline"` * `create_time&gt;"2021-05-18T00:00:00Z"` * - /// `training_task_definition:"*automl_text_classification*"` - /// + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } @@ -45917,17 +63726,20 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// The standard list page token. Typically obtained via - /// ListTrainingPipelinesResponse.next_page_token of the previous - /// PipelineService.ListTrainingPipelines call. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } - /// Mask specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("readMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object ReadMask { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. public override string MethodName => "list"; @@ -45936,19 +63748,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/trainingPipelines"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^studies/[^/]+/trials/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -45974,9 +63786,9 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - RequestParameters.Add("readMask", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "readMask", + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -45984,364 +63796,174 @@ protected override void InitParameters() }); } } - } - - /// Gets the TuningJobs resource. - public virtual TuningJobsResource TuningJobs { get; } - - /// The "tuningJobs" collection of methods. - public class TuningJobsResource - { - private const string Resource = "tuningJobs"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - /// Constructs a new resource. - public TuningJobsResource(Google.Apis.Services.IClientService service) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - this.service = service; - Operations = new OperationsResource(service); + return new WaitRequest(this.service, name); } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } - - /// The "operations" collection of methods. - public class OperationsResource + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - private const string Resource = "operations"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// - /// 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`. - /// - /// The name of the operation resource to be cancelled. - public virtual CancelRequest Cancel(string name) - { - return new CancelRequest(this.service, name); - } - - /// - /// 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`. - /// - public class CancelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be cancelled. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "cancel"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}:cancel"; - - /// Initializes Cancel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", - }); - } - } - - /// - /// 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`. - /// - /// The name of the operation resource to be deleted. - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// - /// 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`. - /// - public class DeleteRequest : AiplatformBaseServiceRequest + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource to be deleted. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", - }); - } + Name = name; + InitParameters(); } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// - /// 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. + /// 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. /// - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets the method name. - public override string MethodName => "get"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - /// The name of the operation's parent resource. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// - /// Lists operations that match the specified filter in the request. If the server doesn't support - /// this method, it returns `UNIMPLEMENTED`. - /// - public class ListRequest : AiplatformBaseServiceRequest + /// Initializes Wait parameter list. + protected override void InitParameters() { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } - - /// The name of the operation's parent resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// The standard list filter. - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } - - /// - /// When set to `true`, operations that are reachable are returned as normal, and those that are - /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be - /// `true` when reading across collections e.g. when `parent` is set to - /// `"projects/example/locations/-"`. This field is not by default supported and will result in - /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product - /// specific documentation. - /// - [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable ReturnPartialSuccess { get; set; } - - /// Gets the method name. - public override string MethodName => "list"; - - /// Gets the HTTP method. - public override string HttpMethod => "GET"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}/operations"; - - /// Initializes List parameter list. - protected override void InitParameters() + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter - { - Name = "returnPartialSuccess", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^studies/[^/]+/trials/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } + } + } + } + + /// The "tensorboards" collection of methods. + public class TensorboardsResource + { + private const string Resource = "tensorboards"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TensorboardsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Experiments = new ExperimentsResource(service); + Operations = new OperationsResource(service); + } + + /// Gets the Experiments resource. + public virtual ExperimentsResource Experiments { get; } + + /// The "experiments" collection of methods. + public class ExperimentsResource + { + private const string Resource = "experiments"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ExperimentsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + Runs = new RunsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } /// - /// Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best - /// effort to cancel the job, but success is not guaranteed. Clients can use - /// GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or - /// whether the job completed despite cancellation. On successful cancellation, the TuningJob is not - /// deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, - /// corresponding to `Code.CANCELLED`, and TuningJob.state is set to `CANCELLED`. + /// 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`. /// - /// The body of the request. - /// - /// Required. The name of the TuningJob to cancel. Format: - /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` - /// - public virtual CancelRequest Cancel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTuningJobRequest body, string name) + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CancelRequest(this.service, body, name); + return new CancelRequest(this.service, name); } /// - /// Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best - /// effort to cancel the job, but success is not guaranteed. Clients can use - /// GenAiTuningService.GetTuningJob or other methods to check whether the cancellation succeeded or - /// whether the job completed despite cancellation. On successful cancellation, the TuningJob is not - /// deleted; instead it becomes a job with a TuningJob.error value with a google.rpc.Status.code of 1, - /// corresponding to `Code.CANCELLED`, and TuningJob.state is set to `CANCELLED`. + /// 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`. /// public class CancelRequest : AiplatformBaseServiceRequest { /// Constructs a new Cancel request. - public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTuningJobRequest body, string name) : base(service) + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; - Body = body; InitParameters(); } - /// - /// Required. The name of the TuningJob to cancel. Format: - /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` - /// + /// The name of the operation resource to be cancelled. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CancelTuningJobRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - /// Gets the method name. public override string MethodName => "cancel"; @@ -46361,82 +63983,79 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", }); } } - /// Creates a TuningJob. A created TuningJob right away will be attempted to be run. - /// The body of the request. - /// - /// Required. The resource name of the Location to create the TuningJob in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TuningJob body, string parent) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - return new CreateRequest(this.service, body, parent); + return new DeleteRequest(this.service, name); } - /// Creates a TuningJob. A created TuningJob right away will be attempted to be run. - public class CreateRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TuningJob body, string parent) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to create the TuningJob in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1TuningJob Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "create"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/tuningJobs"; + public override string RestPath => "v1/{+name}"; - /// Initializes Create parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", }); } } - /// Gets a TuningJob. - /// - /// Required. The name of the TuningJob resource. Format: - /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` - /// + /// + /// 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. + /// + /// The name of the operation resource. public virtual GetRequest Get(string name) { return new GetRequest(this.service, name); } - /// Gets a TuningJob. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { /// Constructs a new Get request. public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) @@ -46445,10 +64064,7 @@ public GetRequest(Google.Apis.Services.IClientService service, string name) : ba InitParameters(); } - /// - /// Required. The name of the TuningJob resource. Format: - /// `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` - /// + /// The name of the operation resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -46471,53 +64087,61 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+$", + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", }); } } - /// Lists TuningJobs in a Location. - /// - /// Required. The resource name of the Location to list the TuningJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual ListRequest List(string parent) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new ListRequest(this.service, parent); + return new ListRequest(this.service, name); } - /// Lists TuningJobs in a Location. - public class ListRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Parent = parent; + Name = name; InitParameters(); } - /// - /// Required. The resource name of the Location to list the TuningJobs from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Optional. The standard list filter. + /// The standard list filter. [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } - /// Optional. The standard list page size. + /// The standard list page size. [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable PageSize { get; set; } - /// - /// Optional. The standard list page token. Typically obtained via - /// ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.ListTuningJob][] call. - /// + /// The standard list page token. [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -46525,19 +64149,19 @@ public ListRequest(Google.Apis.Services.IClientService service, string parent) : public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+parent}/tuningJobs"; + public override string RestPath => "v1/{+name}/operations"; /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "parent", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+$", }); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { @@ -46563,1266 +64187,1106 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); - } - } - - /// Rebase a TunedModel. - /// The body of the request. - /// - /// Required. The resource name of the Location into which to rebase the Model. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual RebaseTunedModelRequest RebaseTunedModel(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebaseTunedModelRequest body, string parent) - { - return new RebaseTunedModelRequest(this.service, body, parent); - } - - /// Rebase a TunedModel. - public class RebaseTunedModelRequest : AiplatformBaseServiceRequest - { - /// Constructs a new RebaseTunedModel request. - public RebaseTunedModelRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebaseTunedModelRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Location into which to rebase the Model. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RebaseTunedModelRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "rebaseTunedModel"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}/tuningJobs:rebaseTunedModel"; - - /// Initializes RebaseTunedModel parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "parent", - IsRequired = true, - ParameterType = "path", + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", + Pattern = null, }); } } - } - - /// - /// Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating - /// grounded responses. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location from which to augment prompt. The users must have permission - /// to make a call in the project. Format: `projects/{project}/locations/{location}`. - /// - public virtual AugmentPromptRequest AugmentPrompt(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AugmentPromptRequest body, string parent) - { - return new AugmentPromptRequest(this.service, body, parent); - } - - /// - /// Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating - /// grounded responses. - /// - public class AugmentPromptRequest : AiplatformBaseServiceRequest - { - /// Constructs a new AugmentPrompt request. - public AugmentPromptRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AugmentPromptRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Location from which to augment prompt. The users must have - /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1AugmentPromptRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "augmentPrompt"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}:augmentPrompt"; - - /// Initializes AugmentPrompt parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } - - /// - /// Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and - /// returns claims from the text and provides supporting facts. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location from which to corroborate text. The users must have - /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. - /// - public virtual CorroborateContentRequest CorroborateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CorroborateContentRequest body, string parent) - { - return new CorroborateContentRequest(this.service, body, parent); - } - - /// - /// Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and - /// returns claims from the text and provides supporting facts. - /// - public class CorroborateContentRequest : AiplatformBaseServiceRequest - { - /// Constructs a new CorroborateContent request. - public CorroborateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CorroborateContentRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } - - /// - /// Required. The resource name of the Location from which to corroborate text. The users must have - /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CorroborateContentRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "corroborateContent"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+parent}:corroborateContent"; - - /// Initializes CorroborateContent parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } - - /// Deploys a model to a new endpoint. - /// The body of the request. - /// - /// Required. The resource name of the Location to deploy the model in. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual DeployRequest Deploy(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployRequest body, string destination) - { - return new DeployRequest(this.service, body, destination); - } - - /// Deploys a model to a new endpoint. - public class DeployRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Deploy request. - public DeployRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployRequest body, string destination) : base(service) - { - Destination = destination; - Body = body; - InitParameters(); - } /// - /// Required. The resource name of the Location to deploy the model in. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("destination", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Destination { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1DeployRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "deploy"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+destination}:deploy"; - - /// Initializes Deploy parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("destination", new Google.Apis.Discovery.Parameter - { - Name = "destination", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } - - /// Evaluates a dataset based on a set of given metrics. - /// The body of the request. - /// - /// Required. The resource name of the Location to evaluate the dataset. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual EvaluateDatasetRequest EvaluateDataset(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateDatasetRequest body, string location) - { - return new EvaluateDatasetRequest(this.service, body, location); - } - - /// Evaluates a dataset based on a set of given metrics. - public class EvaluateDatasetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new EvaluateDataset request. - public EvaluateDatasetRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateDatasetRequest body, string location) : base(service) + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - Location = location; - Body = body; - InitParameters(); + return new WaitRequest(this.service, name); } /// - /// Required. The resource name of the Location to evaluate the dataset. Format: - /// `projects/{project}/locations/{location}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Location { get; private set; } + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateDatasetRequest Body { get; set; } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "evaluateDataset"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+location}:evaluateDataset"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes EvaluateDataset parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + /// Initializes Wait parameter list. + protected override void InitParameters() { - Name = "location", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } - /// Evaluates instances based on a given metric. - /// The body of the request. - /// - /// Required. The resource name of the Location to evaluate the instances. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual EvaluateInstancesRequest EvaluateInstances(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateInstancesRequest body, string location) - { - return new EvaluateInstancesRequest(this.service, body, location); - } + /// Gets the Runs resource. + public virtual RunsResource Runs { get; } - /// Evaluates instances based on a given metric. - public class EvaluateInstancesRequest : AiplatformBaseServiceRequest + /// The "runs" collection of methods. + public class RunsResource { - /// Constructs a new EvaluateInstances request. - public EvaluateInstancesRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateInstancesRequest body, string location) : base(service) + private const string Resource = "runs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public RunsResource(Google.Apis.Services.IClientService service) { - Location = location; - Body = body; - InitParameters(); + this.service = service; + Operations = new OperationsResource(service); + TimeSeries = new TimeSeriesResource(service); } - /// - /// Required. The resource name of the Location to evaluate the instances. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Location { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1EvaluateInstancesRequest Body { get; set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the method name. - public override string MethodName => "evaluateInstances"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+location}:evaluateInstances"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Initializes EvaluateInstances parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - Name = "location", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// - /// Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. - /// One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on - /// provided prompt, which can then be reviewed and used for subsequent evaluations. - /// - /// The body of the request. - /// - /// Required. The resource name of the Location to generate rubrics from. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual GenerateInstanceRubricsRequest GenerateInstanceRubrics(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest body, string location) - { - return new GenerateInstanceRubricsRequest(this.service, body, location); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. - /// One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on - /// provided prompt, which can then be reviewed and used for subsequent evaluations. - /// - public class GenerateInstanceRubricsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GenerateInstanceRubrics request. - public GenerateInstanceRubricsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest body, string location) : base(service) - { - Location = location; - Body = body; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "cancel"; - /// - /// Required. The resource name of the Location to generate rubrics from. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Location { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest Body { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "generateInstanceRubrics"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+location}:generateInstanceRubrics"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes GenerateInstanceRubrics parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("location", new Google.Apis.Discovery.Parameter - { - Name = "location", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "delete"; - /// Generates synthetic data based on the provided configuration. - /// The body of the request. - /// - /// Required. The resource name of the Location to run the job. Format: - /// `projects/{project}/locations/{location}` - /// - public virtual GenerateSyntheticDataRequest GenerateSyntheticData(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateSyntheticDataRequest body, string location) - { - return new GenerateSyntheticDataRequest(this.service, body, location); - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Generates synthetic data based on the provided configuration. - public class GenerateSyntheticDataRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GenerateSyntheticData request. - public GenerateSyntheticDataRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateSyntheticDataRequest body, string location) : base(service) - { - Location = location; - Body = body; - InitParameters(); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Required. The resource name of the Location to run the job. Format: - /// `projects/{project}/locations/{location}` - /// - [Google.Apis.Util.RequestParameterAttribute("location", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Location { get; private set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateSyntheticDataRequest Body { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "generateSyntheticData"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+location}:generateSyntheticData"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes GenerateSyntheticData parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("location", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - Name = "location", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + return new ListRequest(this.service, name); + } - /// Gets information about a location. - /// Resource name for the location. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support + /// this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets information about a location. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Resource name for the location. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + return new WaitRequest(this.service, name); + } - /// Gets a RagEngineConfig. - /// - /// Required. The name of the RagEngineConfig resource. Format: - /// `projects/{project}/locations/{location}/ragEngineConfig` - /// - public virtual GetRagEngineConfigRequest GetRagEngineConfig(string name) - { - return new GetRagEngineConfigRequest(this.service, name); - } + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets a RagEngineConfig. - public class GetRagEngineConfigRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GetRagEngineConfig request. - public GetRagEngineConfigRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// - /// Required. The name of the RagEngineConfig resource. Format: - /// `projects/{project}/locations/{location}/ragEngineConfig` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the method name. - public override string MethodName => "getRagEngineConfig"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; - /// Initializes GetRagEngineConfig parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig$", - }); + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } } - } - /// Lists information about the supported locations for this service. - /// The resource that owns the locations collection, if applicable. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Gets the TimeSeries resource. + public virtual TimeSeriesResource TimeSeries { get; } - /// Lists information about the supported locations for this service. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// The "timeSeries" collection of methods. + public class TimeSeriesResource { - Name = name; - InitParameters(); - } - - /// The resource that owns the locations collection, if applicable. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + private const string Resource = "timeSeries"; - /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. - /// - [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Constructs a new resource. + public TimeSeriesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } - /// - /// The maximum number of results to return. If not set, the service selects a default. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// - /// A page token received from the `next_page_token` field in the response. Send that page token to - /// receive the subsequent page. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; - /// Gets the method name. - public override string MethodName => "list"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/locations"; + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+$", - }); - RequestParameters.Add("extraLocationTypes", new Google.Apis.Discovery.Parameter - { - Name = "extraLocationTypes", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Retrieves relevant contexts for a query. - /// The body of the request. - /// - /// Required. The resource name of the Location from which to retrieve RagContexts. The users must have - /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. - /// - public virtual RetrieveContextsRequest RetrieveContexts(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RetrieveContextsRequest body, string parent) - { - return new RetrieveContextsRequest(this.service, body, parent); - } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Retrieves relevant contexts for a query. - public class RetrieveContextsRequest : AiplatformBaseServiceRequest - { - /// Constructs a new RetrieveContexts request. - public RetrieveContextsRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RetrieveContextsRequest body, string parent) : base(service) - { - Parent = parent; - Body = body; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "cancel"; - /// - /// Required. The resource name of the Location from which to retrieve RagContexts. The users must have - /// permission to make a call in the project. Format: `projects/{project}/locations/{location}`. - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RetrieveContextsRequest Body { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets the method name. - public override string MethodName => "retrieveContexts"; + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}:retrieveContexts"; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes RetrieveContexts parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Gets the method name. + public override string MethodName => "delete"; - /// Updates a RagEngineConfig. - /// The body of the request. - /// - /// Identifier. The name of the RagEngineConfig. Format: - /// `projects/{project}/locations/{location}/ragEngineConfig` - /// - public virtual UpdateRagEngineConfigRequest UpdateRagEngineConfig(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagEngineConfig body, string name) - { - return new UpdateRagEngineConfigRequest(this.service, body, name); - } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// Updates a RagEngineConfig. - public class UpdateRagEngineConfigRequest : AiplatformBaseServiceRequest - { - /// Constructs a new UpdateRagEngineConfig request. - public UpdateRagEngineConfigRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagEngineConfig body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// - /// Identifier. The name of the RagEngineConfig. Format: - /// `projects/{project}/locations/{location}/ragEngineConfig` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1RagEngineConfig Body { get; set; } + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "updateRagEngineConfig"; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Initializes UpdateRagEngineConfig parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+/ragEngineConfig$", - }); - } - } - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Gets a GenAI cache config. - /// Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`. - public virtual GetCacheConfigRequest GetCacheConfig(string name) - { - return new GetCacheConfigRequest(this.service, name); - } + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + } + } - /// Gets a GenAI cache config. - public class GetCacheConfigRequest : AiplatformBaseServiceRequest - { - /// Constructs a new GetCacheConfig request. - public GetCacheConfigRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } - /// Required. Name of the cache config. Format: - `projects/{project}/cacheConfig`. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// Lists operations that match the specified filter in the request. If the server doesn't + /// support this method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "getCacheConfig"; + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Initializes GetCacheConfig parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/cacheConfig$", - }); - } - } + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Updates a cache config. - /// The body of the request. - /// Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`. - public virtual UpdateCacheConfigRequest UpdateCacheConfig(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CacheConfig body, string name) - { - return new UpdateCacheConfigRequest(this.service, body, name); - } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Updates a cache config. - public class UpdateCacheConfigRequest : AiplatformBaseServiceRequest - { - /// Constructs a new UpdateCacheConfig request. - public UpdateCacheConfigRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CacheConfig body, string name) : base(service) - { - Name = name; - Body = body; - InitParameters(); - } + /// Gets the method name. + public override string MethodName => "list"; - /// Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CacheConfig Body { get; set; } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } - /// Gets the method name. - public override string MethodName => "updateCacheConfig"; + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Initializes UpdateCacheConfig parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/cacheConfig$", - }); - } - } - } + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// The "publishers" collection of methods. - public class PublishersResource - { - private const string Resource = "publishers"; + /// Gets the method name. + public override string MethodName => "wait"; - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Constructs a new resource. - public PublishersResource(Google.Apis.Services.IClientService service) - { - this.service = service; - Models = new ModelsResource(service); + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tensorboards/[^/]+/experiments/[^/]+/runs/[^/]+/timeSeries/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } + } } - /// Gets the Models resource. - public virtual ModelsResource Models { get; } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } - /// The "models" collection of methods. - public class ModelsResource + /// The "operations" collection of methods. + public class OperationsResource { - private const string Resource = "models"; + private const string Resource = "operations"; /// The service which this resource belongs to. private readonly Google.Apis.Services.IClientService service; /// Constructs a new resource. - public ModelsResource(Google.Apis.Services.IClientService service) + public OperationsResource(Google.Apis.Services.IClientService service) { this.service = service; } - /// Return a list of tokens based on the input text. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - /// - public virtual ComputeTokensRequest ComputeTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) - { - return new ComputeTokensRequest(this.service, body, endpoint); - } - - /// Return a list of tokens based on the input text. - public class ComputeTokensRequest : AiplatformBaseServiceRequest - { - /// Constructs a new ComputeTokens request. - public ComputeTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest body, string endpoint) : base(service) - { - Endpoint = endpoint; - Body = body; - InitParameters(); - } - - /// - /// Required. The name of the Endpoint requested to get lists of tokens and token ids. - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ComputeTokensRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; - - /// Gets the method name. - public override string MethodName => "computeTokens"; - - /// Gets the HTTP method. - public override string HttpMethod => "POST"; - - /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:computeTokens"; - - /// Initializes ComputeTokens parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter - { - Name = "endpoint", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", - }); - } - } - - /// Perform a token counting. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual CountTokensRequest CountTokens(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new CountTokensRequest(this.service, body, endpoint); + return new CancelRequest(this.service, name); } - /// Perform a token counting. - public class CountTokensRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new CountTokens request. - public CountTokensRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest body, string endpoint) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to perform token counting. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1CountTokensRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "countTokens"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:countTokens"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes CountTokens parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", + Pattern = @"^tensorboards/[^/]+/operations/[^/]+$", }); } } - /// Fetch an asynchronous online prediction operation. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual FetchPredictOperationRequest FetchPredictOperation(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - return new FetchPredictOperationRequest(this.service, body, endpoint); + return new DeleteRequest(this.service, name); } - /// Fetch an asynchronous online prediction operation. - public class FetchPredictOperationRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new FetchPredictOperation request. - public FetchPredictOperationRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest body, string endpoint) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1FetchPredictOperationRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "fetchPredictOperation"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:fetchPredictOperation"; + public override string RestPath => "v1/{+name}"; - /// Initializes FetchPredictOperation parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", + Pattern = @"^tensorboards/[^/]+/operations/[^/]+$", }); } } - /// Generate content with multimodal inputs. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual GenerateContentRequest GenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - return new GenerateContentRequest(this.service, body, model); + return new GetRequest(this.service, name); } - /// Generate content with multimodal inputs. - public class GenerateContentRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class GetRequest : AiplatformBaseServiceRequest { - /// Constructs a new GenerateContent request. - public GenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Model = model; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "generateContent"; + public override string MethodName => "get"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+model}:generateContent"; + public override string RestPath => "v1/{+name}"; - /// Initializes GenerateContent parameter list. + /// Initializes Get parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "model", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", + Pattern = @"^tensorboards/[^/]+/operations/[^/]+$", }); } } - /// Gets a Model Garden publisher model. - /// - /// Required. The name of the PublisherModel resource. Format: - /// `publishers/{publisher}/models/{publisher_model}` - /// - public virtual GetRequest Get(string name) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - return new GetRequest(this.service, name); + return new ListRequest(this.service, name); } - /// Gets a Model Garden publisher model. - public class GetRequest : AiplatformBaseServiceRequest + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : AiplatformBaseServiceRequest { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } - /// - /// Required. The name of the PublisherModel resource. Format: - /// `publishers/{publisher}/models/{publisher_model}` - /// + /// The name of the operation's parent resource. [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } - /// Optional. Token used to access Hugging Face gated models. - [Google.Apis.Util.RequestParameterAttribute("huggingFaceToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string HuggingFaceToken { get; set; } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Optional. Boolean indicates whether the requested model is a Hugging Face model. - [Google.Apis.Util.RequestParameterAttribute("isHuggingFaceModel", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable IsHuggingFaceModel { get; set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } /// - /// Optional. The IETF BCP-47 language code representing the language in which the publisher model's - /// text information should be written in. + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. /// - [Google.Apis.Util.RequestParameterAttribute("languageCode", Google.Apis.Util.RequestParameterType.Query)] - public virtual string LanguageCode { get; set; } - - /// Optional. PublisherModel view specifying which fields to read. - [Google.Apis.Util.RequestParameterAttribute("view", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable View { get; set; } - - /// Optional. PublisherModel view specifying which fields to read. - public enum ViewEnum - { - /// The default / unset value. The API will default to the BASIC view. - [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VIEW_UNSPECIFIED")] - PUBLISHERMODELVIEWUNSPECIFIED = 0, - - /// Include basic metadata about the publisher model, but not the full contents. - [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VIEW_BASIC")] - PUBLISHERMODELVIEWBASIC = 1, - - /// Include everything. - [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VIEW_FULL")] - PUBLISHERMODELVIEWFULL = 2, - - /// Include: VersionId, ModelVersionExternalName, and SupportedActions. - [Google.Apis.Util.StringValueAttribute("PUBLISHER_MODEL_VERSION_VIEW_BASIC")] - PUBLISHERMODELVERSIONVIEWBASIC = 3, - } + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } /// Gets the method name. - public override string MethodName => "get"; + public override string MethodName => "list"; /// Gets the HTTP method. public override string HttpMethod => "GET"; /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + public override string RestPath => "v1/{+name}/operations"; - /// Initializes Get parameter list. + /// Initializes List parameter list. protected override void InitParameters() { base.InitParameters(); @@ -47832,35 +65296,35 @@ protected override void InitParameters() IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", + Pattern = @"^tensorboards/[^/]+$", }); - RequestParameters.Add("huggingFaceToken", new Google.Apis.Discovery.Parameter + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { - Name = "huggingFaceToken", + Name = "filter", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("isHuggingFaceModel", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { - Name = "isHuggingFaceModel", + Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("languageCode", new Google.Apis.Discovery.Parameter + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { - Name = "languageCode", + Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); - RequestParameters.Add("view", new Google.Apis.Discovery.Parameter + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter { - Name = "view", + Name = "returnPartialSuccess", IsRequired = false, ParameterType = "query", DefaultValue = null, @@ -47869,645 +65333,758 @@ protected override void InitParameters() } } - /// Perform an online prediction. - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual PredictRequest Predict(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) + /// + /// 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. + /// + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) { - return new PredictRequest(this.service, body, endpoint); + return new WaitRequest(this.service, name); } - /// Perform an online prediction. - public class PredictRequest : AiplatformBaseServiceRequest + /// + /// 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. + /// + public class WaitRequest : AiplatformBaseServiceRequest { - /// Constructs a new Predict request. - public PredictRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest body, string endpoint) : base(service) + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } /// Gets the method name. - public override string MethodName => "predict"; + public override string MethodName => "wait"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predict"; + public override string RestPath => "v1/{+name}:wait"; - /// Initializes Predict parameter list. + /// Initializes Wait parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", + Pattern = @"^tensorboards/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, }); } } + } + } + + /// The "trainingPipelines" collection of methods. + public class TrainingPipelinesResource + { + private const string Resource = "trainingPipelines"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TrainingPipelinesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Operations = new OperationsResource(service); + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// - /// The body of the request. - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - public virtual PredictLongRunningRequest PredictLongRunning(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) + /// + /// 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`. + /// + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) { - return new PredictLongRunningRequest(this.service, body, endpoint); + return new CancelRequest(this.service, name); } - /// - public class PredictLongRunningRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest { - /// Constructs a new PredictLongRunning request. - public PredictLongRunningRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest body, string endpoint) : base(service) + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Endpoint = endpoint; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The name of the Endpoint requested to serve the prediction. Format: - /// `projects/{project}/locations/{location}/endpoints/{endpoint}` or - /// `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` - /// - [Google.Apis.Util.RequestParameterAttribute("endpoint", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Endpoint { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1PredictLongRunningRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "predictLongRunning"; + public override string MethodName => "cancel"; /// Gets the HTTP method. public override string HttpMethod => "POST"; /// Gets the REST path. - public override string RestPath => "v1/{+endpoint}:predictLongRunning"; + public override string RestPath => "v1/{+name}:cancel"; - /// Initializes PredictLongRunning parameter list. + /// Initializes Cancel parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("endpoint", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "endpoint", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", + Pattern = @"^trainingPipelines/[^/]+/operations/[^/]+$", }); } } - /// Generate content with multimodal inputs with streaming support. - /// The body of the request. - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - public virtual StreamGenerateContentRequest StreamGenerateContent(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - return new StreamGenerateContentRequest(this.service, body, model); + return new DeleteRequest(this.service, name); } - /// Generate content with multimodal inputs with streaming support. - public class StreamGenerateContentRequest : AiplatformBaseServiceRequest + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest { - /// Constructs a new StreamGenerateContent request. - public StreamGenerateContentRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest body, string model) : base(service) + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Model = model; - Body = body; + Name = name; InitParameters(); } - /// - /// Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher - /// model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint - /// format: `projects/{project}/locations/{location}/endpoints/{endpoint}` - /// - [Google.Apis.Util.RequestParameterAttribute("model", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Model { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1GenerateContentRequest Body { get; set; } - - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } /// Gets the method name. - public override string MethodName => "streamGenerateContent"; + public override string MethodName => "delete"; /// Gets the HTTP method. - public override string HttpMethod => "POST"; + public override string HttpMethod => "DELETE"; /// Gets the REST path. - public override string RestPath => "v1/{+model}:streamGenerateContent"; + public override string RestPath => "v1/{+name}"; - /// Initializes StreamGenerateContent parameter list. + /// Initializes Delete parameter list. protected override void InitParameters() { base.InitParameters(); - RequestParameters.Add("model", new Google.Apis.Discovery.Parameter + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { - Name = "model", + Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, - Pattern = @"^publishers/[^/]+/models/[^/]+$", + Pattern = @"^trainingPipelines/[^/]+/operations/[^/]+$", }); } } - } - } - - /// The "reasoningEngines" collection of methods. - public class ReasoningEnginesResource - { - private const string Resource = "reasoningEngines"; - - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; - - /// Constructs a new resource. - public ReasoningEnginesResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } - - /// Creates a reasoning engine. - /// The body of the request. - public virtual CreateRequest Create(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body) - { - return new CreateRequest(this.service, body); - } - /// Creates a reasoning engine. - public class CreateRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Create request. - public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Body = body; - InitParameters(); + return new GetRequest(this.service, name); } /// - /// Required. The resource name of the Location to create the ReasoningEngine in. Format: - /// `projects/{project}/locations/{location}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Parent { get; set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "create"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/reasoningEngines"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Create parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - - /// Deletes a reasoning engine. - /// - /// Required. The name of the ReasoningEngine resource to be deleted. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual DeleteRequest Delete(string name) - { - return new DeleteRequest(this.service, name); - } - - /// Deletes a reasoning engine. - public class DeleteRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Delete request. - public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^trainingPipelines/[^/]+/operations/[^/]+$", + }); + } } /// - /// Required. The name of the ReasoningEngine resource to be deleted. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } /// - /// Optional. If set to true, child resources of this reasoning engine will also be deleted. Otherwise, the - /// request will fail with FAILED_PRECONDITION error when the reasoning engine has undeleted child - /// resources. + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. /// - [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable Force { get; set; } - - /// Gets the method name. - public override string MethodName => "delete"; - - /// Gets the HTTP method. - public override string HttpMethod => "DELETE"; - - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; - - /// Initializes Delete parameter list. - protected override void InitParameters() + public class ListRequest : AiplatformBaseServiceRequest { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^reasoningEngines/[^/]+$", - }); - RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "force", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } + Name = name; + InitParameters(); + } - /// Gets a reasoning engine. - /// - /// Required. The name of the ReasoningEngine resource. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets a reasoning engine. - public class GetRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// - /// Required. The name of the ReasoningEngine resource. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Gets the method name. + public override string MethodName => "list"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^reasoningEngines/[^/]+$", - }); - } - } + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Lists reasoning engines in a location. - public virtual ListRequest List() - { - return new ListRequest(this.service); - } + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; - /// Lists reasoning engines in a location. - public class ListRequest : AiplatformBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service) : base(service) - { - InitParameters(); + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^trainingPipelines/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } /// - /// Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } - - /// Optional. The standard list page size. - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } - - /// Optional. The standard list page token. - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// The name of the operation resource to wait on. + public virtual WaitRequest Wait(string name) + { + return new WaitRequest(this.service, name); + } /// - /// Required. The resource name of the Location to list the ReasoningEngines from. Format: - /// `projects/{project}/locations/{location}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Parent { get; set; } + public class WaitRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Wait request. + public WaitRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets the method name. - public override string MethodName => "list"; + /// The name of the operation resource to wait on. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// 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. + /// + [Google.Apis.Util.RequestParameterAttribute("timeout", Google.Apis.Util.RequestParameterType.Query)] + public virtual object Timeout { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/reasoningEngines"; + /// Gets the method name. + public override string MethodName => "wait"; - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}:wait"; + + /// Initializes Wait parameter list. + protected override void InitParameters() { - Name = "parent", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^trainingPipelines/[^/]+/operations/[^/]+$", + }); + RequestParameters.Add("timeout", new Google.Apis.Discovery.Parameter + { + Name = "timeout", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } + } - /// Updates a reasoning engine. - /// The body of the request. - /// - /// Identifier. The resource name of the ReasoningEngine. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual PatchRequest Patch(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) + /// The "tuningJobs" collection of methods. + public class TuningJobsResource + { + private const string Resource = "tuningJobs"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public TuningJobsResource(Google.Apis.Services.IClientService service) { - return new PatchRequest(this.service, body, name); + this.service = service; + Operations = new OperationsResource(service); } - /// Updates a reasoning engine. - public class PatchRequest : AiplatformBaseServiceRequest + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource { - /// Constructs a new Patch request. - public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine body, string name) : base(service) + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) { - Name = name; - Body = body; - InitParameters(); + this.service = service; } /// - /// Identifier. The resource name of the ReasoningEngine. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// 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`. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(string name) + { + return new CancelRequest(this.service, name); + } - /// Optional. Mask specifying which fields to update. - [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] - public virtual object UpdateMask { get; set; } + /// + /// 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`. + /// + public class CancelRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1ReasoningEngine Body { get; set; } + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// Gets the method name. + public override string MethodName => "cancel"; - /// Gets the method name. - public override string MethodName => "patch"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Gets the HTTP method. - public override string HttpMethod => "PATCH"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}:cancel"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tuningJobs/[^/]+/operations/[^/]+$", + }); + } + } - /// Initializes Patch parameter list. - protected override void InitParameters() + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^reasoningEngines/[^/]+$", - }); - RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() { - Name = "updateMask", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tuningJobs/[^/]+/operations/[^/]+$", + }); + } } - } - - /// Queries using a reasoning engine. - /// The body of the request. - /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual QueryRequest Query(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) - { - return new QueryRequest(this.service, body, name); - } - /// Queries using a reasoning engine. - public class QueryRequest : AiplatformBaseServiceRequest - { - /// Constructs a new Query request. - public QueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest body, string name) : base(service) + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) { - Name = name; - Body = body; - InitParameters(); + return new GetRequest(this.service, name); } /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// 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. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } - - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1QueryReasoningEngineRequest Body { get; set; } + public class GetRequest : AiplatformBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Gets the method name. - public override string MethodName => "query"; + /// Gets the method name. + public override string MethodName => "get"; - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// Gets the HTTP method. + public override string HttpMethod => "GET"; - /// Gets the REST path. - public override string RestPath => "v1/{+name}:query"; + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; - /// Initializes Query parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Initializes Get parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^reasoningEngines/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tuningJobs/[^/]+/operations/[^/]+$", + }); + } } - } - - /// Streams queries using a reasoning engine. - /// The body of the request. - /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` - /// - public virtual StreamQueryRequest StreamQuery(Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) - { - return new StreamQueryRequest(this.service, body, name); - } - /// Streams queries using a reasoning engine. - public class StreamQueryRequest : AiplatformBaseServiceRequest - { - /// Constructs a new StreamQuery request. - public StreamQueryRequest(Google.Apis.Services.IClientService service, Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest body, string name) : base(service) + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) { - Name = name; - Body = body; - InitParameters(); + return new ListRequest(this.service, name); } /// - /// Required. The name of the ReasoningEngine resource to use. Format: - /// `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. /// - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + public class ListRequest : AiplatformBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Gets or sets the body of this request. - Google.Apis.Aiplatform.v1.Data.GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest Body { get; set; } + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// Returns the body of the request. - protected override object GetBody() => Body; + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } - /// Gets the method name. - public override string MethodName => "streamQuery"; + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "POST"; + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}:streamQuery"; + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` + /// when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This + /// field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless + /// explicitly documented otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } - /// Initializes StreamQuery parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^reasoningEngines/[^/]+$", - }); + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^tuningJobs/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } } } } @@ -55727,6 +73304,10 @@ public class GoogleCloudAiplatformV1EvaluationDataset : Google.Apis.Requests.IDi /// public class GoogleCloudAiplatformV1EvaluationInstance : Google.Apis.Requests.IDirectResponseSchema { + /// Optional. Data used for agent evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("agentData")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceAgentData AgentData { get; set; } + /// Optional. Other data used to populate placeholders based on their key. [Newtonsoft.Json.JsonPropertyAttribute("otherData")] public virtual GoogleCloudAiplatformV1EvaluationInstanceMapInstance OtherData { get; set; } @@ -55754,6 +73335,99 @@ public class GoogleCloudAiplatformV1EvaluationInstance : Google.Apis.Requests.ID public virtual string ETag { get; set; } } + /// Configuration for an Agent. + public class GoogleCloudAiplatformV1EvaluationInstanceAgentConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. A field containing instructions from the developer for the agent. + [Newtonsoft.Json.JsonPropertyAttribute("developerInstruction")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceInstanceData DeveloperInstruction { get; set; } + + /// List of tools. + [Newtonsoft.Json.JsonPropertyAttribute("tools")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceAgentConfigTools Tools { get; set; } + + /// + /// A JSON string containing a list of tools available to an agent with info such as name, description, + /// parameters and required parameters. + /// + [Newtonsoft.Json.JsonPropertyAttribute("toolsText")] + public virtual string ToolsText { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents a list of tools for an agent. + public class GoogleCloudAiplatformV1EvaluationInstanceAgentConfigTools : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. List of tools: each tool can have multiple function declarations. + [Newtonsoft.Json.JsonPropertyAttribute("tool")] + public virtual System.Collections.Generic.IList Tool { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Contains data specific to agent evaluations. + public class GoogleCloudAiplatformV1EvaluationInstanceAgentData : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. Agent configuration. + [Newtonsoft.Json.JsonPropertyAttribute("agentConfig")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceAgentConfig AgentConfig { get; set; } + + /// Optional. A field containing instructions from the developer for the agent. + [Newtonsoft.Json.JsonPropertyAttribute("developerInstruction")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceInstanceData DeveloperInstruction { get; set; } + + /// A list of events. + [Newtonsoft.Json.JsonPropertyAttribute("events")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents Events { get; set; } + + /// A JSON string containing a sequence of events. + [Newtonsoft.Json.JsonPropertyAttribute("eventsText")] + public virtual string EventsText { get; set; } + + /// List of tools. + [Newtonsoft.Json.JsonPropertyAttribute("tools")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools Tools { get; set; } + + /// + /// A JSON string containing a list of tools available to an agent with info such as name, description, + /// parameters and required parameters. Example: [ { "name": "search_actors", "description": "Search for actors + /// in a movie. Returns a list of actors, their roles, their birthdate, and their place of birth.", + /// "parameters": [ { "name": "movie_name", "description": "The name of the movie." }, { "name": + /// "character_name", "description": "The name of the character." } ], "required": ["movie_name", + /// "character_name"] } ] + /// + [Newtonsoft.Json.JsonPropertyAttribute("toolsText")] + public virtual string ToolsText { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents a list of events for an agent. + public class GoogleCloudAiplatformV1EvaluationInstanceAgentDataEvents : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. A list of events. + [Newtonsoft.Json.JsonPropertyAttribute("event")] + public virtual System.Collections.Generic.IList Event__ { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents a list of tools for an agent. + public class GoogleCloudAiplatformV1EvaluationInstanceAgentDataTools : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. List of tools: each tool can have multiple function declarations. + [Newtonsoft.Json.JsonPropertyAttribute("tool")] + public virtual System.Collections.Generic.IList Tool { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Instance data used to populate placeholders in a metric prompt template. public class GoogleCloudAiplatformV1EvaluationInstanceInstanceData : Google.Apis.Requests.IDirectResponseSchema { @@ -56296,6 +73970,10 @@ public class GoogleCloudAiplatformV1EvaluationRunMetric : Google.Apis.Requests.I [Newtonsoft.Json.JsonPropertyAttribute("metric")] public virtual string Metric { get; set; } + /// The metric config. + [Newtonsoft.Json.JsonPropertyAttribute("metricConfig")] + public virtual GoogleCloudAiplatformV1Metric MetricConfig { get; set; } + /// Spec for a pre-defined metric. [Newtonsoft.Json.JsonPropertyAttribute("predefinedMetricSpec")] public virtual GoogleCloudAiplatformV1EvaluationRunMetricPredefinedMetricSpec PredefinedMetricSpec { get; set; } @@ -60463,6 +78141,12 @@ public class GoogleCloudAiplatformV1FunctionResponse : Google.Apis.Requests.IDir [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } + /// + /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. + /// + [Newtonsoft.Json.JsonPropertyAttribute("parts")] + public virtual System.Collections.Generic.IList Parts { get; set; } + /// /// Required. The function response in JSON object format. Use "output" key to specify function output and /// "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole @@ -60475,6 +78159,75 @@ public class GoogleCloudAiplatformV1FunctionResponse : Google.Apis.Requests.IDir public virtual string ETag { get; set; } } + /// + /// Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field. + /// + public class GoogleCloudAiplatformV1FunctionResponseBlob : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. Raw bytes. + [Newtonsoft.Json.JsonPropertyAttribute("data")] + public virtual string Data { get; set; } + + /// + /// Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is + /// only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent + /// calls only when server side tools (code_execution, google_search, and url_context) are enabled. + /// + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Required. The IANA standard MIME type of the source data. + [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] + public virtual string MimeType { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// URI based data for function response. + public class GoogleCloudAiplatformV1FunctionResponseFileData : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This + /// field is only returned in PromptMessage for prompt management. It is currently used in the Gemini + /// GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are + /// enabled. + /// + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Required. URI. + [Newtonsoft.Json.JsonPropertyAttribute("fileUri")] + public virtual string FileUri { get; set; } + + /// Required. The IANA standard MIME type of the source data. + [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] + public virtual string MimeType { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of + /// data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in + /// `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and + /// subtype of the media if the `inline_data` field is filled with raw bytes. + /// + public class GoogleCloudAiplatformV1FunctionResponsePart : Google.Apis.Requests.IDirectResponseSchema + { + /// URI based data. + [Newtonsoft.Json.JsonPropertyAttribute("fileData")] + public virtual GoogleCloudAiplatformV1FunctionResponseFileData FileData { get; set; } + + /// Inline media bytes. + [Newtonsoft.Json.JsonPropertyAttribute("inlineData")] + public virtual GoogleCloudAiplatformV1FunctionResponseBlob InlineData { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The Google Cloud Storage location where the output is to be written to. public class GoogleCloudAiplatformV1GcsDestination : Google.Apis.Requests.IDirectResponseSchema { @@ -60828,6 +78581,10 @@ public virtual System.DateTimeOffset? ExpireTimeDateTimeOffset /// Request message for EvaluationService.GenerateInstanceRubrics. public class GoogleCloudAiplatformV1GenerateInstanceRubricsRequest : Google.Apis.Requests.IDirectResponseSchema { + /// Optional. Agent configuration, required for agent-based rubric generation. + [Newtonsoft.Json.JsonPropertyAttribute("agentConfig")] + public virtual GoogleCloudAiplatformV1EvaluationInstanceAgentConfig AgentConfig { get; set; } + /// /// Required. The prompt to generate rubrics from. For single-turn queries, this is a single instance. For /// multi-turn queries, this is a repeated field that contains conversation history + latest request. @@ -61807,6 +79564,29 @@ public class GoogleCloudAiplatformV1ImageConfig : Google.Apis.Requests.IDirectRe [Newtonsoft.Json.JsonPropertyAttribute("aspectRatio")] public virtual string AspectRatio { get; set; } + /// Optional. The image output format for generated images. + [Newtonsoft.Json.JsonPropertyAttribute("imageOutputOptions")] + public virtual GoogleCloudAiplatformV1ImageConfigImageOutputOptions ImageOutputOptions { get; set; } + + /// Optional. Controls whether the model can generate people. + [Newtonsoft.Json.JsonPropertyAttribute("personGeneration")] + public virtual string PersonGeneration { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The image output format for generated images. + public class GoogleCloudAiplatformV1ImageConfigImageOutputOptions : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. The compression quality of the output image. + [Newtonsoft.Json.JsonPropertyAttribute("compressionQuality")] + public virtual System.Nullable CompressionQuality { get; set; } + + /// Optional. The image format that the output should be saved as. + [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] + public virtual string MimeType { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } @@ -66655,6 +84435,8 @@ public class GoogleCloudAiplatformV1MutateDeployedModelRequest : Google.Apis.Req /// `min_replica_count` in either DedicatedResources or AutomaticResources * `max_replica_count` in either /// DedicatedResources or AutomaticResources * `required_replica_count` in DedicatedResources * /// autoscaling_metric_specs * `disable_container_logging` (v1 only) * `enable_container_logging` (v1beta1 only) + /// * `scale_to_zero_spec` in DedicatedResources (v1beta1 only) * `initial_replica_count` in DedicatedResources + /// (v1beta1 only) /// [Newtonsoft.Json.JsonPropertyAttribute("deployedModel")] public virtual GoogleCloudAiplatformV1DeployedModel DeployedModel { get; set; } @@ -71578,7 +89360,9 @@ public class GoogleCloudAiplatformV1RagManagedDbConfig : Google.Apis.Requests.ID [Newtonsoft.Json.JsonPropertyAttribute("basic")] public virtual GoogleCloudAiplatformV1RagManagedDbConfigBasic Basic { get; set; } - /// Sets the RagManagedDb to the Scaled tier. + /// + /// Sets the RagManagedDb to the Scaled tier. This is the default tier if not explicitly chosen. + /// [Newtonsoft.Json.JsonPropertyAttribute("scaled")] public virtual GoogleCloudAiplatformV1RagManagedDbConfigScaled Scaled { get; set; } @@ -72278,6 +90062,10 @@ public class GoogleCloudAiplatformV1ReasoningEngineSpec : Google.Apis.Requests.I [Newtonsoft.Json.JsonPropertyAttribute("serviceAccount")] public virtual string ServiceAccount { get; set; } + /// Deploy from source code files with a defined entrypoint. + [Newtonsoft.Json.JsonPropertyAttribute("sourceCodeSpec")] + public virtual GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec SourceCodeSpec { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } @@ -72364,6 +90152,70 @@ public class GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec : Google.Apis public virtual string ETag { get; set; } } + /// Specification for deploying from source code. + public class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpec : Google.Apis.Requests.IDirectResponseSchema + { + /// Source code is provided directly in the request. + [Newtonsoft.Json.JsonPropertyAttribute("inlineSource")] + public virtual GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource InlineSource { get; set; } + + /// Configuration for a Python application. + [Newtonsoft.Json.JsonPropertyAttribute("pythonSpec")] + public virtual GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec PythonSpec { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Specifies source code provided as a byte stream. + public class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecInlineSource : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Required. Input only. The application source code archive, provided as a compressed tarball (.tar.gz) file. + /// + [Newtonsoft.Json.JsonPropertyAttribute("sourceArchive")] + public virtual string SourceArchive { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Specification for running a Python application from source. + public class GoogleCloudAiplatformV1ReasoningEngineSpecSourceCodeSpecPythonSpec : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The Python module to load as the entrypoint, specified as a fully qualified module name. For + /// example: path.to.agent. If not specified, defaults to "agent". The project root will be added to Python + /// sys.path, allowing imports to be specified relative to the root. + /// + [Newtonsoft.Json.JsonPropertyAttribute("entrypointModule")] + public virtual string EntrypointModule { get; set; } + + /// + /// Optional. The name of the callable object within the `entrypoint_module` to use as the application If not + /// specified, defaults to "root_agent". + /// + [Newtonsoft.Json.JsonPropertyAttribute("entrypointObject")] + public virtual string EntrypointObject { get; set; } + + /// + /// Optional. The path to the requirements file, relative to the source root. If not specified, defaults to + /// "requirements.txt". + /// + [Newtonsoft.Json.JsonPropertyAttribute("requirementsFile")] + public virtual string RequirementsFile { get; set; } + + /// + /// Optional. The version of Python to use. Support version includes 3.9, 3.10, 3.11, 3.12, 3.13. If not + /// specified, default value is 3.10. + /// + [Newtonsoft.Json.JsonPropertyAttribute("version")] + public virtual string Version { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Request message for GenAiTuningService.RebaseTunedModel. public class GoogleCloudAiplatformV1RebaseTunedModelRequest : Google.Apis.Requests.IDirectResponseSchema { @@ -81335,6 +99187,13 @@ public class GoogleCloudAiplatformV1Tool : Google.Apis.Requests.IDirectResponseS [Newtonsoft.Json.JsonPropertyAttribute("codeExecution")] public virtual GoogleCloudAiplatformV1ToolCodeExecution CodeExecution { get; set; } + /// + /// Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically + /// populates computer-use specific Function Declarations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("computerUse")] + public virtual GoogleCloudAiplatformV1ToolComputerUse ComputerUse { get; set; } + /// /// Optional. Tool to support searching public web data, powered by Vertex AI Search and Sec4 compliance. /// @@ -81464,6 +99323,27 @@ public class GoogleCloudAiplatformV1ToolCodeExecution : Google.Apis.Requests.IDi public virtual string ETag { get; set; } } + /// Tool to support computer use. + public class GoogleCloudAiplatformV1ToolComputerUse : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. The environment being operated. + [Newtonsoft.Json.JsonPropertyAttribute("environment")] + public virtual string Environment { get; set; } + + /// + /// Optional. By default, [predefined + /// functions](https://cloud.google.com/vertex-ai/generative-ai/docs/computer-use#supported-actions) are + /// included in the final model call. Some of them can be explicitly excluded from being automatically included. + /// This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the + /// definitions / instructions of predefined functions. + /// + [Newtonsoft.Json.JsonPropertyAttribute("excludedPredefinedFunctions")] + public virtual System.Collections.Generic.IList ExcludedPredefinedFunctions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Tool config. This config is shared for all tools provided in the request. public class GoogleCloudAiplatformV1ToolConfig : Google.Apis.Requests.IDirectResponseSchema { diff --git a/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.csproj b/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.csproj index 6daf619819b..78960679985 100644 --- a/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.csproj +++ b/Src/Generated/Google.Apis.Aiplatform.v1/Google.Apis.Aiplatform.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.Aiplatform.v1 Client Library - 1.72.0.3935 + 1.72.0.3952 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.cs b/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.cs index 1798b7afd66..2b2a28e4789 100644 --- a/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.cs +++ b/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.cs @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.csproj b/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.csproj index a86b7eb70ce..1c55c794d79 100644 --- a/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.csproj +++ b/Src/Generated/Google.Apis.BusinessProfilePerformance.v1/Google.Apis.BusinessProfilePerformance.v1.csproj @@ -3,9 +3,9 @@ Google.Apis.BusinessProfilePerformance.v1 Client Library - 1.68.0.3562 + 1.72.0.3951 Google LLC - Copyright 2024 Google LLC + Copyright 2025 Google LLC Google https://github.com/google/google-api-dotnet-client Apache-2.0 @@ -59,7 +59,7 @@ - + diff --git a/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.cs b/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.cs index de51b8434ec..367f2500711 100644 --- a/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.cs +++ b/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.cs @@ -777,44 +777,6 @@ protected override void InitParameters() } namespace Google.Apis.Chromewebstore.v2.Data { - /// Information to read/write to blobstore2. - public class Blobstore2Info : Google.Apis.Requests.IDirectResponseSchema - { - /// The blob generation id. - [Newtonsoft.Json.JsonPropertyAttribute("blobGeneration")] - public virtual System.Nullable BlobGeneration { get; set; } - - /// The blob id, e.g., /blobstore/prod/playground/scotty - [Newtonsoft.Json.JsonPropertyAttribute("blobId")] - public virtual string BlobId { get; set; } - - /// - /// Read handle passed from Bigstore -&gt; Scotty for a GCS download. This is a signed, serialized - /// blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS - /// media downloads. - /// - [Newtonsoft.Json.JsonPropertyAttribute("downloadReadHandle")] - public virtual string DownloadReadHandle { get; set; } - - /// - /// The blob read token. Needed to read blobs that have not been replicated. Might not be available until the - /// final call. - /// - [Newtonsoft.Json.JsonPropertyAttribute("readToken")] - public virtual string ReadToken { get; set; } - - /// - /// Metadata passed from Blobstore -&gt; Scotty for a new GCS upload. This is a signed, serialized - /// blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not - /// applicable to non-GCS media uploads. - /// - [Newtonsoft.Json.JsonPropertyAttribute("uploadMetadataContainer")] - public virtual string UploadMetadataContainer { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - /// Request message for CancelSubmission. public class CancelSubmissionRequest : Google.Apis.Requests.IDirectResponseSchema { @@ -829,109 +791,6 @@ public class CancelSubmissionResponse : Google.Apis.Requests.IDirectResponseSche public virtual string ETag { get; set; } } - /// - /// A sequence of media data references representing composite data. Introduced to support Bigstore composite - /// objects. For details, visit http://go/bigstore-composites. - /// - public class CompositeMedia : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a - /// blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will - /// also be represented in this field as v1 BlobRef. - /// - [Newtonsoft.Json.JsonPropertyAttribute("blobRef")] - public virtual string BlobRef { get; set; } - - /// Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. - [Newtonsoft.Json.JsonPropertyAttribute("blobstore2Info")] - public virtual Blobstore2Info Blobstore2Info { get; set; } - - /// - /// A binary data reference for a media download. Serves as a technology-agnostic binary reference in some - /// Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes - /// is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support - /// JavaScript. This prevents us from including the actual type of this field. - /// - [Newtonsoft.Json.JsonPropertyAttribute("cosmoBinaryReference")] - public virtual string CosmoBinaryReference { get; set; } - - /// crc32.c hash for the payload. - [Newtonsoft.Json.JsonPropertyAttribute("crc32cHash")] - public virtual System.Nullable Crc32cHash { get; set; } - - /// Media data, set if reference_type is INLINE - [Newtonsoft.Json.JsonPropertyAttribute("inline")] - public virtual string Inline { get; set; } - - /// Size of the data, in bytes - [Newtonsoft.Json.JsonPropertyAttribute("length")] - public virtual System.Nullable Length { get; set; } - - /// MD5 hash for the payload. - [Newtonsoft.Json.JsonPropertyAttribute("md5Hash")] - public virtual string Md5Hash { get; set; } - - /// Reference to a TI Blob, set if reference_type is BIGSTORE_REF. - [Newtonsoft.Json.JsonPropertyAttribute("objectId")] - public virtual ObjectId ObjectId { get; set; } - - /// Path to the data, set if reference_type is PATH - [Newtonsoft.Json.JsonPropertyAttribute("path")] - public virtual string Path { get; set; } - - /// Describes what the field reference contains. - [Newtonsoft.Json.JsonPropertyAttribute("referenceType")] - public virtual string ReferenceType { get; set; } - - /// SHA-1 hash for the payload. - [Newtonsoft.Json.JsonPropertyAttribute("sha1Hash")] - public virtual string Sha1Hash { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// - /// Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the - /// header or Scotty's best_guess, but this extended information provides the backend with more information so that - /// it can make a better decision if needed. This is only used on media upload requests from Scotty. - /// - public class ContentTypeInfo : Google.Apis.Requests.IDirectResponseSchema - { - /// Scotty's best guess of what the content type of the file is. - [Newtonsoft.Json.JsonPropertyAttribute("bestGuess")] - public virtual string BestGuess { get; set; } - - /// - /// The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file. - /// - [Newtonsoft.Json.JsonPropertyAttribute("fromBytes")] - public virtual string FromBytes { get; set; } - - /// - /// The content type of the file derived from the file extension of the original file name used by the client. - /// - [Newtonsoft.Json.JsonPropertyAttribute("fromFileName")] - public virtual string FromFileName { get; set; } - - /// - /// The content type of the file as specified in the request headers, multipart headers, or RUPIO start request. - /// - [Newtonsoft.Json.JsonPropertyAttribute("fromHeader")] - public virtual string FromHeader { get; set; } - - /// - /// The content type of the file derived from the file extension of the URL path. The URL path is assumed to - /// represent a file name (which is typically only true for agents that are providing a REST API). - /// - [Newtonsoft.Json.JsonPropertyAttribute("fromUrlPath")] - public virtual string FromUrlPath { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - /// /// Deployment information for a specific release channel. Used in requests to update deployment parameters. /// @@ -947,129 +806,6 @@ public class DeployInfo : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } - /// - /// Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit - /// http://go/scotty-diff-protocol. - /// - public class DiffChecksumsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// Exactly one of these fields must be populated. If checksums_location is filled, the server will return the - /// corresponding contents to the user. If object_location is filled, the server will calculate the checksums - /// based on the content there and return that to the user. For details on the format of the checksums, see - /// http://go/scotty-diff-protocol. - /// - [Newtonsoft.Json.JsonPropertyAttribute("checksumsLocation")] - public virtual CompositeMedia ChecksumsLocation { get; set; } - - /// The chunk size of checksums. Must be a multiple of 256KB. - [Newtonsoft.Json.JsonPropertyAttribute("chunkSizeBytes")] - public virtual System.Nullable ChunkSizeBytes { get; set; } - - /// If set, calculate the checksums based on the contents and return them to the caller. - [Newtonsoft.Json.JsonPropertyAttribute("objectLocation")] - public virtual CompositeMedia ObjectLocation { get; set; } - - /// The total size of the server object. - [Newtonsoft.Json.JsonPropertyAttribute("objectSizeBytes")] - public virtual System.Nullable ObjectSizeBytes { get; set; } - - /// The object version of the object the checksums are being returned for. - [Newtonsoft.Json.JsonPropertyAttribute("objectVersion")] - public virtual string ObjectVersion { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// - /// Backend response for a Diff download response. For details on the Scotty Diff protocol, visit - /// http://go/scotty-diff-protocol. - /// - public class DiffDownloadResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The original object location. - [Newtonsoft.Json.JsonPropertyAttribute("objectLocation")] - public virtual CompositeMedia ObjectLocation { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// - /// A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol. - /// - public class DiffUploadRequest : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// The location of the checksums for the new object. Agents must clone the object located here, as the upload - /// server will delete the contents once a response is received. For details on the format of the checksums, see - /// http://go/scotty-diff-protocol. - /// - [Newtonsoft.Json.JsonPropertyAttribute("checksumsInfo")] - public virtual CompositeMedia ChecksumsInfo { get; set; } - - /// - /// The location of the new object. Agents must clone the object located here, as the upload server will delete - /// the contents once a response is received. - /// - [Newtonsoft.Json.JsonPropertyAttribute("objectInfo")] - public virtual CompositeMedia ObjectInfo { get; set; } - - /// - /// The object version of the object that is the base version the incoming diff script will be applied to. This - /// field will always be filled in. - /// - [Newtonsoft.Json.JsonPropertyAttribute("objectVersion")] - public virtual string ObjectVersion { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// - /// Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit - /// http://go/scotty-diff-protocol. - /// - public class DiffUploadResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// The object version of the object at the server. Must be included in the end notification response. The - /// version in the end notification response must correspond to the new version of the object that is now stored - /// at the server, after the upload. - /// - [Newtonsoft.Json.JsonPropertyAttribute("objectVersion")] - public virtual string ObjectVersion { get; set; } - - /// - /// The location of the original file for a diff upload request. Must be filled in if responding to an upload - /// start notification. - /// - [Newtonsoft.Json.JsonPropertyAttribute("originalObject")] - public virtual CompositeMedia OriginalObject { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// - /// Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit - /// http://go/scotty-diff-protocol. - /// - public class DiffVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The total size of the server object. - [Newtonsoft.Json.JsonPropertyAttribute("objectSizeBytes")] - public virtual System.Nullable ObjectSizeBytes { get; set; } - - /// The version of the object stored at the server. - [Newtonsoft.Json.JsonPropertyAttribute("objectVersion")] - public virtual string ObjectVersion { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - /// Deployment information for a specific release channel public class DistributionChannel : Google.Apis.Requests.IDirectResponseSchema { @@ -1087,28 +823,6 @@ public class DistributionChannel : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } - /// Parameters specific to media downloads. - public class DownloadParameters : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content - /// when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip - /// the response to the client. - /// - [Newtonsoft.Json.JsonPropertyAttribute("allowGzipCompression")] - public virtual System.Nullable AllowGzipCompression { get; set; } - - /// - /// Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to - /// Scotty. - /// - [Newtonsoft.Json.JsonPropertyAttribute("ignoreRange")] - public virtual System.Nullable IgnoreRange { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - /// Response message for `FetchItemStatus`. public class FetchItemStatusResponse : Google.Apis.Requests.IDirectResponseSchema { @@ -1177,258 +891,6 @@ public class ItemRevisionStatus : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } - /// A reference to data stored on the filesystem, on GFS or in blobstore. - public class Media : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of - /// 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any time. - /// - [Newtonsoft.Json.JsonPropertyAttribute("algorithm")] - public virtual string Algorithm { get; set; } - - /// Use object_id instead. - [Newtonsoft.Json.JsonPropertyAttribute("bigstoreObjectRef")] - public virtual string BigstoreObjectRef { get; set; } - - /// - /// Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a - /// blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will - /// also be represented in this field as v1 BlobRef. - /// - [Newtonsoft.Json.JsonPropertyAttribute("blobRef")] - public virtual string BlobRef { get; set; } - - /// Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. - [Newtonsoft.Json.JsonPropertyAttribute("blobstore2Info")] - public virtual Blobstore2Info Blobstore2Info { get; set; } - - /// - /// A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media - /// length field must be set to the sum of the lengths of all composite media objects. Note: All composite media - /// must have length specified. - /// - [Newtonsoft.Json.JsonPropertyAttribute("compositeMedia")] - public virtual System.Collections.Generic.IList CompositeMedia { get; set; } - - /// MIME type of the data - [Newtonsoft.Json.JsonPropertyAttribute("contentType")] - public virtual string ContentType { get; set; } - - /// Extended content type information provided for Scotty uploads. - [Newtonsoft.Json.JsonPropertyAttribute("contentTypeInfo")] - public virtual ContentTypeInfo ContentTypeInfo { get; set; } - - /// - /// A binary data reference for a media download. Serves as a technology-agnostic binary reference in some - /// Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes - /// is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support - /// JavaScript. This prevents us from including the actual type of this field. - /// - [Newtonsoft.Json.JsonPropertyAttribute("cosmoBinaryReference")] - public virtual string CosmoBinaryReference { get; set; } - - /// - /// For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT - /// PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being - /// downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported. - /// - [Newtonsoft.Json.JsonPropertyAttribute("crc32cHash")] - public virtual System.Nullable Crc32cHash { get; set; } - - /// Set if reference_type is DIFF_CHECKSUMS_RESPONSE. - [Newtonsoft.Json.JsonPropertyAttribute("diffChecksumsResponse")] - public virtual DiffChecksumsResponse DiffChecksumsResponse { get; set; } - - /// Set if reference_type is DIFF_DOWNLOAD_RESPONSE. - [Newtonsoft.Json.JsonPropertyAttribute("diffDownloadResponse")] - public virtual DiffDownloadResponse DiffDownloadResponse { get; set; } - - /// Set if reference_type is DIFF_UPLOAD_REQUEST. - [Newtonsoft.Json.JsonPropertyAttribute("diffUploadRequest")] - public virtual DiffUploadRequest DiffUploadRequest { get; set; } - - /// Set if reference_type is DIFF_UPLOAD_RESPONSE. - [Newtonsoft.Json.JsonPropertyAttribute("diffUploadResponse")] - public virtual DiffUploadResponse DiffUploadResponse { get; set; } - - /// Set if reference_type is DIFF_VERSION_RESPONSE. - [Newtonsoft.Json.JsonPropertyAttribute("diffVersionResponse")] - public virtual DiffVersionResponse DiffVersionResponse { get; set; } - - /// Parameters for a media download. - [Newtonsoft.Json.JsonPropertyAttribute("downloadParameters")] - public virtual DownloadParameters DownloadParameters { get; set; } - - /// Original file name - [Newtonsoft.Json.JsonPropertyAttribute("filename")] - public virtual string Filename { get; set; } - - /// - /// Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be - /// populated on Scotty based media uploads and will contain the content of the hash group in the - /// NotificationRequest: - /// http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&amp;q=class:Hash Hex - /// encoded hash value of the uploaded media. - /// - [Newtonsoft.Json.JsonPropertyAttribute("hash")] - public virtual string Hash { get; set; } - - /// - /// For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the - /// upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if - /// the hashes don't match. This is set to true if Scotty performed this verification. - /// - [Newtonsoft.Json.JsonPropertyAttribute("hashVerified")] - public virtual System.Nullable HashVerified { get; set; } - - /// Media data, set if reference_type is INLINE - [Newtonsoft.Json.JsonPropertyAttribute("inline")] - public virtual string Inline { get; set; } - - /// - /// |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When - /// a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain - /// that it has never sent the request before due to potential failure in the session state persistence. - /// - [Newtonsoft.Json.JsonPropertyAttribute("isPotentialRetry")] - public virtual System.Nullable IsPotentialRetry { get; set; } - - /// Size of the data, in bytes - [Newtonsoft.Json.JsonPropertyAttribute("length")] - public virtual System.Nullable Length { get; set; } - - /// Scotty-provided MD5 hash for an upload. - [Newtonsoft.Json.JsonPropertyAttribute("md5Hash")] - public virtual string Md5Hash { get; set; } - - /// Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. - [Newtonsoft.Json.JsonPropertyAttribute("mediaId")] - public virtual string MediaId { get; set; } - - /// Reference to a TI Blob, set if reference_type is BIGSTORE_REF. - [Newtonsoft.Json.JsonPropertyAttribute("objectId")] - public virtual ObjectId ObjectId { get; set; } - - /// Path to the data, set if reference_type is PATH - [Newtonsoft.Json.JsonPropertyAttribute("path")] - public virtual string Path { get; set; } - - /// Describes what the field reference contains. - [Newtonsoft.Json.JsonPropertyAttribute("referenceType")] - public virtual string ReferenceType { get; set; } - - /// Scotty-provided SHA1 hash for an upload. - [Newtonsoft.Json.JsonPropertyAttribute("sha1Hash")] - public virtual string Sha1Hash { get; set; } - - /// Scotty-provided SHA256 hash for an upload. - [Newtonsoft.Json.JsonPropertyAttribute("sha256Hash")] - public virtual string Sha256Hash { get; set; } - - /// Time at which the media data was last updated, in milliseconds since UNIX epoch - [Newtonsoft.Json.JsonPropertyAttribute("timestamp")] - public virtual System.Nullable Timestamp { get; set; } - - /// A unique fingerprint/version id for the media data - [Newtonsoft.Json.JsonPropertyAttribute("token")] - public virtual string Token { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Extra information added to operations that support Scotty media requests. - public class MediaRequestInfo : Google.Apis.Requests.IDirectResponseSchema - { - /// The number of current bytes uploaded or downloaded. - [Newtonsoft.Json.JsonPropertyAttribute("currentBytes")] - public virtual System.Nullable CurrentBytes { get; set; } - - /// - /// Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which - /// Scotty will then provide in subsequent upload notifications. - /// - [Newtonsoft.Json.JsonPropertyAttribute("customData")] - public virtual string CustomData { get; set; } - - /// - /// Set if the http request info is diff encoded. The value of this field is the version number of the base - /// revision. This is corresponding to Apiary's mediaDiffObjectVersion - /// (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See - /// go/esf-scotty-diff-upload for more information. - /// - [Newtonsoft.Json.JsonPropertyAttribute("diffObjectVersion")] - public virtual string DiffObjectVersion { get; set; } - - /// - /// The existence of the final_status field indicates that this is the last call to the agent for this - /// request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&amp;rcl=347601929 - /// - [Newtonsoft.Json.JsonPropertyAttribute("finalStatus")] - public virtual System.Nullable FinalStatus { get; set; } - - /// The type of notification received from Scotty. - [Newtonsoft.Json.JsonPropertyAttribute("notificationType")] - public virtual string NotificationType { get; set; } - - /// - /// The physical headers provided by RequestReceivedParameters in Scotty request. type is - /// uploader_service.KeyValuePairs. - /// - [Newtonsoft.Json.JsonPropertyAttribute("physicalHeaders")] - public virtual string PhysicalHeaders { get; set; } - - /// The Scotty request ID. - [Newtonsoft.Json.JsonPropertyAttribute("requestId")] - public virtual string RequestId { get; set; } - - /// - /// The partition of the Scotty server handling this request. type is - /// uploader_service.RequestReceivedParamsServingInfo - /// LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange() - /// - [Newtonsoft.Json.JsonPropertyAttribute("requestReceivedParamsServingInfo")] - public virtual string RequestReceivedParamsServingInfo { get; set; } - - /// The total size of the file. - [Newtonsoft.Json.JsonPropertyAttribute("totalBytes")] - public virtual System.Nullable TotalBytes { get; set; } - - /// Whether the total bytes field contains an estimated data. - [Newtonsoft.Json.JsonPropertyAttribute("totalBytesIsEstimated")] - public virtual System.Nullable TotalBytesIsEstimated { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// - /// This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure - /// issues with JavaScript support; see http://b/8801763. - /// - public class ObjectId : Google.Apis.Requests.IDirectResponseSchema - { - /// The name of the bucket to which this object belongs. - [Newtonsoft.Json.JsonPropertyAttribute("bucketName")] - public virtual string BucketName { get; set; } - - /// - /// Generation of the object. Generations are monotonically increasing across writes, allowing them to be be - /// compared to determine which generation is newer. If this is omitted in a request, then you are requesting - /// the live object. See http://go/bigstore-versions - /// - [Newtonsoft.Json.JsonPropertyAttribute("generation")] - public virtual System.Nullable Generation { get; set; } - - /// The name of the object. - [Newtonsoft.Json.JsonPropertyAttribute("objectName")] - public virtual string ObjectName { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - /// Request message for PublishItem. public class PublishItemRequest : Google.Apis.Requests.IDirectResponseSchema { @@ -1500,14 +962,6 @@ public class SetPublishedDeployPercentageResponse : Google.Apis.Requests.IDirect /// Request message for UploadItemPackage. public class UploadItemPackageRequest : Google.Apis.Requests.IDirectResponseSchema { - /// Reference to the uploaded media. - [Newtonsoft.Json.JsonPropertyAttribute("blob")] - public virtual Media Blob { get; set; } - - /// Info about the media upload request. - [Newtonsoft.Json.JsonPropertyAttribute("mediaRequestInfo")] - public virtual MediaRequestInfo MediaRequestInfo { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } diff --git a/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.csproj b/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.csproj index 4817801a7c1..486ec1199d8 100644 --- a/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.csproj +++ b/Src/Generated/Google.Apis.Chromewebstore.v2/Google.Apis.Chromewebstore.v2.csproj @@ -3,7 +3,7 @@ Google.Apis.Chromewebstore.v2 Client Library - 1.72.0.3945 + 1.72.0.3951 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.cs b/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.cs index 51109dc6239..24ec934453a 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.cs +++ b/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.cs @@ -1263,8 +1263,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } diff --git a/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.csproj b/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.csproj index 7e02d10a81d..806f34df516 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.csproj +++ b/Src/Generated/Google.Apis.CloudFunctions.v1/Google.Apis.CloudFunctions.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudFunctions.v1 Client Library - 1.71.0.3924 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google @@ -60,8 +60,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.cs b/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.cs index 17569f586e4..7bec6d8f9ce 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.cs +++ b/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.cs @@ -1721,8 +1721,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } diff --git a/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.csproj b/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.csproj index e15c2e4c3b7..c892c71f9a8 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.csproj +++ b/Src/Generated/Google.Apis.CloudFunctions.v2/Google.Apis.CloudFunctions.v2.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudFunctions.v2 Client Library - 1.71.0.3924 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google @@ -60,8 +60,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.cs b/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.cs index 3d52740155b..3a58bb02ae3 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.cs +++ b/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.cs @@ -1721,8 +1721,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } @@ -2084,6 +2084,33 @@ public class DetachFunctionRequest : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// The Direct VPC network interface. This is mutually exclusive with VPC Connector. + public class DirectVpcNetworkInterface : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network + /// or a subnet, or both. If you specify only a network, the subnet uses the same name as the network. + /// + [Newtonsoft.Json.JsonPropertyAttribute("network")] + public virtual string Network { get; set; } + + /// + /// Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either + /// a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork + /// must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with + /// the network will be used. + /// + [Newtonsoft.Json.JsonPropertyAttribute("subnetwork")] + public virtual string Subnetwork { get; set; } + + /// Optional. Network tags applied to this Cloud Function resource. + [Newtonsoft.Json.JsonPropertyAttribute("tags")] + public virtual System.Collections.Generic.IList Tags { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Filters events based on exact matches on the CloudEvents attributes. public class EventFilter : Google.Apis.Requests.IDirectResponseSchema { @@ -3181,6 +3208,19 @@ public class ServiceConfig : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("binaryAuthorizationPolicy")] public virtual string BinaryAuthorizationPolicy { get; set; } + /// + /// Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY. + /// + [Newtonsoft.Json.JsonPropertyAttribute("directVpcEgress")] + public virtual string DirectVpcEgress { get; set; } + + /// + /// Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is + /// supported. + /// + [Newtonsoft.Json.JsonPropertyAttribute("directVpcNetworkInterface")] + public virtual System.Collections.Generic.IList DirectVpcNetworkInterface { get; set; } + /// Environment variables that shall be available during function execution. [Newtonsoft.Json.JsonPropertyAttribute("environmentVariables")] public virtual System.Collections.Generic.IDictionary EnvironmentVariables { get; set; } diff --git a/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.csproj b/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.csproj index 0a9c9ff08d5..6bac4c9b694 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.csproj +++ b/Src/Generated/Google.Apis.CloudFunctions.v2alpha/Google.Apis.CloudFunctions.v2alpha.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudFunctions.v2alpha Client Library - 1.71.0.3924 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.cs b/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.cs index 0ab5f0444bd..46959099f36 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.cs +++ b/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.cs @@ -1721,8 +1721,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } @@ -2084,6 +2084,33 @@ public class DetachFunctionRequest : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// The Direct VPC network interface. This is mutually exclusive with VPC Connector. + public class DirectVpcNetworkInterface : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The name of the VPC network to which the function will be connected. Specify either a VPC network + /// or a subnet, or both. If you specify only a network, the subnet uses the same name as the network. + /// + [Newtonsoft.Json.JsonPropertyAttribute("network")] + public virtual string Network { get; set; } + + /// + /// Optional. The name of the VPC subnetwork that the Cloud Function resource will get IPs from. Specify either + /// a VPC network or a subnet, or both. If both network and subnetwork are specified, the given VPC subnetwork + /// must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with + /// the network will be used. + /// + [Newtonsoft.Json.JsonPropertyAttribute("subnetwork")] + public virtual string Subnetwork { get; set; } + + /// Optional. Network tags applied to this Cloud Function resource. + [Newtonsoft.Json.JsonPropertyAttribute("tags")] + public virtual System.Collections.Generic.IList Tags { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Filters events based on exact matches on the CloudEvents attributes. public class EventFilter : Google.Apis.Requests.IDirectResponseSchema { @@ -3181,6 +3208,19 @@ public class ServiceConfig : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("binaryAuthorizationPolicy")] public virtual string BinaryAuthorizationPolicy { get; set; } + /// + /// Optional. Egress settings for direct VPC. If not provided, it defaults to VPC_EGRESS_PRIVATE_RANGES_ONLY. + /// + [Newtonsoft.Json.JsonPropertyAttribute("directVpcEgress")] + public virtual string DirectVpcEgress { get; set; } + + /// + /// Optional. The Direct VPC network interface for the Cloud Function. Currently only a single Direct VPC is + /// supported. + /// + [Newtonsoft.Json.JsonPropertyAttribute("directVpcNetworkInterface")] + public virtual System.Collections.Generic.IList DirectVpcNetworkInterface { get; set; } + /// Environment variables that shall be available during function execution. [Newtonsoft.Json.JsonPropertyAttribute("environmentVariables")] public virtual System.Collections.Generic.IDictionary EnvironmentVariables { get; set; } diff --git a/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.csproj b/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.csproj index 7d3cfc172c3..63e955c7bd6 100644 --- a/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.csproj +++ b/Src/Generated/Google.Apis.CloudFunctions.v2beta/Google.Apis.CloudFunctions.v2beta.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudFunctions.v2beta Client Library - 1.71.0.3924 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google @@ -60,8 +60,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.cs b/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.cs index 11e2bec1ff7..6764c31625c 100644 --- a/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.cs +++ b/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.cs @@ -10171,29 +10171,7 @@ public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset /// Request message for ExportProducts method. public class GoogleCloudRetailV2alphaExportProductsRequest : Google.Apis.Requests.IDirectResponseSchema { - /// - /// A filtering expression to specify restrictions on returned events. The expression is a sequence of terms. - /// Each term applies a restriction to the returned products. Use this expression to restrict results to a - /// specific time range, tag, or stock state or to filter products by product type. For example, - /// `lastModifiedTime &gt; "2012-04-23T18:25:43.511Z" lastModifiedTime&lt;"2012-04-23T18:25:43.511Z" - /// productType=primary` We expect only four types of fields: * `lastModifiedTime`: This can be specified twice, - /// once with a less than operator and once with a greater than operator. The `lastModifiedTime` restriction - /// should result in one, contiguous, valid, last-modified, time range. * `productType`: Supported values are - /// `primary` and `variant`. The Boolean operators `OR` and `NOT` are supported if the expression is enclosed in - /// parentheses and must be separated from the `productType` values by a space. * `availability`: Supported - /// values are `IN_STOCK`, `OUT_OF_STOCK`, `PREORDER`, and `BACKORDER`. Boolean operators `OR` and `NOT` are - /// supported if the expression is enclosed in parentheses and must be separated from the `availability` values - /// by a space. * `Tag expressions`: Restricts output to products that match all of the specified tags. Boolean - /// operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and the operators are - /// separated from the tag values by a space. Also supported is '`-"tagA"`', which is equivalent to '`NOT - /// "tagA"`'. Tag values must be double-quoted, UTF-8 encoded strings and have a size limit of 1,000 characters. - /// Some examples of valid filters expressions: * Example 1: `lastModifiedTime &gt; - /// "2012-04-23T18:25:43.511Z" lastModifiedTime &lt; "2012-04-23T18:30:43.511Z"` * Example 2: - /// `lastModifiedTime &gt; "2012-04-23T18:25:43.511Z" productType = "variant"` * Example 3: `tag=("Red" OR - /// "Blue") tag="New-Arrival" tag=(NOT "promotional") productType = "primary" lastModifiedTime &lt; - /// "2018-04-23T18:30:43.511Z"` * Example 4: `lastModifiedTime &gt; "2012-04-23T18:25:43.511Z"` * Example 5: - /// `availability = (IN_STOCK OR BACKORDER)` - /// + /// This field is deprecated. Any filter provided will be ignored. [Newtonsoft.Json.JsonPropertyAttribute("filter")] public virtual string Filter { get; set; } diff --git a/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.csproj b/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.csproj index a3fc920f7cb..abced761ac6 100644 --- a/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.csproj +++ b/Src/Generated/Google.Apis.CloudRetail.v2alpha/Google.Apis.CloudRetail.v2alpha.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudRetail.v2alpha Client Library - 1.72.0.3927 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.cs b/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.cs index 06f7d055838..0489e65c425 100644 --- a/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.cs +++ b/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.cs @@ -10261,29 +10261,7 @@ public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset /// Request message for ExportProducts method. public class GoogleCloudRetailV2betaExportProductsRequest : Google.Apis.Requests.IDirectResponseSchema { - /// - /// A filtering expression to specify restrictions on returned events. The expression is a sequence of terms. - /// Each term applies a restriction to the returned products. Use this expression to restrict results to a - /// specific time range, tag, or stock state or to filter products by product type. For example, - /// `lastModifiedTime &gt; "2012-04-23T18:25:43.511Z" lastModifiedTime&lt;"2012-04-23T18:25:43.511Z" - /// productType=primary` We expect only four types of fields: * `lastModifiedTime`: This can be specified twice, - /// once with a less than operator and once with a greater than operator. The `lastModifiedTime` restriction - /// should result in one, contiguous, valid, last-modified, time range. * `productType`: Supported values are - /// `primary` and `variant`. The Boolean operators `OR` and `NOT` are supported if the expression is enclosed in - /// parentheses and must be separated from the `productType` values by a space. * `availability`: Supported - /// values are `IN_STOCK`, `OUT_OF_STOCK`, `PREORDER`, and `BACKORDER`. Boolean operators `OR` and `NOT` are - /// supported if the expression is enclosed in parentheses and must be separated from the `availability` values - /// by a space. * `Tag expressions`: Restricts output to products that match all of the specified tags. Boolean - /// operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and the operators are - /// separated from the tag values by a space. Also supported is '`-"tagA"`', which is equivalent to '`NOT - /// "tagA"`'. Tag values must be double-quoted, UTF-8 encoded strings and have a size limit of 1,000 characters. - /// Some examples of valid filters expressions: * Example 1: `lastModifiedTime &gt; - /// "2012-04-23T18:25:43.511Z" lastModifiedTime &lt; "2012-04-23T18:30:43.511Z"` * Example 2: - /// `lastModifiedTime &gt; "2012-04-23T18:25:43.511Z" productType = "variant"` * Example 3: `tag=("Red" OR - /// "Blue") tag="New-Arrival" tag=(NOT "promotional") productType = "primary" lastModifiedTime &lt; - /// "2018-04-23T18:30:43.511Z"` * Example 4: `lastModifiedTime &gt; "2012-04-23T18:25:43.511Z"` * Example 5: - /// `availability = (IN_STOCK OR BACKORDER)` - /// + /// This field is deprecated. Any filter provided will be ignored. [Newtonsoft.Json.JsonPropertyAttribute("filter")] public virtual string Filter { get; set; } diff --git a/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.csproj b/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.csproj index 40e571398a1..c0596dc686b 100644 --- a/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.csproj +++ b/Src/Generated/Google.Apis.CloudRetail.v2beta/Google.Apis.CloudRetail.v2beta.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudRetail.v2beta Client Library - 1.72.0.3927 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.cs b/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.cs index 2c0ec93b867..77286338322 100644 --- a/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.cs +++ b/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.cs @@ -560,12 +560,12 @@ protected override void InitParameters() /// Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For /// example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters /// ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see - /// [Identifying - /// projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - /// * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be - /// obtained by calling ListLocations. For more information, see - /// https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers - /// ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. + /// [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * + /// `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be + /// obtained by calling [locations.list](/scheduler/docs/reference/rest/v1/projects.locations/list). For + /// more information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain + /// only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 + /// characters. /// public virtual PatchRequest Patch(Google.Apis.CloudScheduler.v1.Data.Job body, string name) { @@ -593,11 +593,12 @@ public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Clo /// example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain /// letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more /// information, see [Identifying - /// projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - /// * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can - /// be obtained by calling ListLocations. For more information, see - /// https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), - /// numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. + /// projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * + /// `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be + /// obtained by calling [locations.list](/scheduler/docs/reference/rest/v1/projects.locations/list). + /// For more information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can + /// contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum + /// length is 500 characters. /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -1178,6 +1179,55 @@ protected override void InitParameters() } } + /// Gets the Scheduler config in the project/region. + /// + /// Required. The config name. For example: projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig + /// + public virtual GetCmekConfigRequest GetCmekConfig(string name) + { + return new GetCmekConfigRequest(this.service, name); + } + + /// Gets the Scheduler config in the project/region. + public class GetCmekConfigRequest : CloudSchedulerBaseServiceRequest + { + /// Constructs a new GetCmekConfig request. + public GetCmekConfigRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The config name. For example: projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "getCmekConfig"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes GetCmekConfig parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/cmekConfig$", + }); + } + } + /// Lists information about the supported locations for this service. /// The resource that owns the locations collection, if applicable. public virtual ListRequest List(string name) @@ -1200,8 +1250,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } @@ -1281,6 +1331,77 @@ protected override void InitParameters() }); } } + + /// Initializes or Updates the a scheduler config. + /// The body of the request. + /// + /// Identifier. The config resource name which includes the project and location and must end in + /// 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` + /// + public virtual UpdateCmekConfigRequest UpdateCmekConfig(Google.Apis.CloudScheduler.v1.Data.CmekConfig body, string name) + { + return new UpdateCmekConfigRequest(this.service, body, name); + } + + /// Initializes or Updates the a scheduler config. + public class UpdateCmekConfigRequest : CloudSchedulerBaseServiceRequest + { + /// Constructs a new UpdateCmekConfig request. + public UpdateCmekConfigRequest(Google.Apis.Services.IClientService service, Google.Apis.CloudScheduler.v1.Data.CmekConfig body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. The config resource name which includes the project and location and must end in + /// 'cmekConfig', in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Optional. List of fields to be updated in this request. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.CloudScheduler.v1.Data.CmekConfig Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "updateCmekConfig"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes UpdateCmekConfig parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/cmekConfig$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } } } } @@ -1408,6 +1529,28 @@ public class CancelOperationRequest : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// Describes the project/location configuration of Cloud Scheduler Resources. + public class CmekConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. Resource name of the Cloud KMS key, of the form + /// `projects/PROJECT_ID/locations/LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID`, that will be used to + /// encrypt Jobs in the region. Setting this as blank will turn off CMEK encryption. + /// + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } + + /// + /// Identifier. The config resource name which includes the project and location and must end in 'cmekConfig', + /// in the format projects/PROJECT_ID/locations/LOCATION_ID/cmekConfig` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// /// A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical /// example is to use it as the request or the response type of an API method. For instance: service Foo { rpc @@ -1562,11 +1705,11 @@ public virtual System.DateTimeOffset? LastAttemptTimeDateTimeOffset /// Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: /// `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), /// numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying - /// projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * - /// `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by - /// calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can - /// contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 - /// characters. + /// projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the + /// canonical ID for the job's location. The list of available locations can be obtained by calling + /// [locations.list](/scheduler/docs/reference/rest/v1/projects.locations/list). For more information, see + /// [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain only letters ([A-Za-z]), + /// numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } @@ -1588,14 +1731,14 @@ public virtual System.DateTimeOffset? LastAttemptTimeDateTimeOffset /// /// Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The /// schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * - /// English-like [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) As a general - /// rule, execution `n + 1` of a job will not begin until execution `n` has finished. Cloud Scheduler will never - /// allow two simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is - /// scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start - /// until `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its - /// scheduled time occurs. If retry_count &gt; 0 and a job attempt fails, the job will be tried a total of - /// retry_count times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job - /// attempt will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled + /// English-like [schedule](/scheduler/docs/configuring/cron-job-schedules) As a general rule, execution `n + 1` + /// of a job will not begin until execution `n` has finished. Cloud Scheduler will never allow two + /// simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is scheduled + /// to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start until + /// `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its scheduled + /// time occurs. If retry_count &gt; 0 and a job attempt fails, the job will be tried a total of retry_count + /// times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job attempt + /// will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled /// execution time. Setting retry_count to 0 does not prevent failed jobs from running according to schedule /// after the failure. /// @@ -2120,9 +2263,9 @@ public class ResumeJobRequest : Google.Apis.Requests.IDirectResponseSchema /// /// Settings that determine the retry behavior. For more information, see [Retry - /// jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete - /// successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with - /// exponential backoff according to the settings in RetryConfig. + /// jobs](/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete successfully (meaning that + /// an acknowledgement is not received from the handler, then it will be retried with exponential backoff according + /// to the settings in RetryConfig. /// public class RetryConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -2137,8 +2280,7 @@ public class RetryConfig : Google.Apis.Requests.IDirectResponseSchema /// The time between retries will double `max_doublings` times. A job's retry interval starts at /// min_backoff_duration, then doubles `max_doublings` times, then increases linearly, and finally retries at /// intervals of max_backoff_duration up to retry_count times. For examples, see [Retry - /// jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of - /// this field is 5. + /// jobs](/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of this field is 5. /// [Newtonsoft.Json.JsonPropertyAttribute("maxDoublings")] public virtual System.Nullable MaxDoublings { get; set; } diff --git a/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.csproj b/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.csproj index 207211cd683..26be37b5697 100644 --- a/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.csproj +++ b/Src/Generated/Google.Apis.CloudScheduler.v1/Google.Apis.CloudScheduler.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudScheduler.v1 Client Library - 1.71.0.3920 + 1.72.0.3947 Google LLC Copyright 2025 Google LLC Google @@ -60,8 +60,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.cs b/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.cs index 992e7a02b23..48458ecc6dc 100644 --- a/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.cs +++ b/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.cs @@ -293,6 +293,7 @@ public LocationsResource(Google.Apis.Services.IClientService service) { this.service = service; Jobs = new JobsResource(service); + Operations = new OperationsResource(service); } /// Gets the Jobs resource. @@ -609,12 +610,13 @@ protected override void InitParameters() /// Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For /// example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters /// ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see - /// [Identifying - /// projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - /// * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be - /// obtained by calling ListLocations. For more information, see - /// https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), numbers - /// ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. + /// [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * + /// `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be + /// obtained by calling + /// [locations.list](/scheduler/docs/reference/rest/v1beta1/projects.locations/list). For more + /// information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain only + /// letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 + /// characters. /// public virtual PatchRequest Patch(Google.Apis.CloudScheduler.v1beta1.Data.Job body, string name) { @@ -642,11 +644,13 @@ public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Clo /// example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain /// letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more /// information, see [Identifying - /// projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - /// * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can - /// be obtained by calling ListLocations. For more information, see - /// https://cloud.google.com/about/locations/. * `JOB_ID` can contain only letters ([A-Za-z]), - /// numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. + /// projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * + /// `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be + /// obtained by calling + /// [locations.list](/scheduler/docs/reference/rest/v1beta1/projects.locations/list). For more + /// information, see [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain + /// only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is + /// 500 characters. /// [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } @@ -887,6 +891,301 @@ protected override void InitParameters() } } + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// + /// 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`. + /// + /// The body of the request. + /// The name of the operation resource to be cancelled. + public virtual CancelRequest Cancel(Google.Apis.CloudScheduler.v1beta1.Data.CancelOperationRequest body, string name) + { + return new CancelRequest(this.service, body, name); + } + + /// + /// 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`. + /// + public class CancelRequest : CloudSchedulerBaseServiceRequest + { + /// Constructs a new Cancel request. + public CancelRequest(Google.Apis.Services.IClientService service, Google.Apis.CloudScheduler.v1beta1.Data.CancelOperationRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// The name of the operation resource to be cancelled. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.CloudScheduler.v1beta1.Data.CancelOperationRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "cancel"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1beta1/{+name}:cancel"; + + /// Initializes Cancel parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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`. + /// + /// The name of the operation resource to be deleted. + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// + /// 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`. + /// + public class DeleteRequest : CloudSchedulerBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource to be deleted. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1beta1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// 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. + /// + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : CloudSchedulerBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + }); + } + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + /// The name of the operation's parent resource. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// + /// Lists operations that match the specified filter in the request. If the server doesn't support this + /// method, it returns `UNIMPLEMENTED`. + /// + public class ListRequest : CloudSchedulerBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation's parent resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The standard list filter. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// The standard list page size. + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// The standard list page token. + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta1/{+name}/operations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + /// Gets information about a location. /// Resource name for the location. public virtual GetRequest Get(string name) @@ -954,8 +1253,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } @@ -1155,6 +1454,13 @@ public class AppEngineRouting : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// The request message for Operations.CancelOperation. + public class CancelOperationRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// /// A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical /// example is to use it as the request or the response type of an API method. For instance: service Foo { rpc @@ -1317,11 +1623,11 @@ public virtual System.DateTimeOffset? LastAttemptTimeDateTimeOffset /// Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: /// `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), /// numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying - /// projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * - /// `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by - /// calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `JOB_ID` can - /// contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 - /// characters. + /// projects](/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the + /// canonical ID for the job's location. The list of available locations can be obtained by calling + /// [locations.list](/scheduler/docs/reference/rest/v1beta1/projects.locations/list). For more information, see + /// [Cloud Scheduler locations](/scheduler/docs/locations). * `JOB_ID` can contain only letters ([A-Za-z]), + /// numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } @@ -1343,14 +1649,14 @@ public virtual System.DateTimeOffset? LastAttemptTimeDateTimeOffset /// /// Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The /// schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * - /// English-like [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) As a general - /// rule, execution `n + 1` of a job will not begin until execution `n` has finished. Cloud Scheduler will never - /// allow two simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is - /// scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start - /// until `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its - /// scheduled time occurs. If retry_count &gt; 0 and a job attempt fails, the job will be tried a total of - /// retry_count times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job - /// attempt will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled + /// English-like [schedule](/scheduler/docs/configuring/cron-job-schedules) As a general rule, execution `n + 1` + /// of a job will not begin until execution `n` has finished. Cloud Scheduler will never allow two + /// simultaneously outstanding executions. For example, this implies that if the `n+1`th execution is scheduled + /// to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th execution will not start until + /// `16:15`. A scheduled start time will be delayed if the previous execution has not ended when its scheduled + /// time occurs. If retry_count &gt; 0 and a job attempt fails, the job will be tried a total of retry_count + /// times, with exponential backoff, until the next scheduled start time. If retry_count is 0, a job attempt + /// will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled /// execution time. Setting retry_count to 0 does not prevent failed jobs from running according to schedule /// after the failure. /// @@ -1491,6 +1797,29 @@ public class ListLocationsResponse : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// The response message for Operations.ListOperations. + public class ListOperationsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The standard List next-page token. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } + + /// A list of operations that matches the specified filter in the request. + [Newtonsoft.Json.JsonPropertyAttribute("operations")] + public virtual System.Collections.Generic.IList Operations { get; set; } + + /// + /// Unordered list. Unreachable resources. Populated when the request sets + /// `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all + /// resources across all supported locations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// A resource that represents a Google Cloud location. public class Location : Google.Apis.Requests.IDirectResponseSchema { @@ -1574,6 +1903,49 @@ public class OidcToken : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// This resource represents a long-running operation that is the result of a network API call. + public class Operation : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, + /// and either `error` or `response` is available. + /// + [Newtonsoft.Json.JsonPropertyAttribute("done")] + public virtual System.Nullable Done { get; set; } + + /// The error result of the operation in case of failure or cancellation. + [Newtonsoft.Json.JsonPropertyAttribute("error")] + public virtual Status Error { get; set; } + + /// + /// Service-specific metadata associated with the operation. It typically contains progress information and + /// common metadata such as create time. Some services might not provide such metadata. Any method that returns + /// a long-running operation should document the metadata type, if any. + /// + [Newtonsoft.Json.JsonPropertyAttribute("metadata")] + public virtual System.Collections.Generic.IDictionary Metadata { get; set; } + + /// + /// The server-assigned name, which is only unique within the same service that originally returns it. If you + /// use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// + /// The normal, successful response of the operation. If the original method returns no data on success, such as + /// `Delete`, the response is `google.protobuf.Empty`. If the original method is standard + /// `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have + /// the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is + /// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("response")] + public virtual System.Collections.Generic.IDictionary Response { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Represents the metadata of the long-running operation. public class OperationMetadata : Google.Apis.Requests.IDirectResponseSchema { @@ -1809,9 +2181,9 @@ public class ResumeJobRequest : Google.Apis.Requests.IDirectResponseSchema /// /// Settings that determine the retry behavior. For more information, see [Retry - /// jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete - /// successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with - /// exponential backoff according to the settings in RetryConfig. + /// jobs](/scheduler/docs/configuring/retry-jobs). By default, if a job does not complete successfully (meaning that + /// an acknowledgement is not received from the handler, then it will be retried with exponential backoff according + /// to the settings in RetryConfig. /// public class RetryConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -1826,8 +2198,7 @@ public class RetryConfig : Google.Apis.Requests.IDirectResponseSchema /// The time between retries will double `max_doublings` times. A job's retry interval starts at /// min_backoff_duration, then doubles `max_doublings` times, then increases linearly, and finally retries at /// intervals of max_backoff_duration up to retry_count times. For examples, see [Retry - /// jobs](https://cloud.google.com/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of - /// this field is 5. + /// jobs](/scheduler/docs/configuring/retry-jobs#max-doublings). The default value of this field is 5. /// [Newtonsoft.Json.JsonPropertyAttribute("maxDoublings")] public virtual System.Nullable MaxDoublings { get; set; } diff --git a/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.csproj b/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.csproj index b7bb7650ea8..f2c752fc0a0 100644 --- a/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.csproj +++ b/Src/Generated/Google.Apis.CloudScheduler.v1beta1/Google.Apis.CloudScheduler.v1beta1.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudScheduler.v1beta1 Client Library - 1.71.0.3912 + 1.72.0.3947 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.cs b/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.cs index b9753a2f079..29dbea85351 100644 --- a/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.cs +++ b/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.cs @@ -2224,8 +2224,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } diff --git a/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.csproj b/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.csproj index 40814e414aa..4424098e588 100644 --- a/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.csproj +++ b/Src/Generated/Google.Apis.CloudTasks.v2beta2/Google.Apis.CloudTasks.v2beta2.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudTasks.v2beta2 Client Library - 1.71.0.3909 + 1.72.0.3946 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.cs b/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.cs index 8892e2b1e46..53ade1a5dec 100644 --- a/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.cs +++ b/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.cs @@ -1848,8 +1848,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } diff --git a/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.csproj b/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.csproj index fff4091ca16..c61100a343b 100644 --- a/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.csproj +++ b/Src/Generated/Google.Apis.CloudTasks.v2beta3/Google.Apis.CloudTasks.v2beta3.csproj @@ -3,7 +3,7 @@ Google.Apis.CloudTasks.v2beta3 Client Library - 1.71.0.3909 + 1.72.0.3946 Google LLC Copyright 2025 Google LLC Google @@ -60,8 +60,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.DeploymentManager.v2/Google.Apis.DeploymentManager.v2.csproj b/Src/Generated/Google.Apis.DeploymentManager.v2/Google.Apis.DeploymentManager.v2.csproj index c940a22e171..9647295a351 100644 --- a/Src/Generated/Google.Apis.DeploymentManager.v2/Google.Apis.DeploymentManager.v2.csproj +++ b/Src/Generated/Google.Apis.DeploymentManager.v2/Google.Apis.DeploymentManager.v2.csproj @@ -3,7 +3,7 @@ Google.Apis.DeploymentManager.v2 Client Library - 1.70.0.3892 + 1.72.0.3949 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.DeploymentManager.v2beta/Google.Apis.DeploymentManager.v2beta.csproj b/Src/Generated/Google.Apis.DeploymentManager.v2beta/Google.Apis.DeploymentManager.v2beta.csproj index 09666b008d6..31e4662e6d0 100644 --- a/Src/Generated/Google.Apis.DeploymentManager.v2beta/Google.Apis.DeploymentManager.v2beta.csproj +++ b/Src/Generated/Google.Apis.DeploymentManager.v2beta/Google.Apis.DeploymentManager.v2beta.csproj @@ -3,7 +3,7 @@ Google.Apis.DeploymentManager.v2beta Client Library - 1.70.0.3892 + 1.72.0.3949 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.cs b/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.cs index c4385648f75..dc51e022efb 100644 --- a/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.cs +++ b/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.cs @@ -24735,6 +24735,48 @@ public class GoogleCloudDiscoveryengineV1DataStore : Google.Apis.Requests.IDirec [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -28254,6 +28296,10 @@ public class GoogleCloudDiscoveryengineV1Principal : Google.Apis.Requests.IDirec /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1Project : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -28353,6 +28399,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -35855,6 +35965,48 @@ public class GoogleCloudDiscoveryengineV1alphaDataStore : Google.Apis.Requests.I [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -39172,6 +39324,10 @@ public class GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries : Googl /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1alphaProject : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -39271,6 +39427,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -43855,6 +44075,48 @@ public class GoogleCloudDiscoveryengineV1betaDataStore : Google.Apis.Requests.ID [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -46404,6 +46666,10 @@ public class GoogleCloudDiscoveryengineV1betaOrganicCrawlRateTimeSeries : Google /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1betaProject : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -46503,6 +46769,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { diff --git a/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.csproj b/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.csproj index 0816bac06e0..4509c1ee54a 100644 --- a/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.csproj +++ b/Src/Generated/Google.Apis.DiscoveryEngine.v1/Google.Apis.DiscoveryEngine.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.DiscoveryEngine.v1 Client Library - 1.72.0.3945 + 1.72.0.3951 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.cs b/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.cs index 729c66bbe0f..8c7b561c10b 100644 --- a/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.cs +++ b/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.cs @@ -667,6 +667,7 @@ public class LocationsResource public LocationsResource(Google.Apis.Services.IClientService service) { this.service = service; + Authorizations = new AuthorizationsResource(service); CmekConfigs = new CmekConfigsResource(service); Collections = new CollectionsResource(service); DataStores = new DataStoresResource(service); @@ -684,6 +685,359 @@ public LocationsResource(Google.Apis.Services.IClientService service) UserStores = new UserStoresResource(service); } + /// Gets the Authorizations resource. + public virtual AuthorizationsResource Authorizations { get; } + + /// The "authorizations" collection of methods. + public class AuthorizationsResource + { + private const string Resource = "authorizations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public AuthorizationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// Creates an Authorization. + /// The body of the request. + /// + /// Required. The parent resource name. Format: `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.DiscoveryEngine.v1alpha.Data.GoogleCloudDiscoveryengineV1alphaAuthorization body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates an Authorization. + public class CreateRequest : DiscoveryEngineBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.DiscoveryEngine.v1alpha.Data.GoogleCloudDiscoveryengineV1alphaAuthorization body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The parent resource name. Format: `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Required. The ID to use for the authorization, which will become the final component of the + /// resource name. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a + /// length limit of 63 characters. + /// + [Google.Apis.Util.RequestParameterAttribute("authorizationId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string AuthorizationId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.DiscoveryEngine.v1alpha.Data.GoogleCloudDiscoveryengineV1alphaAuthorization Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1alpha/{+parent}/authorizations"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("authorizationId", new Google.Apis.Discovery.Parameter + { + Name = "authorizationId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes an Authorization. + /// + /// Required. Resource name of Authorization. Format: + /// `projects/{project}/locations/{location}/authorizations/{authorization}` If the caller does not have + /// permission to delete the authorization, regardless of whether or not it exists, a + /// `PERMISSION_DENIED` error is returned. If the authorization to delete does not exist, a `NOT_FOUND` + /// error is returned. + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes an Authorization. + public class DeleteRequest : DiscoveryEngineBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. Resource name of Authorization. Format: + /// `projects/{project}/locations/{location}/authorizations/{authorization}` If the caller does not + /// have permission to delete the authorization, regardless of whether or not it exists, a + /// `PERMISSION_DENIED` error is returned. If the authorization to delete does not exist, a + /// `NOT_FOUND` error is returned. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1alpha/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/authorizations/[^/]+$", + }); + } + } + + /// Gets an Authorization. + /// + /// Required. Resource name of Authorization. Format: + /// `projects/{project}/locations/{location}/authorizations/{authorization}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets an Authorization. + public class GetRequest : DiscoveryEngineBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. Resource name of Authorization. Format: + /// `projects/{project}/locations/{location}/authorizations/{authorization}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1alpha/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/authorizations/[^/]+$", + }); + } + } + + /// Lists all Authorizations under an Engine. + /// + /// Required. The parent resource name. Format: `projects/{project}/locations/{location}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists all Authorizations under an Engine. + public class ListRequest : DiscoveryEngineBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The parent resource name. Format: `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Maximum number of Authorizations to return. If unspecified, defaults to 100. The maximum allowed + /// value is 1000; anything above that will be coerced down to 1000. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token ListAuthorizationsResponse.next_page_token, received from a previous + /// AuthorizationService.ListAuthorizations call. Provide this to retrieve the subsequent page. When + /// paginating, all other parameters provided to ListAuthorizations must match the call that + /// provided the page token. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1alpha/{+parent}/authorizations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates an Authorization + /// The body of the request. + /// + /// Identifier. Resource name of the authorization. Format: + /// `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded + /// string with a length limit of 1024 characters. + /// + public virtual PatchRequest Patch(Google.Apis.DiscoveryEngine.v1alpha.Data.GoogleCloudDiscoveryengineV1alphaAuthorization body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates an Authorization + public class PatchRequest : DiscoveryEngineBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.DiscoveryEngine.v1alpha.Data.GoogleCloudDiscoveryengineV1alphaAuthorization body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. Resource name of the authorization. Format: + /// `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 + /// encoded string with a length limit of 1024 characters. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// The list of fields to update. + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.DiscoveryEngine.v1alpha.Data.GoogleCloudDiscoveryengineV1alphaAuthorization Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1alpha/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/authorizations/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + /// Gets the CmekConfigs resource. public virtual CmekConfigsResource CmekConfigs { get; } @@ -28292,6 +28646,48 @@ public class GoogleCloudDiscoveryengineV1DataStore : Google.Apis.Requests.IDirec [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -30636,6 +31032,10 @@ public class GoogleCloudDiscoveryengineV1LicenseConfig : Google.Apis.Requests.ID /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1Project : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -30735,6 +31135,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -34957,6 +35421,66 @@ public class GoogleCloudDiscoveryengineV1alphaAssistantToolList : Google.Apis.Re public virtual string ETag { get; set; } } + /// Discovery Engine Authorization resource. + public class GoogleCloudDiscoveryengineV1alphaAuthorization : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Required. The display name of the authorization. It must be a UTF-8 encoded string with a length limit of + /// 128 characters. + /// + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// + /// Identifier. Resource name of the authorization. Format: + /// `projects/{project}/locations/{location}/authorizations/{authorization}` It must be a UTF-8 encoded string + /// with a length limit of 1024 characters. + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Server-side OAuth2 configuration. + [Newtonsoft.Json.JsonPropertyAttribute("serverSideOauth2")] + public virtual GoogleCloudDiscoveryengineV1alphaAuthorizationServerSideOAuth2 ServerSideOauth2 { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// OAuth2 configuration. + public class GoogleCloudDiscoveryengineV1alphaAuthorizationServerSideOAuth2 : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Required. The URI the user is directed to when they need to authorize. Should include everything required + /// for a successful authorization: OAuth ID, extra flags, etc. Example: + /// `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&amp;scope=https://www.googleapis.com/auth/calendar.events&amp;response_type=code&amp;access_type=offline&amp;prompt=consent` + /// The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend. + /// + [Newtonsoft.Json.JsonPropertyAttribute("authorizationUri")] + public virtual string AuthorizationUri { get; set; } + + /// Required. The OAuth2 client ID. + [Newtonsoft.Json.JsonPropertyAttribute("clientId")] + public virtual string ClientId { get; set; } + + /// Required. The OAuth2 client secret. Encrypted at rest. + [Newtonsoft.Json.JsonPropertyAttribute("clientSecret")] + public virtual string ClientSecret { get; set; } + + /// + /// Required. The scopes to request. Example: `https://www.googleapis.com/auth/calendar.events` + /// + [Newtonsoft.Json.JsonPropertyAttribute("scopes")] + public virtual System.Collections.Generic.IList Scopes { get; set; } + + /// Required. The HTTP endpoint that exchanges a client authorization for an access token. + [Newtonsoft.Json.JsonPropertyAttribute("tokenUri")] + public virtual string TokenUri { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The configuration for the BAP connector. public class GoogleCloudDiscoveryengineV1alphaBAPConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -38659,6 +39183,48 @@ public class GoogleCloudDiscoveryengineV1alphaDataStore : Google.Apis.Requests.I [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -43131,6 +43697,24 @@ public class GoogleCloudDiscoveryengineV1alphaLicenseConfig : Google.Apis.Reques public virtual string ETag { get; set; } } + /// Response message for the AuthorizationService.ListAuthorizations method. + public class GoogleCloudDiscoveryengineV1alphaListAuthorizationsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// All the customer's Authorizations. + [Newtonsoft.Json.JsonPropertyAttribute("authorizations")] + public virtual System.Collections.Generic.IList Authorizations { get; set; } + + /// + /// A token that can be sent as ListAuthorizationsRequest.page_token to retrieve the next page. If this field is + /// omitted, there are no subsequent pages. + /// + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Response for BranchService.ListBranches method. public class GoogleCloudDiscoveryengineV1alphaListBranchesResponse : Google.Apis.Requests.IDirectResponseSchema { @@ -43839,6 +44423,10 @@ public class GoogleCloudDiscoveryengineV1alphaProcessedDocument : Google.Apis.Re /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1alphaProject : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -43938,6 +44526,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -52132,6 +52784,48 @@ public class GoogleCloudDiscoveryengineV1betaDataStore : Google.Apis.Requests.ID [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -54681,6 +55375,10 @@ public class GoogleCloudDiscoveryengineV1betaOrganicCrawlRateTimeSeries : Google /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1betaProject : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -54780,6 +55478,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { diff --git a/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.csproj b/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.csproj index 72df499f98a..9b0ddd2805c 100644 --- a/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.csproj +++ b/Src/Generated/Google.Apis.DiscoveryEngine.v1alpha/Google.Apis.DiscoveryEngine.v1alpha.csproj @@ -3,7 +3,7 @@ Google.Apis.DiscoveryEngine.v1alpha Client Library - 1.72.0.3948 + 1.72.0.3951 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.cs b/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.cs index cd678498121..3dc9f7e14a0 100644 --- a/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.cs +++ b/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.cs @@ -23342,6 +23342,48 @@ public class GoogleCloudDiscoveryengineV1DataStore : Google.Apis.Requests.IDirec [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -25686,6 +25728,10 @@ public class GoogleCloudDiscoveryengineV1LicenseConfig : Google.Apis.Requests.ID /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1Project : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -25785,6 +25831,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1ProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -30847,6 +30957,48 @@ public class GoogleCloudDiscoveryengineV1alphaDataStore : Google.Apis.Requests.I [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -34164,6 +34316,10 @@ public class GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries : Googl /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1alphaProject : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -34263,6 +34419,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1alphaProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { @@ -42193,6 +42413,48 @@ public class GoogleCloudDiscoveryengineV1betaDataStore : Google.Apis.Requests.ID [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproach")] public virtual string ConfigurableBillingApproach { get; set; } + private string _configurableBillingApproachUpdateTimeRaw; + + private object _configurableBillingApproachUpdateTime; + + /// Output only. The timestamp when configurable_billing_approach was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingApproachUpdateTime")] + public virtual string ConfigurableBillingApproachUpdateTimeRaw + { + get => _configurableBillingApproachUpdateTimeRaw; + set + { + _configurableBillingApproachUpdateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _configurableBillingApproachUpdateTimeRaw = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use ConfigurableBillingApproachUpdateTimeDateTimeOffset instead.")] + public virtual object ConfigurableBillingApproachUpdateTime + { + get => _configurableBillingApproachUpdateTime; + set + { + _configurableBillingApproachUpdateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _configurableBillingApproachUpdateTime = value; + } + } + + /// + /// representation of + /// . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? ConfigurableBillingApproachUpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(ConfigurableBillingApproachUpdateTimeRaw); + set => ConfigurableBillingApproachUpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + /// /// Immutable. The content config of the data store. If this field is unset, the server behavior defaults to /// ContentConfig.NO_CONTENT. @@ -46063,6 +46325,10 @@ public class GoogleCloudDiscoveryengineV1betaPrincipal : Google.Apis.Requests.ID /// Metadata and configurations for a Google Cloud project in the service. public class GoogleCloudDiscoveryengineV1betaProject : Google.Apis.Requests.IDirectResponseSchema { + /// Output only. The current status of the project's configurable billing. + [Newtonsoft.Json.JsonPropertyAttribute("configurableBillingStatus")] + public virtual GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus ConfigurableBillingStatus { get; set; } + private string _createTimeRaw; private object _createTime; @@ -46162,6 +46428,70 @@ public virtual System.DateTimeOffset? ProvisionCompletionTimeDateTimeOffset public virtual string ETag { get; set; } } + /// + /// Represents the currently effective configurable billing parameters. These values are derived from the customer's + /// subscription history stored internally and reflect the thresholds actively being used for billing purposes at + /// the time of the GetProject call. This includes the start_time of the subscription and may differ from the values + /// in `customer_provided_config` due to billing rules (e.g., scale-downs taking effect only at the start of a new + /// month). + /// + public class GoogleCloudDiscoveryengineV1betaProjectConfigurableBillingStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The currently effective Indexing Core threshold. This is the threshold against which Indexing Core + /// usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveIndexingCoreThreshold")] + public virtual System.Nullable EffectiveIndexingCoreThreshold { get; set; } + + /// + /// Optional. The currently effective Search QPM threshold in queries per minute. This is the threshold against + /// which QPM usage is compared for overage calculations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("effectiveSearchQpmThreshold")] + public virtual System.Nullable EffectiveSearchQpmThreshold { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Optional. The start time of the currently active billing subscription. + [Newtonsoft.Json.JsonPropertyAttribute("startTime")] + public virtual string StartTimeRaw + { + get => _startTimeRaw; + set + { + _startTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _startTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")] + public virtual object StartTime + { + get => _startTime; + set + { + _startTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _startTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? StartTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(StartTimeRaw); + set => StartTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Customer provided configurations. public class GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfig : Google.Apis.Requests.IDirectResponseSchema { diff --git a/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.csproj b/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.csproj index f8d8f1369f9..aaefe70d60d 100644 --- a/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.csproj +++ b/Src/Generated/Google.Apis.DiscoveryEngine.v1beta/Google.Apis.DiscoveryEngine.v1beta.csproj @@ -3,7 +3,7 @@ Google.Apis.DiscoveryEngine.v1beta Client Library - 1.72.0.3945 + 1.72.0.3951 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.cs b/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.cs index 3d6cac227ab..b58cace73cb 100644 --- a/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.cs +++ b/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.cs @@ -1324,13 +1324,15 @@ public class DocumentStyle : Google.Apis.Requests.IDirectResponseSchema public virtual Background Background { get; set; } /// - /// The ID of the default footer. If not set, there's no default footer. This property is read-only. + /// The ID of the default footer. If not set, there's no default footer. If DocumentMode is PAGELESS, this + /// property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("defaultFooterId")] public virtual string DefaultFooterId { get; set; } /// - /// The ID of the default header. If not set, there's no default header. This property is read-only. + /// The ID of the default header. If not set, there's no default header. If DocumentMode is PAGELESS, this + /// property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("defaultHeaderId")] public virtual string DefaultHeaderId { get; set; } @@ -1342,7 +1344,7 @@ public class DocumentStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether /// to use the default_footer_id or this value for the footer on even pages. If not set, there's no even page - /// footer. This property is read-only. + /// footer. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("evenPageFooterId")] public virtual string EvenPageFooterId { get; set; } @@ -1350,7 +1352,7 @@ public class DocumentStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether /// to use the default_header_id or this value for the header on even pages. If not set, there's no even page - /// header. This property is read-only. + /// header. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("evenPageHeaderId")] public virtual string EvenPageHeaderId { get; set; } @@ -1358,8 +1360,8 @@ public class DocumentStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The ID of the footer used only for the first page. If not set then a unique footer for the first page does /// not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this - /// value for the footer on the first page. If not set, there's no first page footer. This property is - /// read-only. + /// value for the footer on the first page. If not set, there's no first page footer. If DocumentMode is + /// PAGELESS, this property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("firstPageFooterId")] public virtual string FirstPageFooterId { get; set; } @@ -1367,76 +1369,96 @@ public class DocumentStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The ID of the header used only for the first page. If not set then a unique header for the first page does /// not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this - /// value for the header on the first page. If not set, there's no first page header. This property is - /// read-only. + /// value for the header on the first page. If not set, there's no first page header. If DocumentMode is + /// PAGELESS, this property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("firstPageHeaderId")] public virtual string FirstPageHeaderId { get; set; } /// /// Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page - /// orientation between portrait and landscape. + /// orientation between portrait and landscape. If DocumentMode is PAGELESS, this property will not be rendered. /// [Newtonsoft.Json.JsonPropertyAttribute("flipPageOrientation")] public virtual System.Nullable FlipPageOrientation { get; set; } /// /// The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin - /// on all section styles. + /// on all section styles. If DocumentMode is PAGELESS, this property will not be rendered. /// [Newtonsoft.Json.JsonPropertyAttribute("marginBottom")] public virtual Dimension MarginBottom { get; set; } - /// The amount of space between the bottom of the page and the contents of the footer. + /// + /// The amount of space between the bottom of the page and the contents of the footer. If DocumentMode is + /// PAGELESS, this property will not be rendered. + /// [Newtonsoft.Json.JsonPropertyAttribute("marginFooter")] public virtual Dimension MarginFooter { get; set; } - /// The amount of space between the top of the page and the contents of the header. + /// + /// The amount of space between the top of the page and the contents of the header. If DocumentMode is PAGELESS, + /// this property will not be rendered. + /// [Newtonsoft.Json.JsonPropertyAttribute("marginHeader")] public virtual Dimension MarginHeader { get; set; } /// /// The left page margin. Updating the left page margin on the document style clears the left page margin on all - /// section styles. It may also cause columns to resize in all sections. + /// section styles. It may also cause columns to resize in all sections. If DocumentMode is PAGELESS, this + /// property will not be rendered. /// [Newtonsoft.Json.JsonPropertyAttribute("marginLeft")] public virtual Dimension MarginLeft { get; set; } /// /// The right page margin. Updating the right page margin on the document style clears the right page margin on - /// all section styles. It may also cause columns to resize in all sections. + /// all section styles. It may also cause columns to resize in all sections. If DocumentMode is PAGELESS, this + /// property will not be rendered. /// [Newtonsoft.Json.JsonPropertyAttribute("marginRight")] public virtual Dimension MarginRight { get; set; } /// /// The top page margin. Updating the top page margin on the document style clears the top page margin on all - /// section styles. + /// section styles. If DocumentMode is PAGELESS, this property will not be rendered. /// [Newtonsoft.Json.JsonPropertyAttribute("marginTop")] public virtual Dimension MarginTop { get; set; } - /// The page number from which to start counting the number of pages. + /// + /// The page number from which to start counting the number of pages. If DocumentMode is PAGELESS, this property + /// will not be rendered. + /// [Newtonsoft.Json.JsonPropertyAttribute("pageNumberStart")] public virtual System.Nullable PageNumberStart { get; set; } - /// The size of a page in the document. + /// + /// The size of a page in the document. If DocumentMode is PAGELESS, this property will not be rendered. + /// [Newtonsoft.Json.JsonPropertyAttribute("pageSize")] public virtual Size PageSize { get; set; } /// /// Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle margin_footer, /// SectionStyle margin_footer are respected. When false, the default values in the Docs editor for header and - /// footer margin is used. This property is read-only. + /// footer margin is used. If DocumentMode is PAGELESS, this property will not be rendered. This property is + /// read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("useCustomHeaderFooterMargins")] public virtual System.Nullable UseCustomHeaderFooterMargins { get; set; } - /// Indicates whether to use the even page header / footer IDs for the even pages. + /// + /// Indicates whether to use the even page header / footer IDs for the even pages. If DocumentMode is PAGELESS, + /// this property will not be rendered. + /// [Newtonsoft.Json.JsonPropertyAttribute("useEvenPageHeaderFooter")] public virtual System.Nullable UseEvenPageHeaderFooter { get; set; } - /// Indicates whether to use the first page header / footer IDs for the first page. + /// + /// Indicates whether to use the first page header / footer IDs for the first page. If DocumentMode is PAGELESS, + /// this property will not be rendered. + /// [Newtonsoft.Json.JsonPropertyAttribute("useFirstPageHeaderFooter")] public virtual System.Nullable UseFirstPageHeaderFooter { get; set; } @@ -2226,14 +2248,14 @@ public class InsertPageBreakRequest : Google.Apis.Requests.IDirectResponseSchema /// Inserts a person mention. public class InsertPersonRequest : Google.Apis.Requests.IDirectResponseSchema { - /// Inserts the person at the end of a header, footer, footnote or the document body. + /// Inserts the person mention at the end of a header, footer, footnote or the document body. [Newtonsoft.Json.JsonPropertyAttribute("endOfSegmentLocation")] public virtual EndOfSegmentLocation EndOfSegmentLocation { get; set; } /// - /// Inserts the person at a specific index in the document. The person mention must be inserted inside the - /// bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. between - /// the table and its preceding paragraph). People cannot be inserted inside an equation. + /// Inserts the person mention at a specific index in the document. The person mention must be inserted inside + /// the bounds of an existing Paragraph. For instance, it cannot be inserted at a table's start index (i.e. + /// between the table and its preceding paragraph). People cannot be inserted inside an equation. /// [Newtonsoft.Json.JsonPropertyAttribute("location")] public virtual Location Location { get; set; } @@ -3932,16 +3954,16 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The ID of the default footer. If unset, the value inherits from the previous SectionBreak's SectionStyle. If - /// the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_footer_id. This - /// property is read-only. + /// the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_footer_id. If + /// DocumentMode is PAGELESS, this property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("defaultFooterId")] public virtual string DefaultFooterId { get; set; } /// /// The ID of the default header. If unset, the value inherits from the previous SectionBreak's SectionStyle. If - /// the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_header_id. This - /// property is read-only. + /// the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_header_id. If + /// DocumentMode is PAGELESS, this property will not be rendered. This property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("defaultHeaderId")] public virtual string DefaultHeaderId { get; set; } @@ -3951,7 +3973,8 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// is true, this value is used for the footers on even pages in the section. If it is false, the footers on /// even pages use the default_footer_id. If unset, the value inherits from the previous SectionBreak's /// SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's - /// even_page_footer_id. This property is read-only. + /// even_page_footer_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is + /// read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("evenPageFooterId")] public virtual string EvenPageFooterId { get; set; } @@ -3961,7 +3984,8 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// is true, this value is used for the headers on even pages in the section. If it is false, the headers on /// even pages use the default_header_id. If unset, the value inherits from the previous SectionBreak's /// SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's - /// even_page_header_id. This property is read-only. + /// even_page_header_id. If DocumentMode is PAGELESS, this property will not be rendered. This property is + /// read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("evenPageHeaderId")] public virtual string EvenPageHeaderId { get; set; } @@ -3971,7 +3995,8 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// this value is used for the footer on the first page of the section. If it's false, the footer on the first /// page of the section uses the default_footer_id. If unset, the value inherits from the previous /// SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from - /// DocumentStyle's first_page_footer_id. This property is read-only. + /// DocumentStyle's first_page_footer_id. If DocumentMode is PAGELESS, this property will not be rendered. This + /// property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("firstPageFooterId")] public virtual string FirstPageFooterId { get; set; } @@ -3981,7 +4006,8 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// this value is used for the header on the first page of the section. If it's false, the header on the first /// page of the section uses the default_header_id. If unset, the value inherits from the previous /// SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from - /// DocumentStyle's first_page_header_id. This property is read-only. + /// DocumentStyle's first_page_header_id. If DocumentMode is PAGELESS, this property will not be rendered. This + /// property is read-only. /// [Newtonsoft.Json.JsonPropertyAttribute("firstPageHeaderId")] public virtual string FirstPageHeaderId { get; set; } @@ -3989,16 +4015,17 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// /// Optional. Indicates whether to flip the dimensions of DocumentStyle's page_size for this section, which /// allows changing the page orientation between portrait and landscape. If unset, the value inherits from - /// DocumentStyle's flip_page_orientation. When updating this property, setting a concrete value is required. - /// Unsetting this property results in a 400 bad request error. + /// DocumentStyle's flip_page_orientation. If DocumentMode is PAGELESS, this property will not be rendered. When + /// updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad + /// request error. /// [Newtonsoft.Json.JsonPropertyAttribute("flipPageOrientation")] public virtual System.Nullable FlipPageOrientation { get; set; } /// - /// The bottom page margin of the section. If unset, the value defaults to margin_bottom from DocumentStyle. - /// When updating this property, setting a concrete value is required. Unsetting this property results in a 400 - /// bad request error. + /// The bottom page margin of the section. If unset, the value defaults to margin_bottom from DocumentStyle. If + /// DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a + /// concrete value is required. Unsetting this property results in a 400 bad request error. /// [Newtonsoft.Json.JsonPropertyAttribute("marginBottom")] public virtual Dimension MarginBottom { get; set; } @@ -4007,8 +4034,8 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// The footer margin of the section. If unset, the value defaults to margin_footer from DocumentStyle. If /// updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of /// use_custom_header_footer_margins on DocumentStyle indicates if a footer margin is being respected for this - /// section When updating this property, setting a concrete value is required. Unsetting this property results - /// in a 400 bad request error. + /// section If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, + /// setting a concrete value is required. Unsetting this property results in a 400 bad request error. /// [Newtonsoft.Json.JsonPropertyAttribute("marginFooter")] public virtual Dimension MarginFooter { get; set; } @@ -4017,8 +4044,8 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// The header margin of the section. If unset, the value defaults to margin_header from DocumentStyle. If /// updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of /// use_custom_header_footer_margins on DocumentStyle indicates if a header margin is being respected for this - /// section. When updating this property, setting a concrete value is required. Unsetting this property results - /// in a 400 bad request error. + /// section. If DocumentMode is PAGELESS, this property will not be rendered. When updating this property, + /// setting a concrete value is required. Unsetting this property results in a 400 bad request error. /// [Newtonsoft.Json.JsonPropertyAttribute("marginHeader")] public virtual Dimension MarginHeader { get; set; } @@ -4026,8 +4053,9 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The left page margin of the section. If unset, the value defaults to margin_left from DocumentStyle. /// Updating the left margin causes columns in this section to resize. Since the margin affects column width, - /// it's applied before column properties. When updating this property, setting a concrete value is required. - /// Unsetting this property results in a 400 bad request error. + /// it's applied before column properties. If DocumentMode is PAGELESS, this property will not be rendered. When + /// updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad + /// request error. /// [Newtonsoft.Json.JsonPropertyAttribute("marginLeft")] public virtual Dimension MarginLeft { get; set; } @@ -4035,16 +4063,17 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The right page margin of the section. If unset, the value defaults to margin_right from DocumentStyle. /// Updating the right margin causes columns in this section to resize. Since the margin affects column width, - /// it's applied before column properties. When updating this property, setting a concrete value is required. - /// Unsetting this property results in a 400 bad request error. + /// it's applied before column properties. If DocumentMode is PAGELESS, this property will not be rendered. When + /// updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad + /// request error. /// [Newtonsoft.Json.JsonPropertyAttribute("marginRight")] public virtual Dimension MarginRight { get; set; } /// - /// The top page margin of the section. If unset, the value defaults to margin_top from DocumentStyle. When - /// updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad - /// request error. + /// The top page margin of the section. If unset, the value defaults to margin_top from DocumentStyle. If + /// DocumentMode is PAGELESS, this property will not be rendered. When updating this property, setting a + /// concrete value is required. Unsetting this property results in a 400 bad request error. /// [Newtonsoft.Json.JsonPropertyAttribute("marginTop")] public virtual Dimension MarginTop { get; set; } @@ -4052,8 +4081,9 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// /// The page number from which to start counting the number of pages for this section. If unset, page numbering /// continues from the previous section. If the value is unset in the first SectionBreak, refer to - /// DocumentStyle's page_number_start. When updating this property, setting a concrete value is required. - /// Unsetting this property results in a 400 bad request error. + /// DocumentStyle's page_number_start. If DocumentMode is PAGELESS, this property will not be rendered. When + /// updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad + /// request error. /// [Newtonsoft.Json.JsonPropertyAttribute("pageNumberStart")] public virtual System.Nullable PageNumberStart { get; set; } @@ -4065,8 +4095,9 @@ public class SectionStyle : Google.Apis.Requests.IDirectResponseSchema /// /// Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it /// inherits from DocumentStyle's use_first_page_header_footer for the first section. If the value is unset for - /// subsequent sectors, it should be interpreted as false. When updating this property, setting a concrete value - /// is required. Unsetting this property results in a 400 bad request error. + /// subsequent sectors, it should be interpreted as false. If DocumentMode is PAGELESS, this property will not + /// be rendered. When updating this property, setting a concrete value is required. Unsetting this property + /// results in a 400 bad request error. /// [Newtonsoft.Json.JsonPropertyAttribute("useFirstPageHeaderFooter")] public virtual System.Nullable UseFirstPageHeaderFooter { get; set; } diff --git a/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.csproj b/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.csproj index 1a2d3e967ea..f4de87cbb4e 100644 --- a/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.csproj +++ b/Src/Generated/Google.Apis.Docs.v1/Google.Apis.Docs.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.Docs.v1 Client Library - 1.72.0.3938 + 1.72.0.3947 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.cs b/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.cs index 099618d1b31..68f86cf766e 100644 --- a/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.cs +++ b/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.cs @@ -368,6 +368,7 @@ public LocationsResource(Google.Apis.Services.IClientService service) Operations = new OperationsResource(service); ProcessorTypes = new ProcessorTypesResource(service); Processors = new ProcessorsResource(service); + Schemas = new SchemasResource(service); } /// Gets the Operations resource. @@ -2097,643 +2098,2966 @@ protected override void InitParameters() } } + /// Gets the Schemas resource. + public virtual SchemasResource Schemas { get; } + + /// The "schemas" collection of methods. + public class SchemasResource + { + private const string Resource = "schemas"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SchemasResource(Google.Apis.Services.IClientService service) + { + this.service = service; + SchemaVersions = new SchemaVersionsResource(service); + } + + /// Gets the SchemaVersions resource. + public virtual SchemaVersionsResource SchemaVersions { get; } + + /// The "schemaVersions" collection of methods. + public class SchemaVersionsResource + { + private const string Resource = "schemaVersions"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SchemaVersionsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// Creates a schema version. + /// The body of the request. + /// + /// Required. The parent (project and location) under which to create the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual CreateRequest Create(Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1SchemaVersion body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a schema version. + public class CreateRequest : DocumentBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1SchemaVersion body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The parent (project and location) under which to create the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1SchemaVersion Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/schemaVersions"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + } + } + + /// Deletes a schema version. + /// + /// Required. The name of the SchemaVersion to delete. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a schema version. + public class DeleteRequest : DocumentBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the SchemaVersion to delete. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + }); + } + } + + /// Generates a schema version. + /// The body of the request. + /// + /// Required. The parent (project, location and schema) under which to generate the SchemaVersion. + /// Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual GenerateRequest Generate(Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1GenerateSchemaVersionRequest body, string parent) + { + return new GenerateRequest(this.service, body, parent); + } + + /// Generates a schema version. + public class GenerateRequest : DocumentBaseServiceRequest + { + /// Constructs a new Generate request. + public GenerateRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1GenerateSchemaVersionRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The parent (project, location and schema) under which to generate the + /// SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1GenerateSchemaVersionRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "generate"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/schemaVersions:generate"; + + /// Initializes Generate parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + } + } + + /// Gets a schema version. + /// + /// Required. The name of the SchemaVersion to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a schema version. + public class GetRequest : DocumentBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the SchemaVersion to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + }); + } + } + + /// Lists SchemaVersions. + /// + /// Required. Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists SchemaVersions. + public class ListRequest : DocumentBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The maximum number of SchemaVersion to return. If unspecified, at most `10` + /// SchemaVersion will be returned. The maximum value is `20`. Values above `20` will be coerced + /// to `20`. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. We will return the SchemaVersion sorted by creation time. The page token will + /// point to the next SchemaVersion. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/schemaVersions"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a schema version. Editable fields are: - `display_name` - `labels` + /// The body of the request. + /// + /// Identifier. The resource name of the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + public virtual PatchRequest Patch(Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1SchemaVersion body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a schema version. Editable fields are: - `display_name` - `labels` + public class PatchRequest : DocumentBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1SchemaVersion body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. The resource name of the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. The update mask to apply to the resource. **Note:** Only the following fields can + /// be updated: - display_name. - labels. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1SchemaVersion Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a schema. + /// The body of the request. + /// + /// Required. The parent (project and location) under which to create the Schema. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1NextSchema body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a schema. + public class CreateRequest : DocumentBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1NextSchema body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The parent (project and location) under which to create the Schema. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1NextSchema Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/schemas"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a schema. + /// + /// Required. The name of the Schema to be deleted. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a schema. + public class DeleteRequest : DocumentBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Schema to be deleted. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. If set to true, any child resources of this Schema will also be deleted. (Otherwise, + /// the request will only work if the Schema has no child resources.) + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets a schema. + /// + /// Required. The name of the Schema to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a schema. + public class GetRequest : DocumentBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Schema to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + } + } + + /// Lists Schemas. + /// Required. Format: `projects/{project}/locations/{location}` + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Schemas. + public class ListRequest : DocumentBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// Required. Format: `projects/{project}/locations/{location}` + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The maximum number of schema groups to return. If unspecified, at most `10` Schema + /// will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. We will return the schema groups sorted by creation time. The page token will point to + /// the next Schema. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}/schemas"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a schema. Editable fields are: - `display_name` - `labels` + /// The body of the request. + /// + /// Identifier. The resource name of the Schema. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual PatchRequest Patch(Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1NextSchema body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a schema. Editable fields are: - `display_name` - `labels` + public class PatchRequest : DocumentBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1NextSchema body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. The resource name of the Schema. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. The update mask to apply to the resource. **Note:** Only the following fields can be + /// updated: - display_name. - labels. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1.Data.GoogleCloudDocumentaiV1NextSchema Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. + /// + /// + /// Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. + /// + public virtual FetchProcessorTypesRequest FetchProcessorTypes(string parent) + { + return new FetchProcessorTypesRequest(this.service, parent); + } + + /// + /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. + /// + public class FetchProcessorTypesRequest : DocumentBaseServiceRequest + { + /// Constructs a new FetchProcessorTypes request. + public FetchProcessorTypesRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The location of processor types to list. Format: + /// `projects/{project}/locations/{location}`. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets the method name. + public override string MethodName => "fetchProcessorTypes"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+parent}:fetchProcessorTypes"; + + /// Initializes FetchProcessorTypes parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Gets information about a location. + /// Resource name for the location. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets information about a location. + public class GetRequest : DocumentBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// Resource name for the location. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Lists information about the supported locations for this service. + /// The resource that owns the locations collection, if applicable. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// Lists information about the supported locations for this service. + public class ListRequest : DocumentBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The resource that owns the locations collection, if applicable. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is + /// primarily intended for internal usage. + /// + [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// The maximum number of results to return. If not set, the service selects a default. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token received from the `next_page_token` field in the response. Send that page token to + /// receive the subsequent page. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}/locations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+$", + }); + RequestParameters.Add("extraLocationTypes", new Google.Apis.Discovery.Parameter + { + Name = "extraLocationTypes", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Gets the Operations resource. + public virtual OperationsResource Operations { get; } + + /// The "operations" collection of methods. + public class OperationsResource + { + private const string Resource = "operations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public OperationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + /// - /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. + /// 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. /// - /// - /// Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. - /// - public virtual FetchProcessorTypesRequest FetchProcessorTypes(string parent) + /// The name of the operation resource. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// + /// 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. + /// + public class GetRequest : DocumentBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The name of the operation resource. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/operations/[^/]+$", + }); + } + } + } + } +} +namespace Google.Apis.Document.v1.Data +{ + /// + /// Definition of the validation rules. Those are the input to the validator logic and they are used to validate a + /// document. + /// + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInput : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("validationRules")] + public virtual System.Collections.Generic.IList ValidationRules { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("childAlignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule ChildAlignmentRule { get; set; } + + /// Description of the validation rule. This has no use but for documentation + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("entityAlignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule EntityAlignmentRule { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("fieldOccurrences")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences FieldOccurrences { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("fieldRegex")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex FieldRegex { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("formValidation")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation FormValidation { get; set; } + + /// Name of the validation rule. + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing + /// y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by + /// comparing x-coordinates of bounding box centers. + /// + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("alignmentType")] + public virtual string AlignmentType { get; set; } + + /// The tolerance to use when comparing coordinates. + [Newtonsoft.Json.JsonPropertyAttribute("tolerance")] + public virtual System.Nullable Tolerance { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A rule that aligns specified child fields with a parent field. + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + { + /// The alignment rule to apply to the child fields. + [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } + + /// The child fields to be aligned within the parent field. + [Newtonsoft.Json.JsonPropertyAttribute("childFields")] + public virtual System.Collections.Generic.IList ChildFields { get; set; } + + /// The full path of the parent field. + [Newtonsoft.Json.JsonPropertyAttribute("parentField")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField ParentField { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The constant value used in the validation rules. + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("floatValue")] + public virtual System.Nullable FloatValue { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A rule that aligns specified fields with each other. + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + { + /// The alignment rule to apply to the fields. + [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } + + /// The fields to be aligned. + [Newtonsoft.Json.JsonPropertyAttribute("fields")] + public virtual System.Collections.Generic.IList Fields { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Default value to use if the field is not present. If the field is missing and the default value is not set, + /// the validation run as if the field is not present in the validation logic. + /// + [Newtonsoft.Json.JsonPropertyAttribute("defaultValue")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant DefaultValue { get; set; } + + /// + /// The field name to validate. This can be a simple field name or a nested field one using the ':' (meant as an + /// aggregator) or '*' (meant as foreach) operators. + /// + [Newtonsoft.Json.JsonPropertyAttribute("fieldName")] + public virtual string FieldName { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("field")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("maxOccurrences")] + public virtual System.Nullable MaxOccurrences { get; set; } + + /// + /// Min and max occurrences of the field. If not set, there is limit set. The defined interval is a + /// closed-closed interval, i.e. [min, max]. + /// + [Newtonsoft.Json.JsonPropertyAttribute("minOccurrences")] + public virtual System.Nullable MinOccurrences { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("field")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } + + /// Python regex to validate the field values. + [Newtonsoft.Json.JsonPropertyAttribute("pattern")] + public virtual string Pattern { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("leftOperand")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation LeftOperand { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("rightOperand")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation RightOperand { get; set; } + + /// The relational operator to be applied to the operands. + [Newtonsoft.Json.JsonPropertyAttribute("validationOperator")] + public virtual string ValidationOperator { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation : Google.Apis.Requests.IDirectResponseSchema + { + /// A list of constants to be used as operands. + [Newtonsoft.Json.JsonPropertyAttribute("constants")] + public virtual System.Collections.Generic.IList Constants { get; set; } + + /// A list of fields to be used as operands. + [Newtonsoft.Json.JsonPropertyAttribute("fields")] + public virtual System.Collections.Generic.IList Fields { get; set; } + + /// The operation type to be applied to all the operands. + [Newtonsoft.Json.JsonPropertyAttribute("operationType")] + public virtual string OperationType { get; set; } + + /// A list of recursive operations to be used as operands. + [Newtonsoft.Json.JsonPropertyAttribute("operations")] + public virtual System.Collections.Generic.IList Operations { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata of the auto-labeling documents operation. + public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The list of individual auto-labeling statuses of the dataset documents. + [Newtonsoft.Json.JsonPropertyAttribute("individualAutoLabelStatuses")] + public virtual System.Collections.Generic.IList IndividualAutoLabelStatuses { get; set; } + + /// Total number of the auto-labeling documents. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of individual documents in the auto-labeling process. + public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the auto-labeled document. This will replace the gcs_uri. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of the document auto-labeling. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The response proto of AutoLabelDocuments method. + public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// Total number of documents that failed to be deleted in storage. + [Newtonsoft.Json.JsonPropertyAttribute("errorDocumentCount")] + public virtual System.Nullable ErrorDocumentCount { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualBatchDeleteStatuses")] + public virtual System.Collections.Generic.IList IndividualBatchDeleteStatuses { get; set; } + + /// Total number of documents deleting from dataset. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the batch delete process. + public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of deleting the document in storage. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the delete documents operation. + public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The destination dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("destDatasetType")] + public virtual string DestDatasetType { get; set; } + + /// The destination dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("destSplitType")] + public virtual string DestSplitType { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualBatchMoveStatuses")] + public virtual System.Collections.Generic.IList IndividualBatchMoveStatuses { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the batch move process. + public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of moving the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the batch move documents operation. + public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualBatchUpdateStatuses")] + public virtual System.Collections.Generic.IList IndividualBatchUpdateStatuses { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the batch update process. + public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of updating the document in storage. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the batch update documents operation. + public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The common metadata for long running operations. + public class GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + private string _createTimeRaw; + + private object _createTime; + + /// The creation time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// A related resource to this operation. + [Newtonsoft.Json.JsonPropertyAttribute("resource")] + public virtual string Resource { get; set; } + + /// The state of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// A message providing more details about the current state of processing. + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } + + private string _updateTimeRaw; + + private object _updateTime; + + /// The last update time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] + public virtual string UpdateTimeRaw + { + get => _updateTimeRaw; + set + { + _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _updateTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] + public virtual object UpdateTime + { + get => _updateTime; + set + { + _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _updateTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); + set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the CreateLabelerPool method. + public class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for DeleteLabelerPool. + public class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the DeleteProcessor method. + public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the DeleteProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the DisableProcessor method. + public class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. + /// + public class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Document Identifier. + public class GoogleCloudDocumentaiUiv1beta3DocumentId : Google.Apis.Requests.IDirectResponseSchema + { + /// A document id within user-managed Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedDocId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId GcsManagedDocId { get; set; } + + /// Points to a specific revision of the document if set. + [Newtonsoft.Json.JsonPropertyAttribute("revisionRef")] + public virtual GoogleCloudDocumentaiUiv1beta3RevisionRef RevisionRef { get; set; } + + /// A document id within unmanaged dataset. + [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDocId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId UnmanagedDocId { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. + /// + public class GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId : Google.Apis.Requests.IDirectResponseSchema + { + /// Id of the document (indexed) managed by Content Warehouse. + [Newtonsoft.Json.JsonPropertyAttribute("cwDocId")] + public virtual string CwDocId { get; set; } + + /// Required. The Cloud Storage URI where the actual document is stored. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Identifies a document uniquely within the scope of a dataset in unmanaged option. + public class GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. The id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("docId")] + public virtual string DocId { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The schema defines the output of the processed document by a processor. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchema : Google.Apis.Requests.IDirectResponseSchema + { + /// Description of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// Display name to show to users. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Entity types of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypes")] + public virtual System.Collections.Generic.IList EntityTypes { get; set; } + + /// Metadata of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("metadata")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata Metadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for + /// entity-based processors. Multiple types can also compose a dependency tree to represent nested types. + /// + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType : Google.Apis.Requests.IDirectResponseSchema + { + /// The entity type that this type is derived from. For now, one and only one should be set. + [Newtonsoft.Json.JsonPropertyAttribute("baseTypes")] + public virtual System.Collections.Generic.IList BaseTypes { get; set; } + + /// + /// The description of the entity type. Could be used to provide more information about the entity type for + /// model calls. + /// + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// User defined name for the type. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Metadata for the entity type. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypeMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata EntityTypeMetadata { get; set; } + + /// + /// If specified, lists all the possible values for this entity. This should not be more than a handful of + /// values. If the number of values is &gt;10 or could change frequently use the `EntityType.value_ontology` + /// field and specify a list of all possible values in a value ontology file. + /// + [Newtonsoft.Json.JsonPropertyAttribute("enumValues")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues EnumValues { get; set; } + + /// + /// Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following + /// naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 + /// characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward + /// compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes + /// used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will + /// still be honored for backward compatibility. + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Description the nested structure, or composition of an entity. + [Newtonsoft.Json.JsonPropertyAttribute("properties")] + public virtual System.Collections.Generic.IList Properties { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Defines the a list of enum values. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues : Google.Apis.Requests.IDirectResponseSchema + { + /// The individual values that this enum values type can include. + [Newtonsoft.Json.JsonPropertyAttribute("values")] + public virtual System.Collections.Generic.IList Values { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Defines properties that can be part of the entity type. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The description of the property. Could be used to provide more information about the property for model + /// calls. + /// + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// User defined name for the property. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Specifies how the entity's value is obtained. + [Newtonsoft.Json.JsonPropertyAttribute("method")] + public virtual string Method { get; set; } + + /// The name of the property. Follows the same guidelines as the EntityType name. + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Occurrence type limits the number of instances an entity type appears in the document. + [Newtonsoft.Json.JsonPropertyAttribute("occurrenceType")] + public virtual string OccurrenceType { get; set; } + + /// Any additional metadata about the property can be added here. + [Newtonsoft.Json.JsonPropertyAttribute("propertyMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3PropertyMetadata PropertyMetadata { get; set; } + + /// + /// A reference to the value type of the property. This type is subject to the same conventions as the + /// `Entity.base_types` field. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueType")] + public virtual string ValueType { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata for global schema behavior. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// If true, on a given page, there can be multiple `document` annotations covering it. + [Newtonsoft.Json.JsonPropertyAttribute("documentAllowMultipleLabels")] + public virtual System.Nullable DocumentAllowMultipleLabels { get; set; } + + /// + /// If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be + /// applied to the entire document (classification). + /// + [Newtonsoft.Json.JsonPropertyAttribute("documentSplitter")] + public virtual System.Nullable DocumentSplitter { get; set; } + + /// If set, all the nested entities must be prefixed with the parents. + [Newtonsoft.Json.JsonPropertyAttribute("prefixedNamingOnProperties")] + public virtual System.Nullable PrefixedNamingOnProperties { get; set; } + + /// + /// If set, we will skip the naming format validation in the schema. So the string values in + /// `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. + /// + [Newtonsoft.Json.JsonPropertyAttribute("skipNamingValidation")] + public virtual System.Nullable SkipNamingValidation { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the EnableProcessor method. + public class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. + /// + public class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata about an entity type. + public class GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Field tier metadata on the property + [Newtonsoft.Json.JsonPropertyAttribute("fieldTierMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldTierMetadata FieldTierMetadata { get; set; } + + /// Human review labeling config on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewLabelingMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata HumanReviewLabelingMetadata { get; set; } + + /// Human review config on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata HumanReviewMetadata { get; set; } + + /// Whether the entity type should be considered inactive. + [Newtonsoft.Json.JsonPropertyAttribute("inactive")] + public virtual System.Nullable Inactive { get; set; } + + /// Schema editability metadata on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("schemaEditabilityMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata SchemaEditabilityMetadata { get; set; } + + /// Schema inference metadata on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("schemaInferenceMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata SchemaInferenceMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The resource name of the created evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Evaluation metrics, either in aggregate or about a specific entity. + public class GoogleCloudDocumentaiUiv1beta3EvaluationMetrics : Google.Apis.Requests.IDirectResponseSchema + { + /// The calculated f1 score. + [Newtonsoft.Json.JsonPropertyAttribute("f1Score")] + public virtual System.Nullable F1Score { get; set; } + + /// The amount of false negatives. + [Newtonsoft.Json.JsonPropertyAttribute("falseNegativesCount")] + public virtual System.Nullable FalseNegativesCount { get; set; } + + /// The amount of false positives. + [Newtonsoft.Json.JsonPropertyAttribute("falsePositivesCount")] + public virtual System.Nullable FalsePositivesCount { get; set; } + + /// The amount of documents with a ground truth occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthDocumentCount")] + public virtual System.Nullable GroundTruthDocumentCount { get; set; } + + /// The amount of occurrences in ground truth documents. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthOccurrencesCount")] + public virtual System.Nullable GroundTruthOccurrencesCount { get; set; } + + /// The calculated precision. + [Newtonsoft.Json.JsonPropertyAttribute("precision")] + public virtual System.Nullable Precision { get; set; } + + /// The amount of documents with a predicted occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("predictedDocumentCount")] + public virtual System.Nullable PredictedDocumentCount { get; set; } + + /// The amount of occurrences in predicted documents. + [Newtonsoft.Json.JsonPropertyAttribute("predictedOccurrencesCount")] + public virtual System.Nullable PredictedOccurrencesCount { get; set; } + + /// The calculated recall. + [Newtonsoft.Json.JsonPropertyAttribute("recall")] + public virtual System.Nullable Recall { get; set; } + + /// The amount of documents that had an occurrence of this label. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentsCount")] + public virtual System.Nullable TotalDocumentsCount { get; set; } + + /// The amount of true positives. + [Newtonsoft.Json.JsonPropertyAttribute("truePositivesCount")] + public virtual System.Nullable TruePositivesCount { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Gives a short summary of an evaluation, and links to the evaluation itself. + public class GoogleCloudDocumentaiUiv1beta3EvaluationReference : Google.Apis.Requests.IDirectResponseSchema + { + /// An aggregate of the statistics for the evaluation with fuzzy matching on. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetrics")] + public virtual GoogleCloudDocumentaiUiv1beta3EvaluationMetrics AggregateMetrics { get; set; } + + /// An aggregate of the statistics for the evaluation with fuzzy matching off. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetricsExact")] + public virtual GoogleCloudDocumentaiUiv1beta3EvaluationMetrics AggregateMetricsExact { get; set; } + + /// The resource name of the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } + + /// The resource name of the Long Running Operation for the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("operation")] + public virtual string Operation { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata of the batch export documents operation. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualExportStatuses")] + public virtual System.Collections.Generic.IList IndividualExportStatuses { get; set; } + + /// The list of statistics for each dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("splitExportStats")] + public virtual System.Collections.Generic.IList SplitExportStats { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the export process. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The path to source docproto of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// + /// The output_gcs_destination of the exported document if it was successful, otherwise empty. + /// + [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] + public virtual string OutputGcsDestination { get; set; } + + /// The status of the exporting of the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The statistic representing a dataset split type for this export. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat : Google.Apis.Requests.IDirectResponseSchema + { + /// The dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("splitType")] + public virtual string SplitType { get; set; } + + /// Total number of documents with the given dataset split type to be exported. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The response proto of ExportDocuments method. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata message associated with the ExportProcessorVersion operation. + public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The common metadata about the operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message associated with the ExportProcessorVersion operation. + public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The Cloud Storage URI containing the output artifacts. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata for how this field value is extracted. + public class GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Entity query config. + [Newtonsoft.Json.JsonPropertyAttribute("entityQuery")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery EntityQuery { get; set; } + + /// Summary options config. + [Newtonsoft.Json.JsonPropertyAttribute("summaryOptions")] + public virtual GoogleCloudDocumentaiUiv1beta3SummaryOptions SummaryOptions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Message for entity query. + public class GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery : Google.Apis.Requests.IDirectResponseSchema + { + /// The original entity query inputed by the user. + [Newtonsoft.Json.JsonPropertyAttribute("userEntityQuery")] + public virtual string UserEntityQuery { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata for the field tier of a property. + public class GoogleCloudDocumentaiUiv1beta3FieldTierMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Integer that indicates the tier of a property. e.g. Invoice has entities that are classified as tier 1 which + /// is the most important, while tier 2 and tier 3 less so. This attribute can be used to filter schema + /// attributes before running eval. e.g. compute F1 score for only tier 1 entities. If not present this + /// attribute should be inferred as 1. + /// + [Newtonsoft.Json.JsonPropertyAttribute("tierLevel")] + public virtual System.Nullable TierLevel { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata for human review labeling config. + public class GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Whether to enable normalization editing. + [Newtonsoft.Json.JsonPropertyAttribute("enableNormalizationEditing")] + public virtual System.Nullable EnableNormalizationEditing { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata for Human Review config. + public class GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The confidence threshold if human review validation is enabled. + [Newtonsoft.Json.JsonPropertyAttribute("confidenceThreshold")] + public virtual System.Nullable ConfidenceThreshold { get; set; } + + /// Whether to enable human review validation. + [Newtonsoft.Json.JsonPropertyAttribute("enableValidation")] + public virtual System.Nullable EnableValidation { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata of the import document operation. + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// Validation statuses of the batch documents import config. + [Newtonsoft.Json.JsonPropertyAttribute("importConfigValidationResults")] + public virtual System.Collections.Generic.IList ImportConfigValidationResults { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualImportStatuses")] + public virtual System.Collections.Generic.IList IndividualImportStatuses { get; set; } + + /// Total number of the documents that are qualified for importing. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// The validation status of each import config. Status is set to an error if there are no documents to import in + /// the `import_config`, or `OK` if the operation will try to proceed with at least one document. + /// + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult : Google.Apis.Requests.IDirectResponseSchema + { + /// The source Cloud Storage URI specified in the import config. + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } + + /// The validation status of import config. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the import process. + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The source Cloud Storage URI of the document. + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } + + /// The document id of imported document if it was successful, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("outputDocumentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId OutputDocumentId { get; set; } + + /// + /// The output_gcs_destination of the processed document if it was successful, otherwise empty. + /// + [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] + public virtual string OutputGcsDestination { get; set; } + + /// The status of the importing of the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the import document operation. + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the ImportProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata for the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The response message for the ImportProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The destination processor version name. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// The first-class citizen for Document AI. Each processor defines how to extract structural information from a + /// document. + /// + public class GoogleCloudDocumentaiUiv1beta3Processor : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version + /// Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} + /// + [Newtonsoft.Json.JsonPropertyAttribute("activeSchemaVersion")] + public virtual string ActiveSchemaVersion { get; set; } + + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time the processor was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The default processor version. + [Newtonsoft.Json.JsonPropertyAttribute("defaultProcessorVersion")] + public virtual string DefaultProcessorVersion { get; set; } + + /// The display name of the processor. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// + /// The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK + /// scenarios. + /// + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } + + /// + /// Output only. Immutable. The resource name of the processor. Format: + /// `projects/{project}/locations/{location}/processors/{processor}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Output only. Immutable. The http endpoint that can be called to invoke processing. + [Newtonsoft.Json.JsonPropertyAttribute("processEndpoint")] + public virtual string ProcessEndpoint { get; set; } + + /// Output only. The processor version aliases. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersionAliases")] + public virtual System.Collections.Generic.IList ProcessorVersionAliases { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] + public virtual System.Nullable SatisfiesPzi { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] + public virtual System.Nullable SatisfiesPzs { get; set; } + + /// Output only. The state of the processor. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// + /// The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see + /// FetchProcessorTypes. + /// + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained + /// by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its + /// document-processing behavior is defined by that version. + /// + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersion : Google.Apis.Requests.IDirectResponseSchema + { + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time the processor version was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set { - return new FetchProcessorTypesRequest(this.service, parent); + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; } + } - /// - /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. - /// - public class FetchProcessorTypesRequest : DocumentBaseServiceRequest - { - /// Constructs a new FetchProcessorTypes request. - public FetchProcessorTypesRequest(Google.Apis.Services.IClientService service, string parent) : base(service) - { - Parent = parent; - InitParameters(); - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// - /// Required. The location of processor types to list. Format: - /// `projects/{project}/locations/{location}`. - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Output only. Denotes that this `ProcessorVersion` can be deployed and undeployed. + [Newtonsoft.Json.JsonPropertyAttribute("deploymentAllowed")] + public virtual System.Nullable DeploymentAllowed { get; set; } - /// Gets the method name. - public override string MethodName => "fetchProcessorTypes"; + /// Output only. If set, information about the eventual deprecation of this version. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo DeprecationInfo { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The display name of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+parent}:fetchProcessorTypes"; + /// Output only. The schema of the processor version. Describes the output. + [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentSchema DocumentSchema { get; set; } - /// Initializes FetchProcessorTypes parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter - { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Output only. Information about Generative AI model-based processor versions. + [Newtonsoft.Json.JsonPropertyAttribute("genAiModelInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo GenAiModelInfo { get; set; } - /// Gets information about a location. - /// Resource name for the location. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Output only. Denotes that this `ProcessorVersion` is managed by Google. + [Newtonsoft.Json.JsonPropertyAttribute("googleManaged")] + public virtual System.Nullable GoogleManaged { get; set; } - /// Gets information about a location. - public class GetRequest : DocumentBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Output only. The KMS key name used for encryption. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } - /// Resource name for the location. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Output only. The KMS key version with which data is encrypted. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyVersionName")] + public virtual string KmsKeyVersionName { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Output only. The most recently invoked evaluation for the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("latestEvaluation")] + public virtual GoogleCloudDocumentaiUiv1beta3EvaluationReference LatestEvaluation { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Output only. The model type of this processor version. + [Newtonsoft.Json.JsonPropertyAttribute("modelType")] + public virtual string ModelType { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// Identifier. The resource name of the processor version. Format: + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] + public virtual System.Nullable SatisfiesPzi { get; set; } - /// Lists information about the supported locations for this service. - /// The resource that owns the locations collection, if applicable. - public virtual ListRequest List(string name) + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] + public virtual System.Nullable SatisfiesPzs { get; set; } + + /// The schema of the processor version. Describes the output. + [Newtonsoft.Json.JsonPropertyAttribute("schema")] + public virtual GoogleCloudDocumentaiUiv1beta3Schema Schema { get; set; } + + /// Output only. The state of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Contains the alias and the aliased resource name of processor version. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias : Google.Apis.Requests.IDirectResponseSchema + { + /// The alias in the form of `processor_version` resource name. + [Newtonsoft.Json.JsonPropertyAttribute("alias")] + public virtual string Alias { get; set; } + + /// The resource name of aliased processor version. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Information about the upcoming deprecation of this processor version. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo : Google.Apis.Requests.IDirectResponseSchema + { + private string _deprecationTimeRaw; + + private object _deprecationTime; + + /// The time at which this processor version will be deprecated. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationTime")] + public virtual string DeprecationTimeRaw + { + get => _deprecationTimeRaw; + set { - return new ListRequest(this.service, name); + _deprecationTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _deprecationTimeRaw = value; } + } - /// Lists information about the supported locations for this service. - public class ListRequest : DocumentBaseServiceRequest + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use DeprecationTimeDateTimeOffset instead.")] + public virtual object DeprecationTime + { + get => _deprecationTime; + set { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + _deprecationTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _deprecationTime = value; + } + } - /// The resource that owns the locations collection, if applicable. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? DeprecationTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(DeprecationTimeRaw); + set => DeprecationTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. - /// - [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } + /// If set, the processor version that will be used as a replacement. + [Newtonsoft.Json.JsonPropertyAttribute("replacementProcessorVersion")] + public virtual string ReplacementProcessorVersion { get; set; } - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// - /// The maximum number of results to return. If not set, the service selects a default. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Information about Generative AI model-based processor versions. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema + { + /// Information for a custom Generative AI model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customGenAiModelInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo CustomGenAiModelInfo { get; set; } - /// - /// A page token received from the `next_page_token` field in the response. Send that page token to - /// receive the subsequent page. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// Information for a pretrained Google-managed foundation model. + [Newtonsoft.Json.JsonPropertyAttribute("foundationGenAiModelInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo FoundationGenAiModelInfo { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Information for a custom Generative AI model created by the user. These are created with `Create New Version` in + /// either the `Call foundation model` or `Fine tuning` tabs. + /// + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema + { + /// The base processor version ID for the custom model. + [Newtonsoft.Json.JsonPropertyAttribute("baseProcessorVersionId")] + public virtual string BaseProcessorVersionId { get; set; } + + /// The type of custom model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customModelType")] + public virtual string CustomModelType { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Gets the method name. - public override string MethodName => "list"; + /// Information for a pretrained Google-managed foundation model. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema + { + /// Whether finetuning is allowed for this base processor version. + [Newtonsoft.Json.JsonPropertyAttribute("finetuningAllowed")] + public virtual System.Nullable FinetuningAllowed { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The minimum number of labeled documents in the training dataset required for finetuning. + [Newtonsoft.Json.JsonPropertyAttribute("minTrainLabeledDocuments")] + public virtual System.Nullable MinTrainLabeledDocuments { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}/locations"; + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+$", - }); - RequestParameters.Add("extraLocationTypes", new Google.Apis.Discovery.Parameter - { - Name = "extraLocationTypes", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } - } - } + /// Metadata about a property. + public class GoogleCloudDocumentaiUiv1beta3PropertyMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Field extraction metadata on the property. + [Newtonsoft.Json.JsonPropertyAttribute("fieldExtractionMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata FieldExtractionMetadata { get; set; } - /// Gets the Operations resource. - public virtual OperationsResource Operations { get; } + /// Field tier metadata on the property + [Newtonsoft.Json.JsonPropertyAttribute("fieldTierMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldTierMetadata FieldTierMetadata { get; set; } - /// The "operations" collection of methods. - public class OperationsResource - { - private const string Resource = "operations"; + /// Human review labeling config on the property. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewLabelingMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata HumanReviewLabelingMetadata { get; set; } - /// The service which this resource belongs to. - private readonly Google.Apis.Services.IClientService service; + /// Human review validation config on the property. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata HumanReviewMetadata { get; set; } - /// Constructs a new resource. - public OperationsResource(Google.Apis.Services.IClientService service) - { - this.service = service; - } + /// Whether the property should be considered as "inactive". + [Newtonsoft.Json.JsonPropertyAttribute("inactive")] + public virtual System.Nullable Inactive { get; set; } - /// - /// 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. - /// - /// The name of the operation resource. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Schema editability metadata on the property. + [Newtonsoft.Json.JsonPropertyAttribute("schemaEditabilityMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata SchemaEditabilityMetadata { get; set; } - /// - /// 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. - /// - public class GetRequest : DocumentBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// Schema inference metadata on the property. + [Newtonsoft.Json.JsonPropertyAttribute("schemaInferenceMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata SchemaInferenceMetadata { get; set; } - /// The name of the operation resource. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Gets the method name. - public override string MethodName => "get"; + /// The metadata proto of `ResyncDataset` method. + public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// + /// The list of dataset resync statuses. Not checked when ResyncDatasetRequest.dataset_documents is specified. + /// + [Newtonsoft.Json.JsonPropertyAttribute("datasetResyncStatuses")] + public virtual System.Collections.Generic.IList DatasetResyncStatuses { get; set; } - /// Gets the REST path. - public override string RestPath => "v1/{+name}"; + /// + /// The list of document resync statuses. The same document could have multiple + /// `individual_document_resync_statuses` if it has multiple inconsistencies. + /// + [Newtonsoft.Json.JsonPropertyAttribute("individualDocumentResyncStatuses")] + public virtual System.Collections.Generic.IList IndividualDocumentResyncStatuses { get; set; } - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/operations/[^/]+$", - }); - } - } - } + /// The ETag of the item. + public virtual string ETag { get; set; } } -} -namespace Google.Apis.Document.v1.Data -{ - /// - /// Definition of the validation rules. Those are the input to the validator logic and they are used to validate a - /// document. - /// - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInput : Google.Apis.Requests.IDirectResponseSchema + + /// Resync status against inconsistency types on the dataset level. + public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("validationRules")] - public virtual System.Collections.Generic.IList ValidationRules { get; set; } + /// The type of the inconsistency of the dataset. + [Newtonsoft.Json.JsonPropertyAttribute("datasetInconsistencyType")] + public virtual string DatasetInconsistencyType { get; set; } + + /// + /// The status of resyncing the dataset with regards to the detected inconsistency. Empty if + /// ResyncDatasetRequest.validate_only is `true`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule : Google.Apis.Requests.IDirectResponseSchema + /// Resync status for each document per inconsistency type. + public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("childAlignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule ChildAlignmentRule { get; set; } + /// The document identifier. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } - /// Description of the validation rule. This has no use but for documentation - [Newtonsoft.Json.JsonPropertyAttribute("description")] - public virtual string Description { get; set; } + /// The type of document inconsistency. + [Newtonsoft.Json.JsonPropertyAttribute("documentInconsistencyType")] + public virtual string DocumentInconsistencyType { get; set; } - [Newtonsoft.Json.JsonPropertyAttribute("entityAlignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule EntityAlignmentRule { get; set; } + /// + /// The status of resyncing the document with regards to the detected inconsistency. Empty if + /// ResyncDatasetRequest.validate_only is `true`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } - [Newtonsoft.Json.JsonPropertyAttribute("fieldOccurrences")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences FieldOccurrences { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - [Newtonsoft.Json.JsonPropertyAttribute("fieldRegex")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex FieldRegex { get; set; } + /// The response proto of ResyncDataset method. + public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } - [Newtonsoft.Json.JsonPropertyAttribute("formValidation")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation FormValidation { get; set; } + /// The revision reference specifies which revision on the document to read. + public class GoogleCloudDocumentaiUiv1beta3RevisionRef : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Reads the revision generated by the processor version. The format takes the full resource name of processor + /// version. + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("latestProcessorVersion")] + public virtual string LatestProcessorVersion { get; set; } - /// Name of the validation rule. - [Newtonsoft.Json.JsonPropertyAttribute("name")] - public virtual string Name { get; set; } + /// Reads the revision by the predefined case. + [Newtonsoft.Json.JsonPropertyAttribute("revisionCase")] + public virtual string RevisionCase { get; set; } + + /// Reads the revision given by the id. + [Newtonsoft.Json.JsonPropertyAttribute("revisionId")] + public virtual string RevisionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing - /// y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by - /// comparing x-coordinates of bounding box centers. - /// - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + /// Metadata of the sample documents operation. + public class GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("alignmentType")] - public virtual string AlignmentType { get; set; } - - /// The tolerance to use when comparing coordinates. - [Newtonsoft.Json.JsonPropertyAttribute("tolerance")] - public virtual System.Nullable Tolerance { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A rule that aligns specified child fields with a parent field. - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + /// Response of the sample documents operation. + public class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The alignment rule to apply to the child fields. - [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } + /// The status of sampling documents in test split. + [Newtonsoft.Json.JsonPropertyAttribute("sampleTestStatus")] + public virtual GoogleRpcStatus SampleTestStatus { get; set; } - /// The child fields to be aligned within the parent field. - [Newtonsoft.Json.JsonPropertyAttribute("childFields")] - public virtual System.Collections.Generic.IList ChildFields { get; set; } + /// The status of sampling documents in training split. + [Newtonsoft.Json.JsonPropertyAttribute("sampleTrainingStatus")] + public virtual GoogleRpcStatus SampleTrainingStatus { get; set; } - /// The full path of the parent field. - [Newtonsoft.Json.JsonPropertyAttribute("parentField")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField ParentField { get; set; } + /// The result of the sampling process. + [Newtonsoft.Json.JsonPropertyAttribute("selectedDocuments")] + public virtual System.Collections.Generic.IList SelectedDocuments { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The constant value used in the validation rules. - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("floatValue")] - public virtual System.Nullable FloatValue { get; set; } + /// An internal identifier for document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual string DocumentId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A rule that aligns specified fields with each other. - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + /// The schema defines the output of the processed document by a processor. + public class GoogleCloudDocumentaiUiv1beta3Schema : Google.Apis.Requests.IDirectResponseSchema { - /// The alignment rule to apply to the fields. - [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } + /// Description of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } - /// The fields to be aligned. - [Newtonsoft.Json.JsonPropertyAttribute("fields")] - public virtual System.Collections.Generic.IList Fields { get; set; } + /// Display name to show to users. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Entity types of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypes")] + public virtual System.Collections.Generic.IList EntityTypes { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField : Google.Apis.Requests.IDirectResponseSchema + /// + /// Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these + /// fields has no impact on the backend. + /// + public class GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Default value to use if the field is not present. If the field is missing and the default value is not set, - /// the validation run as if the field is not present in the validation logic. - /// - [Newtonsoft.Json.JsonPropertyAttribute("defaultValue")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant DefaultValue { get; set; } + /// Explicit flag that controls whether the label is editable. + [Newtonsoft.Json.JsonPropertyAttribute("editable")] + public virtual System.Nullable Editable { get; set; } /// - /// The field name to validate. This can be a simple field name or a nested field one using the ':' (meant as an - /// aggregator) or '*' (meant as foreach) operators. + /// Full resource name of processor versions that contain this label. e.g. + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` /// - [Newtonsoft.Json.JsonPropertyAttribute("fieldName")] - public virtual string FieldName { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("processorVersions")] + public virtual System.Collections.Generic.IList ProcessorVersions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences : Google.Apis.Requests.IDirectResponseSchema + /// + /// EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for + /// entity-based processors. Multiple types can also compose a dependency tree to represent nested types. + /// + public class GoogleCloudDocumentaiUiv1beta3SchemaEntityType : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("field")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("baseType")] + public virtual string BaseType { get; set; } - [Newtonsoft.Json.JsonPropertyAttribute("maxOccurrences")] - public virtual System.Nullable MaxOccurrences { get; set; } + /// Description of the entity type. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// If specified, lists all the possible values for this entity. + [Newtonsoft.Json.JsonPropertyAttribute("enumValues")] + public virtual System.Collections.Generic.IList EnumValues { get; set; } /// - /// Min and max occurrences of the field. If not set, there is limit set. The defined interval is a - /// closed-closed interval, i.e. [min, max]. + /// If the entity type is hidden in the schema. This provides the functionality to temporally "disable" an + /// entity without deleting it. /// - [Newtonsoft.Json.JsonPropertyAttribute("minOccurrences")] - public virtual System.Nullable MinOccurrences { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("hide")] + public virtual System.Nullable Hide { get; set; } + + /// Specifies how the entity's value is obtained. + [Newtonsoft.Json.JsonPropertyAttribute("method")] + public virtual string Method { get; set; } + + /// Occurrence type limits the number of times an entity type appears in the document. + [Newtonsoft.Json.JsonPropertyAttribute("occurrenceType")] + public virtual string OccurrenceType { get; set; } + + /// + /// Describing the nested structure of an entity. An EntityType may consist of several other EntityTypes. For + /// example, in a document there can be an EntityType `ID`, which consists of EntityType `name` and `address`, + /// with corresponding attributes, such as TEXT for both types and ONCE for occurrence types. + /// + [Newtonsoft.Json.JsonPropertyAttribute("properties")] + public virtual System.Collections.Generic.IList Properties { get; set; } + + /// Source of this entity type. + [Newtonsoft.Json.JsonPropertyAttribute("source")] + public virtual string Source { get; set; } + + /// + /// Name of the type. It must satisfy the following constraints: 1. Must be unique within the set of same level + /// types (with case-insensitive match). 2. Maximum 64 characters. 3. Must start with a letter. 4. Allowed + /// characters: ASCII letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation characters: * + /// underscore '_' (recommended) * hyphen '-' (allowed, not recommended) * colon ':' (allowed, not recommended) + /// NOTE: Whitespace characters are not allowed. 5. Cannot end with a punctuation character. 6. Cannot contain + /// the following restricted strings: "google", "DocumentAI" (case-insensitive match). 7. A slash character '/' + /// is reserved as a separator in flattened representations of nested entity types (e.g., "line_item/amount") in + /// which case each part (e.g., "line_item", "amount") must comply with the rules defined above. We recommend + /// using the snake case ("snake_case") in entity type names. + /// + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex : Google.Apis.Requests.IDirectResponseSchema + /// + /// Metadata for schema inference. Only used on dataset.schema for schema inference, can be safely ignored + /// elsewhere. + /// + public class GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("field")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } - - /// Python regex to validate the field values. - [Newtonsoft.Json.JsonPropertyAttribute("pattern")] - public virtual string Pattern { get; set; } + /// True if is inferred by schema inference. + [Newtonsoft.Json.JsonPropertyAttribute("inferred")] + public virtual System.Nullable Inferred { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the SetDefaultProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("leftOperand")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation LeftOperand { get; set; } - - [Newtonsoft.Json.JsonPropertyAttribute("rightOperand")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation RightOperand { get; set; } - - /// The relational operator to be applied to the operands. - [Newtonsoft.Json.JsonPropertyAttribute("validationOperator")] - public virtual string ValidationOperator { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the SetDefaultProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// A list of constants to be used as operands. - [Newtonsoft.Json.JsonPropertyAttribute("constants")] - public virtual System.Collections.Generic.IList Constants { get; set; } - - /// A list of fields to be used as operands. - [Newtonsoft.Json.JsonPropertyAttribute("fields")] - public virtual System.Collections.Generic.IList Fields { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The operation type to be applied to all the operands. - [Newtonsoft.Json.JsonPropertyAttribute("operationType")] - public virtual string OperationType { get; set; } + /// Metadata for document summarization. + public class GoogleCloudDocumentaiUiv1beta3SummaryOptions : Google.Apis.Requests.IDirectResponseSchema + { + /// The format the summary should be in. + [Newtonsoft.Json.JsonPropertyAttribute("format")] + public virtual string Format { get; set; } - /// A list of recursive operations to be used as operands. - [Newtonsoft.Json.JsonPropertyAttribute("operations")] - public virtual System.Collections.Generic.IList Operations { get; set; } + /// How long the summary should be. + [Newtonsoft.Json.JsonPropertyAttribute("length")] + public virtual string Length { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the auto-labeling documents operation. - public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The metadata that represents a processor version being created. + public class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// The list of individual auto-labeling statuses of the dataset documents. - [Newtonsoft.Json.JsonPropertyAttribute("individualAutoLabelStatuses")] - public virtual System.Collections.Generic.IList IndividualAutoLabelStatuses { get; set; } + /// The test dataset validation information. + [Newtonsoft.Json.JsonPropertyAttribute("testDatasetValidation")] + public virtual GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation TestDatasetValidation { get; set; } - /// Total number of the auto-labeling documents. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } + /// The training dataset validation information. + [Newtonsoft.Json.JsonPropertyAttribute("trainingDatasetValidation")] + public virtual GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation TrainingDatasetValidation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of individual documents in the auto-labeling process. - public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus : Google.Apis.Requests.IDirectResponseSchema + /// + /// The dataset validation information. This includes any and all errors with documents and the dataset. + /// + public class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the auto-labeled document. This will replace the gcs_uri. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + /// The total number of dataset errors. + [Newtonsoft.Json.JsonPropertyAttribute("datasetErrorCount")] + public virtual System.Nullable DatasetErrorCount { get; set; } - /// The status of the document auto-labeling. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// + /// Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single + /// dataset error is terminal for training. + /// + [Newtonsoft.Json.JsonPropertyAttribute("datasetErrors")] + public virtual System.Collections.Generic.IList DatasetErrors { get; set; } + + /// The total number of document errors. + [Newtonsoft.Json.JsonPropertyAttribute("documentErrorCount")] + public virtual System.Nullable DocumentErrorCount { get; set; } + + /// + /// Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any + /// document with errors will not be used throughout training. + /// + [Newtonsoft.Json.JsonPropertyAttribute("documentErrors")] + public virtual System.Collections.Generic.IList DocumentErrors { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The response proto of AutoLabelDocuments method. - public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// The response for TrainProcessorVersion. + public class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { + /// The resource name of the processor version produced by training. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the UndeployProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// Total number of documents that failed to be deleted in storage. - [Newtonsoft.Json.JsonPropertyAttribute("errorDocumentCount")] - public virtual System.Nullable ErrorDocumentCount { get; set; } - - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualBatchDeleteStatuses")] - public virtual System.Collections.Generic.IList IndividualBatchDeleteStatuses { get; set; } - - /// Total number of documents deleting from dataset. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// The status of each individual document in the batch delete process. - public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus : Google.Apis.Requests.IDirectResponseSchema - { - /// The document id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } - - /// The status of deleting the document in storage. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the delete documents operation. - public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the UndeployProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// The destination dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("destDatasetType")] - public virtual string DestDatasetType { get; set; } - - /// The destination dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("destSplitType")] - public virtual string DestSplitType { get; set; } - - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualBatchMoveStatuses")] - public virtual System.Collections.Generic.IList IndividualBatchMoveStatuses { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the batch move process. - public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for updating the human review configuration. + public class GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } - - /// The status of moving the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the batch move documents operation. - public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for UpdateLabelerPool. + public class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the UpdateProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. + /// The basic metadata for the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualBatchUpdateStatuses")] - public virtual System.Collections.Generic.IList IndividualBatchUpdateStatuses { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the batch update process. - public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus : Google.Apis.Requests.IDirectResponseSchema + /// Encodes the detailed information of a barcode. + public class GoogleCloudDocumentaiV1Barcode : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + /// + /// Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - + /// `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. + /// - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - + /// `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code + /// type. + /// + [Newtonsoft.Json.JsonPropertyAttribute("format")] + public virtual string Format { get; set; } - /// The status of updating the document in storage. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// + /// Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("rawValue")] + public virtual string RawValue { get; set; } + + /// + /// Value format describes the format of the value that a barcode encodes. The supported formats are: - + /// `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone + /// number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: + /// Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: + /// Driver's license. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueFormat")] + public virtual string ValueFormat { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the batch update documents operation. - public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// The common config to specify a set of documents used as input. + public class GoogleCloudDocumentaiV1BatchDocumentsInputConfig : Google.Apis.Requests.IDirectResponseSchema { + /// The set of documents individually specified on Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsDocuments")] + public virtual GoogleCloudDocumentaiV1GcsDocuments GcsDocuments { get; set; } + + /// The set of documents that match the specified Cloud Storage `gcs_prefix`. + [Newtonsoft.Json.JsonPropertyAttribute("gcsPrefix")] + public virtual GoogleCloudDocumentaiV1GcsPrefix GcsPrefix { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The common metadata for long running operations. - public class GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for BatchProcessDocuments. + public class GoogleCloudDocumentaiV1BatchProcessMetadata : Google.Apis.Requests.IDirectResponseSchema { private string _createTimeRaw; @@ -2772,15 +5096,18 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } - /// A related resource to this operation. - [Newtonsoft.Json.JsonPropertyAttribute("resource")] - public virtual string Resource { get; set; } + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualProcessStatuses")] + public virtual System.Collections.Generic.IList IndividualProcessStatuses { get; set; } - /// The state of the operation. + /// The state of the current batch processing. [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } - /// A message providing more details about the current state of processing. + /// + /// A message providing more details about the current state of processing. For example, the error message if + /// the operation is failed. + /// [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] public virtual string StateMessage { get; set; } @@ -2825,1263 +5152,1497 @@ public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset public virtual string ETag { get; set; } } - /// The long-running operation metadata for the CreateLabelerPool method. - public class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The status of a each individual document in the batch process. + public class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The status of human review on the processed document. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewStatus")] + public virtual GoogleCloudDocumentaiV1HumanReviewStatus HumanReviewStatus { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// + /// The source of the document, same as the input_gcs_source field in the request when the batch process + /// started. + /// + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } - /// The long-running operation metadata for DeleteLabelerPool. - public class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// + /// The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the + /// processed document if it was successful, otherwise empty. + /// + [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] + public virtual string OutputGcsDestination { get; set; } + + /// The status processing the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DeleteProcessor method. - public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Request message for BatchProcessDocuments. + public class GoogleCloudDocumentaiV1BatchProcessRequest : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The output configuration for the BatchProcessDocuments method. + [Newtonsoft.Json.JsonPropertyAttribute("documentOutputConfig")] + public virtual GoogleCloudDocumentaiV1DocumentOutputConfig DocumentOutputConfig { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The input documents for the BatchProcessDocuments method. + [Newtonsoft.Json.JsonPropertyAttribute("inputDocuments")] + public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig InputDocuments { get; set; } - /// The long-running operation metadata for the DeleteProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// + /// Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than + /// 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, + /// and dashes. International characters are allowed. Label values are optional. Label keys must start with a + /// letter. + /// + [Newtonsoft.Json.JsonPropertyAttribute("labels")] + public virtual System.Collections.Generic.IDictionary Labels { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Inference-time options for the process API + [Newtonsoft.Json.JsonPropertyAttribute("processOptions")] + public virtual GoogleCloudDocumentaiV1ProcessOptions ProcessOptions { get; set; } - /// The long-running operation metadata for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Whether human review should be skipped for this request. Default to `false`. + [Newtonsoft.Json.JsonPropertyAttribute("skipHumanReview")] + public virtual System.Nullable SkipHumanReview { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response message for BatchProcessDocuments. + public class GoogleCloudDocumentaiV1BatchProcessResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DisableProcessor method. - public class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// A bounding polygon for the detected image annotation. + public class GoogleCloudDocumentaiV1BoundingPoly : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The bounding polygon normalized vertices. + [Newtonsoft.Json.JsonPropertyAttribute("normalizedVertices")] + public virtual System.Collections.Generic.IList NormalizedVertices { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The bounding polygon vertices. + [Newtonsoft.Json.JsonPropertyAttribute("vertices")] + public virtual System.Collections.Generic.IList Vertices { get; set; } - /// - /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. - /// - public class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema - { /// The ETag of the item. public virtual string ETag { get; set; } } - /// Document Identifier. - public class GoogleCloudDocumentaiUiv1beta3DocumentId : Google.Apis.Requests.IDirectResponseSchema + /// The common metadata for long running operations. + public class GoogleCloudDocumentaiV1CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// A document id within user-managed Cloud Storage. - [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedDocId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId GcsManagedDocId { get; set; } + private string _createTimeRaw; - /// Points to a specific revision of the document if set. - [Newtonsoft.Json.JsonPropertyAttribute("revisionRef")] - public virtual GoogleCloudDocumentaiUiv1beta3RevisionRef RevisionRef { get; set; } + private object _createTime; - /// A document id within unmanaged dataset. - [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDocId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId UnmanagedDocId { get; set; } + /// The creation time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } - /// - /// Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. - /// - public class GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId : Google.Apis.Requests.IDirectResponseSchema - { - /// Id of the document (indexed) managed by Content Warehouse. - [Newtonsoft.Json.JsonPropertyAttribute("cwDocId")] - public virtual string CwDocId { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// Required. The Cloud Storage URI where the actual document is stored. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] - public virtual string GcsUri { get; set; } + /// A related resource to this operation. + [Newtonsoft.Json.JsonPropertyAttribute("resource")] + public virtual string Resource { get; set; } + + /// The state of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// A message providing more details about the current state of processing. + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } + + private string _updateTimeRaw; + + private object _updateTime; + + /// The last update time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] + public virtual string UpdateTimeRaw + { + get => _updateTimeRaw; + set + { + _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _updateTimeRaw = value; + } + } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] + public virtual object UpdateTime + { + get => _updateTime; + set + { + _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _updateTime = value; + } + } - /// Identifies a document uniquely within the scope of a dataset in unmanaged option. - public class GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId : Google.Apis.Requests.IDirectResponseSchema - { - /// Required. The id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("docId")] - public virtual string DocId { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); + set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the EnableProcessor method. - public class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the DeleteProcessor method. + public class GoogleCloudDocumentaiV1DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } - /// - /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. - /// - public class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema - { /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the DeleteProcessorVersion method. + public class GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Response of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The resource name of the created evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] - public virtual string Evaluation { get; set; } + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the batch export documents operation. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiV1DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualExportStatuses")] - public virtual System.Collections.Generic.IList IndividualExportStatuses { get; set; } - - /// The list of statistics for each dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("splitExportStats")] - public virtual System.Collections.Generic.IList SplitExportStats { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// The status of each individual document in the export process. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus : Google.Apis.Requests.IDirectResponseSchema - { - /// The path to source docproto of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } - - /// - /// The output_gcs_destination of the exported document if it was successful, otherwise empty. - /// - [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] - public virtual string OutputGcsDestination { get; set; } - - /// The status of the exporting of the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The statistic representing a dataset split type for this export. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat : Google.Apis.Requests.IDirectResponseSchema + /// Request message for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiV1DeployProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema { - /// The dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("splitType")] - public virtual string SplitType { get; set; } - - /// Total number of documents with the given dataset split type to be exported. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The response proto of ExportDocuments method. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiV1DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata message associated with the ExportProcessorVersion operation. - public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the DisableProcessor method. + public class GoogleCloudDocumentaiV1DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The common metadata about the operation. + /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Response message associated with the ExportProcessorVersion operation. - public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The Cloud Storage URI containing the output artifacts. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] - public virtual string GcsUri { get; set; } + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the import document operation. - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Request message for the DisableProcessor method. + public class GoogleCloudDocumentaiV1DisableProcessorRequest : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// Validation statuses of the batch documents import config. - [Newtonsoft.Json.JsonPropertyAttribute("importConfigValidationResults")] - public virtual System.Collections.Generic.IList ImportConfigValidationResults { get; set; } - - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualImportStatuses")] - public virtual System.Collections.Generic.IList IndividualImportStatuses { get; set; } - - /// Total number of the documents that are qualified for importing. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// The validation status of each import config. Status is set to an error if there are no documents to import in - /// the `import_config`, or `OK` if the operation will try to proceed with at least one document. + /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. /// - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiV1DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The source Cloud Storage URI specified in the import config. - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } - - /// The validation status of import config. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the import process. - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus : Google.Apis.Requests.IDirectResponseSchema + /// + /// Document represents the canonical document resource in Document AI. It is an interchange format that provides + /// insights into documents and allows for collaboration between users and Document AI to iterate and optimize for + /// quality. + /// + public class GoogleCloudDocumentaiV1Document : Google.Apis.Requests.IDirectResponseSchema { - /// The source Cloud Storage URI of the document. - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } - - /// The document id of imported document if it was successful, otherwise empty. - [Newtonsoft.Json.JsonPropertyAttribute("outputDocumentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId OutputDocumentId { get; set; } + /// Document chunked based on chunking config. + [Newtonsoft.Json.JsonPropertyAttribute("chunkedDocument")] + public virtual GoogleCloudDocumentaiV1DocumentChunkedDocument ChunkedDocument { get; set; } /// - /// The output_gcs_destination of the processed document if it was successful, otherwise empty. + /// Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, + /// protobuffers use a pure binary representation, whereas JSON representations use base64. /// - [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] - public virtual string OutputGcsDestination { get; set; } - - /// The status of the importing of the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } + [Newtonsoft.Json.JsonPropertyAttribute("content")] + public virtual string Content { get; set; } - /// Response of the import document operation. - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Optional. An internal identifier for document. Should be loggable (no PII). + [Newtonsoft.Json.JsonPropertyAttribute("docid")] + public virtual string Docid { get; set; } - /// The long-running operation metadata for the ImportProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata for the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Parsed layout of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentLayout")] + public virtual GoogleCloudDocumentaiV1DocumentDocumentLayout DocumentLayout { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// + /// A list of entities detected on Document.text. For document shards, entities in this list may cross shard + /// boundaries. + /// + [Newtonsoft.Json.JsonPropertyAttribute("entities")] + public virtual System.Collections.Generic.IList Entities { get; set; } - /// The response message for the ImportProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The destination processor version name. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] - public virtual string ProcessorVersion { get; set; } + /// + /// The entity revision id that `document.entities` field is based on. If this field is set and + /// `entities_revisions` is not empty, the entities in `document.entities` field are the entities in the entity + /// revision with this id and `document.entity_validation_output` field is the `entity_validation_output` field + /// in this entity revision. + /// + [Newtonsoft.Json.JsonPropertyAttribute("entitiesRevisionId")] + public virtual string EntitiesRevisionId { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// + /// A list of entity revisions. The entity revisions are appended to the document in the processing order. This + /// field can be used for comparing the entity extraction results at different stages of the processing. + /// + [Newtonsoft.Json.JsonPropertyAttribute("entitiesRevisions")] + public virtual System.Collections.Generic.IList EntitiesRevisions { get; set; } - /// The metadata proto of `ResyncDataset` method. - public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Placeholder. Relationship among Document.entities. + [Newtonsoft.Json.JsonPropertyAttribute("entityRelations")] + public virtual System.Collections.Generic.IList EntityRelations { get; set; } /// - /// The list of dataset resync statuses. Not checked when ResyncDatasetRequest.dataset_documents is specified. + /// The entity validation output for the document. This is the validation output for `document.entities` field. /// - [Newtonsoft.Json.JsonPropertyAttribute("datasetResyncStatuses")] - public virtual System.Collections.Generic.IList DatasetResyncStatuses { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("entityValidationOutput")] + public virtual GoogleCloudDocumentaiV1DocumentEntityValidationOutput EntityValidationOutput { get; set; } + + /// Any error that occurred while processing this document. + [Newtonsoft.Json.JsonPropertyAttribute("error")] + public virtual GoogleRpcStatus Error { get; set; } /// - /// The list of document resync statuses. The same document could have multiple - /// `individual_document_resync_statuses` if it has multiple inconsistencies. + /// An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). /// - [Newtonsoft.Json.JsonPropertyAttribute("individualDocumentResyncStatuses")] - public virtual System.Collections.Generic.IList IndividualDocumentResyncStatuses { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] + public virtual string MimeType { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Visual page layout for the Document. + [Newtonsoft.Json.JsonPropertyAttribute("pages")] + public virtual System.Collections.Generic.IList Pages { get; set; } - /// Resync status against inconsistency types on the dataset level. - public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataDatasetResyncStatus : Google.Apis.Requests.IDirectResponseSchema - { - /// The type of the inconsistency of the dataset. - [Newtonsoft.Json.JsonPropertyAttribute("datasetInconsistencyType")] - public virtual string DatasetInconsistencyType { get; set; } + /// Placeholder. Revision history of this document. + [Newtonsoft.Json.JsonPropertyAttribute("revisions")] + public virtual System.Collections.Generic.IList Revisions { get; set; } /// - /// The status of resyncing the dataset with regards to the detected inconsistency. Empty if - /// ResyncDatasetRequest.validate_only is `true`. + /// Information about the sharding if this document is sharded part of a larger document. If the document is not + /// sharded, this message is not specified. /// - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("shardInfo")] + public virtual GoogleCloudDocumentaiV1DocumentShardInfo ShardInfo { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Optional. UTF-8 encoded text in reading order from the document. + [Newtonsoft.Json.JsonPropertyAttribute("text")] + public virtual string Text { get; set; } - /// Resync status for each document per inconsistency type. - public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataIndividualDocumentResyncStatus : Google.Apis.Requests.IDirectResponseSchema - { - /// The document identifier. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + /// + /// Placeholder. A list of text corrections made to Document.text. This is usually used for annotating + /// corrections to OCR mistakes. Text changes for a given revision may not overlap with each other. + /// + [Newtonsoft.Json.JsonPropertyAttribute("textChanges")] + public virtual System.Collections.Generic.IList TextChanges { get; set; } - /// The type of document inconsistency. - [Newtonsoft.Json.JsonPropertyAttribute("documentInconsistencyType")] - public virtual string DocumentInconsistencyType { get; set; } + /// Styles for the Document.text. + [Newtonsoft.Json.JsonPropertyAttribute("textStyles")] + public virtual System.Collections.Generic.IList TextStyles { get; set; } /// - /// The status of resyncing the document with regards to the detected inconsistency. Empty if - /// ResyncDatasetRequest.validate_only is `true`. + /// Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object + /// versioning is not supported. For more information, refer to [Google Cloud Storage Request + /// URIs](https://cloud.google.com/storage/docs/reference-uris). /// - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("uri")] + public virtual string Uri { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The response proto of ResyncDataset method. - public class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse : Google.Apis.Requests.IDirectResponseSchema + /// Represents the chunks that the document is divided into. + public class GoogleCloudDocumentaiV1DocumentChunkedDocument : Google.Apis.Requests.IDirectResponseSchema { + /// List of chunks. + [Newtonsoft.Json.JsonPropertyAttribute("chunks")] + public virtual System.Collections.Generic.IList Chunks { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The revision reference specifies which revision on the document to read. - public class GoogleCloudDocumentaiUiv1beta3RevisionRef : Google.Apis.Requests.IDirectResponseSchema + /// Represents a chunk. + public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Reads the revision generated by the processor version. The format takes the full resource name of processor - /// version. - /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - /// - [Newtonsoft.Json.JsonPropertyAttribute("latestProcessorVersion")] - public virtual string LatestProcessorVersion { get; set; } + /// ID of the chunk. + [Newtonsoft.Json.JsonPropertyAttribute("chunkId")] + public virtual string ChunkId { get; set; } - /// Reads the revision by the predefined case. - [Newtonsoft.Json.JsonPropertyAttribute("revisionCase")] - public virtual string RevisionCase { get; set; } + /// Text content of the chunk. + [Newtonsoft.Json.JsonPropertyAttribute("content")] + public virtual string Content { get; set; } - /// Reads the revision given by the id. - [Newtonsoft.Json.JsonPropertyAttribute("revisionId")] - public virtual string RevisionId { get; set; } + /// Page footers associated with the chunk. + [Newtonsoft.Json.JsonPropertyAttribute("pageFooters")] + public virtual System.Collections.Generic.IList PageFooters { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Page headers associated with the chunk. + [Newtonsoft.Json.JsonPropertyAttribute("pageHeaders")] + public virtual System.Collections.Generic.IList PageHeaders { get; set; } - /// Metadata of the sample documents operation. - public class GoogleCloudDocumentaiUiv1beta3SampleDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Page span of the chunk. + [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] + public virtual GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan PageSpan { get; set; } + + /// Unused. + [Newtonsoft.Json.JsonPropertyAttribute("sourceBlockIds")] + public virtual System.Collections.Generic.IList SourceBlockIds { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the sample documents operation. - public class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Represents the page footer associated with the chunk. + public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter : Google.Apis.Requests.IDirectResponseSchema { - /// The status of sampling documents in test split. - [Newtonsoft.Json.JsonPropertyAttribute("sampleTestStatus")] - public virtual GoogleRpcStatus SampleTestStatus { get; set; } - - /// The status of sampling documents in training split. - [Newtonsoft.Json.JsonPropertyAttribute("sampleTrainingStatus")] - public virtual GoogleRpcStatus SampleTrainingStatus { get; set; } + /// Page span of the footer. + [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] + public virtual GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan PageSpan { get; set; } - /// The result of the sampling process. - [Newtonsoft.Json.JsonPropertyAttribute("selectedDocuments")] - public virtual System.Collections.Generic.IList SelectedDocuments { get; set; } + /// Footer in text format. + [Newtonsoft.Json.JsonPropertyAttribute("text")] + public virtual string Text { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument : Google.Apis.Requests.IDirectResponseSchema + /// Represents the page header associated with the chunk. + public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader : Google.Apis.Requests.IDirectResponseSchema { - /// An internal identifier for document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual string DocumentId { get; set; } + /// Page span of the header. + [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] + public virtual GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan PageSpan { get; set; } + + /// Header in text format. + [Newtonsoft.Json.JsonPropertyAttribute("text")] + public virtual string Text { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the SetDefaultProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Represents where the chunk starts and ends in the document. + public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Page where chunk ends in the document. + [Newtonsoft.Json.JsonPropertyAttribute("pageEnd")] + public virtual System.Nullable PageEnd { get; set; } + + /// Page where chunk starts in the document. + [Newtonsoft.Json.JsonPropertyAttribute("pageStart")] + public virtual System.Nullable PageStart { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the SetDefaultProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// + /// Represents the parsed layout of a document as a collection of blocks that the document is divided into. + /// + public class GoogleCloudDocumentaiV1DocumentDocumentLayout : Google.Apis.Requests.IDirectResponseSchema { + /// List of blocks in the document. + [Newtonsoft.Json.JsonPropertyAttribute("blocks")] + public virtual System.Collections.Generic.IList Blocks { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The metadata that represents a processor version being created. - public class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Represents a block. A block could be one of the various types (text, table, list) supported. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// ID of the block. + [Newtonsoft.Json.JsonPropertyAttribute("blockId")] + public virtual string BlockId { get; set; } - /// The test dataset validation information. - [Newtonsoft.Json.JsonPropertyAttribute("testDatasetValidation")] - public virtual GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation TestDatasetValidation { get; set; } + /// Identifies the bounding box for the block. + [Newtonsoft.Json.JsonPropertyAttribute("boundingBox")] + public virtual GoogleCloudDocumentaiV1BoundingPoly BoundingBox { get; set; } - /// The training dataset validation information. - [Newtonsoft.Json.JsonPropertyAttribute("trainingDatasetValidation")] - public virtual GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation TrainingDatasetValidation { get; set; } + /// Block consisting of list content/structure. + [Newtonsoft.Json.JsonPropertyAttribute("listBlock")] + public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock ListBlock { get; set; } + + /// Page span of the block. + [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] + public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan PageSpan { get; set; } + + /// Block consisting of table content/structure. + [Newtonsoft.Json.JsonPropertyAttribute("tableBlock")] + public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock TableBlock { get; set; } + + /// Block consisting of text content. + [Newtonsoft.Json.JsonPropertyAttribute("textBlock")] + public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock TextBlock { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// The dataset validation information. This includes any and all errors with documents and the dataset. - /// - public class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionMetadataDatasetValidation : Google.Apis.Requests.IDirectResponseSchema + /// Represents a list type block. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock : Google.Apis.Requests.IDirectResponseSchema { - /// The total number of dataset errors. - [Newtonsoft.Json.JsonPropertyAttribute("datasetErrorCount")] - public virtual System.Nullable DatasetErrorCount { get; set; } + /// List entries that constitute a list block. + [Newtonsoft.Json.JsonPropertyAttribute("listEntries")] + public virtual System.Collections.Generic.IList ListEntries { get; set; } - /// - /// Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single - /// dataset error is terminal for training. - /// - [Newtonsoft.Json.JsonPropertyAttribute("datasetErrors")] - public virtual System.Collections.Generic.IList DatasetErrors { get; set; } + /// Type of the list_entries (if exist). Available options are `ordered` and `unordered`. + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } - /// The total number of document errors. - [Newtonsoft.Json.JsonPropertyAttribute("documentErrorCount")] - public virtual System.Nullable DocumentErrorCount { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Represents an entry in the list. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry : Google.Apis.Requests.IDirectResponseSchema + { /// - /// Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any - /// document with errors will not be used throughout training. - /// - [Newtonsoft.Json.JsonPropertyAttribute("documentErrors")] - public virtual System.Collections.Generic.IList DocumentErrors { get; set; } + /// A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks. + /// + [Newtonsoft.Json.JsonPropertyAttribute("blocks")] + public virtual System.Collections.Generic.IList Blocks { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The response for TrainProcessorVersion. - public class GoogleCloudDocumentaiUiv1beta3TrainProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// Represents where the block starts and ends in the document. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan : Google.Apis.Requests.IDirectResponseSchema { - /// The resource name of the processor version produced by training. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] - public virtual string ProcessorVersion { get; set; } + /// Page where block ends in the document. + [Newtonsoft.Json.JsonPropertyAttribute("pageEnd")] + public virtual System.Nullable PageEnd { get; set; } + + /// Page where block starts in the document. + [Newtonsoft.Json.JsonPropertyAttribute("pageStart")] + public virtual System.Nullable PageStart { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the UndeployProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Represents a table type block. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Body rows containing main table content. + [Newtonsoft.Json.JsonPropertyAttribute("bodyRows")] + public virtual System.Collections.Generic.IList BodyRows { get; set; } + + /// Table caption/title. + [Newtonsoft.Json.JsonPropertyAttribute("caption")] + public virtual string Caption { get; set; } + + /// Header rows at the top of the table. + [Newtonsoft.Json.JsonPropertyAttribute("headerRows")] + public virtual System.Collections.Generic.IList HeaderRows { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the UndeployProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// Represents a cell in a table row. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell : Google.Apis.Requests.IDirectResponseSchema { + /// + /// A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks. + /// + [Newtonsoft.Json.JsonPropertyAttribute("blocks")] + public virtual System.Collections.Generic.IList Blocks { get; set; } + + /// How many columns this cell spans. + [Newtonsoft.Json.JsonPropertyAttribute("colSpan")] + public virtual System.Nullable ColSpan { get; set; } + + /// How many rows this cell spans. + [Newtonsoft.Json.JsonPropertyAttribute("rowSpan")] + public virtual System.Nullable RowSpan { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiUiv1beta3UpdateDatasetOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Represents a row in a table. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// A table row is a list of table cells. + [Newtonsoft.Json.JsonPropertyAttribute("cells")] + public virtual System.Collections.Generic.IList Cells { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for updating the human review configuration. - public class GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Represents a text type block. + public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// + /// A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks. + /// + [Newtonsoft.Json.JsonPropertyAttribute("blocks")] + public virtual System.Collections.Generic.IList Blocks { get; set; } + + /// Text content stored in the block. + [Newtonsoft.Json.JsonPropertyAttribute("text")] + public virtual string Text { get; set; } + + /// + /// Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, + /// `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for UpdateLabelerPool. - public class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Entity revision. + public class GoogleCloudDocumentaiV1DocumentEntitiesRevision : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The entities in this revision. + [Newtonsoft.Json.JsonPropertyAttribute("entities")] + public virtual System.Collections.Generic.IList Entities { get; set; } + + /// The entity validation output for this revision. + [Newtonsoft.Json.JsonPropertyAttribute("entityValidationOutput")] + public virtual GoogleCloudDocumentaiV1DocumentEntityValidationOutput EntityValidationOutput { get; set; } + + /// The revision id. + [Newtonsoft.Json.JsonPropertyAttribute("revisionId")] + public virtual string RevisionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Encodes the detailed information of a barcode. - public class GoogleCloudDocumentaiV1Barcode : Google.Apis.Requests.IDirectResponseSchema + /// + /// An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity + /// type, such as a person, an organization, or location. + /// + public class GoogleCloudDocumentaiV1DocumentEntity : Google.Apis.Requests.IDirectResponseSchema { + /// Optional. Confidence of detected Schema entity. Range `[0, 1]`. + [Newtonsoft.Json.JsonPropertyAttribute("confidence")] + public virtual System.Nullable Confidence { get; set; } + + /// Optional. Canonical id. This will be a unique value in the entity list for this document. + [Newtonsoft.Json.JsonPropertyAttribute("id")] + public virtual string Id { get; set; } + + /// Optional. Deprecated. Use `id` field instead. + [Newtonsoft.Json.JsonPropertyAttribute("mentionId")] + public virtual string MentionId { get; set; } + + /// Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. + [Newtonsoft.Json.JsonPropertyAttribute("mentionText")] + public virtual string MentionText { get; set; } + + /// Optional. Specifies how the entity's value is obtained. + [Newtonsoft.Json.JsonPropertyAttribute("method")] + public virtual string Method { get; set; } + /// - /// Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. - `CODE_39`: Code 39 type. - - /// `CODE_93`: Code 93 type. - `CODABAR`: Codabar type. - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - /// - `EAN_13`: EAN-13 type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A type. - - /// `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code type. - `DATABAR`: GS1 DataBar code - /// type. + /// Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. + /// address) is not supported for certain parsers. This field is also only populated for certain supported + /// document types. /// - [Newtonsoft.Json.JsonPropertyAttribute("format")] - public virtual string Format { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("normalizedValue")] + public virtual GoogleCloudDocumentaiV1DocumentEntityNormalizedValue NormalizedValue { get; set; } /// - /// Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. + /// Optional. Represents the provenance of this entity wrt. the location on the page where it was found. /// - [Newtonsoft.Json.JsonPropertyAttribute("rawValue")] - public virtual string RawValue { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("pageAnchor")] + public virtual GoogleCloudDocumentaiV1DocumentPageAnchor PageAnchor { get; set; } /// - /// Value format describes the format of the value that a barcode encodes. The supported formats are: - - /// `CONTACT_INFO`: Contact information. - `EMAIL`: Email address. - `ISBN`: ISBN identifier. - `PHONE`: Phone - /// number. - `PRODUCT`: Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `WIFI`: - /// Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`: Calendar event. - `DRIVER_LICENSE`: - /// Driver's license. + /// Optional. Entities can be nested to form a hierarchical data structure representing the content in the + /// document. /// - [Newtonsoft.Json.JsonPropertyAttribute("valueFormat")] - public virtual string ValueFormat { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("properties")] + public virtual System.Collections.Generic.IList Properties { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Optional. The history of this annotation. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } - /// The common config to specify a set of documents used as input. - public class GoogleCloudDocumentaiV1BatchDocumentsInputConfig : Google.Apis.Requests.IDirectResponseSchema - { - /// The set of documents individually specified on Cloud Storage. - [Newtonsoft.Json.JsonPropertyAttribute("gcsDocuments")] - public virtual GoogleCloudDocumentaiV1GcsDocuments GcsDocuments { get; set; } + /// Optional. Whether the entity will be redacted for de-identification purposes. + [Newtonsoft.Json.JsonPropertyAttribute("redacted")] + public virtual System.Nullable Redacted { get; set; } - /// The set of documents that match the specified Cloud Storage `gcs_prefix`. - [Newtonsoft.Json.JsonPropertyAttribute("gcsPrefix")] - public virtual GoogleCloudDocumentaiV1GcsPrefix GcsPrefix { get; set; } + /// Optional. Provenance of the entity. Text anchor indexing into the Document.text. + [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] + public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } + + /// Required. Entity type from a schema e.g. `Address`. + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for BatchProcessDocuments. - public class GoogleCloudDocumentaiV1BatchProcessMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Parsed and normalized entity value. + public class GoogleCloudDocumentaiV1DocumentEntityNormalizedValue : Google.Apis.Requests.IDirectResponseSchema { - private string _createTimeRaw; + /// + /// Postal address. See also: + /// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto + /// + [Newtonsoft.Json.JsonPropertyAttribute("addressValue")] + public virtual GoogleTypePostalAddress AddressValue { get; set; } - private object _createTime; + /// Boolean value. Can be used for entities with binary values, or for checkboxes. + [Newtonsoft.Json.JsonPropertyAttribute("booleanValue")] + public virtual System.Nullable BooleanValue { get; set; } - /// The creation time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("createTime")] - public virtual string CreateTimeRaw - { - get => _createTimeRaw; - set - { - _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _createTimeRaw = value; - } - } + /// + /// Date value. Includes year, month, day. See also: + /// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto + /// + [Newtonsoft.Json.JsonPropertyAttribute("dateValue")] + public virtual GoogleTypeDate DateValue { get; set; } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] - public virtual object CreateTime - { - get => _createTime; - set - { - _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _createTime = value; - } - } + /// + /// DateTime value. Includes date, time, and timezone. See also: + /// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto + /// + [Newtonsoft.Json.JsonPropertyAttribute("datetimeValue")] + public virtual GoogleTypeDateTime DatetimeValue { get; set; } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? CreateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); - set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } + /// Float value. + [Newtonsoft.Json.JsonPropertyAttribute("floatValue")] + public virtual System.Nullable FloatValue { get; set; } - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualProcessStatuses")] - public virtual System.Collections.Generic.IList IndividualProcessStatuses { get; set; } + /// Integer value. + [Newtonsoft.Json.JsonPropertyAttribute("integerValue")] + public virtual System.Nullable IntegerValue { get; set; } - /// The state of the current batch processing. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } + /// + /// Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto + /// + [Newtonsoft.Json.JsonPropertyAttribute("moneyValue")] + public virtual GoogleTypeMoney MoneyValue { get; set; } /// - /// A message providing more details about the current state of processing. For example, the error message if - /// the operation is failed. + /// A signature - a graphical representation of a person's name, often used to sign a document. /// - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("signatureValue")] + public virtual System.Nullable SignatureValue { get; set; } - private string _updateTimeRaw; + /// + /// Optional. An optional field to store a normalized string. For some entity types, one of respective + /// `structured_value` fields may also be populated. Also not all the types of `structured_value` will be + /// normalized. For example, some processors may not generate `float` or `integer` normalized text by default. + /// Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO + /// 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type + /// (`datetime_value`) is in the ISO 8601 text format. + /// + [Newtonsoft.Json.JsonPropertyAttribute("text")] + public virtual string Text { get; set; } - private object _updateTime; + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The last update time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] - public virtual string UpdateTimeRaw - { - get => _updateTimeRaw; - set - { - _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _updateTimeRaw = value; - } - } + /// Relationship between Entities. + public class GoogleCloudDocumentaiV1DocumentEntityRelation : Google.Apis.Requests.IDirectResponseSchema + { + /// Object entity id. + [Newtonsoft.Json.JsonPropertyAttribute("objectId")] + public virtual string ObjectId { get; set; } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] - public virtual object UpdateTime - { - get => _updateTime; - set - { - _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _updateTime = value; - } - } + /// Relationship description. + [Newtonsoft.Json.JsonPropertyAttribute("relation")] + public virtual string Relation { get; set; } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); - set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } + /// Subject entity id. + [Newtonsoft.Json.JsonPropertyAttribute("subjectId")] + public virtual string SubjectId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of a each individual document in the batch process. - public class GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus : Google.Apis.Requests.IDirectResponseSchema + /// The output of the validation given the document and the validation rules. + public class GoogleCloudDocumentaiV1DocumentEntityValidationOutput : Google.Apis.Requests.IDirectResponseSchema { - /// The status of human review on the processed document. - [Newtonsoft.Json.JsonPropertyAttribute("humanReviewStatus")] - public virtual GoogleCloudDocumentaiV1HumanReviewStatus HumanReviewStatus { get; set; } + /// The overall result of the validation, true if all applicable rules are valid. + [Newtonsoft.Json.JsonPropertyAttribute("passAllRules")] + public virtual System.Nullable PassAllRules { get; set; } + + /// The result of each validation rule. + [Newtonsoft.Json.JsonPropertyAttribute("validationResults")] + public virtual System.Collections.Generic.IList ValidationResults { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Validation result for a single validation rule. + public class GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult : Google.Apis.Requests.IDirectResponseSchema + { /// - /// The source of the document, same as the input_gcs_source field in the request when the batch process - /// started. + /// Optional. The name of the rule resource that is used for validation. Format: + /// `projects/{project}/locations/{location}/rules/{rule}` /// - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("rule")] + public virtual string Rule { get; set; } + + /// The description of the validation rule. + [Newtonsoft.Json.JsonPropertyAttribute("ruleDescription")] + public virtual string RuleDescription { get; set; } + + /// The display name of the validation rule. + [Newtonsoft.Json.JsonPropertyAttribute("ruleName")] + public virtual string RuleName { get; set; } /// - /// The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the - /// processed document if it was successful, otherwise empty. + /// The detailed information of the running the validation process using the entity from the document based on + /// the validation rule. /// - [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] - public virtual string OutputGcsDestination { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("validationDetails")] + public virtual string ValidationDetails { get; set; } - /// The status processing the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The result of the validation rule. + [Newtonsoft.Json.JsonPropertyAttribute("validationResultType")] + public virtual string ValidationResultType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for BatchProcessDocuments. - public class GoogleCloudDocumentaiV1BatchProcessRequest : Google.Apis.Requests.IDirectResponseSchema + /// Config that controls the output of documents. All documents will be written as a JSON file. + public class GoogleCloudDocumentaiV1DocumentOutputConfig : Google.Apis.Requests.IDirectResponseSchema { - /// The output configuration for the BatchProcessDocuments method. - [Newtonsoft.Json.JsonPropertyAttribute("documentOutputConfig")] - public virtual GoogleCloudDocumentaiV1DocumentOutputConfig DocumentOutputConfig { get; set; } + /// Output config to write the results to Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsOutputConfig")] + public virtual GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig GcsOutputConfig { get; set; } - /// The input documents for the BatchProcessDocuments method. - [Newtonsoft.Json.JsonPropertyAttribute("inputDocuments")] - public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig InputDocuments { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The configuration used when outputting documents. + public class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig : Google.Apis.Requests.IDirectResponseSchema + { /// - /// Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than - /// 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, - /// and dashes. International characters are allowed. Label values are optional. Label keys must start with a - /// letter. + /// Specifies which fields to include in the output documents. Only supports top level document and pages field + /// so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`. /// - [Newtonsoft.Json.JsonPropertyAttribute("labels")] - public virtual System.Collections.Generic.IDictionary Labels { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("fieldMask")] + public virtual object FieldMask { get; set; } - /// Inference-time options for the process API - [Newtonsoft.Json.JsonPropertyAttribute("processOptions")] - public virtual GoogleCloudDocumentaiV1ProcessOptions ProcessOptions { get; set; } + /// The Cloud Storage uri (a directory) of the output. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } - /// Whether human review should be skipped for this request. Default to `false`. - [Newtonsoft.Json.JsonPropertyAttribute("skipHumanReview")] - public virtual System.Nullable SkipHumanReview { get; set; } + /// Specifies the sharding config for the output document. + [Newtonsoft.Json.JsonPropertyAttribute("shardingConfig")] + public virtual GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig ShardingConfig { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for BatchProcessDocuments. - public class GoogleCloudDocumentaiV1BatchProcessResponse : Google.Apis.Requests.IDirectResponseSchema + /// The sharding config for the output document. + public class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig : Google.Apis.Requests.IDirectResponseSchema { + /// The number of overlapping pages between consecutive shards. + [Newtonsoft.Json.JsonPropertyAttribute("pagesOverlap")] + public virtual System.Nullable PagesOverlap { get; set; } + + /// The number of pages per shard. + [Newtonsoft.Json.JsonPropertyAttribute("pagesPerShard")] + public virtual System.Nullable PagesPerShard { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// A bounding polygon for the detected image annotation. - public class GoogleCloudDocumentaiV1BoundingPoly : Google.Apis.Requests.IDirectResponseSchema + /// A page in a Document. + public class GoogleCloudDocumentaiV1DocumentPage : Google.Apis.Requests.IDirectResponseSchema { - /// The bounding polygon normalized vertices. - [Newtonsoft.Json.JsonPropertyAttribute("normalizedVertices")] - public virtual System.Collections.Generic.IList NormalizedVertices { get; set; } + /// + /// A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) + /// that have a common line-spacing and orientation. + /// + [Newtonsoft.Json.JsonPropertyAttribute("blocks")] + public virtual System.Collections.Generic.IList Blocks { get; set; } - /// The bounding polygon vertices. - [Newtonsoft.Json.JsonPropertyAttribute("vertices")] - public virtual System.Collections.Generic.IList Vertices { get; set; } + /// A list of detected barcodes. + [Newtonsoft.Json.JsonPropertyAttribute("detectedBarcodes")] + public virtual System.Collections.Generic.IList DetectedBarcodes { get; set; } + + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } + + /// Physical dimension of the page. + [Newtonsoft.Json.JsonPropertyAttribute("dimension")] + public virtual GoogleCloudDocumentaiV1DocumentPageDimension Dimension { get; set; } + + /// A list of visually detected form fields on the page. + [Newtonsoft.Json.JsonPropertyAttribute("formFields")] + public virtual System.Collections.Generic.IList FormFields { get; set; } + + /// + /// Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such + /// that the annotation bounding boxes can be upright and axis-aligned. + /// + [Newtonsoft.Json.JsonPropertyAttribute("image")] + public virtual GoogleCloudDocumentaiV1DocumentPageImage Image { get; set; } + + /// Image quality scores. + [Newtonsoft.Json.JsonPropertyAttribute("imageQualityScores")] + public virtual GoogleCloudDocumentaiV1DocumentPageImageQualityScores ImageQualityScores { get; set; } + + /// Layout for the page. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + + /// + /// A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a + /// line. + /// + [Newtonsoft.Json.JsonPropertyAttribute("lines")] + public virtual System.Collections.Generic.IList Lines { get; set; } + + /// + /// 1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for + /// individual processing. + /// + [Newtonsoft.Json.JsonPropertyAttribute("pageNumber")] + public virtual System.Nullable PageNumber { get; set; } + + /// + /// A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive + /// as a paragraph. + /// + [Newtonsoft.Json.JsonPropertyAttribute("paragraphs")] + public virtual System.Collections.Generic.IList Paragraphs { get; set; } + + /// The history of this page. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + + /// A list of visually detected symbols on the page. + [Newtonsoft.Json.JsonPropertyAttribute("symbols")] + public virtual System.Collections.Generic.IList Symbols { get; set; } + + /// A list of visually detected tables on the page. + [Newtonsoft.Json.JsonPropertyAttribute("tables")] + public virtual System.Collections.Generic.IList Tables { get; set; } + + /// A list of visually detected tokens on the page. + [Newtonsoft.Json.JsonPropertyAttribute("tokens")] + public virtual System.Collections.Generic.IList Tokens { get; set; } + + /// + /// Transformation matrices that were applied to the original document image to produce Page.image. + /// + [Newtonsoft.Json.JsonPropertyAttribute("transforms")] + public virtual System.Collections.Generic.IList Transforms { get; set; } + + /// A list of detected non-text visual elements e.g. checkbox, signature etc. on the page. + [Newtonsoft.Json.JsonPropertyAttribute("visualElements")] + public virtual System.Collections.Generic.IList VisualElements { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The common metadata for long running operations. - public class GoogleCloudDocumentaiV1CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// + /// Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of + /// multiple bounding polygons and optionally reference specific layout element types. + /// + public class GoogleCloudDocumentaiV1DocumentPageAnchor : Google.Apis.Requests.IDirectResponseSchema { - private string _createTimeRaw; - - private object _createTime; - - /// The creation time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("createTime")] - public virtual string CreateTimeRaw - { - get => _createTimeRaw; - set - { - _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _createTimeRaw = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] - public virtual object CreateTime - { - get => _createTime; - set - { - _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _createTime = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? CreateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); - set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } - - /// A related resource to this operation. - [Newtonsoft.Json.JsonPropertyAttribute("resource")] - public virtual string Resource { get; set; } - - /// The state of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } + /// One or more references to visual page elements + [Newtonsoft.Json.JsonPropertyAttribute("pageRefs")] + public virtual System.Collections.Generic.IList PageRefs { get; set; } - /// A message providing more details about the current state of processing. - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - private string _updateTimeRaw; + /// Represents a weak reference to a page element within a document. + public class GoogleCloudDocumentaiV1DocumentPageAnchorPageRef : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the + /// bounding polygon must be exactly the same to the layout element it's referring to. + /// + [Newtonsoft.Json.JsonPropertyAttribute("boundingPoly")] + public virtual GoogleCloudDocumentaiV1BoundingPoly BoundingPoly { get; set; } - private object _updateTime; + /// Optional. Confidence of detected page element, if applicable. Range `[0, 1]`. + [Newtonsoft.Json.JsonPropertyAttribute("confidence")] + public virtual System.Nullable Confidence { get; set; } - /// The last update time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] - public virtual string UpdateTimeRaw - { - get => _updateTimeRaw; - set - { - _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _updateTimeRaw = value; - } - } + /// Optional. Deprecated. Use PageRef.bounding_poly instead. + [Newtonsoft.Json.JsonPropertyAttribute("layoutId")] + public virtual string LayoutId { get; set; } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] - public virtual object UpdateTime - { - get => _updateTime; - set - { - _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _updateTime = value; - } - } + /// Optional. The type of the layout element that is being referenced if any. + [Newtonsoft.Json.JsonPropertyAttribute("layoutType")] + public virtual string LayoutType { get; set; } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); - set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } + /// + /// Required. Index into the Document.pages element, for example using `Document.pages` to locate the related + /// page element. This field is skipped when its value is the default `0`. See + /// https://developers.google.com/protocol-buffers/docs/proto3#json. + /// + [Newtonsoft.Json.JsonPropertyAttribute("page")] + public virtual System.Nullable Page { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DeleteProcessor method. - public class GoogleCloudDocumentaiV1DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// + /// A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation. + /// + public class GoogleCloudDocumentaiV1DocumentPageBlock : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } + + /// Layout for Block. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + + /// The history of this annotation. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DeleteProcessorVersion method. - public class GoogleCloudDocumentaiV1DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// A detected barcode. + public class GoogleCloudDocumentaiV1DocumentPageDetectedBarcode : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + /// Detailed barcode information of the DetectedBarcode. + [Newtonsoft.Json.JsonPropertyAttribute("barcode")] + public virtual GoogleCloudDocumentaiV1Barcode Barcode { get; set; } + + /// Layout for DetectedBarcode. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiV1DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Detected language for a structural component. + public class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + /// Confidence of detected language. Range `[0, 1]`. + [Newtonsoft.Json.JsonPropertyAttribute("confidence")] + public virtual System.Nullable Confidence { get; set; } + + /// + /// The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` + /// or `sr-Latn`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("languageCode")] + public virtual string LanguageCode { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiV1DeployProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema + /// Dimension for the page. + public class GoogleCloudDocumentaiV1DocumentPageDimension : Google.Apis.Requests.IDirectResponseSchema { + /// Page height. + [Newtonsoft.Json.JsonPropertyAttribute("height")] + public virtual System.Nullable Height { get; set; } + + /// Dimension unit. + [Newtonsoft.Json.JsonPropertyAttribute("unit")] + public virtual string Unit { get; set; } + + /// Page width. + [Newtonsoft.Json.JsonPropertyAttribute("width")] + public virtual System.Nullable Width { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiV1DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// A form field detected on the page. + public class GoogleCloudDocumentaiV1DocumentPageFormField : Google.Apis.Requests.IDirectResponseSchema { + /// + /// Created for Labeling UI to export key text. If corrections were made to the text identified by the + /// `field_name.text_anchor`, this field will contain the correction. + /// + [Newtonsoft.Json.JsonPropertyAttribute("correctedKeyText")] + public virtual string CorrectedKeyText { get; set; } + + /// + /// Created for Labeling UI to export value text. If corrections were made to the text identified by the + /// `field_value.text_anchor`, this field will contain the correction. + /// + [Newtonsoft.Json.JsonPropertyAttribute("correctedValueText")] + public virtual string CorrectedValueText { get; set; } + + /// + /// Layout for the FormField name. e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. + /// + [Newtonsoft.Json.JsonPropertyAttribute("fieldName")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout FieldName { get; set; } + + /// Layout for the FormField value. + [Newtonsoft.Json.JsonPropertyAttribute("fieldValue")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout FieldValue { get; set; } + + /// A list of detected languages for name together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("nameDetectedLanguages")] + public virtual System.Collections.Generic.IList NameDetectedLanguages { get; set; } + + /// The history of this annotation. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + + /// A list of detected languages for value together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("valueDetectedLanguages")] + public virtual System.Collections.Generic.IList ValueDetectedLanguages { get; set; } + + /// + /// If the value is non-textual, this field represents the type. Current valid values are: - blank (this + /// indicates the `field_value` is normal text) - `unfilled_checkbox` - `filled_checkbox` + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueType")] + public virtual string ValueType { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DisableProcessor method. - public class GoogleCloudDocumentaiV1DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Rendered image contents for this page. + public class GoogleCloudDocumentaiV1DocumentPageImage : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + /// Raw byte content of the image. + [Newtonsoft.Json.JsonPropertyAttribute("content")] + public virtual string Content { get; set; } + + /// Height of the image in pixels. + [Newtonsoft.Json.JsonPropertyAttribute("height")] + public virtual System.Nullable Height { get; set; } + + /// + /// Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the + /// image. + /// + [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] + public virtual string MimeType { get; set; } + + /// Width of the image in pixels. + [Newtonsoft.Json.JsonPropertyAttribute("width")] + public virtual System.Nullable Width { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for the DisableProcessor method. - public class GoogleCloudDocumentaiV1DisableProcessorRequest : Google.Apis.Requests.IDirectResponseSchema + /// Image quality scores for the page image. + public class GoogleCloudDocumentaiV1DocumentPageImageQualityScores : Google.Apis.Requests.IDirectResponseSchema { + /// A list of detected defects. + [Newtonsoft.Json.JsonPropertyAttribute("detectedDefects")] + public virtual System.Collections.Generic.IList DetectedDefects { get; set; } + + /// The overall quality score. Range `[0, 1]` where `1` is perfect quality. + [Newtonsoft.Json.JsonPropertyAttribute("qualityScore")] + public virtual System.Nullable QualityScore { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. - /// - public class GoogleCloudDocumentaiV1DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema + /// Image Quality Defects + public class GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect : Google.Apis.Requests.IDirectResponseSchema { + /// + /// Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. + /// + [Newtonsoft.Json.JsonPropertyAttribute("confidence")] + public virtual System.Nullable Confidence { get; set; } + + /// + /// Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - + /// `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small` - + /// `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare` + /// + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Document represents the canonical document resource in Document AI. It is an interchange format that provides - /// insights into documents and allows for collaboration between users and Document AI to iterate and optimize for - /// quality. - /// - public class GoogleCloudDocumentaiV1Document : Google.Apis.Requests.IDirectResponseSchema + /// Visual element describing a layout unit on a page. + public class GoogleCloudDocumentaiV1DocumentPageLayout : Google.Apis.Requests.IDirectResponseSchema { - /// Document chunked based on chunking config. - [Newtonsoft.Json.JsonPropertyAttribute("chunkedDocument")] - public virtual GoogleCloudDocumentaiV1DocumentChunkedDocument ChunkedDocument { get; set; } + /// The bounding polygon for the Layout. + [Newtonsoft.Json.JsonPropertyAttribute("boundingPoly")] + public virtual GoogleCloudDocumentaiV1BoundingPoly BoundingPoly { get; set; } /// - /// Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, - /// protobuffers use a pure binary representation, whereas JSON representations use base64. + /// Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for + /// a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`. /// - [Newtonsoft.Json.JsonPropertyAttribute("content")] - public virtual string Content { get; set; } - - /// Optional. An internal identifier for document. Should be loggable (no PII). - [Newtonsoft.Json.JsonPropertyAttribute("docid")] - public virtual string Docid { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("confidence")] + public virtual System.Nullable Confidence { get; set; } - /// Parsed layout of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentLayout")] - public virtual GoogleCloudDocumentaiV1DocumentDocumentLayout DocumentLayout { get; set; } + /// Detected orientation for the Layout. + [Newtonsoft.Json.JsonPropertyAttribute("orientation")] + public virtual string Orientation { get; set; } - /// - /// A list of entities detected on Document.text. For document shards, entities in this list may cross shard - /// boundaries. - /// - [Newtonsoft.Json.JsonPropertyAttribute("entities")] - public virtual System.Collections.Generic.IList Entities { get; set; } + /// Text anchor indexing into the Document.text. + [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] + public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } - /// - /// The entity revision id that `document.entities` field is based on. If this field is set and - /// `entities_revisions` is not empty, the entities in `document.entities` field are the entities in the entity - /// revision with this id and `document.entity_validation_output` field is the `entity_validation_output` field - /// in this entity revision. - /// - [Newtonsoft.Json.JsonPropertyAttribute("entitiesRevisionId")] - public virtual string EntitiesRevisionId { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// - /// A list of entity revisions. The entity revisions are appended to the document in the processing order. This - /// field can be used for comparing the entity extraction results at different stages of the processing. - /// - [Newtonsoft.Json.JsonPropertyAttribute("entitiesRevisions")] - public virtual System.Collections.Generic.IList EntitiesRevisions { get; set; } + /// + /// A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be + /// horizontal, vertical, etc. + /// + public class GoogleCloudDocumentaiV1DocumentPageLine : Google.Apis.Requests.IDirectResponseSchema + { + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - /// Placeholder. Relationship among Document.entities. - [Newtonsoft.Json.JsonPropertyAttribute("entityRelations")] - public virtual System.Collections.Generic.IList EntityRelations { get; set; } + /// Layout for Line. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - /// - /// The entity validation output for the document. This is the validation output for `document.entities` field. - /// - [Newtonsoft.Json.JsonPropertyAttribute("entityValidationOutput")] - public virtual GoogleCloudDocumentaiV1DocumentEntityValidationOutput EntityValidationOutput { get; set; } + /// The history of this annotation. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } - /// Any error that occurred while processing this document. - [Newtonsoft.Json.JsonPropertyAttribute("error")] - public virtual GoogleRpcStatus Error { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// - /// An IANA published [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml). - /// - [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] - public virtual string MimeType { get; set; } + /// + /// Representation for transformation matrix, intended to be compatible and used with OpenCV format for image + /// manipulation. + /// + public class GoogleCloudDocumentaiV1DocumentPageMatrix : Google.Apis.Requests.IDirectResponseSchema + { + /// Number of columns in the matrix. + [Newtonsoft.Json.JsonPropertyAttribute("cols")] + public virtual System.Nullable Cols { get; set; } - /// Visual page layout for the Document. - [Newtonsoft.Json.JsonPropertyAttribute("pages")] - public virtual System.Collections.Generic.IList Pages { get; set; } + /// The matrix data. + [Newtonsoft.Json.JsonPropertyAttribute("data")] + public virtual string Data { get; set; } - /// Placeholder. Revision history of this document. - [Newtonsoft.Json.JsonPropertyAttribute("revisions")] - public virtual System.Collections.Generic.IList Revisions { get; set; } + /// Number of rows in the matrix. + [Newtonsoft.Json.JsonPropertyAttribute("rows")] + public virtual System.Nullable Rows { get; set; } /// - /// Information about the sharding if this document is sharded part of a larger document. If the document is not - /// sharded, this message is not specified. + /// This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit + /// image. For the full list of OpenCV primitive data types, please refer to + /// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html /// - [Newtonsoft.Json.JsonPropertyAttribute("shardInfo")] - public virtual GoogleCloudDocumentaiV1DocumentShardInfo ShardInfo { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual System.Nullable Type { get; set; } - /// Optional. UTF-8 encoded text in reading order from the document. - [Newtonsoft.Json.JsonPropertyAttribute("text")] - public virtual string Text { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// - /// Placeholder. A list of text corrections made to Document.text. This is usually used for annotating - /// corrections to OCR mistakes. Text changes for a given revision may not overlap with each other. - /// - [Newtonsoft.Json.JsonPropertyAttribute("textChanges")] - public virtual System.Collections.Generic.IList TextChanges { get; set; } + /// A collection of lines that a human would perceive as a paragraph. + public class GoogleCloudDocumentaiV1DocumentPageParagraph : Google.Apis.Requests.IDirectResponseSchema + { + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - /// Styles for the Document.text. - [Newtonsoft.Json.JsonPropertyAttribute("textStyles")] - public virtual System.Collections.Generic.IList TextStyles { get; set; } + /// Layout for Paragraph. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - /// - /// Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object - /// versioning is not supported. For more information, refer to [Google Cloud Storage Request - /// URIs](https://cloud.google.com/storage/docs/reference-uris). - /// - [Newtonsoft.Json.JsonPropertyAttribute("uri")] - public virtual string Uri { get; set; } + /// The history of this annotation. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents the chunks that the document is divided into. - public class GoogleCloudDocumentaiV1DocumentChunkedDocument : Google.Apis.Requests.IDirectResponseSchema + /// A detected symbol. + public class GoogleCloudDocumentaiV1DocumentPageSymbol : Google.Apis.Requests.IDirectResponseSchema { - /// List of chunks. - [Newtonsoft.Json.JsonPropertyAttribute("chunks")] - public virtual System.Collections.Generic.IList Chunks { get; set; } + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } + + /// Layout for Symbol. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents a chunk. - public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk : Google.Apis.Requests.IDirectResponseSchema + /// A table representation similar to HTML table structure. + public class GoogleCloudDocumentaiV1DocumentPageTable : Google.Apis.Requests.IDirectResponseSchema { - /// ID of the chunk. - [Newtonsoft.Json.JsonPropertyAttribute("chunkId")] - public virtual string ChunkId { get; set; } + /// Body rows of the table. + [Newtonsoft.Json.JsonPropertyAttribute("bodyRows")] + public virtual System.Collections.Generic.IList BodyRows { get; set; } - /// Text content of the chunk. - [Newtonsoft.Json.JsonPropertyAttribute("content")] - public virtual string Content { get; set; } + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - /// Page footers associated with the chunk. - [Newtonsoft.Json.JsonPropertyAttribute("pageFooters")] - public virtual System.Collections.Generic.IList PageFooters { get; set; } + /// Header rows of the table. + [Newtonsoft.Json.JsonPropertyAttribute("headerRows")] + public virtual System.Collections.Generic.IList HeaderRows { get; set; } - /// Page headers associated with the chunk. - [Newtonsoft.Json.JsonPropertyAttribute("pageHeaders")] - public virtual System.Collections.Generic.IList PageHeaders { get; set; } + /// Layout for Table. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - /// Page span of the chunk. - [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] - public virtual GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan PageSpan { get; set; } + /// The history of this table. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A cell representation inside the table. + public class GoogleCloudDocumentaiV1DocumentPageTableTableCell : Google.Apis.Requests.IDirectResponseSchema + { + /// How many columns this cell spans. + [Newtonsoft.Json.JsonPropertyAttribute("colSpan")] + public virtual System.Nullable ColSpan { get; set; } + + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } + + /// Layout for TableCell. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - /// Unused. - [Newtonsoft.Json.JsonPropertyAttribute("sourceBlockIds")] - public virtual System.Collections.Generic.IList SourceBlockIds { get; set; } + /// How many rows this cell spans. + [Newtonsoft.Json.JsonPropertyAttribute("rowSpan")] + public virtual System.Nullable RowSpan { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents the page footer associated with the chunk. - public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter : Google.Apis.Requests.IDirectResponseSchema + /// A row of table cells. + public class GoogleCloudDocumentaiV1DocumentPageTableTableRow : Google.Apis.Requests.IDirectResponseSchema { - /// Page span of the footer. - [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] - public virtual GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan PageSpan { get; set; } - - /// Footer in text format. - [Newtonsoft.Json.JsonPropertyAttribute("text")] - public virtual string Text { get; set; } + /// Cells that make up this row. + [Newtonsoft.Json.JsonPropertyAttribute("cells")] + public virtual System.Collections.Generic.IList Cells { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents the page header associated with the chunk. - public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader : Google.Apis.Requests.IDirectResponseSchema + /// A detected token. + public class GoogleCloudDocumentaiV1DocumentPageToken : Google.Apis.Requests.IDirectResponseSchema { - /// Page span of the header. - [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] - public virtual GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan PageSpan { get; set; } + /// Detected break at the end of a Token. + [Newtonsoft.Json.JsonPropertyAttribute("detectedBreak")] + public virtual GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak DetectedBreak { get; set; } - /// Header in text format. - [Newtonsoft.Json.JsonPropertyAttribute("text")] - public virtual string Text { get; set; } + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Layout for Token. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - /// Represents where the chunk starts and ends in the document. - public class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan : Google.Apis.Requests.IDirectResponseSchema - { - /// Page where chunk ends in the document. - [Newtonsoft.Json.JsonPropertyAttribute("pageEnd")] - public virtual System.Nullable PageEnd { get; set; } + /// The history of this annotation. + [Newtonsoft.Json.JsonPropertyAttribute("provenance")] + public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } - /// Page where chunk starts in the document. - [Newtonsoft.Json.JsonPropertyAttribute("pageStart")] - public virtual System.Nullable PageStart { get; set; } + /// Text style attributes. + [Newtonsoft.Json.JsonPropertyAttribute("styleInfo")] + public virtual GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo StyleInfo { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Represents the parsed layout of a document as a collection of blocks that the document is divided into. - /// - public class GoogleCloudDocumentaiV1DocumentDocumentLayout : Google.Apis.Requests.IDirectResponseSchema + /// Detected break at the end of a Token. + public class GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak : Google.Apis.Requests.IDirectResponseSchema { - /// List of blocks in the document. - [Newtonsoft.Json.JsonPropertyAttribute("blocks")] - public virtual System.Collections.Generic.IList Blocks { get; set; } + /// Detected break type. + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents a block. A block could be one of the various types (text, table, list) supported. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock : Google.Apis.Requests.IDirectResponseSchema + /// Font and other text style attributes. + public class GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo : Google.Apis.Requests.IDirectResponseSchema { - /// ID of the block. - [Newtonsoft.Json.JsonPropertyAttribute("blockId")] - public virtual string BlockId { get; set; } + /// Color of the background. + [Newtonsoft.Json.JsonPropertyAttribute("backgroundColor")] + public virtual GoogleTypeColor BackgroundColor { get; set; } - /// Identifies the bounding box for the block. - [Newtonsoft.Json.JsonPropertyAttribute("boundingBox")] - public virtual GoogleCloudDocumentaiV1BoundingPoly BoundingBox { get; set; } + /// Whether the text is bold (equivalent to font_weight is at least `700`). + [Newtonsoft.Json.JsonPropertyAttribute("bold")] + public virtual System.Nullable Bold { get; set; } - /// Block consisting of list content/structure. - [Newtonsoft.Json.JsonPropertyAttribute("listBlock")] - public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock ListBlock { get; set; } + /// Font size in points (`1` point is `¹⁄₇₂` inches). + [Newtonsoft.Json.JsonPropertyAttribute("fontSize")] + public virtual System.Nullable FontSize { get; set; } - /// Page span of the block. - [Newtonsoft.Json.JsonPropertyAttribute("pageSpan")] - public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan PageSpan { get; set; } + /// Name or style of the font. + [Newtonsoft.Json.JsonPropertyAttribute("fontType")] + public virtual string FontType { get; set; } - /// Block consisting of table content/structure. - [Newtonsoft.Json.JsonPropertyAttribute("tableBlock")] - public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock TableBlock { get; set; } + /// + /// TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("fontWeight")] + public virtual System.Nullable FontWeight { get; set; } - /// Block consisting of text content. - [Newtonsoft.Json.JsonPropertyAttribute("textBlock")] - public virtual GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock TextBlock { get; set; } + /// Whether the text is handwritten. + [Newtonsoft.Json.JsonPropertyAttribute("handwritten")] + public virtual System.Nullable Handwritten { get; set; } + + /// Whether the text is italic. + [Newtonsoft.Json.JsonPropertyAttribute("italic")] + public virtual System.Nullable Italic { get; set; } + + /// Letter spacing in points. + [Newtonsoft.Json.JsonPropertyAttribute("letterSpacing")] + public virtual System.Nullable LetterSpacing { get; set; } + + /// Font size in pixels, equal to _unrounded font_size_ * _resolution_ ÷ `72.0`. + [Newtonsoft.Json.JsonPropertyAttribute("pixelFontSize")] + public virtual System.Nullable PixelFontSize { get; set; } + + /// Whether the text is in small caps. This feature is not supported yet. + [Newtonsoft.Json.JsonPropertyAttribute("smallcaps")] + public virtual System.Nullable Smallcaps { get; set; } + + /// Whether the text is strikethrough. This feature is not supported yet. + [Newtonsoft.Json.JsonPropertyAttribute("strikeout")] + public virtual System.Nullable Strikeout { get; set; } + + /// Whether the text is a subscript. This feature is not supported yet. + [Newtonsoft.Json.JsonPropertyAttribute("subscript")] + public virtual System.Nullable Subscript { get; set; } + + /// Whether the text is a superscript. This feature is not supported yet. + [Newtonsoft.Json.JsonPropertyAttribute("superscript")] + public virtual System.Nullable Superscript { get; set; } + + /// Color of the text. + [Newtonsoft.Json.JsonPropertyAttribute("textColor")] + public virtual GoogleTypeColor TextColor { get; set; } + + /// Whether the text is underlined. + [Newtonsoft.Json.JsonPropertyAttribute("underlined")] + public virtual System.Nullable Underlined { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents a list type block. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock : Google.Apis.Requests.IDirectResponseSchema + /// Detected non-text visual elements e.g. checkbox, signature etc. on the page. + public class GoogleCloudDocumentaiV1DocumentPageVisualElement : Google.Apis.Requests.IDirectResponseSchema { - /// List entries that constitute a list block. - [Newtonsoft.Json.JsonPropertyAttribute("listEntries")] - public virtual System.Collections.Generic.IList ListEntries { get; set; } + /// A list of detected languages together with confidence. + [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] + public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - /// Type of the list_entries (if exist). Available options are `ordered` and `unordered`. + /// Layout for VisualElement. + [Newtonsoft.Json.JsonPropertyAttribute("layout")] + public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + + /// Type of the VisualElement. [Newtonsoft.Json.JsonPropertyAttribute("type")] public virtual string Type { get; set; } @@ -4089,1052 +6650,962 @@ public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLay public virtual string ETag { get; set; } } - /// Represents an entry in the list. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry : Google.Apis.Requests.IDirectResponseSchema + /// Structure to identify provenance relationships between annotations in different revisions. + public class GoogleCloudDocumentaiV1DocumentProvenance : Google.Apis.Requests.IDirectResponseSchema { - /// - /// A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks. - /// - [Newtonsoft.Json.JsonPropertyAttribute("blocks")] - public virtual System.Collections.Generic.IList Blocks { get; set; } + /// The Id of this operation. Needs to be unique within the scope of the revision. + [Newtonsoft.Json.JsonPropertyAttribute("id")] + public virtual System.Nullable Id { get; set; } + + /// References to the original elements that are replaced. + [Newtonsoft.Json.JsonPropertyAttribute("parents")] + public virtual System.Collections.Generic.IList Parents { get; set; } + + /// The index of the revision that produced this element. + [Newtonsoft.Json.JsonPropertyAttribute("revision")] + public virtual System.Nullable Revision { get; set; } + + /// The type of provenance operation. + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents where the block starts and ends in the document. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan : Google.Apis.Requests.IDirectResponseSchema + /// + /// The parent element the current element is based on. Used for referencing/aligning, removal and replacement + /// operations. + /// + public class GoogleCloudDocumentaiV1DocumentProvenanceParent : Google.Apis.Requests.IDirectResponseSchema { - /// Page where block ends in the document. - [Newtonsoft.Json.JsonPropertyAttribute("pageEnd")] - public virtual System.Nullable PageEnd { get; set; } + /// The id of the parent provenance. + [Newtonsoft.Json.JsonPropertyAttribute("id")] + public virtual System.Nullable Id { get; set; } - /// Page where block starts in the document. - [Newtonsoft.Json.JsonPropertyAttribute("pageStart")] - public virtual System.Nullable PageStart { get; set; } + /// + /// The index of the parent item in the corresponding item list (eg. list of entities, properties within + /// entities, etc.) in the parent revision. + /// + [Newtonsoft.Json.JsonPropertyAttribute("index")] + public virtual System.Nullable Index { get; set; } + + /// The index of the index into current revision's parent_ids list. + [Newtonsoft.Json.JsonPropertyAttribute("revision")] + public virtual System.Nullable Revision { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents a table type block. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock : Google.Apis.Requests.IDirectResponseSchema + /// Contains past or forward revisions of this document. + public class GoogleCloudDocumentaiV1DocumentRevision : Google.Apis.Requests.IDirectResponseSchema { - /// Body rows containing main table content. - [Newtonsoft.Json.JsonPropertyAttribute("bodyRows")] - public virtual System.Collections.Generic.IList BodyRows { get; set; } + /// If the change was made by a person specify the name or id of that person. + [Newtonsoft.Json.JsonPropertyAttribute("agent")] + public virtual string Agent { get; set; } - /// Table caption/title. - [Newtonsoft.Json.JsonPropertyAttribute("caption")] - public virtual string Caption { get; set; } + private string _createTimeRaw; + + private object _createTime; + + /// + /// The time that the revision was created, internally generated by doc proto storage at the time of create. + /// + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } - /// Header rows at the top of the table. - [Newtonsoft.Json.JsonPropertyAttribute("headerRows")] - public virtual System.Collections.Generic.IList HeaderRows { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Human Review information of this revision. + [Newtonsoft.Json.JsonPropertyAttribute("humanReview")] + public virtual GoogleCloudDocumentaiV1DocumentRevisionHumanReview HumanReview { get; set; } - /// Represents a cell in a table row. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell : Google.Apis.Requests.IDirectResponseSchema - { /// - /// A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks. + /// Id of the revision, internally generated by doc proto storage. Unique within the context of the document. /// - [Newtonsoft.Json.JsonPropertyAttribute("blocks")] - public virtual System.Collections.Generic.IList Blocks { get; set; } - - /// How many columns this cell spans. - [Newtonsoft.Json.JsonPropertyAttribute("colSpan")] - public virtual System.Nullable ColSpan { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("id")] + public virtual string Id { get; set; } - /// How many rows this cell spans. - [Newtonsoft.Json.JsonPropertyAttribute("rowSpan")] - public virtual System.Nullable RowSpan { get; set; } + /// + /// The revisions that this revision is based on. This can include one or more parent (when documents are + /// merged.) This field represents the index into the `revisions` field. + /// + [Newtonsoft.Json.JsonPropertyAttribute("parent")] + public virtual System.Collections.Generic.IList> Parent { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// + /// The revisions that this revision is based on. Must include all the ids that have anything to do with this + /// revision - eg. there are `provenance.parent.revision` fields that index into this field. + /// + [Newtonsoft.Json.JsonPropertyAttribute("parentIds")] + public virtual System.Collections.Generic.IList ParentIds { get; set; } - /// Represents a row in a table. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow : Google.Apis.Requests.IDirectResponseSchema - { - /// A table row is a list of table cells. - [Newtonsoft.Json.JsonPropertyAttribute("cells")] - public virtual System.Collections.Generic.IList Cells { get; set; } + /// If the annotation was made by processor identify the processor by its resource name. + [Newtonsoft.Json.JsonPropertyAttribute("processor")] + public virtual string Processor { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents a text type block. - public class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock : Google.Apis.Requests.IDirectResponseSchema + /// Human Review information of the document. + public class GoogleCloudDocumentaiV1DocumentRevisionHumanReview : Google.Apis.Requests.IDirectResponseSchema { - /// - /// A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks. - /// - [Newtonsoft.Json.JsonPropertyAttribute("blocks")] - public virtual System.Collections.Generic.IList Blocks { get; set; } - - /// Text content stored in the block. - [Newtonsoft.Json.JsonPropertyAttribute("text")] - public virtual string Text { get; set; } + /// Human review state. e.g. `requested`, `succeeded`, `rejected`. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } /// - /// Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, - /// `heading-3`, `heading-4`, `heading-5`, `header`, `footer`. + /// A message providing more details about the current state of processing. For example, the rejection reason + /// when the state is `rejected`. /// - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Entity revision. - public class GoogleCloudDocumentaiV1DocumentEntitiesRevision : Google.Apis.Requests.IDirectResponseSchema + /// The schema defines the output of the processed document by a processor. + public class GoogleCloudDocumentaiV1DocumentSchema : Google.Apis.Requests.IDirectResponseSchema { - /// The entities in this revision. - [Newtonsoft.Json.JsonPropertyAttribute("entities")] - public virtual System.Collections.Generic.IList Entities { get; set; } + /// Description of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } - /// The entity validation output for this revision. - [Newtonsoft.Json.JsonPropertyAttribute("entityValidationOutput")] - public virtual GoogleCloudDocumentaiV1DocumentEntityValidationOutput EntityValidationOutput { get; set; } + /// Display name to show to users. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// The revision id. - [Newtonsoft.Json.JsonPropertyAttribute("revisionId")] - public virtual string RevisionId { get; set; } + /// Entity types of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypes")] + public virtual System.Collections.Generic.IList EntityTypes { get; set; } + + /// Metadata of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("metadata")] + public virtual GoogleCloudDocumentaiV1DocumentSchemaMetadata Metadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity - /// type, such as a person, an organization, or location. + /// EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for + /// entity-based processors. Multiple types can also compose a dependency tree to represent nested types. /// - public class GoogleCloudDocumentaiV1DocumentEntity : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiV1DocumentSchemaEntityType : Google.Apis.Requests.IDirectResponseSchema { - /// Optional. Confidence of detected Schema entity. Range `[0, 1]`. - [Newtonsoft.Json.JsonPropertyAttribute("confidence")] - public virtual System.Nullable Confidence { get; set; } - - /// Optional. Canonical id. This will be a unique value in the entity list for this document. - [Newtonsoft.Json.JsonPropertyAttribute("id")] - public virtual string Id { get; set; } - - /// Optional. Deprecated. Use `id` field instead. - [Newtonsoft.Json.JsonPropertyAttribute("mentionId")] - public virtual string MentionId { get; set; } - - /// Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. - [Newtonsoft.Json.JsonPropertyAttribute("mentionText")] - public virtual string MentionText { get; set; } + /// The entity type that this type is derived from. For now, one and only one should be set. + [Newtonsoft.Json.JsonPropertyAttribute("baseTypes")] + public virtual System.Collections.Generic.IList BaseTypes { get; set; } - /// Optional. Specifies how the entity's value is obtained. - [Newtonsoft.Json.JsonPropertyAttribute("method")] - public virtual string Method { get; set; } + /// User defined name for the type. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } /// - /// Optional. Normalized entity value. Absent if the extracted value could not be converted or the type (e.g. - /// address) is not supported for certain parsers. This field is also only populated for certain supported - /// document types. + /// If specified, lists all the possible values for this entity. This should not be more than a handful of + /// values. If the number of values is &gt;10 or could change frequently use the `EntityType.value_ontology` + /// field and specify a list of all possible values in a value ontology file. /// - [Newtonsoft.Json.JsonPropertyAttribute("normalizedValue")] - public virtual GoogleCloudDocumentaiV1DocumentEntityNormalizedValue NormalizedValue { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("enumValues")] + public virtual GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues EnumValues { get; set; } /// - /// Optional. Represents the provenance of this entity wrt. the location on the page where it was found. + /// Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following + /// naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 + /// characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward + /// compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes + /// used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will + /// still be honored for backward compatibility. /// - [Newtonsoft.Json.JsonPropertyAttribute("pageAnchor")] - public virtual GoogleCloudDocumentaiV1DocumentPageAnchor PageAnchor { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } - /// - /// Optional. Entities can be nested to form a hierarchical data structure representing the content in the - /// document. - /// + /// Description the nested structure, or composition of an entity. [Newtonsoft.Json.JsonPropertyAttribute("properties")] - public virtual System.Collections.Generic.IList Properties { get; set; } - - /// Optional. The history of this annotation. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } - - /// Optional. Whether the entity will be redacted for de-identification purposes. - [Newtonsoft.Json.JsonPropertyAttribute("redacted")] - public virtual System.Nullable Redacted { get; set; } + public virtual System.Collections.Generic.IList Properties { get; set; } - /// Optional. Provenance of the entity. Text anchor indexing into the Document.text. - [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] - public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Required. Entity type from a schema e.g. `Address`. - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + /// Defines the a list of enum values. + public class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues : Google.Apis.Requests.IDirectResponseSchema + { + /// The individual values that this enum values type can include. + [Newtonsoft.Json.JsonPropertyAttribute("values")] + public virtual System.Collections.Generic.IList Values { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Parsed and normalized entity value. - public class GoogleCloudDocumentaiV1DocumentEntityNormalizedValue : Google.Apis.Requests.IDirectResponseSchema + /// Defines properties that can be part of the entity type. + public class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Postal address. See also: - /// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto - /// - [Newtonsoft.Json.JsonPropertyAttribute("addressValue")] - public virtual GoogleTypePostalAddress AddressValue { get; set; } + /// User defined name for the property. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// Boolean value. Can be used for entities with binary values, or for checkboxes. - [Newtonsoft.Json.JsonPropertyAttribute("booleanValue")] - public virtual System.Nullable BooleanValue { get; set; } + /// Specifies how the entity's value is obtained. + [Newtonsoft.Json.JsonPropertyAttribute("method")] + public virtual string Method { get; set; } - /// - /// Date value. Includes year, month, day. See also: - /// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto - /// - [Newtonsoft.Json.JsonPropertyAttribute("dateValue")] - public virtual GoogleTypeDate DateValue { get; set; } + /// The name of the property. Follows the same guidelines as the EntityType name. + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Occurrence type limits the number of instances an entity type appears in the document. + [Newtonsoft.Json.JsonPropertyAttribute("occurrenceType")] + public virtual string OccurrenceType { get; set; } /// - /// DateTime value. Includes date, time, and timezone. See also: - /// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto + /// A reference to the value type of the property. This type is subject to the same conventions as the + /// `Entity.base_types` field. /// - [Newtonsoft.Json.JsonPropertyAttribute("datetimeValue")] - public virtual GoogleTypeDateTime DatetimeValue { get; set; } - - /// Float value. - [Newtonsoft.Json.JsonPropertyAttribute("floatValue")] - public virtual System.Nullable FloatValue { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("valueType")] + public virtual string ValueType { get; set; } - /// Integer value. - [Newtonsoft.Json.JsonPropertyAttribute("integerValue")] - public virtual System.Nullable IntegerValue { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// - /// Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto - /// - [Newtonsoft.Json.JsonPropertyAttribute("moneyValue")] - public virtual GoogleTypeMoney MoneyValue { get; set; } + /// Metadata for global schema behavior. + public class GoogleCloudDocumentaiV1DocumentSchemaMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// If true, on a given page, there can be multiple `document` annotations covering it. + [Newtonsoft.Json.JsonPropertyAttribute("documentAllowMultipleLabels")] + public virtual System.Nullable DocumentAllowMultipleLabels { get; set; } /// - /// A signature - a graphical representation of a person's name, often used to sign a document. + /// If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be + /// applied to the entire document (classification). /// - [Newtonsoft.Json.JsonPropertyAttribute("signatureValue")] - public virtual System.Nullable SignatureValue { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("documentSplitter")] + public virtual System.Nullable DocumentSplitter { get; set; } + + /// If set, all the nested entities must be prefixed with the parents. + [Newtonsoft.Json.JsonPropertyAttribute("prefixedNamingOnProperties")] + public virtual System.Nullable PrefixedNamingOnProperties { get; set; } /// - /// Optional. An optional field to store a normalized string. For some entity types, one of respective - /// `structured_value` fields may also be populated. Also not all the types of `structured_value` will be - /// normalized. For example, some processors may not generate `float` or `integer` normalized text by default. - /// Below are sample formats mapped to structured values. - Money/Currency type (`money_value`) is in the ISO - /// 4217 text format. - Date type (`date_value`) is in the ISO 8601 text format. - Datetime type - /// (`datetime_value`) is in the ISO 8601 text format. + /// If set, we will skip the naming format validation in the schema. So the string values in + /// `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. /// - [Newtonsoft.Json.JsonPropertyAttribute("text")] - public virtual string Text { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("skipNamingValidation")] + public virtual System.Nullable SkipNamingValidation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Relationship between Entities. - public class GoogleCloudDocumentaiV1DocumentEntityRelation : Google.Apis.Requests.IDirectResponseSchema + /// + /// For a large document, sharding may be performed to produce several document shards. Each document shard contains + /// this field to detail which shard it is. + /// + public class GoogleCloudDocumentaiV1DocumentShardInfo : Google.Apis.Requests.IDirectResponseSchema { - /// Object entity id. - [Newtonsoft.Json.JsonPropertyAttribute("objectId")] - public virtual string ObjectId { get; set; } + /// Total number of shards. + [Newtonsoft.Json.JsonPropertyAttribute("shardCount")] + public virtual System.Nullable ShardCount { get; set; } - /// Relationship description. - [Newtonsoft.Json.JsonPropertyAttribute("relation")] - public virtual string Relation { get; set; } + /// The 0-based index of this shard. + [Newtonsoft.Json.JsonPropertyAttribute("shardIndex")] + public virtual System.Nullable ShardIndex { get; set; } - /// Subject entity id. - [Newtonsoft.Json.JsonPropertyAttribute("subjectId")] - public virtual string SubjectId { get; set; } + /// The index of the first character in Document.text in the overall document global text. + [Newtonsoft.Json.JsonPropertyAttribute("textOffset")] + public virtual System.Nullable TextOffset { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The output of the validation given the document and the validation rules. - public class GoogleCloudDocumentaiV1DocumentEntityValidationOutput : Google.Apis.Requests.IDirectResponseSchema + /// + /// Annotation for common text style attributes. This adheres to CSS conventions as much as possible. + /// + public class GoogleCloudDocumentaiV1DocumentStyle : Google.Apis.Requests.IDirectResponseSchema { - /// The overall result of the validation, true if all applicable rules are valid. - [Newtonsoft.Json.JsonPropertyAttribute("passAllRules")] - public virtual System.Nullable PassAllRules { get; set; } + /// Text background color. + [Newtonsoft.Json.JsonPropertyAttribute("backgroundColor")] + public virtual GoogleTypeColor BackgroundColor { get; set; } - /// The result of each validation rule. - [Newtonsoft.Json.JsonPropertyAttribute("validationResults")] - public virtual System.Collections.Generic.IList ValidationResults { get; set; } + /// Text color. + [Newtonsoft.Json.JsonPropertyAttribute("color")] + public virtual GoogleTypeColor Color { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// + /// Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp + /// + [Newtonsoft.Json.JsonPropertyAttribute("fontFamily")] + public virtual string FontFamily { get; set; } - /// Validation result for a single validation rule. - public class GoogleCloudDocumentaiV1DocumentEntityValidationOutputValidationResult : Google.Apis.Requests.IDirectResponseSchema - { - /// The description of the validation rule. - [Newtonsoft.Json.JsonPropertyAttribute("ruleDescription")] - public virtual string RuleDescription { get; set; } + /// Font size. + [Newtonsoft.Json.JsonPropertyAttribute("fontSize")] + public virtual GoogleCloudDocumentaiV1DocumentStyleFontSize FontSize { get; set; } - /// The name of the validation rule. - [Newtonsoft.Json.JsonPropertyAttribute("ruleName")] - public virtual string RuleName { get; set; } + /// + /// [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, + /// `bolder`, and `lighter`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("fontWeight")] + public virtual string FontWeight { get; set; } + + /// Text anchor indexing into the Document.text. + [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] + public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } /// - /// The detailed information of the running the validation process using the entity from the document based on - /// the validation rule. + /// [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. /// - [Newtonsoft.Json.JsonPropertyAttribute("validationDetails")] - public virtual string ValidationDetails { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("textDecoration")] + public virtual string TextDecoration { get; set; } - /// The result of the validation rule. - [Newtonsoft.Json.JsonPropertyAttribute("validationResultType")] - public virtual string ValidationResultType { get; set; } + /// + /// [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, + /// `italic`, and `oblique`. + /// + [Newtonsoft.Json.JsonPropertyAttribute("textStyle")] + public virtual string TextStyle { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Config that controls the output of documents. All documents will be written as a JSON file. - public class GoogleCloudDocumentaiV1DocumentOutputConfig : Google.Apis.Requests.IDirectResponseSchema + /// Font size with unit. + public class GoogleCloudDocumentaiV1DocumentStyleFontSize : Google.Apis.Requests.IDirectResponseSchema { - /// Output config to write the results to Cloud Storage. - [Newtonsoft.Json.JsonPropertyAttribute("gcsOutputConfig")] - public virtual GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig GcsOutputConfig { get; set; } + /// Font size for the text. + [Newtonsoft.Json.JsonPropertyAttribute("size")] + public virtual System.Nullable Size { get; set; } + + /// Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). + [Newtonsoft.Json.JsonPropertyAttribute("unit")] + public virtual string Unit { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The configuration used when outputting documents. - public class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig : Google.Apis.Requests.IDirectResponseSchema + /// Text reference indexing into the Document.text. + public class GoogleCloudDocumentaiV1DocumentTextAnchor : Google.Apis.Requests.IDirectResponseSchema { /// - /// Specifies which fields to include in the output documents. Only supports top level document and pages field - /// so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`. + /// Contains the content of the text span so that users do not have to look it up in the text_segments. It is + /// always populated for formFields. /// - [Newtonsoft.Json.JsonPropertyAttribute("fieldMask")] - public virtual object FieldMask { get; set; } - - /// The Cloud Storage uri (a directory) of the output. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] - public virtual string GcsUri { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("content")] + public virtual string Content { get; set; } - /// Specifies the sharding config for the output document. - [Newtonsoft.Json.JsonPropertyAttribute("shardingConfig")] - public virtual GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig ShardingConfig { get; set; } + /// The text segments from the Document.text. + [Newtonsoft.Json.JsonPropertyAttribute("textSegments")] + public virtual System.Collections.Generic.IList TextSegments { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The sharding config for the output document. - public class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfigShardingConfig : Google.Apis.Requests.IDirectResponseSchema + /// + /// A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into + /// another document shard for large sharded documents. See ShardInfo.text_offset + /// + public class GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment : Google.Apis.Requests.IDirectResponseSchema { - /// The number of overlapping pages between consecutive shards. - [Newtonsoft.Json.JsonPropertyAttribute("pagesOverlap")] - public virtual System.Nullable PagesOverlap { get; set; } + /// TextSegment half open end UTF-8 char index in the Document.text. + [Newtonsoft.Json.JsonPropertyAttribute("endIndex")] + public virtual System.Nullable EndIndex { get; set; } - /// The number of pages per shard. - [Newtonsoft.Json.JsonPropertyAttribute("pagesPerShard")] - public virtual System.Nullable PagesPerShard { get; set; } + /// TextSegment start UTF-8 char index in the Document.text. + [Newtonsoft.Json.JsonPropertyAttribute("startIndex")] + public virtual System.Nullable StartIndex { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A page in a Document. - public class GoogleCloudDocumentaiV1DocumentPage : Google.Apis.Requests.IDirectResponseSchema + /// This message is used for text changes aka. OCR corrections. + public class GoogleCloudDocumentaiV1DocumentTextChange : Google.Apis.Requests.IDirectResponseSchema { - /// - /// A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) - /// that have a common line-spacing and orientation. - /// - [Newtonsoft.Json.JsonPropertyAttribute("blocks")] - public virtual System.Collections.Generic.IList Blocks { get; set; } - - /// A list of detected barcodes. - [Newtonsoft.Json.JsonPropertyAttribute("detectedBarcodes")] - public virtual System.Collections.Generic.IList DetectedBarcodes { get; set; } - - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - - /// Physical dimension of the page. - [Newtonsoft.Json.JsonPropertyAttribute("dimension")] - public virtual GoogleCloudDocumentaiV1DocumentPageDimension Dimension { get; set; } - - /// A list of visually detected form fields on the page. - [Newtonsoft.Json.JsonPropertyAttribute("formFields")] - public virtual System.Collections.Generic.IList FormFields { get; set; } - - /// - /// Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such - /// that the annotation bounding boxes can be upright and axis-aligned. - /// - [Newtonsoft.Json.JsonPropertyAttribute("image")] - public virtual GoogleCloudDocumentaiV1DocumentPageImage Image { get; set; } - - /// Image quality scores. - [Newtonsoft.Json.JsonPropertyAttribute("imageQualityScores")] - public virtual GoogleCloudDocumentaiV1DocumentPageImageQualityScores ImageQualityScores { get; set; } - - /// Layout for the page. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - - /// - /// A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a - /// line. - /// - [Newtonsoft.Json.JsonPropertyAttribute("lines")] - public virtual System.Collections.Generic.IList Lines { get; set; } - - /// - /// 1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for - /// individual processing. - /// - [Newtonsoft.Json.JsonPropertyAttribute("pageNumber")] - public virtual System.Nullable PageNumber { get; set; } - - /// - /// A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive - /// as a paragraph. - /// - [Newtonsoft.Json.JsonPropertyAttribute("paragraphs")] - public virtual System.Collections.Generic.IList Paragraphs { get; set; } + /// The text that replaces the text identified in the `text_anchor`. + [Newtonsoft.Json.JsonPropertyAttribute("changedText")] + public virtual string ChangedText { get; set; } - /// The history of this page. + /// The history of this annotation. [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } - - /// A list of visually detected symbols on the page. - [Newtonsoft.Json.JsonPropertyAttribute("symbols")] - public virtual System.Collections.Generic.IList Symbols { get; set; } - - /// A list of visually detected tables on the page. - [Newtonsoft.Json.JsonPropertyAttribute("tables")] - public virtual System.Collections.Generic.IList Tables { get; set; } - - /// A list of visually detected tokens on the page. - [Newtonsoft.Json.JsonPropertyAttribute("tokens")] - public virtual System.Collections.Generic.IList Tokens { get; set; } + public virtual System.Collections.Generic.IList Provenance { get; set; } /// - /// Transformation matrices that were applied to the original document image to produce Page.image. + /// Provenance of the correction. Text anchor indexing into the Document.text. There can only be a single + /// `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text + /// change is inserted before that index. /// - [Newtonsoft.Json.JsonPropertyAttribute("transforms")] - public virtual System.Collections.Generic.IList Transforms { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] + public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } - /// A list of detected non-text visual elements e.g. checkbox, signature etc. on the page. - [Newtonsoft.Json.JsonPropertyAttribute("visualElements")] - public virtual System.Collections.Generic.IList VisualElements { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A set of inline documents. + public class GoogleCloudDocumentaiV1Documents : Google.Apis.Requests.IDirectResponseSchema + { + /// The list of documents. + [Newtonsoft.Json.JsonPropertyAttribute("documents")] + public virtual System.Collections.Generic.IList Documents { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of - /// multiple bounding polygons and optionally reference specific layout element types. - /// - public class GoogleCloudDocumentaiV1DocumentPageAnchor : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the EnableProcessor method. + public class GoogleCloudDocumentaiV1EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// One or more references to visual page elements - [Newtonsoft.Json.JsonPropertyAttribute("pageRefs")] - public virtual System.Collections.Generic.IList PageRefs { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Represents a weak reference to a page element within a document. - public class GoogleCloudDocumentaiV1DocumentPageAnchorPageRef : Google.Apis.Requests.IDirectResponseSchema + /// Request message for the EnableProcessor method. + public class GoogleCloudDocumentaiV1EnableProcessorRequest : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Optional. Identifies the bounding polygon of a layout element on the page. If `layout_type` is set, the - /// bounding polygon must be exactly the same to the layout element it's referring to. - /// - [Newtonsoft.Json.JsonPropertyAttribute("boundingPoly")] - public virtual GoogleCloudDocumentaiV1BoundingPoly BoundingPoly { get; set; } - - /// Optional. Confidence of detected page element, if applicable. Range `[0, 1]`. - [Newtonsoft.Json.JsonPropertyAttribute("confidence")] - public virtual System.Nullable Confidence { get; set; } - - /// Optional. Deprecated. Use PageRef.bounding_poly instead. - [Newtonsoft.Json.JsonPropertyAttribute("layoutId")] - public virtual string LayoutId { get; set; } - - /// Optional. The type of the layout element that is being referenced if any. - [Newtonsoft.Json.JsonPropertyAttribute("layoutType")] - public virtual string LayoutType { get; set; } - - /// - /// Required. Index into the Document.pages element, for example using `Document.pages` to locate the related - /// page element. This field is skipped when its value is the default `0`. See - /// https://developers.google.com/protocol-buffers/docs/proto3#json. - /// - [Newtonsoft.Json.JsonPropertyAttribute("page")] - public virtual System.Nullable Page { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation. + /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. /// - public class GoogleCloudDocumentaiV1DocumentPageBlock : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiV1EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema { - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - - /// Layout for Block. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - - /// The history of this annotation. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// A detected barcode. - public class GoogleCloudDocumentaiV1DocumentPageDetectedBarcode : Google.Apis.Requests.IDirectResponseSchema + /// Metadata of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// Detailed barcode information of the DetectedBarcode. - [Newtonsoft.Json.JsonPropertyAttribute("barcode")] - public virtual GoogleCloudDocumentaiV1Barcode Barcode { get; set; } - - /// Layout for DetectedBarcode. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Detected language for a structural component. - public class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage : Google.Apis.Requests.IDirectResponseSchema + /// Evaluates the given ProcessorVersion against the supplied documents. + public class GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema { - /// Confidence of detected language. Range `[0, 1]`. - [Newtonsoft.Json.JsonPropertyAttribute("confidence")] - public virtual System.Nullable Confidence { get; set; } - /// - /// The [BCP-47 language code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), such as `en-US` - /// or `sr-Latn`. + /// Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation + /// input. /// - [Newtonsoft.Json.JsonPropertyAttribute("languageCode")] - public virtual string LanguageCode { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("evaluationDocuments")] + public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig EvaluationDocuments { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Dimension for the page. - public class GoogleCloudDocumentaiV1DocumentPageDimension : Google.Apis.Requests.IDirectResponseSchema + /// Response of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// Page height. - [Newtonsoft.Json.JsonPropertyAttribute("height")] - public virtual System.Nullable Height { get; set; } - - /// Dimension unit. - [Newtonsoft.Json.JsonPropertyAttribute("unit")] - public virtual string Unit { get; set; } - - /// Page width. - [Newtonsoft.Json.JsonPropertyAttribute("width")] - public virtual System.Nullable Width { get; set; } + /// The resource name of the created evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A form field detected on the page. - public class GoogleCloudDocumentaiV1DocumentPageFormField : Google.Apis.Requests.IDirectResponseSchema + /// An evaluation of a ProcessorVersion's performance. + public class GoogleCloudDocumentaiV1Evaluation : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Created for Labeling UI to export key text. If corrections were made to the text identified by the - /// `field_name.text_anchor`, this field will contain the correction. - /// - [Newtonsoft.Json.JsonPropertyAttribute("correctedKeyText")] - public virtual string CorrectedKeyText { get; set; } - - /// - /// Created for Labeling UI to export value text. If corrections were made to the text identified by the - /// `field_value.text_anchor`, this field will contain the correction. - /// - [Newtonsoft.Json.JsonPropertyAttribute("correctedValueText")] - public virtual string CorrectedValueText { get; set; } + /// Metrics for all the entities in aggregate. + [Newtonsoft.Json.JsonPropertyAttribute("allEntitiesMetrics")] + public virtual GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics AllEntitiesMetrics { get; set; } - /// - /// Layout for the FormField name. e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. - /// - [Newtonsoft.Json.JsonPropertyAttribute("fieldName")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout FieldName { get; set; } + private string _createTimeRaw; - /// Layout for the FormField value. - [Newtonsoft.Json.JsonPropertyAttribute("fieldValue")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout FieldValue { get; set; } + private object _createTime; - /// A list of detected languages for name together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("nameDetectedLanguages")] - public virtual System.Collections.Generic.IList NameDetectedLanguages { get; set; } + /// The time that the evaluation was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } - /// The history of this annotation. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } - /// A list of detected languages for value together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("valueDetectedLanguages")] - public virtual System.Collections.Generic.IList ValueDetectedLanguages { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// - /// If the value is non-textual, this field represents the type. Current valid values are: - blank (this - /// indicates the `field_value` is normal text) - `unfilled_checkbox` - `filled_checkbox` - /// - [Newtonsoft.Json.JsonPropertyAttribute("valueType")] - public virtual string ValueType { get; set; } + /// Counters for the documents used in the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("documentCounters")] + public virtual GoogleCloudDocumentaiV1EvaluationCounters DocumentCounters { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Metrics across confidence levels, for different entities. + [Newtonsoft.Json.JsonPropertyAttribute("entityMetrics")] + public virtual System.Collections.Generic.IDictionary EntityMetrics { get; set; } - /// Rendered image contents for this page. - public class GoogleCloudDocumentaiV1DocumentPageImage : Google.Apis.Requests.IDirectResponseSchema - { - /// Raw byte content of the image. - [Newtonsoft.Json.JsonPropertyAttribute("content")] - public virtual string Content { get; set; } + /// The KMS key name used for encryption. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } - /// Height of the image in pixels. - [Newtonsoft.Json.JsonPropertyAttribute("height")] - public virtual System.Nullable Height { get; set; } + /// The KMS key version with which data is encrypted. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyVersionName")] + public virtual string KmsKeyVersionName { get; set; } /// - /// Encoding [media type (MIME type)](https://www.iana.org/assignments/media-types/media-types.xhtml) for the - /// image. + /// The resource name of the evaluation. Format: + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` /// - [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] - public virtual string MimeType { get; set; } - - /// Width of the image in pixels. - [Newtonsoft.Json.JsonPropertyAttribute("width")] - public virtual System.Nullable Width { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Image quality scores for the page image. - public class GoogleCloudDocumentaiV1DocumentPageImageQualityScores : Google.Apis.Requests.IDirectResponseSchema - { - /// A list of detected defects. - [Newtonsoft.Json.JsonPropertyAttribute("detectedDefects")] - public virtual System.Collections.Generic.IList DetectedDefects { get; set; } - - /// The overall quality score. Range `[0, 1]` where `1` is perfect quality. - [Newtonsoft.Json.JsonPropertyAttribute("qualityScore")] - public virtual System.Nullable QualityScore { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Image Quality Defects - public class GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect : Google.Apis.Requests.IDirectResponseSchema + /// Evaluations metrics, at a specific confidence level. + public class GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Confidence of detected defect. Range `[0, 1]` where `1` indicates strong confidence that the defect exists. - /// - [Newtonsoft.Json.JsonPropertyAttribute("confidence")] - public virtual System.Nullable Confidence { get; set; } + /// The confidence level. + [Newtonsoft.Json.JsonPropertyAttribute("confidenceLevel")] + public virtual System.Nullable ConfidenceLevel { get; set; } - /// - /// Name of the defect type. Supported values are: - `quality/defect_blurry` - `quality/defect_noisy` - - /// `quality/defect_dark` - `quality/defect_faint` - `quality/defect_text_too_small` - - /// `quality/defect_document_cutoff` - `quality/defect_text_cutoff` - `quality/defect_glare` - /// - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + /// The metrics at the specific confidence level. + [Newtonsoft.Json.JsonPropertyAttribute("metrics")] + public virtual GoogleCloudDocumentaiV1EvaluationMetrics Metrics { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Visual element describing a layout unit on a page. - public class GoogleCloudDocumentaiV1DocumentPageLayout : Google.Apis.Requests.IDirectResponseSchema + /// Evaluation counters for the documents that were used. + public class GoogleCloudDocumentaiV1EvaluationCounters : Google.Apis.Requests.IDirectResponseSchema { - /// The bounding polygon for the Layout. - [Newtonsoft.Json.JsonPropertyAttribute("boundingPoly")] - public virtual GoogleCloudDocumentaiV1BoundingPoly BoundingPoly { get; set; } + /// How many documents were used in the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluatedDocumentsCount")] + public virtual System.Nullable EvaluatedDocumentsCount { get; set; } /// - /// Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for - /// a single token, a table, a visual element, etc. depending on context. Range `[0, 1]`. + /// How many documents were not included in the evaluation as Document AI failed to process them. /// - [Newtonsoft.Json.JsonPropertyAttribute("confidence")] - public virtual System.Nullable Confidence { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("failedDocumentsCount")] + public virtual System.Nullable FailedDocumentsCount { get; set; } - /// Detected orientation for the Layout. - [Newtonsoft.Json.JsonPropertyAttribute("orientation")] - public virtual string Orientation { get; set; } + /// How many documents were sent for evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("inputDocumentsCount")] + public virtual System.Nullable InputDocumentsCount { get; set; } - /// Text anchor indexing into the Document.text. - [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] - public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } + /// How many documents were not included in the evaluation as they didn't pass validation. + [Newtonsoft.Json.JsonPropertyAttribute("invalidDocumentsCount")] + public virtual System.Nullable InvalidDocumentsCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be - /// horizontal, vertical, etc. - /// - public class GoogleCloudDocumentaiV1DocumentPageLine : Google.Apis.Requests.IDirectResponseSchema + /// Evaluation metrics, either in aggregate or about a specific entity. + public class GoogleCloudDocumentaiV1EvaluationMetrics : Google.Apis.Requests.IDirectResponseSchema { - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } + /// The calculated f1 score. + [Newtonsoft.Json.JsonPropertyAttribute("f1Score")] + public virtual System.Nullable F1Score { get; set; } - /// Layout for Line. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + /// The amount of false negatives. + [Newtonsoft.Json.JsonPropertyAttribute("falseNegativesCount")] + public virtual System.Nullable FalseNegativesCount { get; set; } - /// The history of this annotation. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + /// The amount of false positives. + [Newtonsoft.Json.JsonPropertyAttribute("falsePositivesCount")] + public virtual System.Nullable FalsePositivesCount { get; set; } + + /// The amount of documents with a ground truth occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthDocumentCount")] + public virtual System.Nullable GroundTruthDocumentCount { get; set; } + + /// The amount of occurrences in ground truth documents. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthOccurrencesCount")] + public virtual System.Nullable GroundTruthOccurrencesCount { get; set; } + + /// The calculated precision. + [Newtonsoft.Json.JsonPropertyAttribute("precision")] + public virtual System.Nullable Precision { get; set; } + + /// The amount of documents with a predicted occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("predictedDocumentCount")] + public virtual System.Nullable PredictedDocumentCount { get; set; } + + /// The amount of occurrences in predicted documents. + [Newtonsoft.Json.JsonPropertyAttribute("predictedOccurrencesCount")] + public virtual System.Nullable PredictedOccurrencesCount { get; set; } + + /// The calculated recall. + [Newtonsoft.Json.JsonPropertyAttribute("recall")] + public virtual System.Nullable Recall { get; set; } + + /// The amount of documents that had an occurrence of this label. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentsCount")] + public virtual System.Nullable TotalDocumentsCount { get; set; } + + /// The amount of true positives. + [Newtonsoft.Json.JsonPropertyAttribute("truePositivesCount")] + public virtual System.Nullable TruePositivesCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Representation for transformation matrix, intended to be compatible and used with OpenCV format for image - /// manipulation. - /// - public class GoogleCloudDocumentaiV1DocumentPageMatrix : Google.Apis.Requests.IDirectResponseSchema + /// Metrics across multiple confidence levels. + public class GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics : Google.Apis.Requests.IDirectResponseSchema { - /// Number of columns in the matrix. - [Newtonsoft.Json.JsonPropertyAttribute("cols")] - public virtual System.Nullable Cols { get; set; } + /// + /// The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence + /// thresholds. + /// + [Newtonsoft.Json.JsonPropertyAttribute("auprc")] + public virtual System.Nullable Auprc { get; set; } - /// The matrix data. - [Newtonsoft.Json.JsonPropertyAttribute("data")] - public virtual string Data { get; set; } + /// The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only. + [Newtonsoft.Json.JsonPropertyAttribute("auprcExact")] + public virtual System.Nullable AuprcExact { get; set; } - /// Number of rows in the matrix. - [Newtonsoft.Json.JsonPropertyAttribute("rows")] - public virtual System.Nullable Rows { get; set; } + /// Metrics across confidence levels with fuzzy matching enabled. + [Newtonsoft.Json.JsonPropertyAttribute("confidenceLevelMetrics")] + public virtual System.Collections.Generic.IList ConfidenceLevelMetrics { get; set; } + + /// Metrics across confidence levels with only exact matching. + [Newtonsoft.Json.JsonPropertyAttribute("confidenceLevelMetricsExact")] + public virtual System.Collections.Generic.IList ConfidenceLevelMetricsExact { get; set; } + + /// The Estimated Calibration Error (ECE) of the confidence of the predicted entities. + [Newtonsoft.Json.JsonPropertyAttribute("estimatedCalibrationError")] + public virtual System.Nullable EstimatedCalibrationError { get; set; } /// - /// This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit - /// image. For the full list of OpenCV primitive data types, please refer to - /// https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html + /// The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only. /// - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual System.Nullable Type { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("estimatedCalibrationErrorExact")] + public virtual System.Nullable EstimatedCalibrationErrorExact { get; set; } + + /// The metrics type for the label. + [Newtonsoft.Json.JsonPropertyAttribute("metricsType")] + public virtual string MetricsType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A collection of lines that a human would perceive as a paragraph. - public class GoogleCloudDocumentaiV1DocumentPageParagraph : Google.Apis.Requests.IDirectResponseSchema + /// Gives a short summary of an evaluation, and links to the evaluation itself. + public class GoogleCloudDocumentaiV1EvaluationReference : Google.Apis.Requests.IDirectResponseSchema { - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } + /// An aggregate of the statistics for the evaluation with fuzzy matching on. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetrics")] + public virtual GoogleCloudDocumentaiV1EvaluationMetrics AggregateMetrics { get; set; } - /// Layout for Paragraph. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + /// An aggregate of the statistics for the evaluation with fuzzy matching off. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetricsExact")] + public virtual GoogleCloudDocumentaiV1EvaluationMetrics AggregateMetricsExact { get; set; } - /// The history of this annotation. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + /// The resource name of the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } + + /// The resource name of the Long Running Operation for the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("operation")] + public virtual string Operation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A detected symbol. - public class GoogleCloudDocumentaiV1DocumentPageSymbol : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the FetchProcessorTypes method. + public class GoogleCloudDocumentaiV1FetchProcessorTypesResponse : Google.Apis.Requests.IDirectResponseSchema { - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - - /// Layout for Symbol. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + /// The list of processor types. + [Newtonsoft.Json.JsonPropertyAttribute("processorTypes")] + public virtual System.Collections.Generic.IList ProcessorTypes { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A table representation similar to HTML table structure. - public class GoogleCloudDocumentaiV1DocumentPageTable : Google.Apis.Requests.IDirectResponseSchema + /// Specifies a document stored on Cloud Storage. + public class GoogleCloudDocumentaiV1GcsDocument : Google.Apis.Requests.IDirectResponseSchema { - /// Body rows of the table. - [Newtonsoft.Json.JsonPropertyAttribute("bodyRows")] - public virtual System.Collections.Generic.IList BodyRows { get; set; } - - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - - /// Header rows of the table. - [Newtonsoft.Json.JsonPropertyAttribute("headerRows")] - public virtual System.Collections.Generic.IList HeaderRows { get; set; } - - /// Layout for Table. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + /// The Cloud Storage object uri. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } - /// The history of this table. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + /// An IANA MIME type (RFC6838) of the content. + [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] + public virtual string MimeType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A cell representation inside the table. - public class GoogleCloudDocumentaiV1DocumentPageTableTableCell : Google.Apis.Requests.IDirectResponseSchema + /// Specifies a set of documents on Cloud Storage. + public class GoogleCloudDocumentaiV1GcsDocuments : Google.Apis.Requests.IDirectResponseSchema { - /// How many columns this cell spans. - [Newtonsoft.Json.JsonPropertyAttribute("colSpan")] - public virtual System.Nullable ColSpan { get; set; } - - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - - /// Layout for TableCell. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } - - /// How many rows this cell spans. - [Newtonsoft.Json.JsonPropertyAttribute("rowSpan")] - public virtual System.Nullable RowSpan { get; set; } + /// The list of documents. + [Newtonsoft.Json.JsonPropertyAttribute("documents")] + public virtual System.Collections.Generic.IList Documents { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A row of table cells. - public class GoogleCloudDocumentaiV1DocumentPageTableTableRow : Google.Apis.Requests.IDirectResponseSchema + /// Specifies all documents on Cloud Storage with a common prefix. + public class GoogleCloudDocumentaiV1GcsPrefix : Google.Apis.Requests.IDirectResponseSchema { - /// Cells that make up this row. - [Newtonsoft.Json.JsonPropertyAttribute("cells")] - public virtual System.Collections.Generic.IList Cells { get; set; } + /// The URI prefix. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUriPrefix")] + public virtual string GcsUriPrefix { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A detected token. - public class GoogleCloudDocumentaiV1DocumentPageToken : Google.Apis.Requests.IDirectResponseSchema + /// Request message for GenerateSchemaVersion. + public class GoogleCloudDocumentaiV1GenerateSchemaVersionRequest : Google.Apis.Requests.IDirectResponseSchema { - /// Detected break at the end of a Token. - [Newtonsoft.Json.JsonPropertyAttribute("detectedBreak")] - public virtual GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak DetectedBreak { get; set; } + /// + /// The base schema version name to use for the schema generation. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("baseSchemaVersion")] + public virtual string BaseSchemaVersion { get; set; } - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } + /// The set of documents placed on Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsDocuments")] + public virtual GoogleCloudDocumentaiV1GcsDocuments GcsDocuments { get; set; } - /// Layout for Token. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + /// The common prefix of documents placed on Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsPrefix")] + public virtual GoogleCloudDocumentaiV1GcsPrefix GcsPrefix { get; set; } - /// The history of this annotation. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual GoogleCloudDocumentaiV1DocumentProvenance Provenance { get; set; } + /// Optional. User specified parameters for the schema generation. + [Newtonsoft.Json.JsonPropertyAttribute("generateSchemaVersionParams")] + public virtual GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams GenerateSchemaVersionParams { get; set; } - /// Text style attributes. - [Newtonsoft.Json.JsonPropertyAttribute("styleInfo")] - public virtual GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo StyleInfo { get; set; } + /// The set of documents specified inline. + [Newtonsoft.Json.JsonPropertyAttribute("inlineDocuments")] + public virtual GoogleCloudDocumentaiV1Documents InlineDocuments { get; set; } + + /// The set of raw documents. + [Newtonsoft.Json.JsonPropertyAttribute("rawDocuments")] + public virtual GoogleCloudDocumentaiV1RawDocuments RawDocuments { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Detected break at the end of a Token. - public class GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak : Google.Apis.Requests.IDirectResponseSchema + /// The parameters for the schema generation. + public class GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams : Google.Apis.Requests.IDirectResponseSchema { - /// Detected break type. - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + /// Optional. Previous prompt-answers in a chronological order. + [Newtonsoft.Json.JsonPropertyAttribute("history")] + public virtual GoogleCloudDocumentaiV1SchemaGenerationHistory History { get; set; } + + /// Optional. The prompt used for the schema generation. + [Newtonsoft.Json.JsonPropertyAttribute("prompt")] + public virtual string Prompt { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Font and other text style attributes. - public class GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo : Google.Apis.Requests.IDirectResponseSchema + /// Response message for GenerateSchemaVersion. + public class GoogleCloudDocumentaiV1GenerateSchemaVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// Color of the background. - [Newtonsoft.Json.JsonPropertyAttribute("backgroundColor")] - public virtual GoogleTypeColor BackgroundColor { get; set; } - - /// Whether the text is bold (equivalent to font_weight is at least `700`). - [Newtonsoft.Json.JsonPropertyAttribute("bold")] - public virtual System.Nullable Bold { get; set; } - - /// Font size in points (`1` point is `¹⁄₇₂` inches). - [Newtonsoft.Json.JsonPropertyAttribute("fontSize")] - public virtual System.Nullable FontSize { get; set; } + /// The schema version generated by the model. + [Newtonsoft.Json.JsonPropertyAttribute("schemaVersion")] + public virtual GoogleCloudDocumentaiV1SchemaVersion SchemaVersion { get; set; } - /// Name or style of the font. - [Newtonsoft.Json.JsonPropertyAttribute("fontType")] - public virtual string FontType { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The status of human review on a processed document. + public class GoogleCloudDocumentaiV1HumanReviewStatus : Google.Apis.Requests.IDirectResponseSchema + { /// - /// TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). Normal is `400`, bold is `700`. + /// The name of the operation triggered by the processed document. This field is populated only when the state + /// is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation + /// returned by ReviewDocument. /// - [Newtonsoft.Json.JsonPropertyAttribute("fontWeight")] - public virtual System.Nullable FontWeight { get; set; } - - /// Whether the text is handwritten. - [Newtonsoft.Json.JsonPropertyAttribute("handwritten")] - public virtual System.Nullable Handwritten { get; set; } - - /// Whether the text is italic. - [Newtonsoft.Json.JsonPropertyAttribute("italic")] - public virtual System.Nullable Italic { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewOperation")] + public virtual string HumanReviewOperation { get; set; } - /// Letter spacing in points. - [Newtonsoft.Json.JsonPropertyAttribute("letterSpacing")] - public virtual System.Nullable LetterSpacing { get; set; } + /// The state of human review on the processing request. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } - /// Font size in pixels, equal to _unrounded font_size_ * _resolution_ ÷ `72.0`. - [Newtonsoft.Json.JsonPropertyAttribute("pixelFontSize")] - public virtual System.Nullable PixelFontSize { get; set; } + /// A message providing more details about the human review state. + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } - /// Whether the text is in small caps. This feature is not supported yet. - [Newtonsoft.Json.JsonPropertyAttribute("smallcaps")] - public virtual System.Nullable Smallcaps { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Whether the text is strikethrough. This feature is not supported yet. - [Newtonsoft.Json.JsonPropertyAttribute("strikeout")] - public virtual System.Nullable Strikeout { get; set; } + /// The response from `ListEvaluations`. + public class GoogleCloudDocumentaiV1ListEvaluationsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The evaluations requested. + [Newtonsoft.Json.JsonPropertyAttribute("evaluations")] + public virtual System.Collections.Generic.IList Evaluations { get; set; } - /// Whether the text is a subscript. This feature is not supported yet. - [Newtonsoft.Json.JsonPropertyAttribute("subscript")] - public virtual System.Nullable Subscript { get; set; } + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no + /// subsequent pages. + /// + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } - /// Whether the text is a superscript. This feature is not supported yet. - [Newtonsoft.Json.JsonPropertyAttribute("superscript")] - public virtual System.Nullable Superscript { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Color of the text. - [Newtonsoft.Json.JsonPropertyAttribute("textColor")] - public virtual GoogleTypeColor TextColor { get; set; } + /// Response message for the ListProcessorTypes method. + public class GoogleCloudDocumentaiV1ListProcessorTypesResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// Points to the next page, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } - /// Whether the text is underlined. - [Newtonsoft.Json.JsonPropertyAttribute("underlined")] - public virtual System.Nullable Underlined { get; set; } + /// The processor types. + [Newtonsoft.Json.JsonPropertyAttribute("processorTypes")] + public virtual System.Collections.Generic.IList ProcessorTypes { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Detected non-text visual elements e.g. checkbox, signature etc. on the page. - public class GoogleCloudDocumentaiV1DocumentPageVisualElement : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the ListProcessorVersions method. + public class GoogleCloudDocumentaiV1ListProcessorVersionsResponse : Google.Apis.Requests.IDirectResponseSchema { - /// A list of detected languages together with confidence. - [Newtonsoft.Json.JsonPropertyAttribute("detectedLanguages")] - public virtual System.Collections.Generic.IList DetectedLanguages { get; set; } - - /// Layout for VisualElement. - [Newtonsoft.Json.JsonPropertyAttribute("layout")] - public virtual GoogleCloudDocumentaiV1DocumentPageLayout Layout { get; set; } + /// Points to the next processor, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } - /// Type of the VisualElement. - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + /// The list of processors. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersions")] + public virtual System.Collections.Generic.IList ProcessorVersions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Structure to identify provenance relationships between annotations in different revisions. - public class GoogleCloudDocumentaiV1DocumentProvenance : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the ListProcessors method. + public class GoogleCloudDocumentaiV1ListProcessorsResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The Id of this operation. Needs to be unique within the scope of the revision. - [Newtonsoft.Json.JsonPropertyAttribute("id")] - public virtual System.Nullable Id { get; set; } + /// Points to the next processor, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } - /// References to the original elements that are replaced. - [Newtonsoft.Json.JsonPropertyAttribute("parents")] - public virtual System.Collections.Generic.IList Parents { get; set; } + /// The list of processors. + [Newtonsoft.Json.JsonPropertyAttribute("processors")] + public virtual System.Collections.Generic.IList Processors { get; set; } - /// The index of the revision that produced this element. - [Newtonsoft.Json.JsonPropertyAttribute("revision")] - public virtual System.Nullable Revision { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The type of provenance operation. - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + /// Response message for ListSchemaVersions. + public class GoogleCloudDocumentaiV1ListSchemaVersionsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// Points to the next SchemaVersion, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } + + /// The list of SchemaVersions. + [Newtonsoft.Json.JsonPropertyAttribute("schemaVersions")] + public virtual System.Collections.Generic.IList SchemaVersions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// The parent element the current element is based on. Used for referencing/aligning, removal and replacement - /// operations. - /// - public class GoogleCloudDocumentaiV1DocumentProvenanceParent : Google.Apis.Requests.IDirectResponseSchema + /// Response message for ListSchemas. + public class GoogleCloudDocumentaiV1ListSchemasResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The id of the parent provenance. - [Newtonsoft.Json.JsonPropertyAttribute("id")] - public virtual System.Nullable Id { get; set; } - - /// - /// The index of the parent item in the corresponding item list (eg. list of entities, properties within - /// entities, etc.) in the parent revision. - /// - [Newtonsoft.Json.JsonPropertyAttribute("index")] - public virtual System.Nullable Index { get; set; } + /// Points to the next Schema, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } - /// The index of the index into current revision's parent_ids list. - [Newtonsoft.Json.JsonPropertyAttribute("revision")] - public virtual System.Nullable Revision { get; set; } + /// The list of Schemas. + [Newtonsoft.Json.JsonPropertyAttribute("schemas")] + public virtual System.Collections.Generic.IList Schemas { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Contains past or forward revisions of this document. - public class GoogleCloudDocumentaiV1DocumentRevision : Google.Apis.Requests.IDirectResponseSchema + /// NextSchema is a collection of SchemaVersions. + public class GoogleCloudDocumentaiV1NextSchema : Google.Apis.Requests.IDirectResponseSchema { - /// If the change was made by a person specify the name or id of that person. - [Newtonsoft.Json.JsonPropertyAttribute("agent")] - public virtual string Agent { get; set; } - private string _createTimeRaw; private object _createTime; - /// - /// The time that the revision was created, internally generated by doc proto storage at the time of create. - /// + /// Output only. The time when the Schema was created. [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { @@ -5159,420 +7630,507 @@ public virtual object CreateTime } } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? CreateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); - set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// Optional. The user-defined name of the Schema. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Optional. The GCP labels for the Schema. + [Newtonsoft.Json.JsonPropertyAttribute("labels")] + public virtual System.Collections.Generic.IDictionary Labels { get; set; } + + /// + /// Identifier. The resource name of the Schema. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + private string _updateTimeRaw; + + private object _updateTime; + + /// Output only. The time when the Schema was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] + public virtual string UpdateTimeRaw + { + get => _updateTimeRaw; + set + { + _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _updateTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] + public virtual object UpdateTime + { + get => _updateTime; + set + { + _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _updateTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); + set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the + /// original image and range from 0 to 1. + /// + public class GoogleCloudDocumentaiV1NormalizedVertex : Google.Apis.Requests.IDirectResponseSchema + { + /// X coordinate. + [Newtonsoft.Json.JsonPropertyAttribute("x")] + public virtual System.Nullable X { get; set; } + + /// Y coordinate (starts from the top of the image). + [Newtonsoft.Json.JsonPropertyAttribute("y")] + public virtual System.Nullable Y { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Human Review information of this revision. - [Newtonsoft.Json.JsonPropertyAttribute("humanReview")] - public virtual GoogleCloudDocumentaiV1DocumentRevisionHumanReview HumanReview { get; set; } + /// Config for Document OCR. + public class GoogleCloudDocumentaiV1OcrConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - + /// `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current + /// ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their + /// situation. + /// + [Newtonsoft.Json.JsonPropertyAttribute("advancedOcrOptions")] + public virtual System.Collections.Generic.IList AdvancedOcrOptions { get; set; } /// - /// Id of the revision, internally generated by doc proto storage. Unique within the context of the document. + /// Turn on font identification model and return font style information. Deprecated, use + /// PremiumFeatures.compute_style_info instead. /// - [Newtonsoft.Json.JsonPropertyAttribute("id")] - public virtual string Id { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("computeStyleInfo")] + public virtual System.Nullable ComputeStyleInfo { get; set; } /// - /// The revisions that this revision is based on. This can include one or more parent (when documents are - /// merged.) This field represents the index into the `revisions` field. + /// Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and + /// later) processors. /// - [Newtonsoft.Json.JsonPropertyAttribute("parent")] - public virtual System.Collections.Generic.IList> Parent { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("disableCharacterBoxesDetection")] + public virtual System.Nullable DisableCharacterBoxesDetection { get; set; } /// - /// The revisions that this revision is based on. Must include all the ids that have anything to do with this - /// revision - eg. there are `provenance.parent.revision` fields that index into this field. + /// Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of + /// poor quality for a given input. Adds additional latency comparable to regular OCR to the process call. /// - [Newtonsoft.Json.JsonPropertyAttribute("parentIds")] - public virtual System.Collections.Generic.IList ParentIds { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("enableImageQualityScores")] + public virtual System.Nullable EnableImageQualityScores { get; set; } - /// If the annotation was made by processor identify the processor by its resource name. - [Newtonsoft.Json.JsonPropertyAttribute("processor")] - public virtual string Processor { get; set; } + /// + /// Enables special handling for PDFs with existing text information. Results in better text extraction quality + /// in such PDF inputs. + /// + [Newtonsoft.Json.JsonPropertyAttribute("enableNativePdfParsing")] + public virtual System.Nullable EnableNativePdfParsing { get; set; } + + /// Includes symbol level OCR information if set to true. + [Newtonsoft.Json.JsonPropertyAttribute("enableSymbol")] + public virtual System.Nullable EnableSymbol { get; set; } + + /// Hints for the OCR model. + [Newtonsoft.Json.JsonPropertyAttribute("hints")] + public virtual GoogleCloudDocumentaiV1OcrConfigHints Hints { get; set; } + + /// Configurations for premium OCR features. + [Newtonsoft.Json.JsonPropertyAttribute("premiumFeatures")] + public virtual GoogleCloudDocumentaiV1OcrConfigPremiumFeatures PremiumFeatures { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Human Review information of the document. - public class GoogleCloudDocumentaiV1DocumentRevisionHumanReview : Google.Apis.Requests.IDirectResponseSchema + /// Hints for OCR Engine + public class GoogleCloudDocumentaiV1OcrConfigHints : Google.Apis.Requests.IDirectResponseSchema { - /// Human review state. e.g. `requested`, `succeeded`, `rejected`. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } - /// - /// A message providing more details about the current state of processing. For example, the rejection reason - /// when the state is `rejected`. + /// List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since + /// it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not + /// needed. In rare cases, when the language of the text in the image is known, setting a hint will help get + /// better results (although it will be a significant hindrance if the hint is wrong). /// - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("languageHints")] + public virtual System.Collections.Generic.IList LanguageHints { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The schema defines the output of the processed document by a processor. - public class GoogleCloudDocumentaiV1DocumentSchema : Google.Apis.Requests.IDirectResponseSchema + /// Configurations for premium OCR features. + public class GoogleCloudDocumentaiV1OcrConfigPremiumFeatures : Google.Apis.Requests.IDirectResponseSchema { - /// Description of the schema. - [Newtonsoft.Json.JsonPropertyAttribute("description")] - public virtual string Description { get; set; } - - /// Display name to show to users. - [Newtonsoft.Json.JsonPropertyAttribute("displayName")] - public virtual string DisplayName { get; set; } + /// Turn on font identification model and return font style information. + [Newtonsoft.Json.JsonPropertyAttribute("computeStyleInfo")] + public virtual System.Nullable ComputeStyleInfo { get; set; } - /// Entity types of the schema. - [Newtonsoft.Json.JsonPropertyAttribute("entityTypes")] - public virtual System.Collections.Generic.IList EntityTypes { get; set; } + /// Turn on the model that can extract LaTeX math formulas. + [Newtonsoft.Json.JsonPropertyAttribute("enableMathOcr")] + public virtual System.Nullable EnableMathOcr { get; set; } - /// Metadata of the schema. - [Newtonsoft.Json.JsonPropertyAttribute("metadata")] - public virtual GoogleCloudDocumentaiV1DocumentSchemaMetadata Metadata { get; set; } + /// + /// Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors. + /// + [Newtonsoft.Json.JsonPropertyAttribute("enableSelectionMarkDetection")] + public virtual System.Nullable EnableSelectionMarkDetection { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for - /// entity-based processors. Multiple types can also compose a dependency tree to represent nested types. - /// - public class GoogleCloudDocumentaiV1DocumentSchemaEntityType : Google.Apis.Requests.IDirectResponseSchema + /// Options for Process API + public class GoogleCloudDocumentaiV1ProcessOptions : Google.Apis.Requests.IDirectResponseSchema { - /// The entity type that this type is derived from. For now, one and only one should be set. - [Newtonsoft.Json.JsonPropertyAttribute("baseTypes")] - public virtual System.Collections.Generic.IList BaseTypes { get; set; } + /// Only process certain pages from the end, same as above. + [Newtonsoft.Json.JsonPropertyAttribute("fromEnd")] + public virtual System.Nullable FromEnd { get; set; } - /// User defined name for the type. - [Newtonsoft.Json.JsonPropertyAttribute("displayName")] - public virtual string DisplayName { get; set; } + /// Only process certain pages from the start. Process all if the document has fewer pages. + [Newtonsoft.Json.JsonPropertyAttribute("fromStart")] + public virtual System.Nullable FromStart { get; set; } + + /// Which pages to process (1-indexed). + [Newtonsoft.Json.JsonPropertyAttribute("individualPageSelector")] + public virtual GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector IndividualPageSelector { get; set; } /// - /// If specified, lists all the possible values for this entity. This should not be more than a handful of - /// values. If the number of values is &gt;10 or could change frequently use the `EntityType.value_ontology` - /// field and specify a list of all possible values in a value ontology file. + /// Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types. /// - [Newtonsoft.Json.JsonPropertyAttribute("enumValues")] - public virtual GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues EnumValues { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("layoutConfig")] + public virtual GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig LayoutConfig { get; set; } /// - /// Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following - /// naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 - /// characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - /// compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes - /// used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will - /// still be honored for backward compatibility. + /// Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor + /// types. /// - [Newtonsoft.Json.JsonPropertyAttribute("name")] - public virtual string Name { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("ocrConfig")] + public virtual GoogleCloudDocumentaiV1OcrConfig OcrConfig { get; set; } - /// Description the nested structure, or composition of an entity. - [Newtonsoft.Json.JsonPropertyAttribute("properties")] - public virtual System.Collections.Generic.IList Properties { get; set; } + /// + /// Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field + /// is set when the underlying ProcessorVersion doesn't support schema override. + /// + [Newtonsoft.Json.JsonPropertyAttribute("schemaOverride")] + public virtual GoogleCloudDocumentaiV1DocumentSchema SchemaOverride { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Defines the a list of enum values. - public class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues : Google.Apis.Requests.IDirectResponseSchema + /// A list of individual page numbers. + public class GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector : Google.Apis.Requests.IDirectResponseSchema { - /// The individual values that this enum values type can include. - [Newtonsoft.Json.JsonPropertyAttribute("values")] - public virtual System.Collections.Generic.IList Values { get; set; } + /// Optional. Indices of the pages (starting from 1). + [Newtonsoft.Json.JsonPropertyAttribute("pages")] + public virtual System.Collections.Generic.IList> Pages { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Defines properties that can be part of the entity type. - public class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty : Google.Apis.Requests.IDirectResponseSchema + /// Serving config for layout parser processor. + public class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig : Google.Apis.Requests.IDirectResponseSchema { - /// User defined name for the property. - [Newtonsoft.Json.JsonPropertyAttribute("displayName")] - public virtual string DisplayName { get; set; } - - /// Specifies how the entity's value is obtained. - [Newtonsoft.Json.JsonPropertyAttribute("method")] - public virtual string Method { get; set; } - - /// The name of the property. Follows the same guidelines as the EntityType name. - [Newtonsoft.Json.JsonPropertyAttribute("name")] - public virtual string Name { get; set; } - - /// Occurrence type limits the number of instances an entity type appears in the document. - [Newtonsoft.Json.JsonPropertyAttribute("occurrenceType")] - public virtual string OccurrenceType { get; set; } - - /// - /// A reference to the value type of the property. This type is subject to the same conventions as the - /// `Entity.base_types` field. - /// - [Newtonsoft.Json.JsonPropertyAttribute("valueType")] - public virtual string ValueType { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Optional. Config for chunking in layout parser processor. + [Newtonsoft.Json.JsonPropertyAttribute("chunkingConfig")] + public virtual GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig ChunkingConfig { get; set; } - /// Metadata for global schema behavior. - public class GoogleCloudDocumentaiV1DocumentSchemaMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// If true, on a given page, there can be multiple `document` annotations covering it. - [Newtonsoft.Json.JsonPropertyAttribute("documentAllowMultipleLabels")] - public virtual System.Nullable DocumentAllowMultipleLabels { get; set; } + /// Optional. Whether to include image annotations in layout parser response. + [Newtonsoft.Json.JsonPropertyAttribute("enableImageAnnotation")] + public virtual System.Nullable EnableImageAnnotation { get; set; } - /// - /// If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be - /// applied to the entire document (classification). - /// - [Newtonsoft.Json.JsonPropertyAttribute("documentSplitter")] - public virtual System.Nullable DocumentSplitter { get; set; } + /// Optional. Whether to include table annotations in layout parser response. + [Newtonsoft.Json.JsonPropertyAttribute("enableTableAnnotation")] + public virtual System.Nullable EnableTableAnnotation { get; set; } - /// If set, all the nested entities must be prefixed with the parents. - [Newtonsoft.Json.JsonPropertyAttribute("prefixedNamingOnProperties")] - public virtual System.Nullable PrefixedNamingOnProperties { get; set; } + /// Optional. Whether to include bounding boxes in layout parser processor response. + [Newtonsoft.Json.JsonPropertyAttribute("returnBoundingBoxes")] + public virtual System.Nullable ReturnBoundingBoxes { get; set; } - /// - /// If set, we will skip the naming format validation in the schema. So the string values in - /// `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. - /// - [Newtonsoft.Json.JsonPropertyAttribute("skipNamingValidation")] - public virtual System.Nullable SkipNamingValidation { get; set; } + /// Optional. Whether to include images in layout parser processor response. + [Newtonsoft.Json.JsonPropertyAttribute("returnImages")] + public virtual System.Nullable ReturnImages { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// For a large document, sharding may be performed to produce several document shards. Each document shard contains - /// this field to detail which shard it is. - /// - public class GoogleCloudDocumentaiV1DocumentShardInfo : Google.Apis.Requests.IDirectResponseSchema + /// Serving config for chunking. + public class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig : Google.Apis.Requests.IDirectResponseSchema { - /// Total number of shards. - [Newtonsoft.Json.JsonPropertyAttribute("shardCount")] - public virtual System.Nullable ShardCount { get; set; } - - /// The 0-based index of this shard. - [Newtonsoft.Json.JsonPropertyAttribute("shardIndex")] - public virtual System.Nullable ShardIndex { get; set; } + /// Optional. The chunk sizes to use when splitting documents, in order of level. + [Newtonsoft.Json.JsonPropertyAttribute("chunkSize")] + public virtual System.Nullable ChunkSize { get; set; } - /// The index of the first character in Document.text in the overall document global text. - [Newtonsoft.Json.JsonPropertyAttribute("textOffset")] - public virtual System.Nullable TextOffset { get; set; } + /// Optional. Whether or not to include ancestor headings when splitting. + [Newtonsoft.Json.JsonPropertyAttribute("includeAncestorHeadings")] + public virtual System.Nullable IncludeAncestorHeadings { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Annotation for common text style attributes. This adheres to CSS conventions as much as possible. - /// - public class GoogleCloudDocumentaiV1DocumentStyle : Google.Apis.Requests.IDirectResponseSchema + /// Request message for the ProcessDocument method. + public class GoogleCloudDocumentaiV1ProcessRequest : Google.Apis.Requests.IDirectResponseSchema { - /// Text background color. - [Newtonsoft.Json.JsonPropertyAttribute("backgroundColor")] - public virtual GoogleTypeColor BackgroundColor { get; set; } - - /// Text color. - [Newtonsoft.Json.JsonPropertyAttribute("color")] - public virtual GoogleTypeColor Color { get; set; } - /// - /// Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/cssref/pr_font_font-family.asp + /// Specifies which fields to include in the ProcessResponse.document output. Only supports top-level document + /// and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`. /// - [Newtonsoft.Json.JsonPropertyAttribute("fontFamily")] - public virtual string FontFamily { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("fieldMask")] + public virtual object FieldMask { get; set; } - /// Font size. - [Newtonsoft.Json.JsonPropertyAttribute("fontSize")] - public virtual GoogleCloudDocumentaiV1DocumentStyleFontSize FontSize { get; set; } + /// A raw document on Google Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsDocument")] + public virtual GoogleCloudDocumentaiV1GcsDocument GcsDocument { get; set; } - /// - /// [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). Possible values are `normal`, `bold`, - /// `bolder`, and `lighter`. - /// - [Newtonsoft.Json.JsonPropertyAttribute("fontWeight")] - public virtual string FontWeight { get; set; } + /// Optional. Option to remove images from the document. + [Newtonsoft.Json.JsonPropertyAttribute("imagelessMode")] + public virtual System.Nullable ImagelessMode { get; set; } - /// Text anchor indexing into the Document.text. - [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] - public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } + /// An inline document proto. + [Newtonsoft.Json.JsonPropertyAttribute("inlineDocument")] + public virtual GoogleCloudDocumentaiV1Document InlineDocument { get; set; } /// - /// [Text decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). Follows CSS standard. + /// Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than + /// 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, + /// and dashes. International characters are allowed. Label values are optional. Label keys must start with a + /// letter. /// - [Newtonsoft.Json.JsonPropertyAttribute("textDecoration")] - public virtual string TextDecoration { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("labels")] + public virtual System.Collections.Generic.IDictionary Labels { get; set; } - /// - /// [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). Possible values are `normal`, - /// `italic`, and `oblique`. - /// - [Newtonsoft.Json.JsonPropertyAttribute("textStyle")] - public virtual string TextStyle { get; set; } + /// Inference-time options for the process API + [Newtonsoft.Json.JsonPropertyAttribute("processOptions")] + public virtual GoogleCloudDocumentaiV1ProcessOptions ProcessOptions { get; set; } + + /// A raw document content (bytes). + [Newtonsoft.Json.JsonPropertyAttribute("rawDocument")] + public virtual GoogleCloudDocumentaiV1RawDocument RawDocument { get; set; } + + /// Whether human review should be skipped for this request. Default to `false`. + [Newtonsoft.Json.JsonPropertyAttribute("skipHumanReview")] + public virtual System.Nullable SkipHumanReview { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Font size with unit. - public class GoogleCloudDocumentaiV1DocumentStyleFontSize : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the ProcessDocument method. + public class GoogleCloudDocumentaiV1ProcessResponse : Google.Apis.Requests.IDirectResponseSchema { - /// Font size for the text. - [Newtonsoft.Json.JsonPropertyAttribute("size")] - public virtual System.Nullable Size { get; set; } + /// The document payload, will populate fields based on the processor's behavior. + [Newtonsoft.Json.JsonPropertyAttribute("document")] + public virtual GoogleCloudDocumentaiV1Document Document { get; set; } - /// Unit for the font size. Follows CSS naming (such as `in`, `px`, and `pt`). - [Newtonsoft.Json.JsonPropertyAttribute("unit")] - public virtual string Unit { get; set; } + /// The status of human review on the processed document. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewStatus")] + public virtual GoogleCloudDocumentaiV1HumanReviewStatus HumanReviewStatus { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Text reference indexing into the Document.text. - public class GoogleCloudDocumentaiV1DocumentTextAnchor : Google.Apis.Requests.IDirectResponseSchema + /// + /// The first-class citizen for Document AI. Each processor defines how to extract structural information from a + /// document. + /// + public class GoogleCloudDocumentaiV1Processor : Google.Apis.Requests.IDirectResponseSchema { /// - /// Contains the content of the text span so that users do not have to look it up in the text_segments. It is - /// always populated for formFields. + /// Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version + /// Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} /// - [Newtonsoft.Json.JsonPropertyAttribute("content")] - public virtual string Content { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("activeSchemaVersion")] + public virtual string ActiveSchemaVersion { get; set; } - /// The text segments from the Document.text. - [Newtonsoft.Json.JsonPropertyAttribute("textSegments")] - public virtual System.Collections.Generic.IList TextSegments { get; set; } + private string _createTimeRaw; - /// The ETag of the item. - public virtual string ETag { get; set; } - } + private object _createTime; - /// - /// A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into - /// another document shard for large sharded documents. See ShardInfo.text_offset - /// - public class GoogleCloudDocumentaiV1DocumentTextAnchorTextSegment : Google.Apis.Requests.IDirectResponseSchema - { - /// TextSegment half open end UTF-8 char index in the Document.text. - [Newtonsoft.Json.JsonPropertyAttribute("endIndex")] - public virtual System.Nullable EndIndex { get; set; } + /// Output only. The time the processor was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } - /// TextSegment start UTF-8 char index in the Document.text. - [Newtonsoft.Json.JsonPropertyAttribute("startIndex")] - public virtual System.Nullable StartIndex { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// This message is used for text changes aka. OCR corrections. - public class GoogleCloudDocumentaiV1DocumentTextChange : Google.Apis.Requests.IDirectResponseSchema - { - /// The text that replaces the text identified in the `text_anchor`. - [Newtonsoft.Json.JsonPropertyAttribute("changedText")] - public virtual string ChangedText { get; set; } + /// The default processor version. + [Newtonsoft.Json.JsonPropertyAttribute("defaultProcessorVersion")] + public virtual string DefaultProcessorVersion { get; set; } - /// The history of this annotation. - [Newtonsoft.Json.JsonPropertyAttribute("provenance")] - public virtual System.Collections.Generic.IList Provenance { get; set; } + /// The display name of the processor. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } /// - /// Provenance of the correction. Text anchor indexing into the Document.text. There can only be a single - /// `TextAnchor.text_segments` element. If the start and end index of the text segment are the same, the text - /// change is inserted before that index. + /// The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK + /// scenarios. /// - [Newtonsoft.Json.JsonPropertyAttribute("textAnchor")] - public virtual GoogleCloudDocumentaiV1DocumentTextAnchor TextAnchor { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// + /// Output only. Immutable. The resource name of the processor. Format: + /// `projects/{project}/locations/{location}/processors/{processor}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } - /// The long-running operation metadata for the EnableProcessor method. - public class GoogleCloudDocumentaiV1EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + /// Output only. Immutable. The http endpoint that can be called to invoke processing. + [Newtonsoft.Json.JsonPropertyAttribute("processEndpoint")] + public virtual string ProcessEndpoint { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Output only. The processor version aliases. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersionAliases")] + public virtual System.Collections.Generic.IList ProcessorVersionAliases { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] + public virtual System.Nullable SatisfiesPzi { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] + public virtual System.Nullable SatisfiesPzs { get; set; } + + /// Output only. The state of the processor. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// + /// The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see + /// FetchProcessorTypes. + /// + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } - /// Request message for the EnableProcessor method. - public class GoogleCloudDocumentaiV1EnableProcessorRequest : Google.Apis.Requests.IDirectResponseSchema - { /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. + /// A processor type is responsible for performing a certain document understanding task on a certain type of + /// document. /// - public class GoogleCloudDocumentaiV1EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiV1ProcessorType : Google.Apis.Requests.IDirectResponseSchema { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// + /// Whether the processor type allows creation. If true, users can create a processor of this processor type. + /// Otherwise, users need to request access. + /// + [Newtonsoft.Json.JsonPropertyAttribute("allowCreation")] + public virtual System.Nullable AllowCreation { get; set; } - /// Metadata of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiV1EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + /// The locations in which this processor is available. + [Newtonsoft.Json.JsonPropertyAttribute("availableLocations")] + public virtual System.Collections.Generic.IList AvailableLocations { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The processor category, used by UI to group processor types. + [Newtonsoft.Json.JsonPropertyAttribute("category")] + public virtual string Category { get; set; } + + /// Launch stage of the processor type + [Newtonsoft.Json.JsonPropertyAttribute("launchStage")] + public virtual string LaunchStage { get; set; } - /// Evaluates the given ProcessorVersion against the supplied documents. - public class GoogleCloudDocumentaiV1EvaluateProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema - { /// - /// Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation - /// input. + /// The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}` /// - [Newtonsoft.Json.JsonPropertyAttribute("evaluationDocuments")] - public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig EvaluationDocuments { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// A set of Cloud Storage URIs of sample documents for this processor. + [Newtonsoft.Json.JsonPropertyAttribute("sampleDocumentUris")] + public virtual System.Collections.Generic.IList SampleDocumentUris { get; set; } + + /// The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiV1EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// The location information about where the processor is available. + public class GoogleCloudDocumentaiV1ProcessorTypeLocationInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The resource name of the created evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] - public virtual string Evaluation { get; set; } + /// + /// The location ID. For supported locations, refer to [regional and multi-regional + /// support](/document-ai/docs/regions). + /// + [Newtonsoft.Json.JsonPropertyAttribute("locationId")] + public virtual string LocationId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// An evaluation of a ProcessorVersion's performance. - public class GoogleCloudDocumentaiV1Evaluation : Google.Apis.Requests.IDirectResponseSchema + /// + /// A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained + /// by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its + /// document-processing behavior is defined by that version. + /// + public class GoogleCloudDocumentaiV1ProcessorVersion : Google.Apis.Requests.IDirectResponseSchema { - /// Metrics for all the entities in aggregate. - [Newtonsoft.Json.JsonPropertyAttribute("allEntitiesMetrics")] - public virtual GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics AllEntitiesMetrics { get; set; } - private string _createTimeRaw; private object _createTime; - /// The time that the evaluation was created. + /// Output only. The time the processor version was created. [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { @@ -5605,589 +8163,632 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } - /// Counters for the documents used in the evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("documentCounters")] - public virtual GoogleCloudDocumentaiV1EvaluationCounters DocumentCounters { get; set; } + /// Output only. If set, information about the eventual deprecation of this version. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationInfo")] + public virtual GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo DeprecationInfo { get; set; } - /// Metrics across confidence levels, for different entities. - [Newtonsoft.Json.JsonPropertyAttribute("entityMetrics")] - public virtual System.Collections.Generic.IDictionary EntityMetrics { get; set; } + /// The display name of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// The KMS key name used for encryption. + /// Output only. The schema of the processor version. Describes the output. + [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] + public virtual GoogleCloudDocumentaiV1DocumentSchema DocumentSchema { get; set; } + + /// Output only. Information about Generative AI model-based processor versions. + [Newtonsoft.Json.JsonPropertyAttribute("genAiModelInfo")] + public virtual GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo GenAiModelInfo { get; set; } + + /// Output only. Denotes that this `ProcessorVersion` is managed by Google. + [Newtonsoft.Json.JsonPropertyAttribute("googleManaged")] + public virtual System.Nullable GoogleManaged { get; set; } + + /// Output only. The KMS key name used for encryption. [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] public virtual string KmsKeyName { get; set; } - /// The KMS key version with which data is encrypted. + /// Output only. The KMS key version with which data is encrypted. [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyVersionName")] public virtual string KmsKeyVersionName { get; set; } + /// Output only. The most recently invoked evaluation for the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("latestEvaluation")] + public virtual GoogleCloudDocumentaiV1EvaluationReference LatestEvaluation { get; set; } + + /// Output only. The model type of this processor version. + [Newtonsoft.Json.JsonPropertyAttribute("modelType")] + public virtual string ModelType { get; set; } + /// - /// The resource name of the evaluation. Format: - /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` + /// Identifier. The resource name of the processor version. Format: + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] + public virtual System.Nullable SatisfiesPzi { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] + public virtual System.Nullable SatisfiesPzs { get; set; } + + /// Output only. The state of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// Evaluations metrics, at a specific confidence level. - public class GoogleCloudDocumentaiV1EvaluationConfidenceLevelMetrics : Google.Apis.Requests.IDirectResponseSchema + /// Contains the alias and the aliased resource name of processor version. + public class GoogleCloudDocumentaiV1ProcessorVersionAlias : Google.Apis.Requests.IDirectResponseSchema { - /// The confidence level. - [Newtonsoft.Json.JsonPropertyAttribute("confidenceLevel")] - public virtual System.Nullable ConfidenceLevel { get; set; } + /// The alias in the form of `processor_version` resource name. + [Newtonsoft.Json.JsonPropertyAttribute("alias")] + public virtual string Alias { get; set; } - /// The metrics at the specific confidence level. - [Newtonsoft.Json.JsonPropertyAttribute("metrics")] - public virtual GoogleCloudDocumentaiV1EvaluationMetrics Metrics { get; set; } + /// The resource name of aliased processor version. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Evaluation counters for the documents that were used. - public class GoogleCloudDocumentaiV1EvaluationCounters : Google.Apis.Requests.IDirectResponseSchema + /// Information about the upcoming deprecation of this processor version. + public class GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo : Google.Apis.Requests.IDirectResponseSchema { - /// How many documents were used in the evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("evaluatedDocumentsCount")] - public virtual System.Nullable EvaluatedDocumentsCount { get; set; } + private string _deprecationTimeRaw; + + private object _deprecationTime; + + /// The time at which this processor version will be deprecated. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationTime")] + public virtual string DeprecationTimeRaw + { + get => _deprecationTimeRaw; + set + { + _deprecationTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _deprecationTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use DeprecationTimeDateTimeOffset instead.")] + public virtual object DeprecationTime + { + get => _deprecationTime; + set + { + _deprecationTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _deprecationTime = value; + } + } /// - /// How many documents were not included in the evaluation as Document AI failed to process them. + /// representation of . /// - [Newtonsoft.Json.JsonPropertyAttribute("failedDocumentsCount")] - public virtual System.Nullable FailedDocumentsCount { get; set; } - - /// How many documents were sent for evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("inputDocumentsCount")] - public virtual System.Nullable InputDocumentsCount { get; set; } + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? DeprecationTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(DeprecationTimeRaw); + set => DeprecationTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// How many documents were not included in the evaluation as they didn't pass validation. - [Newtonsoft.Json.JsonPropertyAttribute("invalidDocumentsCount")] - public virtual System.Nullable InvalidDocumentsCount { get; set; } + /// If set, the processor version that will be used as a replacement. + [Newtonsoft.Json.JsonPropertyAttribute("replacementProcessorVersion")] + public virtual string ReplacementProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Evaluation metrics, either in aggregate or about a specific entity. - public class GoogleCloudDocumentaiV1EvaluationMetrics : Google.Apis.Requests.IDirectResponseSchema + /// Information about Generative AI model-based processor versions. + public class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The calculated f1 score. - [Newtonsoft.Json.JsonPropertyAttribute("f1Score")] - public virtual System.Nullable F1Score { get; set; } - - /// The amount of false negatives. - [Newtonsoft.Json.JsonPropertyAttribute("falseNegativesCount")] - public virtual System.Nullable FalseNegativesCount { get; set; } - - /// The amount of false positives. - [Newtonsoft.Json.JsonPropertyAttribute("falsePositivesCount")] - public virtual System.Nullable FalsePositivesCount { get; set; } - - /// The amount of documents with a ground truth occurrence. - [Newtonsoft.Json.JsonPropertyAttribute("groundTruthDocumentCount")] - public virtual System.Nullable GroundTruthDocumentCount { get; set; } - - /// The amount of occurrences in ground truth documents. - [Newtonsoft.Json.JsonPropertyAttribute("groundTruthOccurrencesCount")] - public virtual System.Nullable GroundTruthOccurrencesCount { get; set; } - - /// The calculated precision. - [Newtonsoft.Json.JsonPropertyAttribute("precision")] - public virtual System.Nullable Precision { get; set; } - - /// The amount of documents with a predicted occurrence. - [Newtonsoft.Json.JsonPropertyAttribute("predictedDocumentCount")] - public virtual System.Nullable PredictedDocumentCount { get; set; } + /// Information for a custom Generative AI model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customGenAiModelInfo")] + public virtual GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo CustomGenAiModelInfo { get; set; } - /// The amount of occurrences in predicted documents. - [Newtonsoft.Json.JsonPropertyAttribute("predictedOccurrencesCount")] - public virtual System.Nullable PredictedOccurrencesCount { get; set; } + /// Information for a pretrained Google-managed foundation model. + [Newtonsoft.Json.JsonPropertyAttribute("foundationGenAiModelInfo")] + public virtual GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo FoundationGenAiModelInfo { get; set; } - /// The calculated recall. - [Newtonsoft.Json.JsonPropertyAttribute("recall")] - public virtual System.Nullable Recall { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The amount of documents that had an occurrence of this label. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentsCount")] - public virtual System.Nullable TotalDocumentsCount { get; set; } + /// + /// Information for a custom Generative AI model created by the user. These are created with `Create New Version` in + /// either the `Call foundation model` or `Fine tuning` tabs. + /// + public class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema + { + /// The base processor version ID for the custom model. + [Newtonsoft.Json.JsonPropertyAttribute("baseProcessorVersionId")] + public virtual string BaseProcessorVersionId { get; set; } - /// The amount of true positives. - [Newtonsoft.Json.JsonPropertyAttribute("truePositivesCount")] - public virtual System.Nullable TruePositivesCount { get; set; } + /// The type of custom model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customModelType")] + public virtual string CustomModelType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metrics across multiple confidence levels. - public class GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics : Google.Apis.Requests.IDirectResponseSchema + /// Information for a pretrained Google-managed foundation model. + public class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// - /// The calculated area under the precision recall curve (AUPRC), computed by integrating over all confidence - /// thresholds. - /// - [Newtonsoft.Json.JsonPropertyAttribute("auprc")] - public virtual System.Nullable Auprc { get; set; } - - /// The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching only. - [Newtonsoft.Json.JsonPropertyAttribute("auprcExact")] - public virtual System.Nullable AuprcExact { get; set; } + /// Whether finetuning is allowed for this base processor version. + [Newtonsoft.Json.JsonPropertyAttribute("finetuningAllowed")] + public virtual System.Nullable FinetuningAllowed { get; set; } - /// Metrics across confidence levels with fuzzy matching enabled. - [Newtonsoft.Json.JsonPropertyAttribute("confidenceLevelMetrics")] - public virtual System.Collections.Generic.IList ConfidenceLevelMetrics { get; set; } + /// The minimum number of labeled documents in the training dataset required for finetuning. + [Newtonsoft.Json.JsonPropertyAttribute("minTrainLabeledDocuments")] + public virtual System.Nullable MinTrainLabeledDocuments { get; set; } - /// Metrics across confidence levels with only exact matching. - [Newtonsoft.Json.JsonPropertyAttribute("confidenceLevelMetricsExact")] - public virtual System.Collections.Generic.IList ConfidenceLevelMetricsExact { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The Estimated Calibration Error (ECE) of the confidence of the predicted entities. - [Newtonsoft.Json.JsonPropertyAttribute("estimatedCalibrationError")] - public virtual System.Nullable EstimatedCalibrationError { get; set; } + /// Payload message of raw document content (bytes). + public class GoogleCloudDocumentaiV1RawDocument : Google.Apis.Requests.IDirectResponseSchema + { + /// Inline document content. + [Newtonsoft.Json.JsonPropertyAttribute("content")] + public virtual string Content { get; set; } /// - /// The ECE for the predicted entities with fuzzy matching disabled, i.e., exact matching only. + /// The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, + /// `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not specified, a default ID is + /// generated. /// - [Newtonsoft.Json.JsonPropertyAttribute("estimatedCalibrationErrorExact")] - public virtual System.Nullable EstimatedCalibrationErrorExact { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// The metrics type for the label. - [Newtonsoft.Json.JsonPropertyAttribute("metricsType")] - public virtual string MetricsType { get; set; } + /// An IANA MIME type (RFC6838) indicating the nature and format of the content. + [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] + public virtual string MimeType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Gives a short summary of an evaluation, and links to the evaluation itself. - public class GoogleCloudDocumentaiV1EvaluationReference : Google.Apis.Requests.IDirectResponseSchema + /// Specifies a set of raw documents. + public class GoogleCloudDocumentaiV1RawDocuments : Google.Apis.Requests.IDirectResponseSchema { - /// An aggregate of the statistics for the evaluation with fuzzy matching on. - [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetrics")] - public virtual GoogleCloudDocumentaiV1EvaluationMetrics AggregateMetrics { get; set; } - - /// An aggregate of the statistics for the evaluation with fuzzy matching off. - [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetricsExact")] - public virtual GoogleCloudDocumentaiV1EvaluationMetrics AggregateMetricsExact { get; set; } - - /// The resource name of the evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] - public virtual string Evaluation { get; set; } - - /// The resource name of the Long Running Operation for the evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("operation")] - public virtual string Operation { get; set; } + /// Specifies raw document content and mime type. + [Newtonsoft.Json.JsonPropertyAttribute("documents")] + public virtual System.Collections.Generic.IList Documents { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the FetchProcessorTypes method. - public class GoogleCloudDocumentaiV1FetchProcessorTypesResponse : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the ReviewDocument method. + public class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The list of processor types. - [Newtonsoft.Json.JsonPropertyAttribute("processorTypes")] - public virtual System.Collections.Generic.IList ProcessorTypes { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + + /// The Crowd Compute question ID. + [Newtonsoft.Json.JsonPropertyAttribute("questionId")] + public virtual string QuestionId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Specifies a document stored on Cloud Storage. - public class GoogleCloudDocumentaiV1GcsDocument : Google.Apis.Requests.IDirectResponseSchema + /// Request message for the ReviewDocument method. + public class GoogleCloudDocumentaiV1ReviewDocumentRequest : Google.Apis.Requests.IDirectResponseSchema { - /// The Cloud Storage object uri. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] - public virtual string GcsUri { get; set; } + /// The document schema of the human review task. + [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] + public virtual GoogleCloudDocumentaiV1DocumentSchema DocumentSchema { get; set; } - /// An IANA MIME type (RFC6838) of the content. - [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] - public virtual string MimeType { get; set; } + /// Whether the validation should be performed on the ad-hoc review request. + [Newtonsoft.Json.JsonPropertyAttribute("enableSchemaValidation")] + public virtual System.Nullable EnableSchemaValidation { get; set; } + + /// An inline document proto. + [Newtonsoft.Json.JsonPropertyAttribute("inlineDocument")] + public virtual GoogleCloudDocumentaiV1Document InlineDocument { get; set; } + + /// The priority of the human review task. + [Newtonsoft.Json.JsonPropertyAttribute("priority")] + public virtual string Priority { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Specifies a set of documents on Cloud Storage. - public class GoogleCloudDocumentaiV1GcsDocuments : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the ReviewDocument method. + public class GoogleCloudDocumentaiV1ReviewDocumentResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The list of documents. - [Newtonsoft.Json.JsonPropertyAttribute("documents")] - public virtual System.Collections.Generic.IList Documents { get; set; } + /// The Cloud Storage uri for the human reviewed document if the review is succeeded. + [Newtonsoft.Json.JsonPropertyAttribute("gcsDestination")] + public virtual string GcsDestination { get; set; } + + /// The reason why the review is rejected by reviewer. + [Newtonsoft.Json.JsonPropertyAttribute("rejectionReason")] + public virtual string RejectionReason { get; set; } + + /// The state of the review operation. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Specifies all documents on Cloud Storage with a common prefix. - public class GoogleCloudDocumentaiV1GcsPrefix : Google.Apis.Requests.IDirectResponseSchema + /// The history of schema generation iterations. + public class GoogleCloudDocumentaiV1SchemaGenerationHistory : Google.Apis.Requests.IDirectResponseSchema { - /// The URI prefix. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUriPrefix")] - public virtual string GcsUriPrefix { get; set; } + /// Required. Previous prompt-answers in a chronological order. + [Newtonsoft.Json.JsonPropertyAttribute("iterations")] + public virtual System.Collections.Generic.IList Iterations { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of human review on a processed document. - public class GoogleCloudDocumentaiV1HumanReviewStatus : Google.Apis.Requests.IDirectResponseSchema + /// A single iteration of the schema generation. + public class GoogleCloudDocumentaiV1SchemaGenerationIteration : Google.Apis.Requests.IDirectResponseSchema { - /// - /// The name of the operation triggered by the processed document. This field is populated only when the state - /// is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation - /// returned by ReviewDocument. - /// - [Newtonsoft.Json.JsonPropertyAttribute("humanReviewOperation")] - public virtual string HumanReviewOperation { get; set; } + /// Optional. The previous schema version adjusted by the model. + [Newtonsoft.Json.JsonPropertyAttribute("adjustedSchema")] + public virtual GoogleCloudDocumentaiV1SchemaVersion AdjustedSchema { get; set; } - /// The state of human review on the processing request. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } + /// Required. The schema version generated by the model. + [Newtonsoft.Json.JsonPropertyAttribute("generatedSchema")] + public virtual GoogleCloudDocumentaiV1SchemaVersion GeneratedSchema { get; set; } - /// A message providing more details about the human review state. - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } + /// Optional. The prompt used for the iteration. + [Newtonsoft.Json.JsonPropertyAttribute("prompt")] + public virtual string Prompt { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The response from `ListEvaluations`. - public class GoogleCloudDocumentaiV1ListEvaluationsResponse : Google.Apis.Requests.IDirectResponseSchema + /// SchemaVersion is a version of the Schema which is created in SchemaGroup. + public class GoogleCloudDocumentaiV1SchemaVersion : Google.Apis.Requests.IDirectResponseSchema { - /// The evaluations requested. - [Newtonsoft.Json.JsonPropertyAttribute("evaluations")] - public virtual System.Collections.Generic.IList Evaluations { get; set; } + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time when the SchemaVersion was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// Optional. The user-defined name of the SchemaVersion. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Optional. The GCP labels for the SchemaVersion. + [Newtonsoft.Json.JsonPropertyAttribute("labels")] + public virtual System.Collections.Generic.IDictionary Labels { get; set; } /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no - /// subsequent pages. + /// Identifier. The resource name of the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` /// - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Required. The schema of the SchemaVersion. + [Newtonsoft.Json.JsonPropertyAttribute("schema")] + public virtual GoogleCloudDocumentaiV1DocumentSchema Schema { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the ListProcessorTypes method. - public class GoogleCloudDocumentaiV1ListProcessorTypesResponse : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the SetDefaultProcessorVersion method. + public class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// Points to the next page, otherwise empty. - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } - - /// The processor types. - [Newtonsoft.Json.JsonPropertyAttribute("processorTypes")] - public virtual System.Collections.Generic.IList ProcessorTypes { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the ListProcessorVersions method. - public class GoogleCloudDocumentaiV1ListProcessorVersionsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Request message for the SetDefaultProcessorVersion method. + public class GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema { - /// Points to the next processor, otherwise empty. - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } - - /// The list of processors. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersions")] - public virtual System.Collections.Generic.IList ProcessorVersions { get; set; } + /// + /// Required. The resource name of child ProcessorVersion to use as default. Format: + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("defaultProcessorVersion")] + public virtual string DefaultProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the ListProcessors method. - public class GoogleCloudDocumentaiV1ListProcessorsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the SetDefaultProcessorVersion method. + public class GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// Points to the next processor, otherwise empty. - [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] - public virtual string NextPageToken { get; set; } - - /// The list of processors. - [Newtonsoft.Json.JsonPropertyAttribute("processors")] - public virtual System.Collections.Generic.IList Processors { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the - /// original image and range from 0 to 1. - /// - public class GoogleCloudDocumentaiV1NormalizedVertex : Google.Apis.Requests.IDirectResponseSchema + /// The metadata that represents a processor version being created. + public class GoogleCloudDocumentaiV1TrainProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// X coordinate. - [Newtonsoft.Json.JsonPropertyAttribute("x")] - public virtual System.Nullable X { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } - /// Y coordinate (starts from the top of the image). - [Newtonsoft.Json.JsonPropertyAttribute("y")] - public virtual System.Nullable Y { get; set; } + /// The test dataset validation information. + [Newtonsoft.Json.JsonPropertyAttribute("testDatasetValidation")] + public virtual GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation TestDatasetValidation { get; set; } + + /// The training dataset validation information. + [Newtonsoft.Json.JsonPropertyAttribute("trainingDatasetValidation")] + public virtual GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation TrainingDatasetValidation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Config for Document OCR. - public class GoogleCloudDocumentaiV1OcrConfig : Google.Apis.Requests.IDirectResponseSchema + /// + /// The dataset validation information. This includes any and all errors with documents and the dataset. + /// + public class GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation : Google.Apis.Requests.IDirectResponseSchema { - /// - /// A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are: - - /// `legacy_layout`: a heuristics layout detection algorithm, which serves as an alternative to the current - /// ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their - /// situation. - /// - [Newtonsoft.Json.JsonPropertyAttribute("advancedOcrOptions")] - public virtual System.Collections.Generic.IList AdvancedOcrOptions { get; set; } + /// The total number of dataset errors. + [Newtonsoft.Json.JsonPropertyAttribute("datasetErrorCount")] + public virtual System.Nullable DatasetErrorCount { get; set; } /// - /// Turn on font identification model and return font style information. Deprecated, use - /// PremiumFeatures.compute_style_info instead. + /// Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single + /// dataset error is terminal for training. /// - [Newtonsoft.Json.JsonPropertyAttribute("computeStyleInfo")] - public virtual System.Nullable ComputeStyleInfo { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("datasetErrors")] + public virtual System.Collections.Generic.IList DatasetErrors { get; set; } - /// - /// Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and - /// later) processors. - /// - [Newtonsoft.Json.JsonPropertyAttribute("disableCharacterBoxesDetection")] - public virtual System.Nullable DisableCharacterBoxesDetection { get; set; } + /// The total number of document errors. + [Newtonsoft.Json.JsonPropertyAttribute("documentErrorCount")] + public virtual System.Nullable DocumentErrorCount { get; set; } /// - /// Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of - /// poor quality for a given input. Adds additional latency comparable to regular OCR to the process call. + /// Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any + /// document with errors will not be used throughout training. /// - [Newtonsoft.Json.JsonPropertyAttribute("enableImageQualityScores")] - public virtual System.Nullable EnableImageQualityScores { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("documentErrors")] + public virtual System.Collections.Generic.IList DocumentErrors { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Request message for the TrainProcessorVersion method. + public class GoogleCloudDocumentaiV1TrainProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema + { /// - /// Enables special handling for PDFs with existing text information. Results in better text extraction quality - /// in such PDF inputs. + /// Optional. The processor version to use as a base for training. This processor version must be a child of + /// `parent`. Format: + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. /// - [Newtonsoft.Json.JsonPropertyAttribute("enableNativePdfParsing")] - public virtual System.Nullable EnableNativePdfParsing { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("baseProcessorVersion")] + public virtual string BaseProcessorVersion { get; set; } - /// Includes symbol level OCR information if set to true. - [Newtonsoft.Json.JsonPropertyAttribute("enableSymbol")] - public virtual System.Nullable EnableSymbol { get; set; } + /// Options to control Custom Document Extraction (CDE) Processor. + [Newtonsoft.Json.JsonPropertyAttribute("customDocumentExtractionOptions")] + public virtual GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions CustomDocumentExtractionOptions { get; set; } - /// Hints for the OCR model. - [Newtonsoft.Json.JsonPropertyAttribute("hints")] - public virtual GoogleCloudDocumentaiV1OcrConfigHints Hints { get; set; } + /// Optional. The schema the processor version will be trained with. + [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] + public virtual GoogleCloudDocumentaiV1DocumentSchema DocumentSchema { get; set; } - /// Configurations for premium OCR features. - [Newtonsoft.Json.JsonPropertyAttribute("premiumFeatures")] - public virtual GoogleCloudDocumentaiV1OcrConfigPremiumFeatures PremiumFeatures { get; set; } + /// Options to control foundation model tuning of a processor. + [Newtonsoft.Json.JsonPropertyAttribute("foundationModelTuningOptions")] + public virtual GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions FoundationModelTuningOptions { get; set; } + + /// Optional. The input data used to train the ProcessorVersion. + [Newtonsoft.Json.JsonPropertyAttribute("inputData")] + public virtual GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData InputData { get; set; } + + /// Required. The processor version to be created. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual GoogleCloudDocumentaiV1ProcessorVersion ProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Hints for OCR Engine - public class GoogleCloudDocumentaiV1OcrConfigHints : Google.Apis.Requests.IDirectResponseSchema + /// Options to control the training of the Custom Document Extraction (CDE) Processor. + public class GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions : Google.Apis.Requests.IDirectResponseSchema { - /// - /// List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since - /// it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not - /// needed. In rare cases, when the language of the text in the image is known, setting a hint will help get - /// better results (although it will be a significant hindrance if the hint is wrong). - /// - [Newtonsoft.Json.JsonPropertyAttribute("languageHints")] - public virtual System.Collections.Generic.IList LanguageHints { get; set; } + /// Optional. Training method to use for CDE training. + [Newtonsoft.Json.JsonPropertyAttribute("trainingMethod")] + public virtual string TrainingMethod { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Configurations for premium OCR features. - public class GoogleCloudDocumentaiV1OcrConfigPremiumFeatures : Google.Apis.Requests.IDirectResponseSchema + /// Options to control foundation model tuning of the processor. + public class GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions : Google.Apis.Requests.IDirectResponseSchema { - /// Turn on font identification model and return font style information. - [Newtonsoft.Json.JsonPropertyAttribute("computeStyleInfo")] - public virtual System.Nullable ComputeStyleInfo { get; set; } - - /// Turn on the model that can extract LaTeX math formulas. - [Newtonsoft.Json.JsonPropertyAttribute("enableMathOcr")] - public virtual System.Nullable EnableMathOcr { get; set; } + /// + /// Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If + /// not provided, recommended learning rate will be used. + /// + [Newtonsoft.Json.JsonPropertyAttribute("learningRateMultiplier")] + public virtual System.Nullable LearningRateMultiplier { get; set; } /// - /// Turn on selection mark detector in OCR engine. Only available in OCR 2.0 (and later) processors. + /// Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, + /// recommended steps will be used. /// - [Newtonsoft.Json.JsonPropertyAttribute("enableSelectionMarkDetection")] - public virtual System.Nullable EnableSelectionMarkDetection { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("trainSteps")] + public virtual System.Nullable TrainSteps { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Options for Process API - public class GoogleCloudDocumentaiV1ProcessOptions : Google.Apis.Requests.IDirectResponseSchema + /// The input data used to train a new ProcessorVersion. + public class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData : Google.Apis.Requests.IDirectResponseSchema { - /// Only process certain pages from the end, same as above. - [Newtonsoft.Json.JsonPropertyAttribute("fromEnd")] - public virtual System.Nullable FromEnd { get; set; } - - /// Only process certain pages from the start. Process all if the document has fewer pages. - [Newtonsoft.Json.JsonPropertyAttribute("fromStart")] - public virtual System.Nullable FromStart { get; set; } - - /// Which pages to process (1-indexed). - [Newtonsoft.Json.JsonPropertyAttribute("individualPageSelector")] - public virtual GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector IndividualPageSelector { get; set; } - - /// - /// Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types. - /// - [Newtonsoft.Json.JsonPropertyAttribute("layoutConfig")] - public virtual GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig LayoutConfig { get; set; } - - /// - /// Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor - /// types. - /// - [Newtonsoft.Json.JsonPropertyAttribute("ocrConfig")] - public virtual GoogleCloudDocumentaiV1OcrConfig OcrConfig { get; set; } + /// The documents used for testing the trained version. + [Newtonsoft.Json.JsonPropertyAttribute("testDocuments")] + public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig TestDocuments { get; set; } - /// - /// Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field - /// is set when the underlying ProcessorVersion doesn't support schema override. - /// - [Newtonsoft.Json.JsonPropertyAttribute("schemaOverride")] - public virtual GoogleCloudDocumentaiV1DocumentSchema SchemaOverride { get; set; } + /// The documents used for training the new version. + [Newtonsoft.Json.JsonPropertyAttribute("trainingDocuments")] + public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig TrainingDocuments { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A list of individual page numbers. - public class GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector : Google.Apis.Requests.IDirectResponseSchema + /// The response for TrainProcessorVersion. + public class GoogleCloudDocumentaiV1TrainProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// Optional. Indices of the pages (starting from 1). - [Newtonsoft.Json.JsonPropertyAttribute("pages")] - public virtual System.Collections.Generic.IList> Pages { get; set; } + /// The resource name of the processor version produced by training. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Serving config for layout parser processor. - public class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the UndeployProcessorVersion method. + public class GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// Optional. Config for chunking in layout parser processor. - [Newtonsoft.Json.JsonPropertyAttribute("chunkingConfig")] - public virtual GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig ChunkingConfig { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } - /// Optional. Whether to include bounding boxes in layout parser processor response. - [Newtonsoft.Json.JsonPropertyAttribute("returnBoundingBoxes")] - public virtual System.Nullable ReturnBoundingBoxes { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Optional. Whether to include images in layout parser processor response. - [Newtonsoft.Json.JsonPropertyAttribute("returnImages")] - public virtual System.Nullable ReturnImages { get; set; } + /// Request message for the UndeployProcessorVersion method. + public class GoogleCloudDocumentaiV1UndeployProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Response message for the UndeployProcessorVersion method. + public class GoogleCloudDocumentaiV1UndeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { /// The ETag of the item. public virtual string ETag { get; set; } } - /// Serving config for chunking. - public class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig : Google.Apis.Requests.IDirectResponseSchema + /// + /// A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original + /// image. + /// + public class GoogleCloudDocumentaiV1Vertex : Google.Apis.Requests.IDirectResponseSchema { - /// Optional. The chunk sizes to use when splitting documents, in order of level. - [Newtonsoft.Json.JsonPropertyAttribute("chunkSize")] - public virtual System.Nullable ChunkSize { get; set; } + /// X coordinate. + [Newtonsoft.Json.JsonPropertyAttribute("x")] + public virtual System.Nullable X { get; set; } - /// Optional. Whether or not to include ancestor headings when splitting. - [Newtonsoft.Json.JsonPropertyAttribute("includeAncestorHeadings")] - public virtual System.Nullable IncludeAncestorHeadings { get; set; } + /// Y coordinate (starts from the top of the image). + [Newtonsoft.Json.JsonPropertyAttribute("y")] + public virtual System.Nullable Y { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for the ProcessDocument method. - public class GoogleCloudDocumentaiV1ProcessRequest : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Specifies which fields to include in the ProcessResponse.document output. Only supports top-level document - /// and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`. - /// - [Newtonsoft.Json.JsonPropertyAttribute("fieldMask")] - public virtual object FieldMask { get; set; } - - /// A raw document on Google Cloud Storage. - [Newtonsoft.Json.JsonPropertyAttribute("gcsDocument")] - public virtual GoogleCloudDocumentaiV1GcsDocument GcsDocument { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// Optional. Option to remove images from the document. - [Newtonsoft.Json.JsonPropertyAttribute("imagelessMode")] - public virtual System.Nullable ImagelessMode { get; set; } + /// Total number of documents that failed to be deleted in storage. + [Newtonsoft.Json.JsonPropertyAttribute("errorDocumentCount")] + public virtual System.Nullable ErrorDocumentCount { get; set; } - /// An inline document proto. - [Newtonsoft.Json.JsonPropertyAttribute("inlineDocument")] - public virtual GoogleCloudDocumentaiV1Document InlineDocument { get; set; } + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualBatchDeleteStatuses")] + public virtual System.Collections.Generic.IList IndividualBatchDeleteStatuses { get; set; } - /// - /// Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than - /// 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, - /// and dashes. International characters are allowed. Label values are optional. Label keys must start with a - /// letter. - /// - [Newtonsoft.Json.JsonPropertyAttribute("labels")] - public virtual System.Collections.Generic.IDictionary Labels { get; set; } + /// Total number of documents deleting from dataset. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } - /// Inference-time options for the process API - [Newtonsoft.Json.JsonPropertyAttribute("processOptions")] - public virtual GoogleCloudDocumentaiV1ProcessOptions ProcessOptions { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// A raw document content (bytes). - [Newtonsoft.Json.JsonPropertyAttribute("rawDocument")] - public virtual GoogleCloudDocumentaiV1RawDocument RawDocument { get; set; } + /// The status of each individual document in the batch delete process. + public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiV1beta3DocumentId DocumentId { get; set; } - /// Whether human review should be skipped for this request. Default to `false`. - [Newtonsoft.Json.JsonPropertyAttribute("skipHumanReview")] - public virtual System.Nullable SkipHumanReview { get; set; } + /// The status of deleting the document in storage. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the ProcessDocument method. - public class GoogleCloudDocumentaiV1ProcessResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response of the delete documents operation. + public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The document payload, will populate fields based on the processor's behavior. - [Newtonsoft.Json.JsonPropertyAttribute("document")] - public virtual GoogleCloudDocumentaiV1Document Document { get; set; } - - /// The status of human review on the processed document. - [Newtonsoft.Json.JsonPropertyAttribute("humanReviewStatus")] - public virtual GoogleCloudDocumentaiV1HumanReviewStatus HumanReviewStatus { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// The first-class citizen for Document AI. Each processor defines how to extract structural information from a - /// document. - /// - public class GoogleCloudDocumentaiV1Processor : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for BatchProcessDocuments. + public class GoogleCloudDocumentaiV1beta3BatchProcessMetadata : Google.Apis.Requests.IDirectResponseSchema { private string _createTimeRaw; private object _createTime; - /// Output only. The time the processor was created. + /// The creation time of the operation. [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { @@ -6220,128 +8821,114 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } - /// The default processor version. - [Newtonsoft.Json.JsonPropertyAttribute("defaultProcessorVersion")] - public virtual string DefaultProcessorVersion { get; set; } - - /// The display name of the processor. - [Newtonsoft.Json.JsonPropertyAttribute("displayName")] - public virtual string DisplayName { get; set; } + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualProcessStatuses")] + public virtual System.Collections.Generic.IList IndividualProcessStatuses { get; set; } - /// - /// The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK - /// scenarios. - /// - [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] - public virtual string KmsKeyName { get; set; } + /// The state of the current batch processing. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } /// - /// Output only. Immutable. The resource name of the processor. Format: - /// `projects/{project}/locations/{location}/processors/{processor}` + /// A message providing more details about the current state of processing. For example, the error message if + /// the operation is failed. /// - [Newtonsoft.Json.JsonPropertyAttribute("name")] - public virtual string Name { get; set; } - - /// Output only. Immutable. The http endpoint that can be called to invoke processing. - [Newtonsoft.Json.JsonPropertyAttribute("processEndpoint")] - public virtual string ProcessEndpoint { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } - /// Output only. The processor version aliases. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersionAliases")] - public virtual System.Collections.Generic.IList ProcessorVersionAliases { get; set; } + private string _updateTimeRaw; - /// Output only. Reserved for future use. - [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] - public virtual System.Nullable SatisfiesPzi { get; set; } + private object _updateTime; - /// Output only. Reserved for future use. - [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] - public virtual System.Nullable SatisfiesPzs { get; set; } + /// The last update time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] + public virtual string UpdateTimeRaw + { + get => _updateTimeRaw; + set + { + _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _updateTimeRaw = value; + } + } - /// Output only. The state of the processor. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] + public virtual object UpdateTime + { + get => _updateTime; + set + { + _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _updateTime = value; + } + } - /// - /// The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see - /// FetchProcessorTypes. - /// - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); + set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// A processor type is responsible for performing a certain document understanding task on a certain type of - /// document. - /// - public class GoogleCloudDocumentaiV1ProcessorType : Google.Apis.Requests.IDirectResponseSchema + /// The status of a each individual document in the batch process. + public class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus : Google.Apis.Requests.IDirectResponseSchema { /// - /// Whether the processor type allows creation. If true, users can create a processor of this processor type. - /// Otherwise, users need to request access. + /// The name of the operation triggered by the processed document. If the human review process isn't triggered, + /// this field will be empty. It has the same response type and metadata as the long-running operation returned + /// by the ReviewDocument method. /// - [Newtonsoft.Json.JsonPropertyAttribute("allowCreation")] - public virtual System.Nullable AllowCreation { get; set; } - - /// The locations in which this processor is available. - [Newtonsoft.Json.JsonPropertyAttribute("availableLocations")] - public virtual System.Collections.Generic.IList AvailableLocations { get; set; } - - /// The processor category, used by UI to group processor types. - [Newtonsoft.Json.JsonPropertyAttribute("category")] - public virtual string Category { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewOperation")] + public virtual string HumanReviewOperation { get; set; } - /// Launch stage of the processor type - [Newtonsoft.Json.JsonPropertyAttribute("launchStage")] - public virtual string LaunchStage { get; set; } + /// The status of human review on the processed document. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewStatus")] + public virtual GoogleCloudDocumentaiV1beta3HumanReviewStatus HumanReviewStatus { get; set; } /// - /// The resource name of the processor type. Format: `projects/{project}/processorTypes/{processor_type}` + /// The source of the document, same as the input_gcs_source field in the request when the batch process + /// started. /// - [Newtonsoft.Json.JsonPropertyAttribute("name")] - public virtual string Name { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } - /// A set of Cloud Storage URIs of sample documents for this processor. - [Newtonsoft.Json.JsonPropertyAttribute("sampleDocumentUris")] - public virtual System.Collections.Generic.IList SampleDocumentUris { get; set; } + /// + /// The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the + /// processed document if it was successful, otherwise empty. + /// + [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] + public virtual string OutputGcsDestination { get; set; } - /// The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - [Newtonsoft.Json.JsonPropertyAttribute("type")] - public virtual string Type { get; set; } + /// The status processing the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The location information about where the processor is available. - public class GoogleCloudDocumentaiV1ProcessorTypeLocationInfo : Google.Apis.Requests.IDirectResponseSchema + /// Response message for BatchProcessDocuments. + public class GoogleCloudDocumentaiV1beta3BatchProcessResponse : Google.Apis.Requests.IDirectResponseSchema { - /// - /// The location ID. For supported locations, refer to [regional and multi-regional - /// support](/document-ai/docs/regions). - /// - [Newtonsoft.Json.JsonPropertyAttribute("locationId")] - public virtual string LocationId { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained - /// by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its - /// document-processing behavior is defined by that version. - /// - public class GoogleCloudDocumentaiV1ProcessorVersion : Google.Apis.Requests.IDirectResponseSchema + /// The common metadata for long running operations. + public class GoogleCloudDocumentaiV1beta3CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { private string _createTimeRaw; private object _createTime; - /// Output only. The time the processor version was created. + /// The creation time of the operation. [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { @@ -6374,45 +8961,75 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } - /// Output only. If set, information about the eventual deprecation of this version. - [Newtonsoft.Json.JsonPropertyAttribute("deprecationInfo")] - public virtual GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo DeprecationInfo { get; set; } + /// A related resource to this operation. + [Newtonsoft.Json.JsonPropertyAttribute("resource")] + public virtual string Resource { get; set; } - /// The display name of the processor version. - [Newtonsoft.Json.JsonPropertyAttribute("displayName")] - public virtual string DisplayName { get; set; } + /// The state of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } - /// Output only. The schema of the processor version. Describes the output. - [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] - public virtual GoogleCloudDocumentaiV1DocumentSchema DocumentSchema { get; set; } + /// A message providing more details about the current state of processing. + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } - /// Output only. Information about Generative AI model-based processor versions. - [Newtonsoft.Json.JsonPropertyAttribute("genAiModelInfo")] - public virtual GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo GenAiModelInfo { get; set; } + private string _updateTimeRaw; - /// Output only. Denotes that this `ProcessorVersion` is managed by Google. - [Newtonsoft.Json.JsonPropertyAttribute("googleManaged")] - public virtual System.Nullable GoogleManaged { get; set; } + private object _updateTime; - /// Output only. The KMS key name used for encryption. - [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] - public virtual string KmsKeyName { get; set; } + /// The last update time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] + public virtual string UpdateTimeRaw + { + get => _updateTimeRaw; + set + { + _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _updateTimeRaw = value; + } + } - /// Output only. The KMS key version with which data is encrypted. - [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyVersionName")] - public virtual string KmsKeyVersionName { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] + public virtual object UpdateTime + { + get => _updateTime; + set + { + _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _updateTime = value; + } + } - /// Output only. The most recently invoked evaluation for the processor version. - [Newtonsoft.Json.JsonPropertyAttribute("latestEvaluation")] - public virtual GoogleCloudDocumentaiV1EvaluationReference LatestEvaluation { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); + set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A singleton resource under a Processor which configures a collection of documents. + public class GoogleCloudDocumentaiV1beta3Dataset : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. Deprecated. Warehouse-based dataset configuration is not supported. + [Newtonsoft.Json.JsonPropertyAttribute("documentWarehouseConfig")] + public virtual GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig DocumentWarehouseConfig { get; set; } - /// Output only. The model type of this processor version. - [Newtonsoft.Json.JsonPropertyAttribute("modelType")] - public virtual string ModelType { get; set; } + /// + /// Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents + /// are stored under a user-managed Cloud Storage location. + /// + [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedConfig")] + public virtual GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig GcsManagedConfig { get; set; } /// - /// Identifier. The resource name of the processor version. Format: - /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` + /// Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset` /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } @@ -6425,440 +9042,521 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] public virtual System.Nullable SatisfiesPzs { get; set; } - /// Output only. The state of the processor version. + /// + /// Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features + /// like CMEK and content-based search. + /// + [Newtonsoft.Json.JsonPropertyAttribute("spannerIndexingConfig")] + public virtual GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig SpannerIndexingConfig { get; set; } + + /// Required. State of the dataset. Ignored when updating dataset. [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } + /// + /// Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by + /// the document service internally (not user-managed). + /// + [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDatasetConfig")] + public virtual GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig UnmanagedDatasetConfig { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// Contains the alias and the aliased resource name of processor version. - public class GoogleCloudDocumentaiV1ProcessorVersionAlias : Google.Apis.Requests.IDirectResponseSchema + /// Configuration specific to the Document AI Warehouse-based implementation. + public class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig : Google.Apis.Requests.IDirectResponseSchema { - /// The alias in the form of `processor_version` resource name. - [Newtonsoft.Json.JsonPropertyAttribute("alias")] - public virtual string Alias { get; set; } + /// Output only. The collection in Document AI Warehouse associated with the dataset. + [Newtonsoft.Json.JsonPropertyAttribute("collection")] + public virtual string Collection { get; set; } - /// The resource name of aliased processor version. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] - public virtual string ProcessorVersion { get; set; } + /// Output only. The schema in Document AI Warehouse associated with the dataset. + [Newtonsoft.Json.JsonPropertyAttribute("schema")] + public virtual string Schema { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Information about the upcoming deprecation of this processor version. - public class GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo : Google.Apis.Requests.IDirectResponseSchema + /// Configuration specific to the Cloud Storage-based implementation. + public class GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig : Google.Apis.Requests.IDirectResponseSchema { - private string _deprecationTimeRaw; + /// + /// Required. The Cloud Storage URI (a directory) where the documents belonging to the dataset must be stored. + /// + [Newtonsoft.Json.JsonPropertyAttribute("gcsPrefix")] + public virtual GoogleCloudDocumentaiV1beta3GcsPrefix GcsPrefix { get; set; } - private object _deprecationTime; + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The time at which this processor version will be deprecated. - [Newtonsoft.Json.JsonPropertyAttribute("deprecationTime")] - public virtual string DeprecationTimeRaw - { - get => _deprecationTimeRaw; - set - { - _deprecationTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _deprecationTimeRaw = value; - } - } + /// Configuration specific to spanner-based indexing. + public class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use DeprecationTimeDateTimeOffset instead.")] - public virtual object DeprecationTime - { - get => _deprecationTime; - set - { - _deprecationTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _deprecationTime = value; - } - } + /// Configuration specific to an unmanaged dataset. + public class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// - /// representation of . - /// - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? DeprecationTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(DeprecationTimeRaw); - set => DeprecationTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } + /// The long-running operation metadata for the DeleteProcessor method. + public class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// If set, the processor version that will be used as a replacement. - [Newtonsoft.Json.JsonPropertyAttribute("replacementProcessorVersion")] - public virtual string ReplacementProcessorVersion { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the DeleteProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Information about Generative AI model-based processor versions. - public class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// Information for a custom Generative AI model created by the user. - [Newtonsoft.Json.JsonPropertyAttribute("customGenAiModelInfo")] - public virtual GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo CustomGenAiModelInfo { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// Information for a pretrained Google-managed foundation model. - [Newtonsoft.Json.JsonPropertyAttribute("foundationGenAiModelInfo")] - public virtual GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo FoundationGenAiModelInfo { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the DisableProcessor method. + public class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// Information for a custom Generative AI model created by the user. These are created with `Create New Version` in - /// either the `Call foundation model` or `Fine tuning` tabs. + /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. /// - public class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiV1beta3DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The base processor version ID for the custom model. - [Newtonsoft.Json.JsonPropertyAttribute("baseProcessorVersionId")] - public virtual string BaseProcessorVersionId { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The type of custom model created by the user. - [Newtonsoft.Json.JsonPropertyAttribute("customModelType")] - public virtual string CustomModelType { get; set; } + /// Document Identifier. + public class GoogleCloudDocumentaiV1beta3DocumentId : Google.Apis.Requests.IDirectResponseSchema + { + /// A document id within user-managed Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedDocId")] + public virtual GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId GcsManagedDocId { get; set; } + + /// Points to a specific revision of the document if set. + [Newtonsoft.Json.JsonPropertyAttribute("revisionRef")] + public virtual GoogleCloudDocumentaiV1beta3RevisionRef RevisionRef { get; set; } + + /// A document id within unmanaged dataset. + [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDocId")] + public virtual GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId UnmanagedDocId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Information for a pretrained Google-managed foundation model. - public class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema + /// + /// Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. + /// + public class GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId : Google.Apis.Requests.IDirectResponseSchema { - /// Whether finetuning is allowed for this base processor version. - [Newtonsoft.Json.JsonPropertyAttribute("finetuningAllowed")] - public virtual System.Nullable FinetuningAllowed { get; set; } + /// Id of the document (indexed) managed by Content Warehouse. + [Newtonsoft.Json.JsonPropertyAttribute("cwDocId")] + public virtual string CwDocId { get; set; } - /// The minimum number of labeled documents in the training dataset required for finetuning. - [Newtonsoft.Json.JsonPropertyAttribute("minTrainLabeledDocuments")] - public virtual System.Nullable MinTrainLabeledDocuments { get; set; } + /// Required. The Cloud Storage URI where the actual document is stored. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Payload message of raw document content (bytes). - public class GoogleCloudDocumentaiV1RawDocument : Google.Apis.Requests.IDirectResponseSchema + /// Identifies a document uniquely within the scope of a dataset in unmanaged option. + public class GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId : Google.Apis.Requests.IDirectResponseSchema { - /// Inline document content. - [Newtonsoft.Json.JsonPropertyAttribute("content")] - public virtual string Content { get; set; } + /// Required. The id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("docId")] + public virtual string DocId { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The schema defines the output of the processed document by a processor. + public class GoogleCloudDocumentaiV1beta3DocumentSchema : Google.Apis.Requests.IDirectResponseSchema + { + /// Description of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// Display name to show to users. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Entity types of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypes")] + public virtual System.Collections.Generic.IList EntityTypes { get; set; } + + /// Metadata of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("metadata")] + public virtual GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata Metadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for + /// entity-based processors. Multiple types can also compose a dependency tree to represent nested types. + /// + public class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityType : Google.Apis.Requests.IDirectResponseSchema + { + /// The entity type that this type is derived from. For now, one and only one should be set. + [Newtonsoft.Json.JsonPropertyAttribute("baseTypes")] + public virtual System.Collections.Generic.IList BaseTypes { get; set; } + + /// + /// The description of the entity type. Could be used to provide more information about the entity type for + /// model calls. + /// + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// User defined name for the type. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Metadata for the entity type. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypeMetadata")] + public virtual GoogleCloudDocumentaiV1beta3EntityTypeMetadata EntityTypeMetadata { get; set; } + + /// + /// If specified, lists all the possible values for this entity. This should not be more than a handful of + /// values. If the number of values is &gt;10 or could change frequently use the `EntityType.value_ontology` + /// field and specify a list of all possible values in a value ontology file. + /// + [Newtonsoft.Json.JsonPropertyAttribute("enumValues")] + public virtual GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues EnumValues { get; set; } /// - /// The display name of the document, it supports all Unicode characters except the following: `*`, `?`, `[`, - /// `]`, `%`, `{`, `}`,`'`, `\"`, `,` `~`, `=` and `:` are reserved. If not specified, a default ID is - /// generated. + /// Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following + /// naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 + /// characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward + /// compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes + /// used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will + /// still be honored for backward compatibility. /// - [Newtonsoft.Json.JsonPropertyAttribute("displayName")] - public virtual string DisplayName { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } - /// An IANA MIME type (RFC6838) indicating the nature and format of the content. - [Newtonsoft.Json.JsonPropertyAttribute("mimeType")] - public virtual string MimeType { get; set; } + /// Description the nested structure, or composition of an entity. + [Newtonsoft.Json.JsonPropertyAttribute("properties")] + public virtual System.Collections.Generic.IList Properties { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the ReviewDocument method. - public class GoogleCloudDocumentaiV1ReviewDocumentOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Defines the a list of enum values. + public class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeEnumValues : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } - - /// The Crowd Compute question ID. - [Newtonsoft.Json.JsonPropertyAttribute("questionId")] - public virtual string QuestionId { get; set; } + /// The individual values that this enum values type can include. + [Newtonsoft.Json.JsonPropertyAttribute("values")] + public virtual System.Collections.Generic.IList Values { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for the ReviewDocument method. - public class GoogleCloudDocumentaiV1ReviewDocumentRequest : Google.Apis.Requests.IDirectResponseSchema + /// Defines properties that can be part of the entity type. + public class GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty : Google.Apis.Requests.IDirectResponseSchema { - /// The document schema of the human review task. - [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] - public virtual GoogleCloudDocumentaiV1DocumentSchema DocumentSchema { get; set; } + /// + /// The description of the property. Could be used to provide more information about the property for model + /// calls. + /// + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } - /// Whether the validation should be performed on the ad-hoc review request. - [Newtonsoft.Json.JsonPropertyAttribute("enableSchemaValidation")] - public virtual System.Nullable EnableSchemaValidation { get; set; } + /// User defined name for the property. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// An inline document proto. - [Newtonsoft.Json.JsonPropertyAttribute("inlineDocument")] - public virtual GoogleCloudDocumentaiV1Document InlineDocument { get; set; } + /// Specifies how the entity's value is obtained. + [Newtonsoft.Json.JsonPropertyAttribute("method")] + public virtual string Method { get; set; } - /// The priority of the human review task. - [Newtonsoft.Json.JsonPropertyAttribute("priority")] - public virtual string Priority { get; set; } + /// The name of the property. Follows the same guidelines as the EntityType name. + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Occurrence type limits the number of instances an entity type appears in the document. + [Newtonsoft.Json.JsonPropertyAttribute("occurrenceType")] + public virtual string OccurrenceType { get; set; } + + /// Any additional metadata about the property can be added here. + [Newtonsoft.Json.JsonPropertyAttribute("propertyMetadata")] + public virtual GoogleCloudDocumentaiV1beta3PropertyMetadata PropertyMetadata { get; set; } + + /// + /// A reference to the value type of the property. This type is subject to the same conventions as the + /// `Entity.base_types` field. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueType")] + public virtual string ValueType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the ReviewDocument method. - public class GoogleCloudDocumentaiV1ReviewDocumentResponse : Google.Apis.Requests.IDirectResponseSchema + /// Metadata for global schema behavior. + public class GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The Cloud Storage uri for the human reviewed document if the review is succeeded. - [Newtonsoft.Json.JsonPropertyAttribute("gcsDestination")] - public virtual string GcsDestination { get; set; } + /// If true, on a given page, there can be multiple `document` annotations covering it. + [Newtonsoft.Json.JsonPropertyAttribute("documentAllowMultipleLabels")] + public virtual System.Nullable DocumentAllowMultipleLabels { get; set; } - /// The reason why the review is rejected by reviewer. - [Newtonsoft.Json.JsonPropertyAttribute("rejectionReason")] - public virtual string RejectionReason { get; set; } + /// + /// If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be + /// applied to the entire document (classification). + /// + [Newtonsoft.Json.JsonPropertyAttribute("documentSplitter")] + public virtual System.Nullable DocumentSplitter { get; set; } - /// The state of the review operation. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } + /// If set, all the nested entities must be prefixed with the parents. + [Newtonsoft.Json.JsonPropertyAttribute("prefixedNamingOnProperties")] + public virtual System.Nullable PrefixedNamingOnProperties { get; set; } + + /// + /// If set, we will skip the naming format validation in the schema. So the string values in + /// `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. + /// + [Newtonsoft.Json.JsonPropertyAttribute("skipNamingValidation")] + public virtual System.Nullable SkipNamingValidation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the SetDefaultProcessorVersion method. - public class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the EnableProcessor method. + public class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for the SetDefaultProcessorVersion method. - public class GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema + /// + /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. + /// + public class GoogleCloudDocumentaiV1beta3EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Required. The resource name of child ProcessorVersion to use as default. Format: - /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` - /// - [Newtonsoft.Json.JsonPropertyAttribute("defaultProcessorVersion")] - public virtual string DefaultProcessorVersion { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the SetDefaultProcessorVersion method. - public class GoogleCloudDocumentaiV1SetDefaultProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// Metadata about an entity type. + public class GoogleCloudDocumentaiV1beta3EntityTypeMetadata : Google.Apis.Requests.IDirectResponseSchema { + /// Whether the entity type should be considered inactive. + [Newtonsoft.Json.JsonPropertyAttribute("inactive")] + public virtual System.Nullable Inactive { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The metadata that represents a processor version being created. - public class GoogleCloudDocumentaiV1TrainProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } - - /// The test dataset validation information. - [Newtonsoft.Json.JsonPropertyAttribute("testDatasetValidation")] - public virtual GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation TestDatasetValidation { get; set; } - - /// The training dataset validation information. - [Newtonsoft.Json.JsonPropertyAttribute("trainingDatasetValidation")] - public virtual GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation TrainingDatasetValidation { get; set; } + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// The dataset validation information. This includes any and all errors with documents and the dataset. - /// - public class GoogleCloudDocumentaiV1TrainProcessorVersionMetadataDatasetValidation : Google.Apis.Requests.IDirectResponseSchema + /// Response of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The total number of dataset errors. - [Newtonsoft.Json.JsonPropertyAttribute("datasetErrorCount")] - public virtual System.Nullable DatasetErrorCount { get; set; } - - /// - /// Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single - /// dataset error is terminal for training. - /// - [Newtonsoft.Json.JsonPropertyAttribute("datasetErrors")] - public virtual System.Collections.Generic.IList DatasetErrors { get; set; } - - /// The total number of document errors. - [Newtonsoft.Json.JsonPropertyAttribute("documentErrorCount")] - public virtual System.Nullable DocumentErrorCount { get; set; } - - /// - /// Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any - /// document with errors will not be used throughout training. - /// - [Newtonsoft.Json.JsonPropertyAttribute("documentErrors")] - public virtual System.Collections.Generic.IList DocumentErrors { get; set; } + /// The resource name of the created evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for the TrainProcessorVersion method. - public class GoogleCloudDocumentaiV1TrainProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema + /// Evaluation metrics, either in aggregate or about a specific entity. + public class GoogleCloudDocumentaiV1beta3EvaluationMetrics : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Optional. The processor version to use as a base for training. This processor version must be a child of - /// `parent`. Format: - /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. - /// - [Newtonsoft.Json.JsonPropertyAttribute("baseProcessorVersion")] - public virtual string BaseProcessorVersion { get; set; } + /// The calculated f1 score. + [Newtonsoft.Json.JsonPropertyAttribute("f1Score")] + public virtual System.Nullable F1Score { get; set; } - /// Options to control Custom Document Extraction (CDE) Processor. - [Newtonsoft.Json.JsonPropertyAttribute("customDocumentExtractionOptions")] - public virtual GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions CustomDocumentExtractionOptions { get; set; } + /// The amount of false negatives. + [Newtonsoft.Json.JsonPropertyAttribute("falseNegativesCount")] + public virtual System.Nullable FalseNegativesCount { get; set; } - /// Optional. The schema the processor version will be trained with. - [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] - public virtual GoogleCloudDocumentaiV1DocumentSchema DocumentSchema { get; set; } + /// The amount of false positives. + [Newtonsoft.Json.JsonPropertyAttribute("falsePositivesCount")] + public virtual System.Nullable FalsePositivesCount { get; set; } - /// Options to control foundation model tuning of a processor. - [Newtonsoft.Json.JsonPropertyAttribute("foundationModelTuningOptions")] - public virtual GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions FoundationModelTuningOptions { get; set; } + /// The amount of documents with a ground truth occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthDocumentCount")] + public virtual System.Nullable GroundTruthDocumentCount { get; set; } - /// Optional. The input data used to train the ProcessorVersion. - [Newtonsoft.Json.JsonPropertyAttribute("inputData")] - public virtual GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData InputData { get; set; } + /// The amount of occurrences in ground truth documents. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthOccurrencesCount")] + public virtual System.Nullable GroundTruthOccurrencesCount { get; set; } - /// Required. The processor version to be created. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] - public virtual GoogleCloudDocumentaiV1ProcessorVersion ProcessorVersion { get; set; } + /// The calculated precision. + [Newtonsoft.Json.JsonPropertyAttribute("precision")] + public virtual System.Nullable Precision { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The amount of documents with a predicted occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("predictedDocumentCount")] + public virtual System.Nullable PredictedDocumentCount { get; set; } - /// Options to control the training of the Custom Document Extraction (CDE) Processor. - public class GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions : Google.Apis.Requests.IDirectResponseSchema - { - /// Optional. Training method to use for CDE training. - [Newtonsoft.Json.JsonPropertyAttribute("trainingMethod")] - public virtual string TrainingMethod { get; set; } + /// The amount of occurrences in predicted documents. + [Newtonsoft.Json.JsonPropertyAttribute("predictedOccurrencesCount")] + public virtual System.Nullable PredictedOccurrencesCount { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The calculated recall. + [Newtonsoft.Json.JsonPropertyAttribute("recall")] + public virtual System.Nullable Recall { get; set; } - /// Options to control foundation model tuning of the processor. - public class GoogleCloudDocumentaiV1TrainProcessorVersionRequestFoundationModelTuningOptions : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If - /// not provided, recommended learning rate will be used. - /// - [Newtonsoft.Json.JsonPropertyAttribute("learningRateMultiplier")] - public virtual System.Nullable LearningRateMultiplier { get; set; } + /// The amount of documents that had an occurrence of this label. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentsCount")] + public virtual System.Nullable TotalDocumentsCount { get; set; } - /// - /// Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, - /// recommended steps will be used. - /// - [Newtonsoft.Json.JsonPropertyAttribute("trainSteps")] - public virtual System.Nullable TrainSteps { get; set; } + /// The amount of true positives. + [Newtonsoft.Json.JsonPropertyAttribute("truePositivesCount")] + public virtual System.Nullable TruePositivesCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The input data used to train a new ProcessorVersion. - public class GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData : Google.Apis.Requests.IDirectResponseSchema + /// Gives a short summary of an evaluation, and links to the evaluation itself. + public class GoogleCloudDocumentaiV1beta3EvaluationReference : Google.Apis.Requests.IDirectResponseSchema { - /// The documents used for testing the trained version. - [Newtonsoft.Json.JsonPropertyAttribute("testDocuments")] - public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig TestDocuments { get; set; } + /// An aggregate of the statistics for the evaluation with fuzzy matching on. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetrics")] + public virtual GoogleCloudDocumentaiV1beta3EvaluationMetrics AggregateMetrics { get; set; } - /// The documents used for training the new version. - [Newtonsoft.Json.JsonPropertyAttribute("trainingDocuments")] - public virtual GoogleCloudDocumentaiV1BatchDocumentsInputConfig TrainingDocuments { get; set; } + /// An aggregate of the statistics for the evaluation with fuzzy matching off. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetricsExact")] + public virtual GoogleCloudDocumentaiV1beta3EvaluationMetrics AggregateMetricsExact { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The resource name of the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } - /// The response for TrainProcessorVersion. - public class GoogleCloudDocumentaiV1TrainProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The resource name of the processor version produced by training. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] - public virtual string ProcessorVersion { get; set; } + /// The resource name of the Long Running Operation for the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("operation")] + public virtual string Operation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the UndeployProcessorVersion method. - public class GoogleCloudDocumentaiV1UndeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata for how this field value is extracted. + public class GoogleCloudDocumentaiV1beta3FieldExtractionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1CommonOperationMetadata CommonMetadata { get; set; } + /// Summary options config. + [Newtonsoft.Json.JsonPropertyAttribute("summaryOptions")] + public virtual GoogleCloudDocumentaiV1beta3SummaryOptions SummaryOptions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Request message for the UndeployProcessorVersion method. - public class GoogleCloudDocumentaiV1UndeployProcessorVersionRequest : Google.Apis.Requests.IDirectResponseSchema + /// Specifies all documents on Cloud Storage with a common prefix. + public class GoogleCloudDocumentaiV1beta3GcsPrefix : Google.Apis.Requests.IDirectResponseSchema { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The URI prefix. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUriPrefix")] + public virtual string GcsUriPrefix { get; set; } - /// Response message for the UndeployProcessorVersion method. - public class GoogleCloudDocumentaiV1UndeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original - /// image. - /// - public class GoogleCloudDocumentaiV1Vertex : Google.Apis.Requests.IDirectResponseSchema + /// The status of human review on a processed document. + public class GoogleCloudDocumentaiV1beta3HumanReviewStatus : Google.Apis.Requests.IDirectResponseSchema { - /// X coordinate. - [Newtonsoft.Json.JsonPropertyAttribute("x")] - public virtual System.Nullable X { get; set; } + /// + /// The name of the operation triggered by the processed document. This field is populated only when the state + /// is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation + /// returned by ReviewDocument. + /// + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewOperation")] + public virtual string HumanReviewOperation { get; set; } - /// Y coordinate (starts from the top of the image). - [Newtonsoft.Json.JsonPropertyAttribute("y")] - public virtual System.Nullable Y { get; set; } + /// The state of human review on the processing request. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// A message providing more details about the human review state. + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata of the import document operation. + public class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// Total number of documents that failed to be deleted in storage. - [Newtonsoft.Json.JsonPropertyAttribute("errorDocumentCount")] - public virtual System.Nullable ErrorDocumentCount { get; set; } + /// Validation statuses of the batch documents import config. + [Newtonsoft.Json.JsonPropertyAttribute("importConfigValidationResults")] + public virtual System.Collections.Generic.IList ImportConfigValidationResults { get; set; } /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualBatchDeleteStatuses")] - public virtual System.Collections.Generic.IList IndividualBatchDeleteStatuses { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("individualImportStatuses")] + public virtual System.Collections.Generic.IList IndividualImportStatuses { get; set; } - /// Total number of documents deleting from dataset. + /// Total number of the documents that are qualified for importing. [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] public virtual System.Nullable TotalDocumentCount { get; set; } @@ -6866,14 +9564,17 @@ public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadata : Google.A public virtual string ETag { get; set; } } - /// The status of each individual document in the batch delete process. - public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus : Google.Apis.Requests.IDirectResponseSchema + /// + /// The validation status of each import config. Status is set to an error if there are no documents to import in + /// the `import_config`, or `OK` if the operation will try to proceed with at least one document. + /// + public class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiV1beta3DocumentId DocumentId { get; set; } + /// The source Cloud Storage URI specified in the import config. + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } - /// The status of deleting the document in storage. + /// The validation status of import config. [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual GoogleRpcStatus Status { get; set; } @@ -6881,161 +9582,72 @@ public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsMetadataIndividualB public virtual string ETag { get; set; } } - /// Response of the delete documents operation. - public class GoogleCloudDocumentaiV1beta3BatchDeleteDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// The status of each individual document in the import process. + public class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus : Google.Apis.Requests.IDirectResponseSchema { + /// The source Cloud Storage URI of the document. + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } + + /// The document id of imported document if it was successful, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("outputDocumentId")] + public virtual GoogleCloudDocumentaiV1beta3DocumentId OutputDocumentId { get; set; } + + /// The status of the importing of the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for BatchProcessDocuments. - public class GoogleCloudDocumentaiV1beta3BatchProcessMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Response of the import document operation. + public class GoogleCloudDocumentaiV1beta3ImportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema { - private string _createTimeRaw; - - private object _createTime; - - /// The creation time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("createTime")] - public virtual string CreateTimeRaw - { - get => _createTimeRaw; - set - { - _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _createTimeRaw = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] - public virtual object CreateTime - { - get => _createTime; - set - { - _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _createTime = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? CreateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); - set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } - - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualProcessStatuses")] - public virtual System.Collections.Generic.IList IndividualProcessStatuses { get; set; } - - /// The state of the current batch processing. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } - - /// - /// A message providing more details about the current state of processing. For example, the error message if - /// the operation is failed. - /// - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } - - private string _updateTimeRaw; - - private object _updateTime; - - /// The last update time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] - public virtual string UpdateTimeRaw - { - get => _updateTimeRaw; - set - { - _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _updateTimeRaw = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] - public virtual object UpdateTime - { - get => _updateTime; - set - { - _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _updateTime = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); - set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of a each individual document in the batch process. - public class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the ImportProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// - /// The name of the operation triggered by the processed document. If the human review process isn't triggered, - /// this field will be empty. It has the same response type and metadata as the long-running operation returned - /// by the ReviewDocument method. - /// - [Newtonsoft.Json.JsonPropertyAttribute("humanReviewOperation")] - public virtual string HumanReviewOperation { get; set; } - - /// The status of human review on the processed document. - [Newtonsoft.Json.JsonPropertyAttribute("humanReviewStatus")] - public virtual GoogleCloudDocumentaiV1beta3HumanReviewStatus HumanReviewStatus { get; set; } - - /// - /// The source of the document, same as the input_gcs_source field in the request when the batch process - /// started. - /// - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } - - /// - /// The Cloud Storage output destination (in the request as DocumentOutputConfig.GcsOutputConfig.gcs_uri) of the - /// processed document if it was successful, otherwise empty. - /// - [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] - public virtual string OutputGcsDestination { get; set; } - - /// The status processing the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The basic metadata for the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for BatchProcessDocuments. - public class GoogleCloudDocumentaiV1beta3BatchProcessResponse : Google.Apis.Requests.IDirectResponseSchema - { + /// The response message for the ImportProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The destination processor version name. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The common metadata for long running operations. - public class GoogleCloudDocumentaiV1beta3CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// + /// The first-class citizen for Document AI. Each processor defines how to extract structural information from a + /// document. + /// + public class GoogleCloudDocumentaiV1beta3Processor : Google.Apis.Requests.IDirectResponseSchema { + /// + /// Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version + /// Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} + /// + [Newtonsoft.Json.JsonPropertyAttribute("activeSchemaVersion")] + public virtual string ActiveSchemaVersion { get; set; } + private string _createTimeRaw; private object _createTime; - /// The creation time of the operation. + /// Output only. The time the processor was created. [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual string CreateTimeRaw { @@ -7068,79 +9680,36 @@ public virtual System.DateTimeOffset? CreateTimeDateTimeOffset set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); } - /// A related resource to this operation. - [Newtonsoft.Json.JsonPropertyAttribute("resource")] - public virtual string Resource { get; set; } - - /// The state of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } - - /// A message providing more details about the current state of processing. - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } - - private string _updateTimeRaw; - - private object _updateTime; - - /// The last update time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] - public virtual string UpdateTimeRaw - { - get => _updateTimeRaw; - set - { - _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _updateTimeRaw = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] - public virtual object UpdateTime - { - get => _updateTime; - set - { - _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _updateTime = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); - set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The default processor version. + [Newtonsoft.Json.JsonPropertyAttribute("defaultProcessorVersion")] + public virtual string DefaultProcessorVersion { get; set; } - /// A singleton resource under a Processor which configures a collection of documents. - public class GoogleCloudDocumentaiV1beta3Dataset : Google.Apis.Requests.IDirectResponseSchema - { - /// Optional. Deprecated. Warehouse-based dataset configuration is not supported. - [Newtonsoft.Json.JsonPropertyAttribute("documentWarehouseConfig")] - public virtual GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig DocumentWarehouseConfig { get; set; } + /// The display name of the processor. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } /// - /// Optional. User-managed Cloud Storage dataset configuration. Use this configuration if the dataset documents - /// are stored under a user-managed Cloud Storage location. + /// The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK + /// scenarios. /// - [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedConfig")] - public virtual GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig GcsManagedConfig { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } /// - /// Dataset resource name. Format: `projects/{project}/locations/{location}/processors/{processor}/dataset` + /// Output only. Immutable. The resource name of the processor. Format: + /// `projects/{project}/locations/{location}/processors/{processor}` /// [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } + /// Output only. Immutable. The http endpoint that can be called to invoke processing. + [Newtonsoft.Json.JsonPropertyAttribute("processEndpoint")] + public virtual string ProcessEndpoint { get; set; } + + /// Output only. The processor version aliases. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersionAliases")] + public virtual System.Collections.Generic.IList ProcessorVersionAliases { get; set; } + /// Output only. Reserved for future use. [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] public virtual System.Nullable SatisfiesPzi { get; set; } @@ -7149,337 +9718,247 @@ public class GoogleCloudDocumentaiV1beta3Dataset : Google.Apis.Requests.IDirectR [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] public virtual System.Nullable SatisfiesPzs { get; set; } - /// - /// Optional. A lightweight indexing source with low latency and high reliability, but lacking advanced features - /// like CMEK and content-based search. - /// - [Newtonsoft.Json.JsonPropertyAttribute("spannerIndexingConfig")] - public virtual GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig SpannerIndexingConfig { get; set; } - - /// Required. State of the dataset. Ignored when updating dataset. + /// Output only. The state of the processor. [Newtonsoft.Json.JsonPropertyAttribute("state")] public virtual string State { get; set; } /// - /// Optional. Unmanaged dataset configuration. Use this configuration if the dataset documents are managed by - /// the document service internally (not user-managed). - /// - [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDatasetConfig")] - public virtual GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig UnmanagedDatasetConfig { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Configuration specific to the Document AI Warehouse-based implementation. - public class GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig : Google.Apis.Requests.IDirectResponseSchema - { - /// Output only. The collection in Document AI Warehouse associated with the dataset. - [Newtonsoft.Json.JsonPropertyAttribute("collection")] - public virtual string Collection { get; set; } - - /// Output only. The schema in Document AI Warehouse associated with the dataset. - [Newtonsoft.Json.JsonPropertyAttribute("schema")] - public virtual string Schema { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Configuration specific to the Cloud Storage-based implementation. - public class GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig : Google.Apis.Requests.IDirectResponseSchema - { - /// - /// Required. The Cloud Storage URI (a directory) where the documents belonging to the dataset must be stored. + /// The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see + /// FetchProcessorTypes. /// - [Newtonsoft.Json.JsonPropertyAttribute("gcsPrefix")] - public virtual GoogleCloudDocumentaiV1beta3GcsPrefix GcsPrefix { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Configuration specific to spanner-based indexing. - public class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// Configuration specific to an unmanaged dataset. - public class GoogleCloudDocumentaiV1beta3DatasetUnmanagedDatasetConfig : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// The long-running operation metadata for the DeleteProcessor method. - public class GoogleCloudDocumentaiV1beta3DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DeleteProcessorVersion method. - public class GoogleCloudDocumentaiV1beta3DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// + /// A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained + /// by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its + /// document-processing behavior is defined by that version. + /// + public class GoogleCloudDocumentaiV1beta3ProcessorVersion : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } + private string _createTimeRaw; - /// The long-running operation metadata for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiV1beta3DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } + private object _createTime; - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Output only. The time the processor version was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } - /// Response message for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiV1beta3DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } - /// The long-running operation metadata for the DisableProcessor method. - public class GoogleCloudDocumentaiV1beta3DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Output only. If set, information about the eventual deprecation of this version. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationInfo")] + public virtual GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo DeprecationInfo { get; set; } - /// - /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. - /// - public class GoogleCloudDocumentaiV1beta3DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The display name of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// Document Identifier. - public class GoogleCloudDocumentaiV1beta3DocumentId : Google.Apis.Requests.IDirectResponseSchema - { - /// A document id within user-managed Cloud Storage. - [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedDocId")] - public virtual GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId GcsManagedDocId { get; set; } + /// Output only. The schema of the processor version. Describes the output. + [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] + public virtual GoogleCloudDocumentaiV1beta3DocumentSchema DocumentSchema { get; set; } - /// Points to a specific revision of the document if set. - [Newtonsoft.Json.JsonPropertyAttribute("revisionRef")] - public virtual GoogleCloudDocumentaiV1beta3RevisionRef RevisionRef { get; set; } + /// Output only. Information about Generative AI model-based processor versions. + [Newtonsoft.Json.JsonPropertyAttribute("genAiModelInfo")] + public virtual GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo GenAiModelInfo { get; set; } - /// A document id within unmanaged dataset. - [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDocId")] - public virtual GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId UnmanagedDocId { get; set; } + /// Output only. Denotes that this `ProcessorVersion` is managed by Google. + [Newtonsoft.Json.JsonPropertyAttribute("googleManaged")] + public virtual System.Nullable GoogleManaged { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Output only. The KMS key name used for encryption. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } - /// - /// Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. - /// - public class GoogleCloudDocumentaiV1beta3DocumentIdGCSManagedDocumentId : Google.Apis.Requests.IDirectResponseSchema - { - /// Id of the document (indexed) managed by Content Warehouse. - [Newtonsoft.Json.JsonPropertyAttribute("cwDocId")] - public virtual string CwDocId { get; set; } + /// Output only. The KMS key version with which data is encrypted. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyVersionName")] + public virtual string KmsKeyVersionName { get; set; } - /// Required. The Cloud Storage URI where the actual document is stored. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] - public virtual string GcsUri { get; set; } + /// Output only. The most recently invoked evaluation for the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("latestEvaluation")] + public virtual GoogleCloudDocumentaiV1beta3EvaluationReference LatestEvaluation { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Output only. The model type of this processor version. + [Newtonsoft.Json.JsonPropertyAttribute("modelType")] + public virtual string ModelType { get; set; } - /// Identifies a document uniquely within the scope of a dataset in unmanaged option. - public class GoogleCloudDocumentaiV1beta3DocumentIdUnmanagedDocumentId : Google.Apis.Requests.IDirectResponseSchema - { - /// Required. The id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("docId")] - public virtual string DocId { get; set; } + /// + /// Identifier. The resource name of the processor version. Format: + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] + public virtual System.Nullable SatisfiesPzi { get; set; } - /// The long-running operation metadata for the EnableProcessor method. - public class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] + public virtual System.Nullable SatisfiesPzs { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Output only. The state of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } - /// - /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. - /// - public class GoogleCloudDocumentaiV1beta3EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema - { /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Contains the alias and the aliased resource name of processor version. + public class GoogleCloudDocumentaiV1beta3ProcessorVersionAlias : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The alias in the form of `processor_version` resource name. + [Newtonsoft.Json.JsonPropertyAttribute("alias")] + public virtual string Alias { get; set; } + + /// The resource name of aliased processor version. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// Information about the upcoming deprecation of this processor version. + public class GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The resource name of the created evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] - public virtual string Evaluation { get; set; } + private string _deprecationTimeRaw; - /// The ETag of the item. - public virtual string ETag { get; set; } - } + private object _deprecationTime; - /// Specifies all documents on Cloud Storage with a common prefix. - public class GoogleCloudDocumentaiV1beta3GcsPrefix : Google.Apis.Requests.IDirectResponseSchema - { - /// The URI prefix. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUriPrefix")] - public virtual string GcsUriPrefix { get; set; } + /// The time at which this processor version will be deprecated. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationTime")] + public virtual string DeprecationTimeRaw + { + get => _deprecationTimeRaw; + set + { + _deprecationTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _deprecationTimeRaw = value; + } + } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use DeprecationTimeDateTimeOffset instead.")] + public virtual object DeprecationTime + { + get => _deprecationTime; + set + { + _deprecationTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _deprecationTime = value; + } + } - /// The status of human review on a processed document. - public class GoogleCloudDocumentaiV1beta3HumanReviewStatus : Google.Apis.Requests.IDirectResponseSchema - { /// - /// The name of the operation triggered by the processed document. This field is populated only when the state - /// is `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as the long-running operation - /// returned by ReviewDocument. + /// representation of . /// - [Newtonsoft.Json.JsonPropertyAttribute("humanReviewOperation")] - public virtual string HumanReviewOperation { get; set; } - - /// The state of human review on the processing request. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? DeprecationTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(DeprecationTimeRaw); + set => DeprecationTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } - /// A message providing more details about the human review state. - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } + /// If set, the processor version that will be used as a replacement. + [Newtonsoft.Json.JsonPropertyAttribute("replacementProcessorVersion")] + public virtual string ReplacementProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the import document operation. - public class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Information about Generative AI model-based processor versions. + public class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// Validation statuses of the batch documents import config. - [Newtonsoft.Json.JsonPropertyAttribute("importConfigValidationResults")] - public virtual System.Collections.Generic.IList ImportConfigValidationResults { get; set; } - - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualImportStatuses")] - public virtual System.Collections.Generic.IList IndividualImportStatuses { get; set; } + /// Information for a custom Generative AI model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customGenAiModelInfo")] + public virtual GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo CustomGenAiModelInfo { get; set; } - /// Total number of the documents that are qualified for importing. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } + /// Information for a pretrained Google-managed foundation model. + [Newtonsoft.Json.JsonPropertyAttribute("foundationGenAiModelInfo")] + public virtual GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo FoundationGenAiModelInfo { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// The validation status of each import config. Status is set to an error if there are no documents to import in - /// the `import_config`, or `OK` if the operation will try to proceed with at least one document. + /// Information for a custom Generative AI model created by the user. These are created with `Create New Version` in + /// either the `Call foundation model` or `Fine tuning` tabs. /// - public class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataImportConfigValidationResult : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The source Cloud Storage URI specified in the import config. - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } + /// The base processor version ID for the custom model. + [Newtonsoft.Json.JsonPropertyAttribute("baseProcessorVersionId")] + public virtual string BaseProcessorVersionId { get; set; } - /// The validation status of import config. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The type of custom model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customModelType")] + public virtual string CustomModelType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the import process. - public class GoogleCloudDocumentaiV1beta3ImportDocumentsMetadataIndividualImportStatus : Google.Apis.Requests.IDirectResponseSchema + /// Information for a pretrained Google-managed foundation model. + public class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The source Cloud Storage URI of the document. - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } - - /// The document id of imported document if it was successful, otherwise empty. - [Newtonsoft.Json.JsonPropertyAttribute("outputDocumentId")] - public virtual GoogleCloudDocumentaiV1beta3DocumentId OutputDocumentId { get; set; } - - /// The status of the importing of the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// Whether finetuning is allowed for this base processor version. + [Newtonsoft.Json.JsonPropertyAttribute("finetuningAllowed")] + public virtual System.Nullable FinetuningAllowed { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The minimum number of labeled documents in the training dataset required for finetuning. + [Newtonsoft.Json.JsonPropertyAttribute("minTrainLabeledDocuments")] + public virtual System.Nullable MinTrainLabeledDocuments { get; set; } - /// Response of the import document operation. - public class GoogleCloudDocumentaiV1beta3ImportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema - { /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the ImportProcessorVersion method. - public class GoogleCloudDocumentaiV1beta3ImportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata about a property. + public class GoogleCloudDocumentaiV1beta3PropertyMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata for the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Field extraction metadata on the property. + [Newtonsoft.Json.JsonPropertyAttribute("fieldExtractionMetadata")] + public virtual GoogleCloudDocumentaiV1beta3FieldExtractionMetadata FieldExtractionMetadata { get; set; } - /// The response message for the ImportProcessorVersion method. - public class GoogleCloudDocumentaiV1beta3ImportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The destination processor version name. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] - public virtual string ProcessorVersion { get; set; } + /// Whether the property should be considered as "inactive". + [Newtonsoft.Json.JsonPropertyAttribute("inactive")] + public virtual System.Nullable Inactive { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } @@ -7645,6 +10124,21 @@ public class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionResponse : Go public virtual string ETag { get; set; } } + /// Metadata for document summarization. + public class GoogleCloudDocumentaiV1beta3SummaryOptions : Google.Apis.Requests.IDirectResponseSchema + { + /// The format the summary should be in. + [Newtonsoft.Json.JsonPropertyAttribute("format")] + public virtual string Format { get; set; } + + /// How long the summary should be. + [Newtonsoft.Json.JsonPropertyAttribute("length")] + public virtual string Length { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The metadata that represents a processor version being created. public class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { @@ -7734,6 +10228,17 @@ public class GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata : Google public virtual string ETag { get; set; } } + /// The long-running operation metadata for the UpdateProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata for the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The response message for Locations.ListLocations. public class GoogleCloudLocationListLocationsResponse : Google.Apis.Requests.IDirectResponseSchema { diff --git a/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.csproj b/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.csproj index c75a44b3b51..0a320ec3f94 100644 --- a/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.csproj +++ b/Src/Generated/Google.Apis.Document.v1/Google.Apis.Document.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.Document.v1 Client Library - 1.72.0.3938 + 1.72.0.3945 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.cs b/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.cs index 3855fc5fc02..0495d81592c 100644 --- a/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.cs +++ b/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.cs @@ -295,6 +295,7 @@ public LocationsResource(Google.Apis.Services.IClientService service) Operations = new OperationsResource(service); ProcessorTypes = new ProcessorTypesResource(service); Processors = new ProcessorsResource(service); + Schemas = new SchemasResource(service); } /// Gets the Operations resource. @@ -2680,558 +2681,1866 @@ protected override void InitParameters() } } - /// - /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. - /// - /// - /// Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. - /// - public virtual FetchProcessorTypesRequest FetchProcessorTypes(string parent) - { - return new FetchProcessorTypesRequest(this.service, parent); - } + /// Gets the Schemas resource. + public virtual SchemasResource Schemas { get; } - /// - /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. - /// - public class FetchProcessorTypesRequest : DocumentBaseServiceRequest + /// The "schemas" collection of methods. + public class SchemasResource { - /// Constructs a new FetchProcessorTypes request. - public FetchProcessorTypesRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + private const string Resource = "schemas"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public SchemasResource(Google.Apis.Services.IClientService service) { - Parent = parent; - InitParameters(); + this.service = service; + SchemaVersions = new SchemaVersionsResource(service); } - /// - /// Required. The location of processor types to list. Format: - /// `projects/{project}/locations/{location}`. - /// - [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Parent { get; private set; } + /// Gets the SchemaVersions resource. + public virtual SchemaVersionsResource SchemaVersions { get; } - /// Gets the method name. - public override string MethodName => "fetchProcessorTypes"; + /// The "schemaVersions" collection of methods. + public class SchemaVersionsResource + { + private const string Resource = "schemaVersions"; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; - /// Gets the REST path. - public override string RestPath => "v1beta3/{+parent}:fetchProcessorTypes"; + /// Constructs a new resource. + public SchemaVersionsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } - /// Initializes FetchProcessorTypes parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + /// Creates a schema version. + /// The body of the request. + /// + /// Required. The parent (project and location) under which to create the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual CreateRequest Create(Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3SchemaVersion body, string parent) { - Name = "parent", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + return new CreateRequest(this.service, body, parent); + } - /// Gets information about a location. - /// Resource name for the location. - public virtual GetRequest Get(string name) - { - return new GetRequest(this.service, name); - } + /// Creates a schema version. + public class CreateRequest : DocumentBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3SchemaVersion body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } - /// Gets information about a location. - public class GetRequest : DocumentBaseServiceRequest - { - /// Constructs a new Get request. - public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Required. The parent (project and location) under which to create the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } - /// Resource name for the location. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets or sets the body of this request. + Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3SchemaVersion Body { get; set; } - /// Gets the method name. - public override string MethodName => "get"; + /// Returns the body of the request. + protected override object GetBody() => Body; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + /// Gets the method name. + public override string MethodName => "create"; - /// Gets the REST path. - public override string RestPath => "v1beta3/{+name}"; + /// Gets the HTTP method. + public override string HttpMethod => "POST"; - /// Initializes Get parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + /// Gets the REST path. + public override string RestPath => "v1beta3/{+parent}/schemaVersions"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + } + } + + /// Deletes a schema version. + /// + /// Required. The name of the SchemaVersion to delete. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + public virtual DeleteRequest Delete(string name) { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+/locations/[^/]+$", - }); - } - } + return new DeleteRequest(this.service, name); + } - /// Lists information about the supported locations for this service. - /// The resource that owns the locations collection, if applicable. - public virtual ListRequest List(string name) - { - return new ListRequest(this.service, name); - } + /// Deletes a schema version. + public class DeleteRequest : DocumentBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } - /// Lists information about the supported locations for this service. - public class ListRequest : DocumentBaseServiceRequest - { - /// Constructs a new List request. - public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) - { - Name = name; - InitParameters(); - } + /// + /// Required. The name of the SchemaVersion to delete. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } - /// The resource that owns the locations collection, if applicable. - [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] - public virtual string Name { get; private set; } + /// Gets the method name. + public override string MethodName => "delete"; - /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. - /// - [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] - public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; - /// - /// 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). - /// - [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] - public virtual string Filter { get; set; } + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}"; - /// - /// The maximum number of results to return. If not set, the service selects a default. - /// - [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] - public virtual System.Nullable PageSize { get; set; } + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + }); + } + } + + /// Generates a schema version. + /// The body of the request. + /// + /// Required. The parent (project, location and schema) under which to generate the SchemaVersion. + /// Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual GenerateRequest Generate(Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest body, string parent) + { + return new GenerateRequest(this.service, body, parent); + } + + /// Generates a schema version. + public class GenerateRequest : DocumentBaseServiceRequest + { + /// Constructs a new Generate request. + public GenerateRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The parent (project, location and schema) under which to generate the + /// SchemaVersion. Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "generate"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+parent}/schemaVersions:generate"; + + /// Initializes Generate parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + } + } + + /// Gets a schema version. + /// + /// Required. The name of the SchemaVersion to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a schema version. + public class GetRequest : DocumentBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the SchemaVersion to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + }); + } + } + + /// Lists SchemaVersions. + /// + /// Required. Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists SchemaVersions. + public class ListRequest : DocumentBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. Format: `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The maximum number of SchemaVersion to return. If unspecified, at most `10` + /// SchemaVersion will be returned. The maximum value is `20`. Values above `20` will be coerced + /// to `20`. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. We will return the SchemaVersion sorted by creation time. The page token will + /// point to the next SchemaVersion. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+parent}/schemaVersions"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a schema version. Editable fields are: - `display_name` - `labels` + /// The body of the request. + /// + /// Identifier. The resource name of the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + public virtual PatchRequest Patch(Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3SchemaVersion body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a schema version. Editable fields are: - `display_name` - `labels` + public class PatchRequest : DocumentBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3SchemaVersion body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. The resource name of the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. The update mask to apply to the resource. **Note:** Only the following fields can + /// be updated: - display_name. - labels. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3SchemaVersion Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+/schemaVersions/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// Creates a schema. + /// The body of the request. + /// + /// Required. The parent (project and location) under which to create the Schema. Format: + /// `projects/{project}/locations/{location}` + /// + public virtual CreateRequest Create(Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3NextSchema body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a schema. + public class CreateRequest : DocumentBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3NextSchema body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The parent (project and location) under which to create the Schema. Format: + /// `projects/{project}/locations/{location}` + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3NextSchema Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "create"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+parent}/schemas"; + + /// Initializes Create parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Deletes a schema. + /// + /// Required. The name of the Schema to be deleted. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a schema. + public class DeleteRequest : DocumentBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Schema to be deleted. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. If set to true, any child resources of this Schema will also be deleted. (Otherwise, + /// the request will only work if the Schema has no child resources.) + /// + [Google.Apis.Util.RequestParameterAttribute("force", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Force { get; set; } + + /// Gets the method name. + public override string MethodName => "delete"; + + /// Gets the HTTP method. + public override string HttpMethod => "DELETE"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}"; + + /// Initializes Delete parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + RequestParameters.Add("force", new Google.Apis.Discovery.Parameter + { + Name = "force", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets a schema. + /// + /// Required. The name of the Schema to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets a schema. + public class GetRequest : DocumentBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The name of the Schema to get. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + } + } + + /// Lists Schemas. + /// Required. Format: `projects/{project}/locations/{location}` + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists Schemas. + public class ListRequest : DocumentBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// Required. Format: `projects/{project}/locations/{location}` + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. The maximum number of schema groups to return. If unspecified, at most `10` Schema + /// will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// Optional. We will return the schema groups sorted by creation time. The page token will point to + /// the next Schema. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+parent}/schemas"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Updates a schema. Editable fields are: - `display_name` - `labels` + /// The body of the request. + /// + /// Identifier. The resource name of the Schema. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + public virtual PatchRequest Patch(Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3NextSchema body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates a schema. Editable fields are: - `display_name` - `labels` + public class PatchRequest : DocumentBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3NextSchema body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Identifier. The resource name of the Schema. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. The update mask to apply to the resource. **Note:** Only the following fields can be + /// updated: - display_name. - labels. + /// + [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] + public virtual object UpdateMask { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.Document.v1beta3.Data.GoogleCloudDocumentaiV1beta3NextSchema Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "patch"; + + /// Gets the HTTP method. + public override string HttpMethod => "PATCH"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}"; + + /// Initializes Patch parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/schemas/[^/]+$", + }); + RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter + { + Name = "updateMask", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + + /// + /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. + /// + /// + /// Required. The location of processor types to list. Format: `projects/{project}/locations/{location}`. + /// + public virtual FetchProcessorTypesRequest FetchProcessorTypes(string parent) + { + return new FetchProcessorTypesRequest(this.service, parent); + } + + /// + /// Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated. + /// + public class FetchProcessorTypesRequest : DocumentBaseServiceRequest + { + /// Constructs a new FetchProcessorTypes request. + public FetchProcessorTypesRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The location of processor types to list. Format: + /// `projects/{project}/locations/{location}`. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Gets the method name. + public override string MethodName => "fetchProcessorTypes"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+parent}:fetchProcessorTypes"; + + /// Initializes FetchProcessorTypes parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter + { + Name = "parent", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Gets information about a location. + /// Resource name for the location. + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets information about a location. + public class GetRequest : DocumentBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// Resource name for the location. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// Gets the method name. + public override string MethodName => "get"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}"; + + /// Initializes Get parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+$", + }); + } + } + + /// Lists information about the supported locations for this service. + /// The resource that owns the locations collection, if applicable. + public virtual ListRequest List(string name) + { + return new ListRequest(this.service, name); + } + + /// Lists information about the supported locations for this service. + public class ListRequest : DocumentBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// The resource that owns the locations collection, if applicable. + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is + /// primarily intended for internal usage. + /// + [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] + public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } + + /// + /// 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). + /// + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// The maximum number of results to return. If not set, the service selects a default. + /// + [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PageSize { get; set; } + + /// + /// A page token received from the `next_page_token` field in the response. Send that page token to + /// receive the subsequent page. + /// + [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] + public virtual string PageToken { get; set; } + + /// Gets the method name. + public override string MethodName => "list"; + + /// Gets the HTTP method. + public override string HttpMethod => "GET"; + + /// Gets the REST path. + public override string RestPath => "v1beta3/{+name}/locations"; + + /// Initializes List parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+$", + }); + RequestParameters.Add("extraLocationTypes", new Google.Apis.Discovery.Parameter + { + Name = "extraLocationTypes", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter + { + Name = "filter", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter + { + Name = "pageSize", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter + { + Name = "pageToken", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + } + } +} +namespace Google.Apis.Document.v1beta3.Data +{ + /// + /// Definition of the validation rules. Those are the input to the validator logic and they are used to validate a + /// document. + /// + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInput : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("validationRules")] + public virtual System.Collections.Generic.IList ValidationRules { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("childAlignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule ChildAlignmentRule { get; set; } + + /// Description of the validation rule. This has no use but for documentation + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("entityAlignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule EntityAlignmentRule { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("fieldOccurrences")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences FieldOccurrences { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("fieldRegex")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex FieldRegex { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("formValidation")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation FormValidation { get; set; } + + /// Name of the validation rule. + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing + /// y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by + /// comparing x-coordinates of bounding box centers. + /// + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("alignmentType")] + public virtual string AlignmentType { get; set; } + + /// The tolerance to use when comparing coordinates. + [Newtonsoft.Json.JsonPropertyAttribute("tolerance")] + public virtual System.Nullable Tolerance { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A rule that aligns specified child fields with a parent field. + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + { + /// The alignment rule to apply to the child fields. + [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } + + /// The child fields to be aligned within the parent field. + [Newtonsoft.Json.JsonPropertyAttribute("childFields")] + public virtual System.Collections.Generic.IList ChildFields { get; set; } + + /// The full path of the parent field. + [Newtonsoft.Json.JsonPropertyAttribute("parentField")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField ParentField { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The constant value used in the validation rules. + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("floatValue")] + public virtual System.Nullable FloatValue { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A rule that aligns specified fields with each other. + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + { + /// The alignment rule to apply to the fields. + [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } + + /// The fields to be aligned. + [Newtonsoft.Json.JsonPropertyAttribute("fields")] + public virtual System.Collections.Generic.IList Fields { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Default value to use if the field is not present. If the field is missing and the default value is not set, + /// the validation run as if the field is not present in the validation logic. + /// + [Newtonsoft.Json.JsonPropertyAttribute("defaultValue")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant DefaultValue { get; set; } + + /// + /// The field name to validate. This can be a simple field name or a nested field one using the ':' (meant as an + /// aggregator) or '*' (meant as foreach) operators. + /// + [Newtonsoft.Json.JsonPropertyAttribute("fieldName")] + public virtual string FieldName { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("field")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("maxOccurrences")] + public virtual System.Nullable MaxOccurrences { get; set; } + + /// + /// Min and max occurrences of the field. If not set, there is limit set. The defined interval is a + /// closed-closed interval, i.e. [min, max]. + /// + [Newtonsoft.Json.JsonPropertyAttribute("minOccurrences")] + public virtual System.Nullable MinOccurrences { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("field")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } + + /// Python regex to validate the field values. + [Newtonsoft.Json.JsonPropertyAttribute("pattern")] + public virtual string Pattern { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("leftOperand")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation LeftOperand { get; set; } + + [Newtonsoft.Json.JsonPropertyAttribute("rightOperand")] + public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation RightOperand { get; set; } + + /// The relational operator to be applied to the operands. + [Newtonsoft.Json.JsonPropertyAttribute("validationOperator")] + public virtual string ValidationOperator { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation : Google.Apis.Requests.IDirectResponseSchema + { + /// A list of constants to be used as operands. + [Newtonsoft.Json.JsonPropertyAttribute("constants")] + public virtual System.Collections.Generic.IList Constants { get; set; } + + /// A list of fields to be used as operands. + [Newtonsoft.Json.JsonPropertyAttribute("fields")] + public virtual System.Collections.Generic.IList Fields { get; set; } + + /// The operation type to be applied to all the operands. + [Newtonsoft.Json.JsonPropertyAttribute("operationType")] + public virtual string OperationType { get; set; } + + /// A list of recursive operations to be used as operands. + [Newtonsoft.Json.JsonPropertyAttribute("operations")] + public virtual System.Collections.Generic.IList Operations { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata of the auto-labeling documents operation. + public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The list of individual auto-labeling statuses of the dataset documents. + [Newtonsoft.Json.JsonPropertyAttribute("individualAutoLabelStatuses")] + public virtual System.Collections.Generic.IList IndividualAutoLabelStatuses { get; set; } + + /// Total number of the auto-labeling documents. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of individual documents in the auto-labeling process. + public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the auto-labeled document. This will replace the gcs_uri. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of the document auto-labeling. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The response proto of AutoLabelDocuments method. + public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// Total number of documents that failed to be deleted in storage. + [Newtonsoft.Json.JsonPropertyAttribute("errorDocumentCount")] + public virtual System.Nullable ErrorDocumentCount { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualBatchDeleteStatuses")] + public virtual System.Collections.Generic.IList IndividualBatchDeleteStatuses { get; set; } + + /// Total number of documents deleting from dataset. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the batch delete process. + public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of deleting the document in storage. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the delete documents operation. + public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The destination dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("destDatasetType")] + public virtual string DestDatasetType { get; set; } + + /// The destination dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("destSplitType")] + public virtual string DestSplitType { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualBatchMoveStatuses")] + public virtual System.Collections.Generic.IList IndividualBatchMoveStatuses { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the batch move process. + public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of moving the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the batch move documents operation. + public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualBatchUpdateStatuses")] + public virtual System.Collections.Generic.IList IndividualBatchUpdateStatuses { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The status of each individual document in the batch update process. + public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The document id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("documentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + + /// The status of updating the document in storage. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response of the batch update documents operation. + public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The common metadata for long running operations. + public class GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + private string _createTimeRaw; + + private object _createTime; + + /// The creation time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// A related resource to this operation. + [Newtonsoft.Json.JsonPropertyAttribute("resource")] + public virtual string Resource { get; set; } + + /// The state of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } - /// - /// A page token received from the `next_page_token` field in the response. Send that page token to - /// receive the subsequent page. - /// - [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] - public virtual string PageToken { get; set; } + /// A message providing more details about the current state of processing. + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } - /// Gets the method name. - public override string MethodName => "list"; + private string _updateTimeRaw; - /// Gets the HTTP method. - public override string HttpMethod => "GET"; + private object _updateTime; - /// Gets the REST path. - public override string RestPath => "v1beta3/{+name}/locations"; + /// The last update time of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] + public virtual string UpdateTimeRaw + { + get => _updateTimeRaw; + set + { + _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _updateTimeRaw = value; + } + } - /// Initializes List parameter list. - protected override void InitParameters() - { - base.InitParameters(); - RequestParameters.Add("name", new Google.Apis.Discovery.Parameter - { - Name = "name", - IsRequired = true, - ParameterType = "path", - DefaultValue = null, - Pattern = @"^projects/[^/]+$", - }); - RequestParameters.Add("extraLocationTypes", new Google.Apis.Discovery.Parameter - { - Name = "extraLocationTypes", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter - { - Name = "filter", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter - { - Name = "pageSize", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter - { - Name = "pageToken", - IsRequired = false, - ParameterType = "query", - DefaultValue = null, - Pattern = null, - }); - } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] + public virtual object UpdateTime + { + get => _updateTime; + set + { + _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _updateTime = value; } } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); + set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } } -} -namespace Google.Apis.Document.v1beta3.Data -{ - /// - /// Definition of the validation rules. Those are the input to the validator logic and they are used to validate a - /// document. - /// - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInput : Google.Apis.Requests.IDirectResponseSchema + + /// The long-running operation metadata for the CreateLabelerPool method. + public class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("validationRules")] - public virtual System.Collections.Generic.IList ValidationRules { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRule : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for DeleteLabelerPool. + public class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("childAlignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule ChildAlignmentRule { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// Description of the validation rule. This has no use but for documentation - [Newtonsoft.Json.JsonPropertyAttribute("description")] - public virtual string Description { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - [Newtonsoft.Json.JsonPropertyAttribute("entityAlignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule EntityAlignmentRule { get; set; } + /// The long-running operation metadata for the DeleteProcessor method. + public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - [Newtonsoft.Json.JsonPropertyAttribute("fieldOccurrences")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences FieldOccurrences { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - [Newtonsoft.Json.JsonPropertyAttribute("fieldRegex")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex FieldRegex { get; set; } + /// The long-running operation metadata for the DeleteProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - [Newtonsoft.Json.JsonPropertyAttribute("formValidation")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation FormValidation { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// Name of the validation rule. - [Newtonsoft.Json.JsonPropertyAttribute("name")] - public virtual string Name { get; set; } + /// The long-running operation metadata for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for the DeployProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The long-running operation metadata for the DisableProcessor method. + public class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// A rule for checking field alignment. Horizontal alignment checks if fields are on the same row by comparing - /// y-coordinates of bounding box centers, while vertical alignment checks if fields are on the same column by - /// comparing x-coordinates of bounding box centers. + /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. /// - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("alignmentType")] - public virtual string AlignmentType { get; set; } + /// The ETag of the item. + public virtual string ETag { get; set; } + } - /// The tolerance to use when comparing coordinates. - [Newtonsoft.Json.JsonPropertyAttribute("tolerance")] - public virtual System.Nullable Tolerance { get; set; } + /// Document Identifier. + public class GoogleCloudDocumentaiUiv1beta3DocumentId : Google.Apis.Requests.IDirectResponseSchema + { + /// A document id within user-managed Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedDocId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId GcsManagedDocId { get; set; } + + /// Points to a specific revision of the document if set. + [Newtonsoft.Json.JsonPropertyAttribute("revisionRef")] + public virtual GoogleCloudDocumentaiUiv1beta3RevisionRef RevisionRef { get; set; } + + /// A document id within unmanaged dataset. + [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDocId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId UnmanagedDocId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A rule that aligns specified child fields with a parent field. - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleChildAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + /// + /// Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. + /// + public class GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId : Google.Apis.Requests.IDirectResponseSchema { - /// The alignment rule to apply to the child fields. - [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } - - /// The child fields to be aligned within the parent field. - [Newtonsoft.Json.JsonPropertyAttribute("childFields")] - public virtual System.Collections.Generic.IList ChildFields { get; set; } + /// Id of the document (indexed) managed by Content Warehouse. + [Newtonsoft.Json.JsonPropertyAttribute("cwDocId")] + public virtual string CwDocId { get; set; } - /// The full path of the parent field. - [Newtonsoft.Json.JsonPropertyAttribute("parentField")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField ParentField { get; set; } + /// Required. The Cloud Storage URI where the actual document is stored. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The constant value used in the validation rules. - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant : Google.Apis.Requests.IDirectResponseSchema + /// Identifies a document uniquely within the scope of a dataset in unmanaged option. + public class GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("floatValue")] - public virtual System.Nullable FloatValue { get; set; } + /// Required. The id of the document. + [Newtonsoft.Json.JsonPropertyAttribute("docId")] + public virtual string DocId { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// A rule that aligns specified fields with each other. - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleEntityAlignmentRule : Google.Apis.Requests.IDirectResponseSchema + /// The schema defines the output of the processed document by a processor. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchema : Google.Apis.Requests.IDirectResponseSchema { - /// The alignment rule to apply to the fields. - [Newtonsoft.Json.JsonPropertyAttribute("alignmentRule")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleAlignmentRule AlignmentRule { get; set; } + /// Description of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } - /// The fields to be aligned. - [Newtonsoft.Json.JsonPropertyAttribute("fields")] - public virtual System.Collections.Generic.IList Fields { get; set; } + /// Display name to show to users. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Entity types of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypes")] + public virtual System.Collections.Generic.IList EntityTypes { get; set; } + + /// Metadata of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("metadata")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata Metadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField : Google.Apis.Requests.IDirectResponseSchema + /// + /// EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for + /// entity-based processors. Multiple types can also compose a dependency tree to represent nested types. + /// + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityType : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Default value to use if the field is not present. If the field is missing and the default value is not set, - /// the validation run as if the field is not present in the validation logic. - /// - [Newtonsoft.Json.JsonPropertyAttribute("defaultValue")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant DefaultValue { get; set; } + /// The entity type that this type is derived from. For now, one and only one should be set. + [Newtonsoft.Json.JsonPropertyAttribute("baseTypes")] + public virtual System.Collections.Generic.IList BaseTypes { get; set; } /// - /// The field name to validate. This can be a simple field name or a nested field one using the ':' (meant as an - /// aggregator) or '*' (meant as foreach) operators. + /// The description of the entity type. Could be used to provide more information about the entity type for + /// model calls. /// - [Newtonsoft.Json.JsonPropertyAttribute("fieldName")] - public virtual string FieldName { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// User defined name for the type. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences : Google.Apis.Requests.IDirectResponseSchema - { - [Newtonsoft.Json.JsonPropertyAttribute("field")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } + /// Metadata for the entity type. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypeMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata EntityTypeMetadata { get; set; } - [Newtonsoft.Json.JsonPropertyAttribute("maxOccurrences")] - public virtual System.Nullable MaxOccurrences { get; set; } + /// + /// If specified, lists all the possible values for this entity. This should not be more than a handful of + /// values. If the number of values is &gt;10 or could change frequently use the `EntityType.value_ontology` + /// field and specify a list of all possible values in a value ontology file. + /// + [Newtonsoft.Json.JsonPropertyAttribute("enumValues")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues EnumValues { get; set; } /// - /// Min and max occurrences of the field. If not set, there is limit set. The defined interval is a - /// closed-closed interval, i.e. [min, max]. + /// Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following + /// naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 + /// characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward + /// compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes + /// used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will + /// still be honored for backward compatibility. /// - [Newtonsoft.Json.JsonPropertyAttribute("minOccurrences")] - public virtual System.Nullable MinOccurrences { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Description the nested structure, or composition of an entity. + [Newtonsoft.Json.JsonPropertyAttribute("properties")] + public virtual System.Collections.Generic.IList Properties { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldRegex : Google.Apis.Requests.IDirectResponseSchema + /// Defines the a list of enum values. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeEnumValues : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("field")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField Field { get; set; } - - /// Python regex to validate the field values. - [Newtonsoft.Json.JsonPropertyAttribute("pattern")] - public virtual string Pattern { get; set; } + /// The individual values that this enum values type can include. + [Newtonsoft.Json.JsonPropertyAttribute("values")] + public virtual System.Collections.Generic.IList Values { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidation : Google.Apis.Requests.IDirectResponseSchema + /// Defines properties that can be part of the entity type. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaEntityTypeProperty : Google.Apis.Requests.IDirectResponseSchema { - [Newtonsoft.Json.JsonPropertyAttribute("leftOperand")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation LeftOperand { get; set; } + /// + /// The description of the property. Could be used to provide more information about the property for model + /// calls. + /// + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } - [Newtonsoft.Json.JsonPropertyAttribute("rightOperand")] - public virtual CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation RightOperand { get; set; } + /// User defined name for the property. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } - /// The relational operator to be applied to the operands. - [Newtonsoft.Json.JsonPropertyAttribute("validationOperator")] - public virtual string ValidationOperator { get; set; } + /// Specifies how the entity's value is obtained. + [Newtonsoft.Json.JsonPropertyAttribute("method")] + public virtual string Method { get; set; } + + /// The name of the property. Follows the same guidelines as the EntityType name. + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Occurrence type limits the number of instances an entity type appears in the document. + [Newtonsoft.Json.JsonPropertyAttribute("occurrenceType")] + public virtual string OccurrenceType { get; set; } + + /// Any additional metadata about the property can be added here. + [Newtonsoft.Json.JsonPropertyAttribute("propertyMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3PropertyMetadata PropertyMetadata { get; set; } + + /// + /// A reference to the value type of the property. This type is subject to the same conventions as the + /// `Entity.base_types` field. + /// + [Newtonsoft.Json.JsonPropertyAttribute("valueType")] + public virtual string ValueType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - public class CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFormValidationOperation : Google.Apis.Requests.IDirectResponseSchema + /// Metadata for global schema behavior. + public class GoogleCloudDocumentaiUiv1beta3DocumentSchemaMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// A list of constants to be used as operands. - [Newtonsoft.Json.JsonPropertyAttribute("constants")] - public virtual System.Collections.Generic.IList Constants { get; set; } + /// If true, on a given page, there can be multiple `document` annotations covering it. + [Newtonsoft.Json.JsonPropertyAttribute("documentAllowMultipleLabels")] + public virtual System.Nullable DocumentAllowMultipleLabels { get; set; } - /// A list of fields to be used as operands. - [Newtonsoft.Json.JsonPropertyAttribute("fields")] - public virtual System.Collections.Generic.IList Fields { get; set; } + /// + /// If true, a `document` entity type can be applied to subdocument (splitting). Otherwise, it can only be + /// applied to the entire document (classification). + /// + [Newtonsoft.Json.JsonPropertyAttribute("documentSplitter")] + public virtual System.Nullable DocumentSplitter { get; set; } - /// The operation type to be applied to all the operands. - [Newtonsoft.Json.JsonPropertyAttribute("operationType")] - public virtual string OperationType { get; set; } + /// If set, all the nested entities must be prefixed with the parents. + [Newtonsoft.Json.JsonPropertyAttribute("prefixedNamingOnProperties")] + public virtual System.Nullable PrefixedNamingOnProperties { get; set; } - /// A list of recursive operations to be used as operands. - [Newtonsoft.Json.JsonPropertyAttribute("operations")] - public virtual System.Collections.Generic.IList Operations { get; set; } + /// + /// If set, we will skip the naming format validation in the schema. So the string values in + /// `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.Property.name` will not be checked. + /// + [Newtonsoft.Json.JsonPropertyAttribute("skipNamingValidation")] + public virtual System.Nullable SkipNamingValidation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the auto-labeling documents operation. - public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the EnableProcessor method. + public class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// The list of individual auto-labeling statuses of the dataset documents. - [Newtonsoft.Json.JsonPropertyAttribute("individualAutoLabelStatuses")] - public virtual System.Collections.Generic.IList IndividualAutoLabelStatuses { get; set; } - - /// Total number of the auto-labeling documents. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of individual documents in the auto-labeling process. - public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus : Google.Apis.Requests.IDirectResponseSchema + /// + /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. + /// + public class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the auto-labeled document. This will replace the gcs_uri. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } - - /// The status of the document auto-labeling. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The response proto of AutoLabelDocuments method. - public class GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Metadata about an entity type. + public class GoogleCloudDocumentaiUiv1beta3EntityTypeMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Field tier metadata on the property + [Newtonsoft.Json.JsonPropertyAttribute("fieldTierMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldTierMetadata FieldTierMetadata { get; set; } - public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Human review labeling config on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewLabelingMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata HumanReviewLabelingMetadata { get; set; } - /// Total number of documents that failed to be deleted in storage. - [Newtonsoft.Json.JsonPropertyAttribute("errorDocumentCount")] - public virtual System.Nullable ErrorDocumentCount { get; set; } + /// Human review config on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata HumanReviewMetadata { get; set; } - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualBatchDeleteStatuses")] - public virtual System.Collections.Generic.IList IndividualBatchDeleteStatuses { get; set; } + /// Whether the entity type should be considered inactive. + [Newtonsoft.Json.JsonPropertyAttribute("inactive")] + public virtual System.Nullable Inactive { get; set; } - /// Total number of documents deleting from dataset. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } + /// Schema editability metadata on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("schemaEditabilityMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata SchemaEditabilityMetadata { get; set; } + + /// Schema inference metadata on the entity. + [Newtonsoft.Json.JsonPropertyAttribute("schemaInferenceMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata SchemaInferenceMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the batch delete process. - public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadataIndividualBatchDeleteStatus : Google.Apis.Requests.IDirectResponseSchema + /// Metadata of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } - - /// The status of deleting the document in storage. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the delete documents operation. - public class GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response of the EvaluateProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { + /// The resource name of the created evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Evaluation metrics, either in aggregate or about a specific entity. + public class GoogleCloudDocumentaiUiv1beta3EvaluationMetrics : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The calculated f1 score. + [Newtonsoft.Json.JsonPropertyAttribute("f1Score")] + public virtual System.Nullable F1Score { get; set; } - /// The destination dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("destDatasetType")] - public virtual string DestDatasetType { get; set; } + /// The amount of false negatives. + [Newtonsoft.Json.JsonPropertyAttribute("falseNegativesCount")] + public virtual System.Nullable FalseNegativesCount { get; set; } - /// The destination dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("destSplitType")] - public virtual string DestSplitType { get; set; } + /// The amount of false positives. + [Newtonsoft.Json.JsonPropertyAttribute("falsePositivesCount")] + public virtual System.Nullable FalsePositivesCount { get; set; } + + /// The amount of documents with a ground truth occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthDocumentCount")] + public virtual System.Nullable GroundTruthDocumentCount { get; set; } + + /// The amount of occurrences in ground truth documents. + [Newtonsoft.Json.JsonPropertyAttribute("groundTruthOccurrencesCount")] + public virtual System.Nullable GroundTruthOccurrencesCount { get; set; } + + /// The calculated precision. + [Newtonsoft.Json.JsonPropertyAttribute("precision")] + public virtual System.Nullable Precision { get; set; } + + /// The amount of documents with a predicted occurrence. + [Newtonsoft.Json.JsonPropertyAttribute("predictedDocumentCount")] + public virtual System.Nullable PredictedDocumentCount { get; set; } + + /// The amount of occurrences in predicted documents. + [Newtonsoft.Json.JsonPropertyAttribute("predictedOccurrencesCount")] + public virtual System.Nullable PredictedOccurrencesCount { get; set; } + + /// The calculated recall. + [Newtonsoft.Json.JsonPropertyAttribute("recall")] + public virtual System.Nullable Recall { get; set; } - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualBatchMoveStatuses")] - public virtual System.Collections.Generic.IList IndividualBatchMoveStatuses { get; set; } + /// The amount of documents that had an occurrence of this label. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentsCount")] + public virtual System.Nullable TotalDocumentsCount { get; set; } + + /// The amount of true positives. + [Newtonsoft.Json.JsonPropertyAttribute("truePositivesCount")] + public virtual System.Nullable TruePositivesCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the batch move process. - public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus : Google.Apis.Requests.IDirectResponseSchema + /// Gives a short summary of an evaluation, and links to the evaluation itself. + public class GoogleCloudDocumentaiUiv1beta3EvaluationReference : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + /// An aggregate of the statistics for the evaluation with fuzzy matching on. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetrics")] + public virtual GoogleCloudDocumentaiUiv1beta3EvaluationMetrics AggregateMetrics { get; set; } - /// The status of moving the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// An aggregate of the statistics for the evaluation with fuzzy matching off. + [Newtonsoft.Json.JsonPropertyAttribute("aggregateMetricsExact")] + public virtual GoogleCloudDocumentaiUiv1beta3EvaluationMetrics AggregateMetricsExact { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The resource name of the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] + public virtual string Evaluation { get; set; } + + /// The resource name of the Long Running Operation for the evaluation. + [Newtonsoft.Json.JsonPropertyAttribute("operation")] + public virtual string Operation { get; set; } - /// Response of the batch move documents operation. - public class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema - { /// The ETag of the item. public virtual string ETag { get; set; } } - public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata of the batch export documents operation. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema { /// The basic metadata of the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualBatchUpdateStatuses")] - public virtual System.Collections.Generic.IList IndividualBatchUpdateStatuses { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("individualExportStatuses")] + public virtual System.Collections.Generic.IList IndividualExportStatuses { get; set; } + + /// The list of statistics for each dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("splitExportStats")] + public virtual System.Collections.Generic.IList SplitExportStats { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the batch update process. - public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividualBatchUpdateStatus : Google.Apis.Requests.IDirectResponseSchema + /// The status of each individual document in the export process. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus : Google.Apis.Requests.IDirectResponseSchema { - /// The document id of the document. + /// The path to source docproto of the document. [Newtonsoft.Json.JsonPropertyAttribute("documentId")] public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } - /// The status of updating the document in storage. + /// + /// The output_gcs_destination of the exported document if it was successful, otherwise empty. + /// + [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] + public virtual string OutputGcsDestination { get; set; } + + /// The status of the exporting of the document. [Newtonsoft.Json.JsonPropertyAttribute("status")] public virtual GoogleRpcStatus Status { get; set; } @@ -3239,121 +4548,32 @@ public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsMetadataIndividua public virtual string ETag { get; set; } } - /// Response of the batch update documents operation. - public class GoogleCloudDocumentaiUiv1beta3BatchUpdateDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The ETag of the item. - public virtual string ETag { get; set; } - } - - /// The common metadata for long running operations. - public class GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The statistic representing a dataset split type for this export. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat : Google.Apis.Requests.IDirectResponseSchema { - private string _createTimeRaw; - - private object _createTime; - - /// The creation time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("createTime")] - public virtual string CreateTimeRaw - { - get => _createTimeRaw; - set - { - _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _createTimeRaw = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] - public virtual object CreateTime - { - get => _createTime; - set - { - _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _createTime = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? CreateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); - set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } - - /// A related resource to this operation. - [Newtonsoft.Json.JsonPropertyAttribute("resource")] - public virtual string Resource { get; set; } - - /// The state of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("state")] - public virtual string State { get; set; } - - /// A message providing more details about the current state of processing. - [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] - public virtual string StateMessage { get; set; } - - private string _updateTimeRaw; - - private object _updateTime; - - /// The last update time of the operation. - [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] - public virtual string UpdateTimeRaw - { - get => _updateTimeRaw; - set - { - _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); - _updateTimeRaw = value; - } - } - - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] - public virtual object UpdateTime - { - get => _updateTime; - set - { - _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); - _updateTime = value; - } - } + /// The dataset split type. + [Newtonsoft.Json.JsonPropertyAttribute("splitType")] + public virtual string SplitType { get; set; } - /// representation of . - [Newtonsoft.Json.JsonIgnoreAttribute] - public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset - { - get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); - set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); - } + /// Total number of documents with the given dataset split type to be exported. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the CreateLabelerPool method. - public class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The response proto of ExportDocuments method. + public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for DeleteLabelerPool. - public class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata message associated with the ExportProcessorVersion operation. + public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. + /// The common metadata about the operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } @@ -3361,137 +4581,162 @@ public class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata : public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DeleteProcessor method. - public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Response message associated with the ExportProcessorVersion operation. + public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The Cloud Storage URI containing the output artifacts. + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DeleteProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata for how this field value is extracted. + public class GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Entity query config. + [Newtonsoft.Json.JsonPropertyAttribute("entityQuery")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery EntityQuery { get; set; } - /// The long-running operation metadata for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Summary options config. + [Newtonsoft.Json.JsonPropertyAttribute("summaryOptions")] + public virtual GoogleCloudDocumentaiUiv1beta3SummaryOptions SummaryOptions { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response message for the DeployProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// Message for entity query. + public class GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadataEntityQuery : Google.Apis.Requests.IDirectResponseSchema { + /// The original entity query inputed by the user. + [Newtonsoft.Json.JsonPropertyAttribute("userEntityQuery")] + public virtual string UserEntityQuery { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the DisableProcessor method. - public class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Metadata for the field tier of a property. + public class GoogleCloudDocumentaiUiv1beta3FieldTierMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// + /// Integer that indicates the tier of a property. e.g. Invoice has entities that are classified as tier 1 which + /// is the most important, while tier 2 and tier 3 less so. This attribute can be used to filter schema + /// attributes before running eval. e.g. compute F1 score for only tier 1 entities. If not present this + /// attribute should be inferred as 1. + /// + [Newtonsoft.Json.JsonPropertyAttribute("tierLevel")] + public virtual System.Nullable TierLevel { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Response message for the DisableProcessor method. Intentionally empty proto for adding fields in future. - /// - public class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema + /// Metadata for human review labeling config. + public class GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata : Google.Apis.Requests.IDirectResponseSchema { + /// Whether to enable normalization editing. + [Newtonsoft.Json.JsonPropertyAttribute("enableNormalizationEditing")] + public virtual System.Nullable EnableNormalizationEditing { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } - /// Document Identifier. - public class GoogleCloudDocumentaiUiv1beta3DocumentId : Google.Apis.Requests.IDirectResponseSchema + /// Metadata for Human Review config. + public class GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// A document id within user-managed Cloud Storage. - [Newtonsoft.Json.JsonPropertyAttribute("gcsManagedDocId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId GcsManagedDocId { get; set; } - - /// Points to a specific revision of the document if set. - [Newtonsoft.Json.JsonPropertyAttribute("revisionRef")] - public virtual GoogleCloudDocumentaiUiv1beta3RevisionRef RevisionRef { get; set; } + /// The confidence threshold if human review validation is enabled. + [Newtonsoft.Json.JsonPropertyAttribute("confidenceThreshold")] + public virtual System.Nullable ConfidenceThreshold { get; set; } - /// A document id within unmanaged dataset. - [Newtonsoft.Json.JsonPropertyAttribute("unmanagedDocId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId UnmanagedDocId { get; set; } + /// Whether to enable human review validation. + [Newtonsoft.Json.JsonPropertyAttribute("enableValidation")] + public virtual System.Nullable EnableValidation { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Identifies a document uniquely within the scope of a dataset in the user-managed Cloud Storage option. - /// - public class GoogleCloudDocumentaiUiv1beta3DocumentIdGCSManagedDocumentId : Google.Apis.Requests.IDirectResponseSchema + /// Metadata of the import document operation. + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// Id of the document (indexed) managed by Content Warehouse. - [Newtonsoft.Json.JsonPropertyAttribute("cwDocId")] - public virtual string CwDocId { get; set; } + /// The basic metadata of the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - /// Required. The Cloud Storage URI where the actual document is stored. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] - public virtual string GcsUri { get; set; } + /// Validation statuses of the batch documents import config. + [Newtonsoft.Json.JsonPropertyAttribute("importConfigValidationResults")] + public virtual System.Collections.Generic.IList ImportConfigValidationResults { get; set; } + + /// The list of response details of each document. + [Newtonsoft.Json.JsonPropertyAttribute("individualImportStatuses")] + public virtual System.Collections.Generic.IList IndividualImportStatuses { get; set; } + + /// Total number of the documents that are qualified for importing. + [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] + public virtual System.Nullable TotalDocumentCount { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Identifies a document uniquely within the scope of a dataset in unmanaged option. - public class GoogleCloudDocumentaiUiv1beta3DocumentIdUnmanagedDocumentId : Google.Apis.Requests.IDirectResponseSchema + /// + /// The validation status of each import config. Status is set to an error if there are no documents to import in + /// the `import_config`, or `OK` if the operation will try to proceed with at least one document. + /// + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult : Google.Apis.Requests.IDirectResponseSchema { - /// Required. The id of the document. - [Newtonsoft.Json.JsonPropertyAttribute("docId")] - public virtual string DocId { get; set; } + /// The source Cloud Storage URI specified in the import config. + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } + + /// The validation status of import config. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The long-running operation metadata for the EnableProcessor method. - public class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The status of each individual document in the import process. + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// The source Cloud Storage URI of the document. + [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] + public virtual string InputGcsSource { get; set; } + + /// The document id of imported document if it was successful, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("outputDocumentId")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentId OutputDocumentId { get; set; } + + /// + /// The output_gcs_destination of the processed document if it was successful, otherwise empty. + /// + [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] + public virtual string OutputGcsDestination { get; set; } + + /// The status of the importing of the document. + [Newtonsoft.Json.JsonPropertyAttribute("status")] + public virtual GoogleRpcStatus Status { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// - /// Response message for the EnableProcessor method. Intentionally empty proto for adding fields in future. - /// - public class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response of the import document operation. + public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema { /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + /// The long-running operation metadata for the ImportProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. + /// The basic metadata for the long-running operation. [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } @@ -3499,191 +4744,374 @@ public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionMetadata : Go public virtual string ETag { get; set; } } - /// Response of the EvaluateProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3EvaluateProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// The response message for the ImportProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema { - /// The resource name of the created evaluation. - [Newtonsoft.Json.JsonPropertyAttribute("evaluation")] - public virtual string Evaluation { get; set; } + /// The destination processor version name. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the batch export documents operation. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// + /// The first-class citizen for Document AI. Each processor defines how to extract structural information from a + /// document. + /// + public class GoogleCloudDocumentaiUiv1beta3Processor : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// + /// Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version + /// Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} + /// + [Newtonsoft.Json.JsonPropertyAttribute("activeSchemaVersion")] + public virtual string ActiveSchemaVersion { get; set; } - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualExportStatuses")] - public virtual System.Collections.Generic.IList IndividualExportStatuses { get; set; } + private string _createTimeRaw; - /// The list of statistics for each dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("splitExportStats")] - public virtual System.Collections.Generic.IList SplitExportStats { get; set; } + private object _createTime; + + /// Output only. The time the processor was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The default processor version. + [Newtonsoft.Json.JsonPropertyAttribute("defaultProcessorVersion")] + public virtual string DefaultProcessorVersion { get; set; } + + /// The display name of the processor. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// + /// The [KMS key](https://cloud.google.com/security-key-management) used for encryption and decryption in CMEK + /// scenarios. + /// + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } + + /// + /// Output only. Immutable. The resource name of the processor. Format: + /// `projects/{project}/locations/{location}/processors/{processor}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Output only. Immutable. The http endpoint that can be called to invoke processing. + [Newtonsoft.Json.JsonPropertyAttribute("processEndpoint")] + public virtual string ProcessEndpoint { get; set; } + + /// Output only. The processor version aliases. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersionAliases")] + public virtual System.Collections.Generic.IList ProcessorVersionAliases { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] + public virtual System.Nullable SatisfiesPzi { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] + public virtual System.Nullable SatisfiesPzs { get; set; } + + /// Output only. The state of the processor. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// + /// The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. To get a list of processor types, see + /// FetchProcessorTypes. + /// + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the export process. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataIndividualExportStatus : Google.Apis.Requests.IDirectResponseSchema + /// + /// A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained + /// by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its + /// document-processing behavior is defined by that version. + /// + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersion : Google.Apis.Requests.IDirectResponseSchema { - /// The path to source docproto of the document. - [Newtonsoft.Json.JsonPropertyAttribute("documentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId DocumentId { get; set; } + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time the processor version was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// Output only. Denotes that this `ProcessorVersion` can be deployed and undeployed. + [Newtonsoft.Json.JsonPropertyAttribute("deploymentAllowed")] + public virtual System.Nullable DeploymentAllowed { get; set; } + + /// Output only. If set, information about the eventual deprecation of this version. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo DeprecationInfo { get; set; } + + /// The display name of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Output only. The schema of the processor version. Describes the output. + [Newtonsoft.Json.JsonPropertyAttribute("documentSchema")] + public virtual GoogleCloudDocumentaiUiv1beta3DocumentSchema DocumentSchema { get; set; } + + /// Output only. Information about Generative AI model-based processor versions. + [Newtonsoft.Json.JsonPropertyAttribute("genAiModelInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo GenAiModelInfo { get; set; } + + /// Output only. Denotes that this `ProcessorVersion` is managed by Google. + [Newtonsoft.Json.JsonPropertyAttribute("googleManaged")] + public virtual System.Nullable GoogleManaged { get; set; } + + /// Output only. The KMS key name used for encryption. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyName")] + public virtual string KmsKeyName { get; set; } + + /// Output only. The KMS key version with which data is encrypted. + [Newtonsoft.Json.JsonPropertyAttribute("kmsKeyVersionName")] + public virtual string KmsKeyVersionName { get; set; } + + /// Output only. The most recently invoked evaluation for the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("latestEvaluation")] + public virtual GoogleCloudDocumentaiUiv1beta3EvaluationReference LatestEvaluation { get; set; } + + /// Output only. The model type of this processor version. + [Newtonsoft.Json.JsonPropertyAttribute("modelType")] + public virtual string ModelType { get; set; } /// - /// The output_gcs_destination of the exported document if it was successful, otherwise empty. + /// Identifier. The resource name of the processor version. Format: + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` /// - [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] - public virtual string OutputGcsDestination { get; set; } + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzi")] + public virtual System.Nullable SatisfiesPzi { get; set; } + + /// Output only. Reserved for future use. + [Newtonsoft.Json.JsonPropertyAttribute("satisfiesPzs")] + public virtual System.Nullable SatisfiesPzs { get; set; } - /// The status of the exporting of the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The schema of the processor version. Describes the output. + [Newtonsoft.Json.JsonPropertyAttribute("schema")] + public virtual GoogleCloudDocumentaiUiv1beta3Schema Schema { get; set; } + + /// Output only. The state of the processor version. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The statistic representing a dataset split type for this export. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsMetadataSplitExportStat : Google.Apis.Requests.IDirectResponseSchema + /// Contains the alias and the aliased resource name of processor version. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionAlias : Google.Apis.Requests.IDirectResponseSchema { - /// The dataset split type. - [Newtonsoft.Json.JsonPropertyAttribute("splitType")] - public virtual string SplitType { get; set; } + /// The alias in the form of `processor_version` resource name. + [Newtonsoft.Json.JsonPropertyAttribute("alias")] + public virtual string Alias { get; set; } - /// Total number of documents with the given dataset split type to be exported. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } + /// The resource name of aliased processor version. + [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] + public virtual string ProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The response proto of ExportDocuments method. - public class GoogleCloudDocumentaiUiv1beta3ExportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Information about the upcoming deprecation of this processor version. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionDeprecationInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + private string _deprecationTimeRaw; - /// Metadata message associated with the ExportProcessorVersion operation. - public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The common metadata about the operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + private object _deprecationTime; - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// The time at which this processor version will be deprecated. + [Newtonsoft.Json.JsonPropertyAttribute("deprecationTime")] + public virtual string DeprecationTimeRaw + { + get => _deprecationTimeRaw; + set + { + _deprecationTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _deprecationTimeRaw = value; + } + } - /// Response message associated with the ExportProcessorVersion operation. - public class GoogleCloudDocumentaiUiv1beta3ExportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The Cloud Storage URI containing the output artifacts. - [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] - public virtual string GcsUri { get; set; } + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use DeprecationTimeDateTimeOffset instead.")] + public virtual object DeprecationTime + { + get => _deprecationTime; + set + { + _deprecationTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _deprecationTime = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? DeprecationTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(DeprecationTimeRaw); + set => DeprecationTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// If set, the processor version that will be used as a replacement. + [Newtonsoft.Json.JsonPropertyAttribute("replacementProcessorVersion")] + public virtual string ReplacementProcessorVersion { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Metadata of the import document operation. - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadata : Google.Apis.Requests.IDirectResponseSchema + /// Information about Generative AI model-based processor versions. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The basic metadata of the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } - - /// Validation statuses of the batch documents import config. - [Newtonsoft.Json.JsonPropertyAttribute("importConfigValidationResults")] - public virtual System.Collections.Generic.IList ImportConfigValidationResults { get; set; } - - /// The list of response details of each document. - [Newtonsoft.Json.JsonPropertyAttribute("individualImportStatuses")] - public virtual System.Collections.Generic.IList IndividualImportStatuses { get; set; } + /// Information for a custom Generative AI model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customGenAiModelInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo CustomGenAiModelInfo { get; set; } - /// Total number of the documents that are qualified for importing. - [Newtonsoft.Json.JsonPropertyAttribute("totalDocumentCount")] - public virtual System.Nullable TotalDocumentCount { get; set; } + /// Information for a pretrained Google-managed foundation model. + [Newtonsoft.Json.JsonPropertyAttribute("foundationGenAiModelInfo")] + public virtual GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo FoundationGenAiModelInfo { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } /// - /// The validation status of each import config. Status is set to an error if there are no documents to import in - /// the `import_config`, or `OK` if the operation will try to proceed with at least one document. + /// Information for a custom Generative AI model created by the user. These are created with `Create New Version` in + /// either the `Call foundation model` or `Fine tuning` tabs. /// - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataImportConfigValidationResult : Google.Apis.Requests.IDirectResponseSchema + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The source Cloud Storage URI specified in the import config. - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } + /// The base processor version ID for the custom model. + [Newtonsoft.Json.JsonPropertyAttribute("baseProcessorVersionId")] + public virtual string BaseProcessorVersionId { get; set; } - /// The validation status of import config. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The type of custom model created by the user. + [Newtonsoft.Json.JsonPropertyAttribute("customModelType")] + public virtual string CustomModelType { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// The status of each individual document in the import process. - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus : Google.Apis.Requests.IDirectResponseSchema + /// Information for a pretrained Google-managed foundation model. + public class GoogleCloudDocumentaiUiv1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo : Google.Apis.Requests.IDirectResponseSchema { - /// The source Cloud Storage URI of the document. - [Newtonsoft.Json.JsonPropertyAttribute("inputGcsSource")] - public virtual string InputGcsSource { get; set; } - - /// The document id of imported document if it was successful, otherwise empty. - [Newtonsoft.Json.JsonPropertyAttribute("outputDocumentId")] - public virtual GoogleCloudDocumentaiUiv1beta3DocumentId OutputDocumentId { get; set; } - - /// - /// The output_gcs_destination of the processed document if it was successful, otherwise empty. - /// - [Newtonsoft.Json.JsonPropertyAttribute("outputGcsDestination")] - public virtual string OutputGcsDestination { get; set; } + /// Whether finetuning is allowed for this base processor version. + [Newtonsoft.Json.JsonPropertyAttribute("finetuningAllowed")] + public virtual System.Nullable FinetuningAllowed { get; set; } - /// The status of the importing of the document. - [Newtonsoft.Json.JsonPropertyAttribute("status")] - public virtual GoogleRpcStatus Status { get; set; } + /// The minimum number of labeled documents in the training dataset required for finetuning. + [Newtonsoft.Json.JsonPropertyAttribute("minTrainLabeledDocuments")] + public virtual System.Nullable MinTrainLabeledDocuments { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } } - /// Response of the import document operation. - public class GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse : Google.Apis.Requests.IDirectResponseSchema + /// Metadata about a property. + public class GoogleCloudDocumentaiUiv1beta3PropertyMetadata : Google.Apis.Requests.IDirectResponseSchema { - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Field extraction metadata on the property. + [Newtonsoft.Json.JsonPropertyAttribute("fieldExtractionMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldExtractionMetadata FieldExtractionMetadata { get; set; } - /// The long-running operation metadata for the ImportProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema - { - /// The basic metadata for the long-running operation. - [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] - public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + /// Field tier metadata on the property + [Newtonsoft.Json.JsonPropertyAttribute("fieldTierMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3FieldTierMetadata FieldTierMetadata { get; set; } - /// The ETag of the item. - public virtual string ETag { get; set; } - } + /// Human review labeling config on the property. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewLabelingMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewLabelingMetadata HumanReviewLabelingMetadata { get; set; } - /// The response message for the ImportProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema - { - /// The destination processor version name. - [Newtonsoft.Json.JsonPropertyAttribute("processorVersion")] - public virtual string ProcessorVersion { get; set; } + /// Human review validation config on the property. + [Newtonsoft.Json.JsonPropertyAttribute("humanReviewMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3HumanReviewValidationMetadata HumanReviewMetadata { get; set; } + + /// Whether the property should be considered as "inactive". + [Newtonsoft.Json.JsonPropertyAttribute("inactive")] + public virtual System.Nullable Inactive { get; set; } + + /// Schema editability metadata on the property. + [Newtonsoft.Json.JsonPropertyAttribute("schemaEditabilityMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata SchemaEditabilityMetadata { get; set; } + + /// Schema inference metadata on the property. + [Newtonsoft.Json.JsonPropertyAttribute("schemaInferenceMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata SchemaInferenceMetadata { get; set; } /// The ETag of the item. public virtual string ETag { get; set; } @@ -3823,6 +5251,122 @@ public class GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocume public virtual string ETag { get; set; } } + /// The schema defines the output of the processed document by a processor. + public class GoogleCloudDocumentaiUiv1beta3Schema : Google.Apis.Requests.IDirectResponseSchema + { + /// Description of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// Display name to show to users. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Entity types of the schema. + [Newtonsoft.Json.JsonPropertyAttribute("entityTypes")] + public virtual System.Collections.Generic.IList EntityTypes { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Metadata that specifies whether a label is editable and reasons why. These fields are read-only. Changing these + /// fields has no impact on the backend. + /// + public class GoogleCloudDocumentaiUiv1beta3SchemaEditabilityMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Explicit flag that controls whether the label is editable. + [Newtonsoft.Json.JsonPropertyAttribute("editable")] + public virtual System.Nullable Editable { get; set; } + + /// + /// Full resource name of processor versions that contain this label. e.g. + /// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("processorVersions")] + public virtual System.Collections.Generic.IList ProcessorVersions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for + /// entity-based processors. Multiple types can also compose a dependency tree to represent nested types. + /// + public class GoogleCloudDocumentaiUiv1beta3SchemaEntityType : Google.Apis.Requests.IDirectResponseSchema + { + [Newtonsoft.Json.JsonPropertyAttribute("baseType")] + public virtual string BaseType { get; set; } + + /// Description of the entity type. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// If specified, lists all the possible values for this entity. + [Newtonsoft.Json.JsonPropertyAttribute("enumValues")] + public virtual System.Collections.Generic.IList EnumValues { get; set; } + + /// + /// If the entity type is hidden in the schema. This provides the functionality to temporally "disable" an + /// entity without deleting it. + /// + [Newtonsoft.Json.JsonPropertyAttribute("hide")] + public virtual System.Nullable Hide { get; set; } + + /// Specifies how the entity's value is obtained. + [Newtonsoft.Json.JsonPropertyAttribute("method")] + public virtual string Method { get; set; } + + /// Occurrence type limits the number of times an entity type appears in the document. + [Newtonsoft.Json.JsonPropertyAttribute("occurrenceType")] + public virtual string OccurrenceType { get; set; } + + /// + /// Describing the nested structure of an entity. An EntityType may consist of several other EntityTypes. For + /// example, in a document there can be an EntityType `ID`, which consists of EntityType `name` and `address`, + /// with corresponding attributes, such as TEXT for both types and ONCE for occurrence types. + /// + [Newtonsoft.Json.JsonPropertyAttribute("properties")] + public virtual System.Collections.Generic.IList Properties { get; set; } + + /// Source of this entity type. + [Newtonsoft.Json.JsonPropertyAttribute("source")] + public virtual string Source { get; set; } + + /// + /// Name of the type. It must satisfy the following constraints: 1. Must be unique within the set of same level + /// types (with case-insensitive match). 2. Maximum 64 characters. 3. Must start with a letter. 4. Allowed + /// characters: ASCII letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation characters: * + /// underscore '_' (recommended) * hyphen '-' (allowed, not recommended) * colon ':' (allowed, not recommended) + /// NOTE: Whitespace characters are not allowed. 5. Cannot end with a punctuation character. 6. Cannot contain + /// the following restricted strings: "google", "DocumentAI" (case-insensitive match). 7. A slash character '/' + /// is reserved as a separator in flattened representations of nested entity types (e.g., "line_item/amount") in + /// which case each part (e.g., "line_item", "amount") must comply with the rules defined above. We recommend + /// using the snake case ("snake_case") in entity type names. + /// + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Metadata for schema inference. Only used on dataset.schema for schema inference, can be safely ignored + /// elsewhere. + /// + public class GoogleCloudDocumentaiUiv1beta3SchemaInferenceMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// True if is inferred by schema inference. + [Newtonsoft.Json.JsonPropertyAttribute("inferred")] + public virtual System.Nullable Inferred { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The long-running operation metadata for the SetDefaultProcessorVersion method. public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { @@ -3834,9 +5378,24 @@ public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata : public virtual string ETag { get; set; } } - /// Response message for the SetDefaultProcessorVersion method. - public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + /// Response message for the SetDefaultProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata for document summarization. + public class GoogleCloudDocumentaiUiv1beta3SummaryOptions : Google.Apis.Requests.IDirectResponseSchema { + /// The format the summary should be in. + [Newtonsoft.Json.JsonPropertyAttribute("format")] + public virtual string Format { get; set; } + + /// How long the summary should be. + [Newtonsoft.Json.JsonPropertyAttribute("length")] + public virtual string Length { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } @@ -3952,6 +5511,17 @@ public class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata : public virtual string ETag { get; set; } } + /// The long-running operation metadata for the UpdateProcessorVersion method. + public class GoogleCloudDocumentaiUiv1beta3UpdateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata for the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The long-running operation metadata for BatchProcessDocuments. public class GoogleCloudDocumentaiV1BatchProcessMetadata : Google.Apis.Requests.IDirectResponseSchema { @@ -5779,11 +7349,18 @@ public class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutput : Google /// Validation result for a single validation rule. public class GoogleCloudDocumentaiV1beta3DocumentEntityValidationOutputValidationResult : Google.Apis.Requests.IDirectResponseSchema { + /// + /// Optional. The name of the rule resource that is used for validation. Format: + /// `projects/{project}/locations/{location}/rules/{rule}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("rule")] + public virtual string Rule { get; set; } + /// The description of the validation rule. [Newtonsoft.Json.JsonPropertyAttribute("ruleDescription")] public virtual string RuleDescription { get; set; } - /// The name of the validation rule. + /// The display name of the validation rule. [Newtonsoft.Json.JsonPropertyAttribute("ruleName")] public virtual string RuleName { get; set; } @@ -6995,6 +8572,17 @@ public class GoogleCloudDocumentaiV1beta3DocumentTextChange : Google.Apis.Reques public virtual string ETag { get; set; } } + /// A set of inline documents. + public class GoogleCloudDocumentaiV1beta3Documents : Google.Apis.Requests.IDirectResponseSchema + { + /// The list of documents. + [Newtonsoft.Json.JsonPropertyAttribute("documents")] + public virtual System.Collections.Generic.IList Documents { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The long-running operation metadata for the EnableProcessor method. public class GoogleCloudDocumentaiV1beta3EnableProcessorMetadata : Google.Apis.Requests.IDirectResponseSchema { @@ -7353,6 +8941,66 @@ public class GoogleCloudDocumentaiV1beta3GcsPrefix : Google.Apis.Requests.IDirec public virtual string ETag { get; set; } } + /// Request message for GenerateSchemaVersion. + public class GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The base schema version name to use for the schema generation. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("baseSchemaVersion")] + public virtual string BaseSchemaVersion { get; set; } + + /// The set of documents placed on Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsDocuments")] + public virtual GoogleCloudDocumentaiV1beta3GcsDocuments GcsDocuments { get; set; } + + /// The common prefix of documents placed on Cloud Storage. + [Newtonsoft.Json.JsonPropertyAttribute("gcsPrefix")] + public virtual GoogleCloudDocumentaiV1beta3GcsPrefix GcsPrefix { get; set; } + + /// Optional. User specified parameters for the schema generation. + [Newtonsoft.Json.JsonPropertyAttribute("generateSchemaVersionParams")] + public virtual GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams GenerateSchemaVersionParams { get; set; } + + /// The set of documents specified inline. + [Newtonsoft.Json.JsonPropertyAttribute("inlineDocuments")] + public virtual GoogleCloudDocumentaiV1beta3Documents InlineDocuments { get; set; } + + /// The set of raw documents. + [Newtonsoft.Json.JsonPropertyAttribute("rawDocuments")] + public virtual GoogleCloudDocumentaiV1beta3RawDocuments RawDocuments { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The parameters for the schema generation. + public class GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. Previous prompt-answers in a chronological order. + [Newtonsoft.Json.JsonPropertyAttribute("history")] + public virtual GoogleCloudDocumentaiV1beta3SchemaGenerationHistory History { get; set; } + + /// Optional. The prompt used for the schema generation. + [Newtonsoft.Json.JsonPropertyAttribute("prompt")] + public virtual string Prompt { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for GenerateSchemaVersion. + public class GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The schema version generated by the model. + [Newtonsoft.Json.JsonPropertyAttribute("schemaVersion")] + public virtual GoogleCloudDocumentaiV1beta3SchemaVersion SchemaVersion { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + public class GoogleCloudDocumentaiV1beta3GetDocumentResponse : Google.Apis.Requests.IDirectResponseSchema { [Newtonsoft.Json.JsonPropertyAttribute("document")] @@ -7698,6 +9346,132 @@ public class GoogleCloudDocumentaiV1beta3ListProcessorsResponse : Google.Apis.Re public virtual string ETag { get; set; } } + /// Response message for ListSchemaVersions. + public class GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// Points to the next SchemaVersion, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } + + /// The list of SchemaVersions. + [Newtonsoft.Json.JsonPropertyAttribute("schemaVersions")] + public virtual System.Collections.Generic.IList SchemaVersions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for ListSchemas. + public class GoogleCloudDocumentaiV1beta3ListSchemasResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// Points to the next Schema, otherwise empty. + [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] + public virtual string NextPageToken { get; set; } + + /// The list of Schemas. + [Newtonsoft.Json.JsonPropertyAttribute("schemas")] + public virtual System.Collections.Generic.IList Schemas { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// NextSchema is a collection of SchemaVersions. + public class GoogleCloudDocumentaiV1beta3NextSchema : Google.Apis.Requests.IDirectResponseSchema + { + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time when the Schema was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// Optional. The user-defined name of the Schema. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Optional. The GCP labels for the Schema. + [Newtonsoft.Json.JsonPropertyAttribute("labels")] + public virtual System.Collections.Generic.IDictionary Labels { get; set; } + + /// + /// Identifier. The resource name of the Schema. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + private string _updateTimeRaw; + + private object _updateTime; + + /// Output only. The time when the Schema was last updated. + [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] + public virtual string UpdateTimeRaw + { + get => _updateTimeRaw; + set + { + _updateTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _updateTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")] + public virtual object UpdateTime + { + get => _updateTime; + set + { + _updateTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _updateTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? UpdateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(UpdateTimeRaw); + set => UpdateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// /// A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the /// original image and range from 0 to 1. @@ -8003,6 +9777,13 @@ public class GoogleCloudDocumentaiV1beta3ProcessResponse : Google.Apis.Requests. /// public class GoogleCloudDocumentaiV1beta3Processor : Google.Apis.Requests.IDirectResponseSchema { + /// + /// Optional. SchemaVersion used by the Processor. It is the same as Processor's DatasetSchema.schema_version + /// Format is `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version} + /// + [Newtonsoft.Json.JsonPropertyAttribute("activeSchemaVersion")] + public virtual string ActiveSchemaVersion { get; set; } + private string _createTimeRaw; private object _createTime; @@ -8404,6 +10185,17 @@ public class GoogleCloudDocumentaiV1beta3RawDocument : Google.Apis.Requests.IDir public virtual string ETag { get; set; } } + /// Specifies a set of raw documents. + public class GoogleCloudDocumentaiV1beta3RawDocuments : Google.Apis.Requests.IDirectResponseSchema + { + /// Specifies raw document content and mime type. + [Newtonsoft.Json.JsonPropertyAttribute("documents")] + public virtual System.Collections.Generic.IList Documents { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The long-running operation metadata for the ReviewDocument method. public class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata : Google.Apis.Requests.IDirectResponseSchema { @@ -8573,6 +10365,99 @@ public class GoogleCloudDocumentaiV1beta3RevisionRef : Google.Apis.Requests.IDir public virtual string ETag { get; set; } } + /// The history of schema generation iterations. + public class GoogleCloudDocumentaiV1beta3SchemaGenerationHistory : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. Previous prompt-answers in a chronological order. + [Newtonsoft.Json.JsonPropertyAttribute("iterations")] + public virtual System.Collections.Generic.IList Iterations { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A single iteration of the schema generation. + public class GoogleCloudDocumentaiV1beta3SchemaGenerationIteration : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. The previous schema version adjusted by the model. + [Newtonsoft.Json.JsonPropertyAttribute("adjustedSchema")] + public virtual GoogleCloudDocumentaiV1beta3SchemaVersion AdjustedSchema { get; set; } + + /// Required. The schema version generated by the model. + [Newtonsoft.Json.JsonPropertyAttribute("generatedSchema")] + public virtual GoogleCloudDocumentaiV1beta3SchemaVersion GeneratedSchema { get; set; } + + /// Optional. The prompt used for the iteration. + [Newtonsoft.Json.JsonPropertyAttribute("prompt")] + public virtual string Prompt { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// SchemaVersion is a version of the Schema which is created in SchemaGroup. + public class GoogleCloudDocumentaiV1beta3SchemaVersion : Google.Apis.Requests.IDirectResponseSchema + { + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time when the SchemaVersion was created. + [Newtonsoft.Json.JsonPropertyAttribute("createTime")] + public virtual string CreateTimeRaw + { + get => _createTimeRaw; + set + { + _createTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _createTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")] + public virtual object CreateTime + { + get => _createTime; + set + { + _createTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _createTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? CreateTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(CreateTimeRaw); + set => CreateTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// Optional. The user-defined name of the SchemaVersion. + [Newtonsoft.Json.JsonPropertyAttribute("displayName")] + public virtual string DisplayName { get; set; } + + /// Optional. The GCP labels for the SchemaVersion. + [Newtonsoft.Json.JsonPropertyAttribute("labels")] + public virtual System.Collections.Generic.IDictionary Labels { get; set; } + + /// + /// Identifier. The resource name of the SchemaVersion. Format: + /// `projects/{project}/locations/{location}/schemas/{schema}/schemaVersions/{schema_version}` + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Required. The schema of the SchemaVersion. + [Newtonsoft.Json.JsonPropertyAttribute("schema")] + public virtual GoogleCloudDocumentaiV1beta3DocumentSchema Schema { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// The long-running operation metadata for the SetDefaultProcessorVersion method. public class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema { @@ -8798,6 +10683,17 @@ public class GoogleCloudDocumentaiV1beta3UpdateDatasetOperationMetadata : Google public virtual string ETag { get; set; } } + /// The long-running operation metadata for the UpdateProcessorVersion method. + public class GoogleCloudDocumentaiV1beta3UpdateProcessorVersionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The basic metadata for the long-running operation. + [Newtonsoft.Json.JsonPropertyAttribute("commonMetadata")] + public virtual GoogleCloudDocumentaiV1beta3CommonOperationMetadata CommonMetadata { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// /// A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original /// image. diff --git a/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.csproj b/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.csproj index 06ac666e2ca..910450656c0 100644 --- a/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.csproj +++ b/Src/Generated/Google.Apis.Document.v1beta3/Google.Apis.Document.v1beta3.csproj @@ -3,7 +3,7 @@ Google.Apis.Document.v1beta3 Client Library - 1.72.0.3938 + 1.72.0.3945 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.cs b/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.cs index 1d8dbd33cf1..5224fd52c0d 100644 --- a/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.cs +++ b/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.cs @@ -2621,8 +2621,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } diff --git a/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.csproj b/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.csproj index ef39fe214da..d3fe52c2065 100644 --- a/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.csproj +++ b/Src/Generated/Google.Apis.FirebaseAppHosting.v1beta/Google.Apis.FirebaseAppHosting.v1beta.csproj @@ -3,7 +3,7 @@ Google.Apis.FirebaseAppHosting.v1beta Client Library - 1.72.0.3945 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.cs b/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.cs index 7675f2862dd..9856f56babd 100644 --- a/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.cs +++ b/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.cs @@ -424,6 +424,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -469,6 +480,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -1530,6 +1549,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -1575,6 +1605,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -2595,6 +2633,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -2640,6 +2689,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -3956,6 +4013,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -4001,6 +4069,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -4130,6 +4206,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -4175,6 +4262,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -5149,6 +5244,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in + /// an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -5194,6 +5300,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -5323,6 +5437,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that + /// are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can + /// only be `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result + /// in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + /// product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -5368,6 +5493,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -9580,6 +9713,14 @@ public class ListOperationsResponse : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("operations")] public virtual System.Collections.Generic.IList Operations { get; set; } + /// + /// Unordered list. Unreachable resources. Populated when the request sets + /// `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all + /// resources across all supported locations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } diff --git a/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.csproj b/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.csproj index 8cde5ef6e35..110fb9341da 100644 --- a/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.csproj +++ b/Src/Generated/Google.Apis.GKEOnPrem.v1/Google.Apis.GKEOnPrem.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.GKEOnPrem.v1 Client Library - 1.71.0.3903 + 1.72.0.3945 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.cs b/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.cs index acefc30481f..7773d51a87d 100644 --- a/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.cs +++ b/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.cs @@ -6629,7 +6629,7 @@ public class GoogleAppsCardV1DateTimePicker : Google.Apis.Requests.IDirectRespon public virtual string Type { get; set; } /// - /// Optional. The default value displayed in the widget, in milliseconds since [Unix epoch + /// The default value displayed in the widget, in milliseconds since [Unix epoch /// time](https://en.wikipedia.org/wiki/Unix_time). Specify the value based on the type of picker /// (`DateTimePickerType`): * `DATE_AND_TIME`: a calendar date and time in UTC. For example, to represent /// January 1, 2023 at 12:00 PM UTC, use `1672574400000`. * `DATE_ONLY`: a calendar date at 00:00:00 UTC. For diff --git a/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.csproj b/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.csproj index e06167b1701..568da1132a8 100644 --- a/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.csproj +++ b/Src/Generated/Google.Apis.HangoutsChat.v1/Google.Apis.HangoutsChat.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.HangoutsChat.v1 Client Library - 1.72.0.3941 + 1.72.0.3948 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.cs b/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.cs index 32c8acd84ca..1f5ef7d27a7 100644 --- a/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.cs +++ b/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.cs @@ -945,6 +945,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -990,6 +1001,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -1061,8 +1080,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. A list of extra location types that should be used as conditions for controlling the - /// visibility of the locations. + /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is + /// primarily intended for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } @@ -1344,6 +1363,14 @@ public class ListOperationsResponse : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("operations")] public virtual System.Collections.Generic.IList Operations { get; set; } + /// + /// Unordered list. Unreachable resources. Populated when the request sets + /// `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all + /// resources across all supported locations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } diff --git a/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.csproj b/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.csproj index a261905f247..be699a4bd51 100644 --- a/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.csproj +++ b/Src/Generated/Google.Apis.IDS.v1/Google.Apis.IDS.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.IDS.v1 Client Library - 1.69.0.3731 + 1.72.0.3945 Google LLC Copyright 2025 Google LLC Google @@ -57,8 +57,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.cs b/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.cs index 350530e5b50..964cd984860 100644 --- a/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.cs +++ b/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.cs @@ -1297,8 +1297,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } diff --git a/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.csproj b/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.csproj index c86b735c8c0..c431fb6ab6b 100644 --- a/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.csproj +++ b/Src/Generated/Google.Apis.ParameterManager.v1/Google.Apis.ParameterManager.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.ParameterManager.v1 Client Library - 1.72.0.3940 + 1.72.0.3950 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.cs b/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.cs index 80c9ecec2e9..d91c0a52699 100644 --- a/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.cs +++ b/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.cs @@ -1953,6 +1953,24 @@ public class IntentPayload : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("entitleIntent")] public virtual EntitleSubscriptionIntent EntitleIntent { get; set; } + /// Optional. The additional features for the intent. + [Newtonsoft.Json.JsonPropertyAttribute("intentOptions")] + public virtual IntentPayloadIntentOptions IntentOptions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The options for the intent. + public class IntentPayloadIntentOptions : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. If true, Google may use a different product and promotion id from the ones in the `create_intent` + /// based on the user's eligibility. Only applicable for certain YouTube free trial offers. + /// + [Newtonsoft.Json.JsonPropertyAttribute("enableOfferOverride")] + public virtual System.Nullable EnableOfferOverride { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } diff --git a/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.csproj b/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.csproj index c813f7f29bd..c07872a7fb5 100644 --- a/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.csproj +++ b/Src/Generated/Google.Apis.PaymentsResellerSubscription.v1/Google.Apis.PaymentsResellerSubscription.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.PaymentsResellerSubscription.v1 Client Library - 1.72.0.3944 + 1.72.0.3951 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.cs b/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.cs index 45c9aef5836..085ea24e5c1 100644 --- a/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.cs +++ b/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.cs @@ -2108,9 +2108,9 @@ protected override void InitParameters() /// instance to restart. /// /// The body of the request. - /// Project ID of the source as well as the clone Cloud SQL instance. + /// Required. Project ID of the source as well as the clone Cloud SQL instance. /// - /// The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. + /// Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. /// public virtual CloneRequest Clone(Google.Apis.SQLAdmin.v1.Data.InstancesCloneRequest body, string project, string instance) { @@ -2132,12 +2132,12 @@ public CloneRequest(Google.Apis.Services.IClientService service, Google.Apis.SQL InitParameters(); } - /// Project ID of the source as well as the clone Cloud SQL instance. + /// Required. Project ID of the source as well as the clone Cloud SQL instance. [Google.Apis.Util.RequestParameterAttribute("project", Google.Apis.Util.RequestParameterType.Path)] public virtual string Project { get; private set; } /// - /// The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. + /// Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID. /// [Google.Apis.Util.RequestParameterAttribute("instance", Google.Apis.Util.RequestParameterType.Path)] public virtual string Instance { get; private set; } @@ -6413,7 +6413,7 @@ public class CloneContext : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("databaseNames")] public virtual System.Collections.Generic.IList DatabaseNames { get; set; } - /// Name of the Cloud SQL instance to be created as a clone. + /// Required. Name of the Cloud SQL instance to be created as a clone. [Newtonsoft.Json.JsonPropertyAttribute("destinationInstanceName")] public virtual string DestinationInstanceName { get; set; } @@ -8202,7 +8202,7 @@ public class InstancesAcquireSsrsLeaseRequest : Google.Apis.Requests.IDirectResp /// Database instance clone request. public class InstancesCloneRequest : Google.Apis.Requests.IDirectResponseSchema { - /// Contains details about the clone operation. + /// Required. Contains details about the clone operation. [Newtonsoft.Json.JsonPropertyAttribute("cloneContext")] public virtual CloneContext CloneContext { get; set; } @@ -9957,6 +9957,12 @@ public class Settings : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("crashSafeReplicationEnabled")] public virtual System.Nullable CrashSafeReplicationEnabled { get; set; } + /// + /// This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default. + /// + [Newtonsoft.Json.JsonPropertyAttribute("dataApiAccess")] + public virtual string DataApiAccess { get; set; } + /// Configuration for data cache. [Newtonsoft.Json.JsonPropertyAttribute("dataCacheConfig")] public virtual DataCacheConfig DataCacheConfig { get; set; } diff --git a/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.csproj b/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.csproj index 352c245876e..8510a7c64ee 100644 --- a/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.csproj +++ b/Src/Generated/Google.Apis.SQLAdmin.v1/Google.Apis.SQLAdmin.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.SQLAdmin.v1 Client Library - 1.72.0.3931 + 1.72.0.3944 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.SecurityCommandCenter.v1/Google.Apis.SecurityCommandCenter.v1.csproj b/Src/Generated/Google.Apis.SecurityCommandCenter.v1/Google.Apis.SecurityCommandCenter.v1.csproj index c06786c4538..cf4ca26cf98 100644 --- a/Src/Generated/Google.Apis.SecurityCommandCenter.v1/Google.Apis.SecurityCommandCenter.v1.csproj +++ b/Src/Generated/Google.Apis.SecurityCommandCenter.v1/Google.Apis.SecurityCommandCenter.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.SecurityCommandCenter.v1 Client Library - 1.72.0.3942 + 1.72.0.3949 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.SecurityCommandCenter.v1beta1/Google.Apis.SecurityCommandCenter.v1beta1.csproj b/Src/Generated/Google.Apis.SecurityCommandCenter.v1beta1/Google.Apis.SecurityCommandCenter.v1beta1.csproj index dab08319652..db510fb62de 100644 --- a/Src/Generated/Google.Apis.SecurityCommandCenter.v1beta1/Google.Apis.SecurityCommandCenter.v1beta1.csproj +++ b/Src/Generated/Google.Apis.SecurityCommandCenter.v1beta1/Google.Apis.SecurityCommandCenter.v1beta1.csproj @@ -3,7 +3,7 @@ Google.Apis.SecurityCommandCenter.v1beta1 Client Library - 1.72.0.3942 + 1.72.0.3949 Google LLC Copyright 2025 Google LLC Google diff --git a/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.cs b/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.cs index 37a623c91ab..ecec848b4fc 100644 --- a/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.cs +++ b/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.cs @@ -728,6 +728,17 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are + /// unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be + /// `true` when reading across collections e.g. when `parent` is set to + /// `"projects/example/locations/-"`. This field is not by default supported and will result in an + /// `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product + /// specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -773,6 +784,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -799,8 +818,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } @@ -989,6 +1008,14 @@ public class ListOperationsResponse : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("operations")] public virtual System.Collections.Generic.IList Operations { get; set; } + /// + /// Unordered list. Unreachable resources. Populated when the request sets + /// `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all + /// resources across all supported locations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } diff --git a/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.csproj b/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.csproj index 4d0f8c0710d..b0244e7d07c 100644 --- a/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.csproj +++ b/Src/Generated/Google.Apis.ServerlessVPCAccess.v1/Google.Apis.ServerlessVPCAccess.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.ServerlessVPCAccess.v1 Client Library - 1.71.0.3911 + 1.72.0.3946 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.cs b/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.cs index b1bd63dd95c..583facef675 100644 --- a/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.cs +++ b/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.cs @@ -384,6 +384,16 @@ public ListRequest(Google.Apis.Services.IClientService service) : base(service) [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } + /// + /// When set to `true`, operations that are reachable are returned as normal, and those that are unreachable + /// are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading + /// across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by + /// default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented + /// otherwise in service or product specific documentation. + /// + [Google.Apis.Util.RequestParameterAttribute("returnPartialSuccess", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable ReturnPartialSuccess { get; set; } + /// Gets the method name. public override string MethodName => "list"; @@ -429,6 +439,14 @@ protected override void InitParameters() DefaultValue = null, Pattern = null, }); + RequestParameters.Add("returnPartialSuccess", new Google.Apis.Discovery.Parameter + { + Name = "returnPartialSuccess", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); } } } @@ -3329,6 +3347,28 @@ public class ContentSecurity : Google.Apis.Requests.IDirectResponseSchema public virtual string ETag { get; set; } } + /// Content Security Policy contains the content security related policy of a resource. + public class ContentSecurityPolicy : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// mcp_content_security contains the content security related settings at resource level for MCP traffic. + /// + [Newtonsoft.Json.JsonPropertyAttribute("mcpContentSecurity")] + public virtual ContentSecurity McpContentSecurity { get; set; } + + /// + /// Output only. The resource name of the policy. Only the `default` policy is supported. We allow the following + /// formats: `projects/{PROJECT_NUMBER}/contentSecurityPolicies/default`, + /// `projects/{PROJECT_ID}/contentSecurityPolicies/default`, We only support project level content security + /// policy for now. + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// ContentSecurityProvider contains the name of content security provider. public class ContentSecurityProvider : Google.Apis.Requests.IDirectResponseSchema { @@ -4573,14 +4613,6 @@ public class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse : Google.A /// public class GoogleApiServiceusageV2betaConsumerPolicy : Google.Apis.Requests.IDirectResponseSchema { - /// - /// Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external - /// tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when - /// modifying objects. [AIP-128](https://google.aip.dev/128#annotations) - /// - [Newtonsoft.Json.JsonPropertyAttribute("annotations")] - public virtual System.Collections.Generic.IDictionary Annotations { get; set; } - private string _createTimeRaw; private object _createTime; @@ -5178,6 +5210,14 @@ public class ListOperationsResponse : Google.Apis.Requests.IDirectResponseSchema [Newtonsoft.Json.JsonPropertyAttribute("operations")] public virtual System.Collections.Generic.IList Operations { get; set; } + /// + /// Unordered list. Unreachable resources. Populated when the request sets + /// `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all + /// resources across all supported locations. + /// + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + /// The ETag of the item. public virtual string ETag { get; set; } } @@ -5337,10 +5377,6 @@ public class McpEnableRule : Google.Apis.Requests.IDirectResponseSchema /// public class McpPolicy : Google.Apis.Requests.IDirectResponseSchema { - /// ContentSecurity contains the content security related fields of a MCP policy. - [Newtonsoft.Json.JsonPropertyAttribute("contentSecurity")] - public virtual ContentSecurity ContentSecurity { get; set; } - private string _createTimeRaw; private object _createTime; @@ -6810,6 +6846,13 @@ public class UpdateConsumerPolicyMetadata : Google.Apis.Requests.IDirectResponse public virtual string ETag { get; set; } } + /// Metadata for the `UpdateContentSecurityPolicy` method. + public class UpdateContentSecurityPolicyMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + /// Metadata for the `UpdateMcpPolicy` method. public class UpdateMcpPolicyMetadata : Google.Apis.Requests.IDirectResponseSchema { diff --git a/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.csproj b/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.csproj index 9d6e1ec885e..661068e3fbb 100644 --- a/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.csproj +++ b/Src/Generated/Google.Apis.ServiceUsage.v1beta1/Google.Apis.ServiceUsage.v1beta1.csproj @@ -3,7 +3,7 @@ Google.Apis.ServiceUsage.v1beta1 Client Library - 1.71.0.3914 + 1.72.0.3946 Google LLC Copyright 2025 Google LLC Google @@ -59,8 +59,8 @@ - - + + diff --git a/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.cs b/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.cs index 02b9b2643ae..4129f00f6f9 100644 --- a/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.cs +++ b/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.cs @@ -1033,8 +1033,8 @@ public ListRequest(Google.Apis.Services.IClientService service, string name) : b public virtual string Name { get; private set; } /// - /// Optional. Unless explicitly documented otherwise, don't use this unsupported field which is - /// primarily intended for internal usage. + /// Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + /// otherwise. This is primarily for internal usage. /// [Google.Apis.Util.RequestParameterAttribute("extraLocationTypes", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable ExtraLocationTypes { get; set; } diff --git a/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.csproj b/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.csproj index 8de86526b07..fe26182d303 100644 --- a/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.csproj +++ b/Src/Generated/Google.Apis.StorageBatchOperations.v1/Google.Apis.StorageBatchOperations.v1.csproj @@ -3,7 +3,7 @@ Google.Apis.StorageBatchOperations.v1 Client Library - 1.72.0.3940 + 1.72.0.3947 Google LLC Copyright 2025 Google LLC Google