diff --git a/DiscoveryJson/metastore.v2alpha.json b/DiscoveryJson/metastore.v2alpha.json new file mode 100644 index 00000000000..05153aa7600 --- /dev/null +++ b/DiscoveryJson/metastore.v2alpha.json @@ -0,0 +1,2313 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://metastore.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Dataproc Metastore", + "description": "The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/dataproc-metastore/docs", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "metastore:v2alpha", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://metastore.mtls.googleapis.com/", + "name": "metastore", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "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.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "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.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "resources": { + "services": { + "methods": { + "alterLocation": { + "description": "Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterLocation", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.alterLocation", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:alterLocation", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "alterTableProperties": { + "description": "Alter metadata table properties.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:alterTableProperties", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.alterTableProperties", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the Dataproc Metastore service that's being used to mutate metadata table properties, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:alterTableProperties", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "cancelMigration": { + "description": "Cancels the ongoing Managed Migration process.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:cancelMigration", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.cancelMigration", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to cancel the ongoing migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:cancelMigration", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaCancelMigrationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "completeMigration": { + "description": "Completes the managed migration process. The Dataproc Metastore service will switch to using its own backend database after successful migration.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:completeMigration", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.completeMigration", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to complete the migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:completeMigration", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaCompleteMigrationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a metastore service in a project and location.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The relative resource name of the location in which to create a metastore service, in the following form:projects/{project_number}/locations/{location_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "location": "query", + "type": "string" + }, + "serviceId": { + "description": "Required. The ID of the metastore service, which is used as the final component of the metastore service's name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+parent}/services", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaService" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single service.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", + "httpMethod": "DELETE", + "id": "metastore.projects.locations.services.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the metastore service to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "exportMetadata": { + "description": "Exports metadata from a service.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:exportMetadata", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.exportMetadata", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to run export, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:exportMetadata", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaExportMetadataRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a single service.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the metastore service to retrieve, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleCloudMetastoreV2alphaService" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "importMetadata": { + "description": "Imports Metadata into a Dataproc Metastore service.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:importMetadata", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.importMetadata", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The relative resource name of the metastore service to run import, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+name}:importMetadata", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaImportMetadataRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists services in a project and location.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter to apply to list results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of services to return. The response may contain less than the maximum number. If unspecified, no more than 500 services are returned. The maximum value is 1000; values above 1000 are changed to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous DataprocMetastore.ListServices call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an empty page token.When paginating, other parameters provided to DataprocMetastore.ListServices must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The relative resource name of the location of metastore services to list, in the following form:projects/{project_number}/locations/{location_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+parent}/services", + "response": { + "$ref": "GoogleCloudMetastoreV2alphaListServicesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "moveTableToDatabase": { + "description": "Move a table to another database.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:moveTableToDatabase", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.moveTableToDatabase", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:moveTableToDatabase", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single service.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", + "httpMethod": "PATCH", + "id": "metastore.projects.locations.services.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. A field mask used to specify the fields to be overwritten in the metastore service resource by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaService" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "queryMetadata": { + "description": "Query Dataproc Metastore metadata.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:queryMetadata", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.queryMetadata", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:queryMetadata", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaQueryMetadataRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "removeIamPolicy": { + "description": "Removes the attached IAM policies for a resource", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/{servicesId1}:removeIamPolicy", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.removeIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "Required. The relative resource name of the dataplane resource to remove IAM policy, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id} or projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/.*$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+resource}:removeIamPolicy", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest" + }, + "response": { + "$ref": "GoogleCloudMetastoreV2alphaRemoveIamPolicyResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "restore": { + "description": "Restores a service from a backup.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:restore", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.restore", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to run restore, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:restore", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaRestoreServiceRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "startMigration": { + "description": "Starts the Managed Migration process.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:startMigration", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.startMigration", + "parameterOrder": [ + "service" + ], + "parameters": { + "service": { + "description": "Required. The relative resource name of the metastore service to start migrating to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+service}:startMigration", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaStartMigrationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "backups": { + "methods": { + "create": { + "description": "Creates a new backup in a given project and location.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/backups", + "httpMethod": "POST", + "id": "metastore.projects.locations.services.backups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "backupId": { + "description": "Required. The ID of the backup, which is used as the final component of the backup's name.This value must be between 1 and 64 characters long, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The relative resource name of the service in which to create a backup of the following form:projects/{project_number}/locations/{location_id}/services/{service_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+parent}/backups", + "request": { + "$ref": "GoogleCloudMetastoreV2alphaBackup" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single backup.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/backups/{backupsId}", + "httpMethod": "DELETE", + "id": "metastore.projects.locations.services.backups.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the backup to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single backup.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/backups/{backupsId}", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.backups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the backup to retrieve, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleCloudMetastoreV2alphaBackup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists backups in a service.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/backups", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.backups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter to apply to list results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of backups to return. The response may contain less than the maximum number. If unspecified, no more than 500 backups are returned. The maximum value is 1000; values above 1000 are changed to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous DataprocMetastore.ListBackups call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an empty page token.When paginating, other parameters provided to DataprocMetastore.ListBackups must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The relative resource name of the service whose backups to list, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+parent}/backups", + "response": { + "$ref": "GoogleCloudMetastoreV2alphaListBackupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "migrationExecutions": { + "methods": { + "delete": { + "description": "Deletes a single migration execution.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/migrationExecutions/{migrationExecutionsId}", + "httpMethod": "DELETE", + "id": "metastore.projects.locations.services.migrationExecutions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the migrationExecution to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/migrationExecutions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "location": "query", + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single migration execution.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/migrationExecutions/{migrationExecutionsId}", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.migrationExecutions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the migration execution to retrieve, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+/migrationExecutions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+name}", + "response": { + "$ref": "GoogleCloudMetastoreV2alphaMigrationExecution" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists migration executions on a service.", + "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/migrationExecutions", + "httpMethod": "GET", + "id": "metastore.projects.locations.services.migrationExecutions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The filter to apply to list results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of migration executions to return. The response may contain less than the maximum number. If unspecified, no more than 500 migration executions are returned. The maximum value is 1000; values above 1000 are changed to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous DataprocMetastore.ListMigrationExecutions call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an empty page token.When paginating, other parameters provided to DataprocMetastore.ListMigrationExecutions must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The relative resource name of the service whose migration executions to list, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha/{+parent}/migrationExecutions", + "response": { + "$ref": "GoogleCloudMetastoreV2alphaListMigrationExecutionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + }, + "revision": "20241203", + "rootUrl": "https://metastore.googleapis.com/", + "schemas": { + "GoogleCloudMetastoreV1AlterMetadataResourceLocationResponse": { + "description": "Response message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "GoogleCloudMetastoreV1AlterMetadataResourceLocationResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV1CustomRegionMetadata": { + "description": "Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.", + "id": "GoogleCloudMetastoreV1CustomRegionMetadata", + "properties": { + "optionalReadOnlyRegions": { + "description": "The read-only regions for this custom region.", + "items": { + "type": "string" + }, + "type": "array" + }, + "requiredReadWriteRegions": { + "description": "The read-write regions for this custom region.", + "items": { + "type": "string" + }, + "type": "array" + }, + "witnessRegion": { + "description": "The Spanner witness region for this custom region.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1ErrorDetails": { + "description": "Error details in public error message for DataprocMetastore.QueryMetadata.", + "id": "GoogleCloudMetastoreV1ErrorDetails", + "properties": { + "details": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional structured details about this error.Keys define the failure items. Value describes the exception or details of the item.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1HiveMetastoreVersion": { + "description": "A specification of a supported version of the Hive Metastore software.", + "id": "GoogleCloudMetastoreV1HiveMetastoreVersion", + "properties": { + "isDefault": { + "description": "Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig that omits the version.", + "type": "boolean" + }, + "version": { + "description": "The semantic version of the Hive Metastore software.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1LocationMetadata": { + "description": "Metadata about the service in a location.", + "id": "GoogleCloudMetastoreV1LocationMetadata", + "properties": { + "customRegionMetadata": { + "description": "Possible configurations supported if the current region is a custom region.", + "items": { + "$ref": "GoogleCloudMetastoreV1CustomRegionMetadata" + }, + "type": "array" + }, + "multiRegionMetadata": { + "$ref": "GoogleCloudMetastoreV1MultiRegionMetadata", + "description": "The multi-region metadata if the current region is a multi-region." + }, + "supportedHiveMetastoreVersions": { + "description": "The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.", + "items": { + "$ref": "GoogleCloudMetastoreV1HiveMetastoreVersion" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1MoveTableToDatabaseResponse": { + "description": "Response message for DataprocMetastore.MoveTableToDatabase.", + "id": "GoogleCloudMetastoreV1MoveTableToDatabaseResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV1MultiRegionMetadata": { + "description": "The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.", + "id": "GoogleCloudMetastoreV1MultiRegionMetadata", + "properties": { + "constituentRegions": { + "description": "The regions constituting the multi-region.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1OperationMetadata": { + "description": "Represents the metadata of a long-running operation.", + "id": "GoogleCloudMetastoreV1OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1QueryMetadataResponse": { + "description": "Response message for DataprocMetastore.QueryMetadata.", + "id": "GoogleCloudMetastoreV1QueryMetadataResponse", + "properties": { + "resultManifestUri": { + "description": "The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaAlterMetadataResourceLocationResponse": { + "description": "Response message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "GoogleCloudMetastoreV1alphaAlterMetadataResourceLocationResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaCancelMigrationResponse": { + "description": "Response message for DataprocMetastore.CancelMigration.", + "id": "GoogleCloudMetastoreV1alphaCancelMigrationResponse", + "properties": { + "migrationExecution": { + "description": "The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaCompleteMigrationResponse": { + "description": "Response message for DataprocMetastore.CompleteMigration.", + "id": "GoogleCloudMetastoreV1alphaCompleteMigrationResponse", + "properties": { + "migrationExecution": { + "description": "The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaCustomRegionMetadata": { + "description": "Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.", + "id": "GoogleCloudMetastoreV1alphaCustomRegionMetadata", + "properties": { + "optionalReadOnlyRegions": { + "description": "The read-only regions for this custom region.", + "items": { + "type": "string" + }, + "type": "array" + }, + "requiredReadWriteRegions": { + "description": "The read-write regions for this custom region.", + "items": { + "type": "string" + }, + "type": "array" + }, + "witnessRegion": { + "description": "The Spanner witness region for this custom region.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaErrorDetails": { + "description": "Error details in public error message for DataprocMetastore.QueryMetadata.", + "id": "GoogleCloudMetastoreV1alphaErrorDetails", + "properties": { + "details": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional structured details about this error.Keys define the failure items. Value describes the exception or details of the item.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaHiveMetastoreVersion": { + "description": "A specification of a supported version of the Hive Metastore software.", + "id": "GoogleCloudMetastoreV1alphaHiveMetastoreVersion", + "properties": { + "isDefault": { + "description": "Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig that omits the version.", + "type": "boolean" + }, + "version": { + "description": "The semantic version of the Hive Metastore software.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaLocationMetadata": { + "description": "Metadata about the service in a location.", + "id": "GoogleCloudMetastoreV1alphaLocationMetadata", + "properties": { + "customRegionMetadata": { + "description": "Possible configurations supported if the current region is a custom region.", + "items": { + "$ref": "GoogleCloudMetastoreV1alphaCustomRegionMetadata" + }, + "type": "array" + }, + "multiRegionMetadata": { + "$ref": "GoogleCloudMetastoreV1alphaMultiRegionMetadata", + "description": "The multi-region metadata if the current region is a multi-region." + }, + "supportedHiveMetastoreVersions": { + "description": "The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.", + "items": { + "$ref": "GoogleCloudMetastoreV1alphaHiveMetastoreVersion" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaMoveTableToDatabaseResponse": { + "description": "Response message for DataprocMetastore.MoveTableToDatabase.", + "id": "GoogleCloudMetastoreV1alphaMoveTableToDatabaseResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaMultiRegionMetadata": { + "description": "The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.", + "id": "GoogleCloudMetastoreV1alphaMultiRegionMetadata", + "properties": { + "constituentRegions": { + "description": "The regions constituting the multi-region.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaOperationMetadata": { + "description": "Represents the metadata of a long-running operation.", + "id": "GoogleCloudMetastoreV1alphaOperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1alphaQueryMetadataResponse": { + "description": "Response message for DataprocMetastore.QueryMetadata.", + "id": "GoogleCloudMetastoreV1alphaQueryMetadataResponse", + "properties": { + "resultManifestUri": { + "description": "The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaAlterMetadataResourceLocationResponse": { + "description": "Response message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "GoogleCloudMetastoreV1betaAlterMetadataResourceLocationResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV1betaCancelMigrationResponse": { + "description": "Response message for DataprocMetastore.CancelMigration.", + "id": "GoogleCloudMetastoreV1betaCancelMigrationResponse", + "properties": { + "migrationExecution": { + "description": "The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaCompleteMigrationResponse": { + "description": "Response message for DataprocMetastore.CompleteMigration.", + "id": "GoogleCloudMetastoreV1betaCompleteMigrationResponse", + "properties": { + "migrationExecution": { + "description": "The relative resource name of the migration execution, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaCustomRegionMetadata": { + "description": "Metadata about a custom region. This is only populated if the region is a custom region. For single/multi regions, it will be empty.", + "id": "GoogleCloudMetastoreV1betaCustomRegionMetadata", + "properties": { + "optionalReadOnlyRegions": { + "description": "The read-only regions for this custom region.", + "items": { + "type": "string" + }, + "type": "array" + }, + "requiredReadWriteRegions": { + "description": "The read-write regions for this custom region.", + "items": { + "type": "string" + }, + "type": "array" + }, + "witnessRegion": { + "description": "The Spanner witness region for this custom region.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaErrorDetails": { + "description": "Error details in public error message for DataprocMetastore.QueryMetadata.", + "id": "GoogleCloudMetastoreV1betaErrorDetails", + "properties": { + "details": { + "additionalProperties": { + "type": "string" + }, + "description": "Additional structured details about this error.Keys define the failure items. Value describes the exception or details of the item.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaHiveMetastoreVersion": { + "description": "A specification of a supported version of the Hive Metastore software.", + "id": "GoogleCloudMetastoreV1betaHiveMetastoreVersion", + "properties": { + "isDefault": { + "description": "Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig that omits the version.", + "type": "boolean" + }, + "version": { + "description": "The semantic version of the Hive Metastore software.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaLocationMetadata": { + "description": "Metadata about the service in a location.", + "id": "GoogleCloudMetastoreV1betaLocationMetadata", + "properties": { + "customRegionMetadata": { + "description": "Possible configurations supported if the current region is a custom region.", + "items": { + "$ref": "GoogleCloudMetastoreV1betaCustomRegionMetadata" + }, + "type": "array" + }, + "multiRegionMetadata": { + "$ref": "GoogleCloudMetastoreV1betaMultiRegionMetadata", + "description": "The multi-region metadata if the current region is a multi-region." + }, + "supportedHiveMetastoreVersions": { + "description": "The versions of Hive Metastore that can be used when creating a new metastore service in this location. The server guarantees that exactly one HiveMetastoreVersion in the list will set is_default.", + "items": { + "$ref": "GoogleCloudMetastoreV1betaHiveMetastoreVersion" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaMoveTableToDatabaseResponse": { + "description": "Response message for DataprocMetastore.MoveTableToDatabase.", + "id": "GoogleCloudMetastoreV1betaMoveTableToDatabaseResponse", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV1betaMultiRegionMetadata": { + "description": "The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the region is multi-region. For single region or custom dual region, it will be empty.", + "id": "GoogleCloudMetastoreV1betaMultiRegionMetadata", + "properties": { + "constituentRegions": { + "description": "The regions constituting the multi-region.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaOperationMetadata": { + "description": "Represents the metadata of a long-running operation.", + "id": "GoogleCloudMetastoreV1betaOperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV1betaQueryMetadataResponse": { + "description": "Response message for DataprocMetastore.QueryMetadata.", + "id": "GoogleCloudMetastoreV1betaQueryMetadataResponse", + "properties": { + "resultManifestUri": { + "description": "The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query against the metadata finishes.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest": { + "description": "Request message for DataprocMetastore.AlterMetadataResourceLocation.", + "id": "GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest", + "properties": { + "locationUri": { + "description": "Required. The new location URI for the metadata resource.", + "type": "string" + }, + "resourceName": { + "description": "Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest": { + "description": "Request message for DataprocMetastore.AlterTableProperties.", + "id": "GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest", + "properties": { + "properties": { + "additionalProperties": { + "type": "string" + }, + "description": "A map that describes the desired values to mutate. If update_mask is empty, the properties will not update. Otherwise, the properties only alters the value whose associated paths exist in the update mask", + "type": "object" + }, + "tableName": { + "description": "Required. The name of the table containing the properties you're altering in the following format.databases/{database_id}/tables/{table_id}", + "type": "string" + }, + "updateMask": { + "description": "A field mask that specifies the metadata table properties that are overwritten by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.For example, given the target properties: properties { a: 1 b: 2 } And an update properties: properties { a: 2 b: 3 c: 4 } then if the field mask is:paths: \"properties.b\", \"properties.c\"then the result will be: properties { a: 1 b: 3 c: 4 } ", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaAutoscalingConfig": { + "description": "Represents the autoscaling configuration of a metastore service.", + "id": "GoogleCloudMetastoreV2alphaAutoscalingConfig", + "properties": { + "autoscalingEnabled": { + "description": "Optional. Whether or not autoscaling is enabled for this service.", + "type": "boolean" + }, + "autoscalingFactor": { + "description": "Output only. The scaling factor of a service with autoscaling enabled.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "limitConfig": { + "$ref": "GoogleCloudMetastoreV2alphaLimitConfig", + "description": "Optional. The LimitConfig of the service." + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaAuxiliaryVersionConfig": { + "description": "Configuration information for the auxiliary service versions.", + "id": "GoogleCloudMetastoreV2alphaAuxiliaryVersionConfig", + "properties": { + "configOverrides": { + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in hive-site.xml) in addition to the primary version's overrides. If keys are present in both the auxiliary version's overrides and the primary version's overrides, the value from the auxiliary version's overrides takes precedence.", + "type": "object" + }, + "endpoints": { + "description": "Output only. The list of endpoints used to access the auxiliary metastore service, includes version and region data.", + "items": { + "$ref": "GoogleCloudMetastoreV2alphaEndpoint" + }, + "readOnly": true, + "type": "array" + }, + "version": { + "description": "The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service's version.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaBackup": { + "description": "The details of a backup resource.", + "id": "GoogleCloudMetastoreV2alphaBackup", + "properties": { + "createTime": { + "description": "Output only. The time when the backup was started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "The description of the backup.", + "type": "string" + }, + "endTime": { + "description": "Output only. The time when the backup finished creating.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Immutable. The relative resource name of the backup, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}", + "type": "string" + }, + "restoringServices": { + "description": "Output only. Services that are restoring from the backup.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "serviceRevision": { + "$ref": "GoogleCloudMetastoreV2alphaService", + "description": "Output only. The revision of the service at the time of backup.", + "readOnly": true + }, + "state": { + "description": "Output only. The current state of the backup.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "DELETING", + "ACTIVE", + "FAILED", + "RESTORING" + ], + "enumDescriptions": [ + "The state of the backup is unknown.", + "The backup is being created.", + "The backup is being deleted.", + "The backup is active and ready to use.", + "The backup failed.", + "The backup is being restored." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaCancelMigrationRequest": { + "description": "Request message for DataprocMetastore.CancelMigration.", + "id": "GoogleCloudMetastoreV2alphaCancelMigrationRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaCdcConfig": { + "description": "Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore.", + "id": "GoogleCloudMetastoreV2alphaCdcConfig", + "properties": { + "bucket": { + "description": "Optional. The bucket to write the intermediate stream event data in. The bucket name must be without any prefix like \"gs://\". See the bucket naming requirements (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the Artifacts Cloud Storage bucket will be used.", + "type": "string" + }, + "password": { + "description": "Required. Input only. The password for the user that Datastream service should use for the MySQL connection. This field is not returned on request.", + "type": "string" + }, + "reverseProxySubnet": { + "description": "Required. The URL of the subnetwork resource to create the VM instance hosting the reverse proxy in. More context in https://cloud.google.com/datastream/docs/private-connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the request that Datastream will peer to and should be in the same region as Datastream, in the following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id}", + "type": "string" + }, + "rootPath": { + "description": "Optional. The root path inside the Cloud Storage bucket. The stream event data will be written to this path. The default value is /migration.", + "type": "string" + }, + "subnetIpRange": { + "description": "Required. A /29 CIDR IP range for peering with datastream.", + "type": "string" + }, + "username": { + "description": "Required. The username that the Datastream service should use for the MySQL connection.", + "type": "string" + }, + "vpcNetwork": { + "description": "Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC network that Datastream will peer to, in the following format: projects/{project_id}/locations/global/networks/{network_id}. More context in https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaCloudSQLConnectionConfig": { + "description": "Configuration information to establish customer database connection before the cutover phase of migration", + "id": "GoogleCloudMetastoreV2alphaCloudSQLConnectionConfig", + "properties": { + "hiveDatabaseName": { + "description": "Required. The hive database name.", + "type": "string" + }, + "instanceConnectionName": { + "description": "Required. Cloud SQL database connection name (project_id:region:instance_name)", + "type": "string" + }, + "ipAddress": { + "description": "Required. The private IP address of the Cloud SQL instance.", + "type": "string" + }, + "natSubnet": { + "description": "Required. The relative resource name of the subnetwork to be used for Private Service Connect. Note that this cannot be a regular subnet and is used only for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id}", + "type": "string" + }, + "password": { + "description": "Required. Input only. The password for the user that Dataproc Metastore service will be using to connect to the database. This field is not returned on request.", + "type": "string" + }, + "port": { + "description": "Required. The network port of the database.", + "format": "int32", + "type": "integer" + }, + "proxySubnet": { + "description": "Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. The subnetwork should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id}", + "type": "string" + }, + "username": { + "description": "Required. The username that Dataproc Metastore service will use to connect to the database.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaCloudSQLMigrationConfig": { + "description": "Configuration information for migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.", + "id": "GoogleCloudMetastoreV2alphaCloudSQLMigrationConfig", + "properties": { + "cdcConfig": { + "$ref": "GoogleCloudMetastoreV2alphaCdcConfig", + "description": "Required. Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to using its backend database after the cutover phase of migration." + }, + "cloudSqlConnectionConfig": { + "$ref": "GoogleCloudMetastoreV2alphaCloudSQLConnectionConfig", + "description": "Required. Configuration information to establish customer database connection before the cutover phase of migration" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaCompleteMigrationRequest": { + "description": "Request message for DataprocMetastore.CompleteMigration.", + "id": "GoogleCloudMetastoreV2alphaCompleteMigrationRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaDataCatalogConfig": { + "description": "Specifies how metastore metadata should be integrated with the Data Catalog service.", + "id": "GoogleCloudMetastoreV2alphaDataCatalogConfig", + "properties": { + "enabled": { + "description": "Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaDatabaseDump": { + "description": "A specification of the location of and metadata about a database dump from a relational database management system.", + "id": "GoogleCloudMetastoreV2alphaDatabaseDump", + "properties": { + "gcsUri": { + "description": "Required. A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.", + "type": "string" + }, + "type": { + "description": "Optional. The type of the database dump. If unspecified, defaults to MYSQL.", + "enum": [ + "TYPE_UNSPECIFIED", + "MYSQL", + "AVRO" + ], + "enumDescriptions": [ + "The type of the database dump is unknown.", + "Database dump is a MySQL dump file.", + "Database dump contains Avro files." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaEncryptionConfig": { + "description": "Encryption settings for the service.", + "id": "GoogleCloudMetastoreV2alphaEncryptionConfig", + "properties": {}, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaEndpoint": { + "description": "An endpoint used to access the metastore service.", + "id": "GoogleCloudMetastoreV2alphaEndpoint", + "properties": { + "endpointUri": { + "description": "Output only. The URI of the endpoint used to access the metastore service.", + "readOnly": true, + "type": "string" + }, + "region": { + "description": "Output only. The region where the endpoint is located.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaExportMetadataRequest": { + "description": "Request message for DataprocMetastore.ExportMetadata.", + "id": "GoogleCloudMetastoreV2alphaExportMetadataRequest", + "properties": { + "databaseDumpType": { + "description": "Optional. The type of the database dump. If unspecified, defaults to MYSQL.", + "enum": [ + "TYPE_UNSPECIFIED", + "MYSQL", + "AVRO" + ], + "enumDescriptions": [ + "The type of the database dump is unknown.", + "Database dump is a MySQL dump file.", + "Database dump contains Avro files." + ], + "type": "string" + }, + "destinationGcsFolder": { + "description": "A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing exported files will be created below it.", + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaHiveMetastoreConfig": { + "description": "Specifies configuration information specific to running Hive metastore software as the metastore service.", + "id": "GoogleCloudMetastoreV2alphaHiveMetastoreConfig", + "properties": { + "auxiliaryVersions": { + "additionalProperties": { + "$ref": "GoogleCloudMetastoreV2alphaAuxiliaryVersionConfig" + }, + "description": "Optional. A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service's primary version. The key is the auxiliary service name and it must match the regular expression a-z?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.", + "type": "object" + }, + "configOverrides": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's AuxiliaryVersionConfig.", + "type": "object" + }, + "endpointProtocol": { + "description": "Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to GRPC.", + "enum": [ + "ENDPOINT_PROTOCOL_UNSPECIFIED", + "THRIFT", + "GRPC" + ], + "enumDescriptions": [ + "The protocol is not set.", + "Use the legacy Apache Thrift protocol for the metastore service endpoint.", + "Use the modernized gRPC protocol for the metastore service endpoint." + ], + "type": "string" + }, + "version": { + "description": "Immutable. The Hive metastore schema version.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaImportMetadataRequest": { + "description": "Request message for DataprocMetastore.CreateMetadataImport.", + "id": "GoogleCloudMetastoreV2alphaImportMetadataRequest", + "properties": { + "databaseDump": { + "$ref": "GoogleCloudMetastoreV2alphaDatabaseDump", + "description": "Immutable. A database dump from a pre-existing metastore's database." + }, + "description": { + "description": "Optional. The description of the metadata import.", + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaLatestBackup": { + "description": "The details of the latest scheduled backup.", + "id": "GoogleCloudMetastoreV2alphaLatestBackup", + "properties": { + "backupId": { + "description": "Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.", + "readOnly": true, + "type": "string" + }, + "duration": { + "description": "Output only. The duration of the backup completion.", + "format": "google-duration", + "readOnly": true, + "type": "string" + }, + "startTime": { + "description": "Output only. The time when the backup was started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current state of the backup.", + "enum": [ + "STATE_UNSPECIFIED", + "IN_PROGRESS", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "The state of the backup is unknown.", + "The backup is in progress.", + "The backup completed.", + "The backup failed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaLimitConfig": { + "description": "Represents the autoscaling limit configuration of a metastore service.", + "id": "GoogleCloudMetastoreV2alphaLimitConfig", + "properties": { + "maxScalingFactor": { + "description": "Optional. The highest scaling factor that the service should be autoscaled to.", + "format": "int32", + "type": "integer" + }, + "minScalingFactor": { + "description": "Optional. The lowest scaling factor that the service should be autoscaled to.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaListBackupsResponse": { + "description": "Response message for DataprocMetastore.ListBackups.", + "id": "GoogleCloudMetastoreV2alphaListBackupsResponse", + "properties": { + "backups": { + "description": "The backups of the specified service.", + "items": { + "$ref": "GoogleCloudMetastoreV2alphaBackup" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaListMigrationExecutionsResponse": { + "description": "Response message for DataprocMetastore.ListMigrationExecutions.", + "id": "GoogleCloudMetastoreV2alphaListMigrationExecutionsResponse", + "properties": { + "migrationExecutions": { + "description": "The migration executions on the specified service.", + "items": { + "$ref": "GoogleCloudMetastoreV2alphaMigrationExecution" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaListServicesResponse": { + "description": "Response message for DataprocMetastore.ListServices.", + "id": "GoogleCloudMetastoreV2alphaListServicesResponse", + "properties": { + "nextPageToken": { + "description": "A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "services": { + "description": "The services in the specified location.", + "items": { + "$ref": "GoogleCloudMetastoreV2alphaService" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaMetadataIntegration": { + "description": "Specifies how metastore metadata should be integrated with external services.", + "id": "GoogleCloudMetastoreV2alphaMetadataIntegration", + "properties": { + "dataCatalogConfig": { + "$ref": "GoogleCloudMetastoreV2alphaDataCatalogConfig", + "description": "Optional. The integration config for the Data Catalog service." + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaMigrationExecution": { + "description": "The details of a migration execution resource.", + "id": "GoogleCloudMetastoreV2alphaMigrationExecution", + "properties": { + "cloudSqlMigrationConfig": { + "$ref": "GoogleCloudMetastoreV2alphaCloudSQLMigrationConfig", + "description": "Configuration information specific to migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore." + }, + "createTime": { + "description": "Output only. The time when the migration execution was started.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time when the migration execution finished.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The relative resource name of the migration execution, in the following form: projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}", + "readOnly": true, + "type": "string" + }, + "phase": { + "description": "Output only. The current phase of the migration execution.", + "enum": [ + "PHASE_UNSPECIFIED", + "REPLICATION", + "CUTOVER" + ], + "enumDescriptions": [ + "The phase of the migration execution is unknown.", + "Replication phase refers to the migration phase when Dataproc Metastore is running a pipeline to replicate changes in the customer database to its backend database. During this phase, Dataproc Metastore uses the customer database as the hive metastore backend database.", + "Cutover phase refers to the migration phase when Dataproc Metastore switches to using its own backend database. Migration enters this phase when customer is done migrating all their clusters/workloads to Dataproc Metastore and triggers CompleteMigration." + ], + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current state of the migration execution.", + "enum": [ + "STATE_UNSPECIFIED", + "STARTING", + "RUNNING", + "CANCELLING", + "AWAITING_USER_ACTION", + "SUCCEEDED", + "FAILED", + "CANCELLED", + "DELETING" + ], + "enumDescriptions": [ + "The state of the migration execution is unknown.", + "The migration execution is starting.", + "The migration execution is running.", + "The migration execution is in the process of being cancelled.", + "The migration execution is awaiting user action.", + "The migration execution has completed successfully.", + "The migration execution has failed.", + "The migration execution is cancelled.", + "The migration execution is being deleted." + ], + "readOnly": true, + "type": "string" + }, + "stateMessage": { + "description": "Output only. Additional information about the current state of the migration execution.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest": { + "description": "Request message for DataprocMetastore.MoveTableToDatabase.", + "id": "GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest", + "properties": { + "dbName": { + "description": "Required. The name of the database where the table resides.", + "type": "string" + }, + "destinationDbName": { + "description": "Required. The name of the database where the table should be moved.", + "type": "string" + }, + "tableName": { + "description": "Required. The name of the table to be moved.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaQueryMetadataRequest": { + "description": "Request message for DataprocMetastore.QueryMetadata.", + "id": "GoogleCloudMetastoreV2alphaQueryMetadataRequest", + "properties": { + "query": { + "description": "Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest": { + "description": "Request message for DataprocMetastore.RemoveIamPolicy.", + "id": "GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest", + "properties": { + "asynchronous": { + "description": "Optional. Removes IAM policy attached to database or table asynchronously when it is set. The default is false.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaRemoveIamPolicyResponse": { + "description": "Response message for DataprocMetastore.RemoveIamPolicy.", + "id": "GoogleCloudMetastoreV2alphaRemoveIamPolicyResponse", + "properties": { + "success": { + "description": "True if the policy is successfully removed.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaRestoreServiceRequest": { + "description": "Request message for DataprocMetastore.Restore.", + "id": "GoogleCloudMetastoreV2alphaRestoreServiceRequest", + "properties": { + "backup": { + "description": "Optional. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}. Mutually exclusive with backup_location, and exactly one of the two must be set.", + "type": "string" + }, + "backupLocation": { + "description": "Optional. A Cloud Storage URI specifying the location of the backup artifacts, namely - backup avro files under \"avro/\", backup_metastore.json and service.json, in the following form:gs://. Mutually exclusive with backup, and exactly one of the two must be set.", + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "type": "string" + }, + "restoreType": { + "description": "Optional. The type of restore. If unspecified, defaults to METADATA_ONLY.", + "enum": [ + "RESTORE_TYPE_UNSPECIFIED", + "FULL", + "METADATA_ONLY" + ], + "enumDescriptions": [ + "The restore type is unknown.", + "The service's metadata and configuration are restored.", + "Only the service's metadata is restored." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaScalingConfig": { + "description": "Represents the scaling configuration of a metastore service.", + "id": "GoogleCloudMetastoreV2alphaScalingConfig", + "properties": { + "autoscalingConfig": { + "$ref": "GoogleCloudMetastoreV2alphaAutoscalingConfig", + "description": "Optional. The autoscaling configuration." + }, + "scalingFactor": { + "description": "Optional. Scaling factor from 1 to 5, increments of 1.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaScheduledBackup": { + "description": "This specifies the configuration of scheduled backup.", + "id": "GoogleCloudMetastoreV2alphaScheduledBackup", + "properties": { + "backupLocation": { + "description": "Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.", + "type": "string" + }, + "cronSchedule": { + "description": "Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.", + "type": "string" + }, + "enabled": { + "description": "Optional. Defines whether the scheduled backup is enabled. The default value is false.", + "type": "boolean" + }, + "latestBackup": { + "$ref": "GoogleCloudMetastoreV2alphaLatestBackup", + "description": "Output only. The details of the latest scheduled backup.", + "readOnly": true + }, + "nextScheduledTime": { + "description": "Output only. The time when the next backups execution is scheduled to start.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "timeZone": { + "description": "Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaService": { + "description": "A managed metastore service that serves metadata queries.", + "id": "GoogleCloudMetastoreV2alphaService", + "properties": { + "createTime": { + "description": "Output only. The time when the metastore service was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "encryptionConfig": { + "$ref": "GoogleCloudMetastoreV2alphaEncryptionConfig", + "description": "Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated." + }, + "endpoints": { + "description": "Output only. The list of endpoints used to access the metastore service.", + "items": { + "$ref": "GoogleCloudMetastoreV2alphaEndpoint" + }, + "readOnly": true, + "type": "array" + }, + "hiveMetastoreConfig": { + "$ref": "GoogleCloudMetastoreV2alphaHiveMetastoreConfig", + "description": "Configuration information specific to running Hive metastore software as the metastore service." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "User-defined labels for the metastore service.", + "type": "object" + }, + "metadataIntegration": { + "$ref": "GoogleCloudMetastoreV2alphaMetadataIntegration", + "description": "Optional. The setting that defines how metastore metadata should be integrated with external services and systems." + }, + "name": { + "description": "Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.", + "type": "string" + }, + "scalingConfig": { + "$ref": "GoogleCloudMetastoreV2alphaScalingConfig", + "description": "Optional. Scaling configuration of the metastore service." + }, + "scheduledBackup": { + "$ref": "GoogleCloudMetastoreV2alphaScheduledBackup", + "description": "Optional. The configuration of scheduled backup for the metastore service." + }, + "state": { + "description": "Output only. The current state of the metastore service.", + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "SUSPENDING", + "SUSPENDED", + "UPDATING", + "DELETING", + "ERROR", + "MIGRATING" + ], + "enumDescriptions": [ + "The state of the metastore service is unknown.", + "The metastore service is in the process of being created.", + "The metastore service is running and ready to serve queries.", + "The metastore service is entering suspension. Its query-serving availability may cease unexpectedly.", + "The metastore service is suspended and unable to serve queries.", + "The metastore service is being updated. It remains usable but cannot accept additional update requests or be deleted at this time.", + "The metastore service is undergoing deletion. It cannot be used.", + "The metastore service has encountered an error and cannot be used. The metastore service should be deleted.", + "The metastore service is processing a managed migration." + ], + "readOnly": true, + "type": "string" + }, + "stateMessage": { + "description": "Output only. Additional information about the current state of the metastore service, if available.", + "readOnly": true, + "type": "string" + }, + "uid": { + "description": "Output only. The globally unique resource identifier of the metastore service.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the metastore service was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "warehouseGcsUri": { + "description": "Required. A Cloud Storage URI (starting with gs://) that specifies the default warehouse directory of the Hive Metastore.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudMetastoreV2alphaStartMigrationRequest": { + "description": "Request message for DataprocMetastore.StartMigration.", + "id": "GoogleCloudMetastoreV2alphaStartMigrationRequest", + "properties": { + "migrationExecution": { + "$ref": "GoogleCloudMetastoreV2alphaMigrationExecution", + "description": "Required. The configuration details for the migration." + }, + "requestId": { + "description": "Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleLongrunningOperation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "GoogleLongrunningOperation", + "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": "GoogleRpcStatus", + "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" + }, + "GoogleRpcStatus": { + "description": "The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).", + "id": "GoogleRpcStatus", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Dataproc Metastore API", + "version": "v2alpha", + "version_module": true +} \ No newline at end of file diff --git a/EnumStorage/metastore.v2alpha.json b/EnumStorage/metastore.v2alpha.json new file mode 100644 index 00000000000..0a7be8f34eb --- /dev/null +++ b/EnumStorage/metastore.v2alpha.json @@ -0,0 +1,11 @@ +{ + "Google.Apis.DataprocMetastore.v2alpha.DataprocMetastoreBaseServiceRequest<>.AltEnum": [ + "json", + "media", + "proto" + ], + "Google.Apis.DataprocMetastore.v2alpha.DataprocMetastoreBaseServiceRequest<>.XgafvEnum": [ + "1", + "2" + ] +} \ No newline at end of file diff --git a/Src/Generated/Google.Apis.DataprocMetastore.v2alpha/Google.Apis.DataprocMetastore.v2alpha.cs b/Src/Generated/Google.Apis.DataprocMetastore.v2alpha/Google.Apis.DataprocMetastore.v2alpha.cs new file mode 100644 index 00000000000..4af09f3d273 --- /dev/null +++ b/Src/Generated/Google.Apis.DataprocMetastore.v2alpha/Google.Apis.DataprocMetastore.v2alpha.cs @@ -0,0 +1,3942 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Generated code. DO NOT EDIT! + +namespace Google.Apis.DataprocMetastore.v2alpha +{ + /// The DataprocMetastore Service. + public class DataprocMetastoreService : Google.Apis.Services.BaseClientService + { + /// The API version. + public const string Version = "v2alpha"; + + /// The discovery version used to generate this service. + public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0; + + /// Constructs a new service. + public DataprocMetastoreService() : this(new Google.Apis.Services.BaseClientService.Initializer()) + { + } + + /// Constructs a new service. + /// The service initializer. + public DataprocMetastoreService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer) + { + Projects = new ProjectsResource(this); + BaseUri = GetEffectiveUri(BaseUriOverride, "https://metastore.googleapis.com/"); + BatchUri = GetEffectiveUri(null, "https://metastore.googleapis.com/batch"); + } + + /// Gets the service supported features. + public override System.Collections.Generic.IList Features => new string[0]; + + /// Gets the service name. + public override string Name => "metastore"; + + /// Gets the service base URI. + public override string BaseUri { get; } + + /// Gets the service base path. + public override string BasePath => ""; + + /// Gets the batch base URI; null if unspecified. + public override string BatchUri { get; } + + /// Gets the batch base path; null if unspecified. + public override string BatchPath => "batch"; + + /// Available OAuth 2.0 scopes for use with the Dataproc Metastore API. + public class Scope + { + /// + /// See, edit, configure, and delete your Google Cloud data and see the email address for your Google + /// Account. + /// + public static string CloudPlatform = "https://www.googleapis.com/auth/cloud-platform"; + } + + /// Available OAuth 2.0 scope constants for use with the Dataproc Metastore API. + public static class ScopeConstants + { + /// + /// See, edit, configure, and delete your Google Cloud data and see the email address for your Google + /// Account. + /// + public const string CloudPlatform = "https://www.googleapis.com/auth/cloud-platform"; + } + + /// Gets the Projects resource. + public virtual ProjectsResource Projects { get; } + } + + /// A base abstract class for DataprocMetastore requests. + public abstract class DataprocMetastoreBaseServiceRequest : Google.Apis.Requests.ClientServiceRequest + { + /// Constructs a new DataprocMetastoreBaseServiceRequest instance. + protected DataprocMetastoreBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service) + { + } + + /// V1 error format. + [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Xgafv { get; set; } + + /// V1 error format. + public enum XgafvEnum + { + /// v1 error format + [Google.Apis.Util.StringValueAttribute("1")] + Value1 = 0, + + /// v2 error format + [Google.Apis.Util.StringValueAttribute("2")] + Value2 = 1, + } + + /// OAuth access token. + [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] + public virtual string AccessToken { get; set; } + + /// Data format for response. + [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable Alt { get; set; } + + /// Data format for response. + public enum AltEnum + { + /// Responses with Content-Type of application/json + [Google.Apis.Util.StringValueAttribute("json")] + Json = 0, + + /// Media download with context-dependent Content-Type + [Google.Apis.Util.StringValueAttribute("media")] + Media = 1, + + /// Responses with Content-Type of application/x-protobuf + [Google.Apis.Util.StringValueAttribute("proto")] + Proto = 2, + } + + /// JSONP + [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Callback { get; 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; } + + /// + /// 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; } + + /// 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; } + + /// Returns response with indentations and line breaks. + [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] + public virtual System.Nullable PrettyPrint { 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; } + + /// 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; } + + /// 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; } + + /// Initializes DataprocMetastore parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("$.xgafv", new Google.Apis.Discovery.Parameter + { + Name = "$.xgafv", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("access_token", new Google.Apis.Discovery.Parameter + { + Name = "access_token", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("alt", new Google.Apis.Discovery.Parameter + { + Name = "alt", + IsRequired = false, + ParameterType = "query", + DefaultValue = "json", + Pattern = null, + }); + RequestParameters.Add("callback", new Google.Apis.Discovery.Parameter + { + Name = "callback", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("fields", new Google.Apis.Discovery.Parameter + { + Name = "fields", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("key", new Google.Apis.Discovery.Parameter + { + Name = "key", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("oauth_token", new Google.Apis.Discovery.Parameter + { + Name = "oauth_token", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("prettyPrint", new Google.Apis.Discovery.Parameter + { + Name = "prettyPrint", + IsRequired = false, + ParameterType = "query", + DefaultValue = "true", + Pattern = null, + }); + RequestParameters.Add("quotaUser", new Google.Apis.Discovery.Parameter + { + Name = "quotaUser", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("uploadType", new Google.Apis.Discovery.Parameter + { + Name = "uploadType", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("upload_protocol", new Google.Apis.Discovery.Parameter + { + Name = "upload_protocol", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// The "projects" collection of methods. + public class ProjectsResource + { + private const string Resource = "projects"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ProjectsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Locations = new LocationsResource(service); + } + + /// Gets the Locations resource. + public virtual LocationsResource Locations { get; } + + /// The "locations" collection of methods. + public class LocationsResource + { + private const string Resource = "locations"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public LocationsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Services = new ServicesResource(service); + } + + /// Gets the Services resource. + public virtual ServicesResource Services { get; } + + /// The "services" collection of methods. + public class ServicesResource + { + private const string Resource = "services"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public ServicesResource(Google.Apis.Services.IClientService service) + { + this.service = service; + Backups = new BackupsResource(service); + MigrationExecutions = new MigrationExecutionsResource(service); + } + + /// Gets the Backups resource. + public virtual BackupsResource Backups { get; } + + /// The "backups" collection of methods. + public class BackupsResource + { + private const string Resource = "backups"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public BackupsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// Creates a new backup in a given project and location. + /// The body of the request. + /// + /// Required. The relative resource name of the service in which to create a backup of the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + public virtual CreateRequest Create(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaBackup body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a new backup in a given project and location. + public class CreateRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaBackup body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the service in which to create a backup of the + /// following form:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Required. The ID of the backup, which is used as the final component of the backup's + /// name.This value must be between 1 and 64 characters long, begin with a letter, end with a + /// letter or number, and consist of alpha-numeric ASCII characters or hyphens. + /// + [Google.Apis.Util.RequestParameterAttribute("backupId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string BackupId { get; set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the + /// request if it has completed. The server will ignore subsequent requests that provide a + /// duplicate request ID for at least 60 minutes after the first request.For example, if an + /// initial request times out, followed by another request with the same request ID, the server + /// ignores the second request to prevent the creation of duplicate commitments.The request ID + /// must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A + /// zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string RequestId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaBackup 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 => "v2alpha/{+parent}/backups"; + + /// 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/[^/]+/services/[^/]+$", + }); + RequestParameters.Add("backupId", new Google.Apis.Discovery.Parameter + { + Name = "backupId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("requestId", new Google.Apis.Discovery.Parameter + { + Name = "requestId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes a single backup. + /// + /// Required. The relative resource name of the backup to delete, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}. + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a single backup. + public class DeleteRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The relative resource name of the backup to delete, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the + /// request if it has completed. The server will ignore subsequent requests that provide a + /// duplicate request ID for at least 60 minutes after the first request.For example, if an + /// initial request times out, followed by another request with the same request ID, the server + /// ignores the second request to prevent the creation of duplicate commitments.The request ID + /// must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A + /// zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string RequestId { 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 => "v2alpha/{+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/[^/]+/services/[^/]+/backups/[^/]+$", + }); + RequestParameters.Add("requestId", new Google.Apis.Discovery.Parameter + { + Name = "requestId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets details of a single backup. + /// + /// Required. The relative resource name of the backup to retrieve, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}. + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets details of a single backup. + public class GetRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The relative resource name of the backup to retrieve, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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 => "v2alpha/{+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/[^/]+/services/[^/]+/backups/[^/]+$", + }); + } + } + + /// Lists backups in a service. + /// + /// Required. The relative resource name of the service whose backups to list, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups. + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists backups in a service. + public class ListRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The relative resource name of the service whose backups to list, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Optional. The filter to apply to list results. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// Optional. Specify the ordering of results as described in Sorting Order + /// (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the + /// results will be sorted in the default order. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// Optional. The maximum number of backups to return. The response may contain less than the + /// maximum number. If unspecified, no more than 500 backups are returned. The maximum value is + /// 1000; values above 1000 are changed 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 DataprocMetastore.ListBackups call. Provide + /// this token to retrieve the subsequent page.To retrieve the first page, supply an empty page + /// token.When paginating, other parameters provided to DataprocMetastore.ListBackups 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 => "v2alpha/{+parent}/backups"; + + /// 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/[^/]+/services/[^/]+$", + }); + 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 MigrationExecutions resource. + public virtual MigrationExecutionsResource MigrationExecutions { get; } + + /// The "migrationExecutions" collection of methods. + public class MigrationExecutionsResource + { + private const string Resource = "migrationExecutions"; + + /// The service which this resource belongs to. + private readonly Google.Apis.Services.IClientService service; + + /// Constructs a new resource. + public MigrationExecutionsResource(Google.Apis.Services.IClientService service) + { + this.service = service; + } + + /// Deletes a single migration execution. + /// + /// Required. The relative resource name of the migrationExecution to delete, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a single migration execution. + public class DeleteRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The relative resource name of the migrationExecution to delete, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the + /// request if it has completed. The server will ignore subsequent requests that provide a + /// duplicate request ID for at least 60 minutes after the first request.For example, if an + /// initial request times out, followed by another request with the same request ID, the server + /// ignores the second request to prevent the creation of duplicate commitments.The request ID + /// must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A + /// zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string RequestId { 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 => "v2alpha/{+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/[^/]+/services/[^/]+/migrationExecutions/[^/]+$", + }); + RequestParameters.Add("requestId", new Google.Apis.Discovery.Parameter + { + Name = "requestId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Gets details of a single migration execution. + /// + /// Required. The relative resource name of the migration execution to retrieve, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets details of a single migration execution. + public class GetRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The relative resource name of the migration execution to retrieve, in the + /// following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_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 => "v2alpha/{+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/[^/]+/services/[^/]+/migrationExecutions/[^/]+$", + }); + } + } + + /// Lists migration executions on a service. + /// + /// Required. The relative resource name of the service whose migration executions to list, in the + /// following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions. + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists migration executions on a service. + public class ListRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The relative resource name of the service whose migration executions to list, in + /// the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Optional. The filter to apply to list results. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// Optional. Specify the ordering of results as described in Sorting Order + /// (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the + /// results will be sorted in the default order. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// Optional. The maximum number of migration executions to return. The response may contain + /// less than the maximum number. If unspecified, no more than 500 migration executions are + /// returned. The maximum value is 1000; values above 1000 are changed 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 DataprocMetastore.ListMigrationExecutions + /// call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply + /// an empty page token.When paginating, other parameters provided to + /// DataprocMetastore.ListMigrationExecutions 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 => "v2alpha/{+parent}/migrationExecutions"; + + /// 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/[^/]+/services/[^/]+$", + }); + 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, + }); + } + } + } + + /// + /// Alter metadata resource location. The metadata resource can be a database, table, or partition. This + /// functionality only updates the parent directory for the respective metadata resource and does not + /// transfer any existing data to the new location. + /// + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to mutate metadata, in the following + /// format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual AlterLocationRequest AlterLocation(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest body, string service) + { + return new AlterLocationRequest(this.service, body, service); + } + + /// + /// Alter metadata resource location. The metadata resource can be a database, table, or partition. This + /// functionality only updates the parent directory for the respective metadata resource and does not + /// transfer any existing data to the new location. + /// + public class AlterLocationRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new AlterLocation request. + public AlterLocationRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to mutate metadata, in the + /// following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "alterLocation"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:alterLocation"; + + /// Initializes AlterLocation parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Alter metadata table properties. + /// The body of the request. + /// + /// Required. The relative resource name of the Dataproc Metastore service that's being used to mutate + /// metadata table properties, in the following + /// format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual AlterTablePropertiesRequest AlterTableProperties(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest body, string service) + { + return new AlterTablePropertiesRequest(this.service, body, service); + } + + /// Alter metadata table properties. + public class AlterTablePropertiesRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new AlterTableProperties request. + public AlterTablePropertiesRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the Dataproc Metastore service that's being used to + /// mutate metadata table properties, in the following + /// format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "alterTableProperties"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:alterTableProperties"; + + /// Initializes AlterTableProperties parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Cancels the ongoing Managed Migration process. + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to cancel the ongoing migration to, in + /// the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual CancelMigrationRequest CancelMigration(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaCancelMigrationRequest body, string service) + { + return new CancelMigrationRequest(this.service, body, service); + } + + /// Cancels the ongoing Managed Migration process. + public class CancelMigrationRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new CancelMigration request. + public CancelMigrationRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaCancelMigrationRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to cancel the ongoing migration + /// to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaCancelMigrationRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "cancelMigration"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:cancelMigration"; + + /// Initializes CancelMigration parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// + /// Completes the managed migration process. The Dataproc Metastore service will switch to using its own + /// backend database after successful migration. + /// + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to complete the migration to, in the + /// following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual CompleteMigrationRequest CompleteMigration(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaCompleteMigrationRequest body, string service) + { + return new CompleteMigrationRequest(this.service, body, service); + } + + /// + /// Completes the managed migration process. The Dataproc Metastore service will switch to using its own + /// backend database after successful migration. + /// + public class CompleteMigrationRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new CompleteMigration request. + public CompleteMigrationRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaCompleteMigrationRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to complete the migration to, in + /// the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaCompleteMigrationRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "completeMigration"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:completeMigration"; + + /// Initializes CompleteMigration parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Creates a metastore service in a project and location. + /// The body of the request. + /// + /// Required. The relative resource name of the location in which to create a metastore service, in the + /// following form:projects/{project_number}/locations/{location_id}. + /// + public virtual CreateRequest Create(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaService body, string parent) + { + return new CreateRequest(this.service, body, parent); + } + + /// Creates a metastore service in a project and location. + public class CreateRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Create request. + public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaService body, string parent) : base(service) + { + Parent = parent; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the location in which to create a metastore service, in + /// the following form:projects/{project_number}/locations/{location_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if + /// it has completed. The server will ignore subsequent requests that provide a duplicate request ID + /// for at least 60 minutes after the first request.For example, if an initial request times out, + /// followed by another request with the same request ID, the server ignores the second request to + /// prevent the creation of duplicate commitments.The request ID must be a valid UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID + /// (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string RequestId { get; set; } + + /// + /// Required. The ID of the metastore service, which is used as the final component of the metastore + /// service's name.This value must be between 2 and 63 characters long inclusive, begin with a + /// letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens. + /// + [Google.Apis.Util.RequestParameterAttribute("serviceId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string ServiceId { get; set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaService 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 => "v2alpha/{+parent}/services"; + + /// 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("requestId", new Google.Apis.Discovery.Parameter + { + Name = "requestId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + RequestParameters.Add("serviceId", new Google.Apis.Discovery.Parameter + { + Name = "serviceId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Deletes a single service. + /// + /// Required. The relative resource name of the metastore service to delete, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + public virtual DeleteRequest Delete(string name) + { + return new DeleteRequest(this.service, name); + } + + /// Deletes a single service. + public class DeleteRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Delete request. + public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to delete, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if + /// it has completed. The server will ignore subsequent requests that provide a duplicate request ID + /// for at least 60 minutes after the first request.For example, if an initial request times out, + /// followed by another request with the same request ID, the server ignores the second request to + /// prevent the creation of duplicate commitments.The request ID must be a valid UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID + /// (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string RequestId { 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 => "v2alpha/{+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/[^/]+/services/[^/]+$", + }); + RequestParameters.Add("requestId", new Google.Apis.Discovery.Parameter + { + Name = "requestId", + IsRequired = false, + ParameterType = "query", + DefaultValue = null, + Pattern = null, + }); + } + } + + /// Exports metadata from a service. + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to run export, in the following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual ExportMetadataRequest ExportMetadata(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaExportMetadataRequest body, string service) + { + return new ExportMetadataRequest(this.service, body, service); + } + + /// Exports metadata from a service. + public class ExportMetadataRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new ExportMetadata request. + public ExportMetadataRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaExportMetadataRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to run export, in the following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaExportMetadataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "exportMetadata"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:exportMetadata"; + + /// Initializes ExportMetadata parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Gets the details of a single service. + /// + /// Required. The relative resource name of the metastore service to retrieve, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + public virtual GetRequest Get(string name) + { + return new GetRequest(this.service, name); + } + + /// Gets the details of a single service. + public class GetRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Get request. + public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) + { + Name = name; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to retrieve, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_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 => "v2alpha/{+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/[^/]+/services/[^/]+$", + }); + } + } + + /// Imports Metadata into a Dataproc Metastore service. + /// The body of the request. + /// + /// Immutable. The relative resource name of the metastore service to run import, in the following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual ImportMetadataRequest ImportMetadata(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaImportMetadataRequest body, string name) + { + return new ImportMetadataRequest(this.service, body, name); + } + + /// Imports Metadata into a Dataproc Metastore service. + public class ImportMetadataRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new ImportMetadata request. + public ImportMetadataRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaImportMetadataRequest body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Immutable. The relative resource name of the metastore service to run import, in the following + /// form:projects/{project_id}/locations/{location_id}/services/{service_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.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaImportMetadataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "importMetadata"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+name}:importMetadata"; + + /// Initializes ImportMetadata parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("name", new Google.Apis.Discovery.Parameter + { + Name = "name", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Lists services in a project and location. + /// + /// Required. The relative resource name of the location of metastore services to list, in the following + /// form:projects/{project_number}/locations/{location_id}. + /// + public virtual ListRequest List(string parent) + { + return new ListRequest(this.service, parent); + } + + /// Lists services in a project and location. + public class ListRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new List request. + public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) + { + Parent = parent; + InitParameters(); + } + + /// + /// Required. The relative resource name of the location of metastore services to list, in the + /// following form:projects/{project_number}/locations/{location_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Parent { get; private set; } + + /// Optional. The filter to apply to list results. + [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] + public virtual string Filter { get; set; } + + /// + /// Optional. Specify the ordering of results as described in Sorting Order + /// (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the + /// results will be sorted in the default order. + /// + [Google.Apis.Util.RequestParameterAttribute("orderBy", Google.Apis.Util.RequestParameterType.Query)] + public virtual string OrderBy { get; set; } + + /// + /// Optional. The maximum number of services to return. The response may contain less than the + /// maximum number. If unspecified, no more than 500 services are returned. The maximum value is + /// 1000; values above 1000 are changed 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 DataprocMetastore.ListServices call. Provide + /// this token to retrieve the subsequent page.To retrieve the first page, supply an empty page + /// token.When paginating, other parameters provided to DataprocMetastore.ListServices 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 => "v2alpha/{+parent}/services"; + + /// 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, + }); + } + } + + /// Move a table to another database. + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to mutate metadata, in the following + /// format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual MoveTableToDatabaseRequest MoveTableToDatabase(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest body, string service) + { + return new MoveTableToDatabaseRequest(this.service, body, service); + } + + /// Move a table to another database. + public class MoveTableToDatabaseRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new MoveTableToDatabase request. + public MoveTableToDatabaseRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to mutate metadata, in the + /// following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "moveTableToDatabase"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:moveTableToDatabase"; + + /// Initializes MoveTableToDatabase parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Updates the parameters of a single service. + /// The body of the request. + /// + /// Immutable. The relative resource name of the metastore service, in the following + /// format:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + public virtual PatchRequest Patch(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaService body, string name) + { + return new PatchRequest(this.service, body, name); + } + + /// Updates the parameters of a single service. + public class PatchRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Patch request. + public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaService body, string name) : base(service) + { + Name = name; + Body = body; + InitParameters(); + } + + /// + /// Immutable. The relative resource name of the metastore service, in the following + /// format:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Name { get; private set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if + /// it has completed. The server will ignore subsequent requests that provide a duplicate request ID + /// for at least 60 minutes after the first request.For example, if an initial request times out, + /// followed by another request with the same request ID, the server ignores the second request to + /// prevent the creation of duplicate commitments.The request ID must be a valid UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID + /// (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Google.Apis.Util.RequestParameterAttribute("requestId", Google.Apis.Util.RequestParameterType.Query)] + public virtual string RequestId { get; set; } + + /// + /// Required. A field mask used to specify the fields to be overwritten in the metastore service + /// resource by the update. Fields specified in the update_mask are relative to the resource (not to + /// the full request). A field is overwritten if it is in the mask. + /// + [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.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaService 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 => "v2alpha/{+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/[^/]+/services/[^/]+$", + }); + RequestParameters.Add("requestId", new Google.Apis.Discovery.Parameter + { + Name = "requestId", + 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, + }); + } + } + + /// Query Dataproc Metastore metadata. + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to query metadata, in the following + /// format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual QueryMetadataRequest QueryMetadata(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaQueryMetadataRequest body, string service) + { + return new QueryMetadataRequest(this.service, body, service); + } + + /// Query Dataproc Metastore metadata. + public class QueryMetadataRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new QueryMetadata request. + public QueryMetadataRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaQueryMetadataRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to query metadata, in the + /// following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaQueryMetadataRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "queryMetadata"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:queryMetadata"; + + /// Initializes QueryMetadata parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Removes the attached IAM policies for a resource + /// The body of the request. + /// + /// Required. The relative resource name of the dataplane resource to remove IAM policy, in the + /// following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id} or + /// projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}. + /// + public virtual RemoveIamPolicyRequest RemoveIamPolicy(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest body, string resource) + { + return new RemoveIamPolicyRequest(this.service, body, resource); + } + + /// Removes the attached IAM policies for a resource + public class RemoveIamPolicyRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new RemoveIamPolicy request. + public RemoveIamPolicyRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest body, string resource) : base(service) + { + Resource = resource; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the dataplane resource to remove IAM policy, in the + /// following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id} + /// or + /// projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}. + /// + [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.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "removeIamPolicy"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+resource}:removeIamPolicy"; + + /// Initializes RemoveIamPolicy 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/[^/]+/services/[^/]+/.*$", + }); + } + } + + /// Restores a service from a backup. + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to run restore, in the following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual RestoreRequest Restore(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaRestoreServiceRequest body, string service) + { + return new RestoreRequest(this.service, body, service); + } + + /// Restores a service from a backup. + public class RestoreRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new Restore request. + public RestoreRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaRestoreServiceRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to run restore, in the following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaRestoreServiceRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "restore"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:restore"; + + /// Initializes Restore parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + + /// Starts the Managed Migration process. + /// The body of the request. + /// + /// Required. The relative resource name of the metastore service to start migrating to, in the + /// following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + public virtual StartMigrationRequest StartMigration(Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaStartMigrationRequest body, string service) + { + return new StartMigrationRequest(this.service, body, service); + } + + /// Starts the Managed Migration process. + public class StartMigrationRequest : DataprocMetastoreBaseServiceRequest + { + /// Constructs a new StartMigration request. + public StartMigrationRequest(Google.Apis.Services.IClientService service, Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaStartMigrationRequest body, string service_) : base(service) + { + Service_ = service_; + Body = body; + InitParameters(); + } + + /// + /// Required. The relative resource name of the metastore service to start migrating to, in the + /// following format:projects/{project_id}/locations/{location_id}/services/{service_id}. + /// + [Google.Apis.Util.RequestParameterAttribute("service", Google.Apis.Util.RequestParameterType.Path)] + public virtual string Service_ { get; private set; } + + /// Gets or sets the body of this request. + Google.Apis.DataprocMetastore.v2alpha.Data.GoogleCloudMetastoreV2alphaStartMigrationRequest Body { get; set; } + + /// Returns the body of the request. + protected override object GetBody() => Body; + + /// Gets the method name. + public override string MethodName => "startMigration"; + + /// Gets the HTTP method. + public override string HttpMethod => "POST"; + + /// Gets the REST path. + public override string RestPath => "v2alpha/{+service}:startMigration"; + + /// Initializes StartMigration parameter list. + protected override void InitParameters() + { + base.InitParameters(); + RequestParameters.Add("service", new Google.Apis.Discovery.Parameter + { + Name = "service", + IsRequired = true, + ParameterType = "path", + DefaultValue = null, + Pattern = @"^projects/[^/]+/locations/[^/]+/services/[^/]+$", + }); + } + } + } + } + } +} +namespace Google.Apis.DataprocMetastore.v2alpha.Data +{ + /// Response message for DataprocMetastore.AlterMetadataResourceLocation. + public class GoogleCloudMetastoreV1AlterMetadataResourceLocationResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Metadata about a custom region. This is only populated if the region is a custom region. For single/multi + /// regions, it will be empty. + /// + public class GoogleCloudMetastoreV1CustomRegionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The read-only regions for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("optionalReadOnlyRegions")] + public virtual System.Collections.Generic.IList OptionalReadOnlyRegions { get; set; } + + /// The read-write regions for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("requiredReadWriteRegions")] + public virtual System.Collections.Generic.IList RequiredReadWriteRegions { get; set; } + + /// The Spanner witness region for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("witnessRegion")] + public virtual string WitnessRegion { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Error details in public error message for DataprocMetastore.QueryMetadata. + public class GoogleCloudMetastoreV1ErrorDetails : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Additional structured details about this error.Keys define the failure items. Value describes the exception + /// or details of the item. + /// + [Newtonsoft.Json.JsonPropertyAttribute("details")] + public virtual System.Collections.Generic.IDictionary Details { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A specification of a supported version of the Hive Metastore software. + public class GoogleCloudMetastoreV1HiveMetastoreVersion : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig + /// that omits the version. + /// + [Newtonsoft.Json.JsonPropertyAttribute("isDefault")] + public virtual System.Nullable IsDefault { get; set; } + + /// The semantic version of the Hive Metastore software. + [Newtonsoft.Json.JsonPropertyAttribute("version")] + public virtual string Version { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata about the service in a location. + public class GoogleCloudMetastoreV1LocationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Possible configurations supported if the current region is a custom region. + [Newtonsoft.Json.JsonPropertyAttribute("customRegionMetadata")] + public virtual System.Collections.Generic.IList CustomRegionMetadata { get; set; } + + /// The multi-region metadata if the current region is a multi-region. + [Newtonsoft.Json.JsonPropertyAttribute("multiRegionMetadata")] + public virtual GoogleCloudMetastoreV1MultiRegionMetadata MultiRegionMetadata { get; set; } + + /// + /// The versions of Hive Metastore that can be used when creating a new metastore service in this location. The + /// server guarantees that exactly one HiveMetastoreVersion in the list will set is_default. + /// + [Newtonsoft.Json.JsonPropertyAttribute("supportedHiveMetastoreVersions")] + public virtual System.Collections.Generic.IList SupportedHiveMetastoreVersions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.MoveTableToDatabase. + public class GoogleCloudMetastoreV1MoveTableToDatabaseResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the + /// region is multi-region. For single region or custom dual region, it will be empty. + /// + public class GoogleCloudMetastoreV1MultiRegionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The regions constituting the multi-region. + [Newtonsoft.Json.JsonPropertyAttribute("constituentRegions")] + public virtual System.Collections.Generic.IList ConstituentRegions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents the metadata of a long-running operation. + public class GoogleCloudMetastoreV1OperationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Output only. API version used to start the operation. + [Newtonsoft.Json.JsonPropertyAttribute("apiVersion")] + public virtual string ApiVersion { get; set; } + + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time the operation 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); + } + + private string _endTimeRaw; + + private object _endTime; + + /// Output only. The time the operation finished running. + [Newtonsoft.Json.JsonPropertyAttribute("endTime")] + public virtual string EndTimeRaw + { + get => _endTimeRaw; + set + { + _endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _endTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")] + public virtual object EndTime + { + get => _endTime; + set + { + _endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _endTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? EndTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw); + set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// + /// Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have + /// successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of + /// 1, corresponding to Code.CANCELLED. + /// + [Newtonsoft.Json.JsonPropertyAttribute("requestedCancellation")] + public virtual System.Nullable RequestedCancellation { get; set; } + + /// Output only. Human-readable status of the operation, if any. + [Newtonsoft.Json.JsonPropertyAttribute("statusMessage")] + public virtual string StatusMessage { get; set; } + + /// Output only. Server-defined resource path for the target of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("target")] + public virtual string Target { get; set; } + + /// Output only. Name of the verb executed by the operation. + [Newtonsoft.Json.JsonPropertyAttribute("verb")] + public virtual string Verb { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.QueryMetadata. + public class GoogleCloudMetastoreV1QueryMetadataResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with + /// QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query + /// against the metadata finishes. + /// + [Newtonsoft.Json.JsonPropertyAttribute("resultManifestUri")] + public virtual string ResultManifestUri { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.AlterMetadataResourceLocation. + public class GoogleCloudMetastoreV1alphaAlterMetadataResourceLocationResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.CancelMigration. + public class GoogleCloudMetastoreV1alphaCancelMigrationResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The relative resource name of the migration execution, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. + /// + [Newtonsoft.Json.JsonPropertyAttribute("migrationExecution")] + public virtual string MigrationExecution { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.CompleteMigration. + public class GoogleCloudMetastoreV1alphaCompleteMigrationResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The relative resource name of the migration execution, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. + /// + [Newtonsoft.Json.JsonPropertyAttribute("migrationExecution")] + public virtual string MigrationExecution { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Metadata about a custom region. This is only populated if the region is a custom region. For single/multi + /// regions, it will be empty. + /// + public class GoogleCloudMetastoreV1alphaCustomRegionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The read-only regions for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("optionalReadOnlyRegions")] + public virtual System.Collections.Generic.IList OptionalReadOnlyRegions { get; set; } + + /// The read-write regions for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("requiredReadWriteRegions")] + public virtual System.Collections.Generic.IList RequiredReadWriteRegions { get; set; } + + /// The Spanner witness region for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("witnessRegion")] + public virtual string WitnessRegion { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Error details in public error message for DataprocMetastore.QueryMetadata. + public class GoogleCloudMetastoreV1alphaErrorDetails : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Additional structured details about this error.Keys define the failure items. Value describes the exception + /// or details of the item. + /// + [Newtonsoft.Json.JsonPropertyAttribute("details")] + public virtual System.Collections.Generic.IDictionary Details { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A specification of a supported version of the Hive Metastore software. + public class GoogleCloudMetastoreV1alphaHiveMetastoreVersion : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig + /// that omits the version. + /// + [Newtonsoft.Json.JsonPropertyAttribute("isDefault")] + public virtual System.Nullable IsDefault { get; set; } + + /// The semantic version of the Hive Metastore software. + [Newtonsoft.Json.JsonPropertyAttribute("version")] + public virtual string Version { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata about the service in a location. + public class GoogleCloudMetastoreV1alphaLocationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Possible configurations supported if the current region is a custom region. + [Newtonsoft.Json.JsonPropertyAttribute("customRegionMetadata")] + public virtual System.Collections.Generic.IList CustomRegionMetadata { get; set; } + + /// The multi-region metadata if the current region is a multi-region. + [Newtonsoft.Json.JsonPropertyAttribute("multiRegionMetadata")] + public virtual GoogleCloudMetastoreV1alphaMultiRegionMetadata MultiRegionMetadata { get; set; } + + /// + /// The versions of Hive Metastore that can be used when creating a new metastore service in this location. The + /// server guarantees that exactly one HiveMetastoreVersion in the list will set is_default. + /// + [Newtonsoft.Json.JsonPropertyAttribute("supportedHiveMetastoreVersions")] + public virtual System.Collections.Generic.IList SupportedHiveMetastoreVersions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.MoveTableToDatabase. + public class GoogleCloudMetastoreV1alphaMoveTableToDatabaseResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the + /// region is multi-region. For single region or custom dual region, it will be empty. + /// + public class GoogleCloudMetastoreV1alphaMultiRegionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The regions constituting the multi-region. + [Newtonsoft.Json.JsonPropertyAttribute("constituentRegions")] + public virtual System.Collections.Generic.IList ConstituentRegions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents the metadata of a long-running operation. + public class GoogleCloudMetastoreV1alphaOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Output only. API version used to start the operation. + [Newtonsoft.Json.JsonPropertyAttribute("apiVersion")] + public virtual string ApiVersion { get; set; } + + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time the operation 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); + } + + private string _endTimeRaw; + + private object _endTime; + + /// Output only. The time the operation finished running. + [Newtonsoft.Json.JsonPropertyAttribute("endTime")] + public virtual string EndTimeRaw + { + get => _endTimeRaw; + set + { + _endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _endTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")] + public virtual object EndTime + { + get => _endTime; + set + { + _endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _endTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? EndTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw); + set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// + /// Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have + /// successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of + /// 1, corresponding to Code.CANCELLED. + /// + [Newtonsoft.Json.JsonPropertyAttribute("requestedCancellation")] + public virtual System.Nullable RequestedCancellation { get; set; } + + /// Output only. Human-readable status of the operation, if any. + [Newtonsoft.Json.JsonPropertyAttribute("statusMessage")] + public virtual string StatusMessage { get; set; } + + /// Output only. Server-defined resource path for the target of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("target")] + public virtual string Target { get; set; } + + /// Output only. Name of the verb executed by the operation. + [Newtonsoft.Json.JsonPropertyAttribute("verb")] + public virtual string Verb { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.QueryMetadata. + public class GoogleCloudMetastoreV1alphaQueryMetadataResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with + /// QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query + /// against the metadata finishes. + /// + [Newtonsoft.Json.JsonPropertyAttribute("resultManifestUri")] + public virtual string ResultManifestUri { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.AlterMetadataResourceLocation. + public class GoogleCloudMetastoreV1betaAlterMetadataResourceLocationResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.CancelMigration. + public class GoogleCloudMetastoreV1betaCancelMigrationResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The relative resource name of the migration execution, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. + /// + [Newtonsoft.Json.JsonPropertyAttribute("migrationExecution")] + public virtual string MigrationExecution { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.CompleteMigration. + public class GoogleCloudMetastoreV1betaCompleteMigrationResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The relative resource name of the migration execution, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}. + /// + [Newtonsoft.Json.JsonPropertyAttribute("migrationExecution")] + public virtual string MigrationExecution { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Metadata about a custom region. This is only populated if the region is a custom region. For single/multi + /// regions, it will be empty. + /// + public class GoogleCloudMetastoreV1betaCustomRegionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The read-only regions for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("optionalReadOnlyRegions")] + public virtual System.Collections.Generic.IList OptionalReadOnlyRegions { get; set; } + + /// The read-write regions for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("requiredReadWriteRegions")] + public virtual System.Collections.Generic.IList RequiredReadWriteRegions { get; set; } + + /// The Spanner witness region for this custom region. + [Newtonsoft.Json.JsonPropertyAttribute("witnessRegion")] + public virtual string WitnessRegion { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Error details in public error message for DataprocMetastore.QueryMetadata. + public class GoogleCloudMetastoreV1betaErrorDetails : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Additional structured details about this error.Keys define the failure items. Value describes the exception + /// or details of the item. + /// + [Newtonsoft.Json.JsonPropertyAttribute("details")] + public virtual System.Collections.Generic.IDictionary Details { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A specification of a supported version of the Hive Metastore software. + public class GoogleCloudMetastoreV1betaHiveMetastoreVersion : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Whether version will be chosen by the server if a metastore service is created with a HiveMetastoreConfig + /// that omits the version. + /// + [Newtonsoft.Json.JsonPropertyAttribute("isDefault")] + public virtual System.Nullable IsDefault { get; set; } + + /// The semantic version of the Hive Metastore software. + [Newtonsoft.Json.JsonPropertyAttribute("version")] + public virtual string Version { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Metadata about the service in a location. + public class GoogleCloudMetastoreV1betaLocationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Possible configurations supported if the current region is a custom region. + [Newtonsoft.Json.JsonPropertyAttribute("customRegionMetadata")] + public virtual System.Collections.Generic.IList CustomRegionMetadata { get; set; } + + /// The multi-region metadata if the current region is a multi-region. + [Newtonsoft.Json.JsonPropertyAttribute("multiRegionMetadata")] + public virtual GoogleCloudMetastoreV1betaMultiRegionMetadata MultiRegionMetadata { get; set; } + + /// + /// The versions of Hive Metastore that can be used when creating a new metastore service in this location. The + /// server guarantees that exactly one HiveMetastoreVersion in the list will set is_default. + /// + [Newtonsoft.Json.JsonPropertyAttribute("supportedHiveMetastoreVersions")] + public virtual System.Collections.Generic.IList SupportedHiveMetastoreVersions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.MoveTableToDatabase. + public class GoogleCloudMetastoreV1betaMoveTableToDatabaseResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// The metadata for the multi-region that includes the constituent regions. The metadata is only populated if the + /// region is multi-region. For single region or custom dual region, it will be empty. + /// + public class GoogleCloudMetastoreV1betaMultiRegionMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// The regions constituting the multi-region. + [Newtonsoft.Json.JsonPropertyAttribute("constituentRegions")] + public virtual System.Collections.Generic.IList ConstituentRegions { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents the metadata of a long-running operation. + public class GoogleCloudMetastoreV1betaOperationMetadata : Google.Apis.Requests.IDirectResponseSchema + { + /// Output only. API version used to start the operation. + [Newtonsoft.Json.JsonPropertyAttribute("apiVersion")] + public virtual string ApiVersion { get; set; } + + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time the operation 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); + } + + private string _endTimeRaw; + + private object _endTime; + + /// Output only. The time the operation finished running. + [Newtonsoft.Json.JsonPropertyAttribute("endTime")] + public virtual string EndTimeRaw + { + get => _endTimeRaw; + set + { + _endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _endTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")] + public virtual object EndTime + { + get => _endTime; + set + { + _endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _endTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? EndTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw); + set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// + /// Output only. Identifies whether the caller has requested cancellation of the operation. Operations that have + /// successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of + /// 1, corresponding to Code.CANCELLED. + /// + [Newtonsoft.Json.JsonPropertyAttribute("requestedCancellation")] + public virtual System.Nullable RequestedCancellation { get; set; } + + /// Output only. Human-readable status of the operation, if any. + [Newtonsoft.Json.JsonPropertyAttribute("statusMessage")] + public virtual string StatusMessage { get; set; } + + /// Output only. Server-defined resource path for the target of the operation. + [Newtonsoft.Json.JsonPropertyAttribute("target")] + public virtual string Target { get; set; } + + /// Output only. Name of the verb executed by the operation. + [Newtonsoft.Json.JsonPropertyAttribute("verb")] + public virtual string Verb { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.QueryMetadata. + public class GoogleCloudMetastoreV1betaQueryMetadataResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// The manifest URI is link to a JSON instance in Cloud Storage. This instance manifests immediately along with + /// QueryMetadataResponse. The content of the URI is not retriable until the long-running operation query + /// against the metadata finishes. + /// + [Newtonsoft.Json.JsonPropertyAttribute("resultManifestUri")] + public virtual string ResultManifestUri { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.AlterMetadataResourceLocation. + public class GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. The new location URI for the metadata resource. + [Newtonsoft.Json.JsonPropertyAttribute("locationUri")] + public virtual string LocationUri { get; set; } + + /// + /// Required. The relative metadata resource name in the following format.databases/{database_id} or + /// databases/{database_id}/tables/{table_id} or + /// databases/{database_id}/tables/{table_id}/partitions/{partition_id} + /// + [Newtonsoft.Json.JsonPropertyAttribute("resourceName")] + public virtual string ResourceName { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.AlterTableProperties. + public class GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// A map that describes the desired values to mutate. If update_mask is empty, the properties will not update. + /// Otherwise, the properties only alters the value whose associated paths exist in the update mask + /// + [Newtonsoft.Json.JsonPropertyAttribute("properties")] + public virtual System.Collections.Generic.IDictionary Properties { get; set; } + + /// + /// Required. The name of the table containing the properties you're altering in the following + /// format.databases/{database_id}/tables/{table_id} + /// + [Newtonsoft.Json.JsonPropertyAttribute("tableName")] + public virtual string TableName { get; set; } + + /// + /// A field mask that specifies the metadata table properties that are overwritten by the update. Fields + /// specified in the update_mask are relative to the resource (not to the full request). A field is overwritten + /// if it is in the mask.For example, given the target properties: properties { a: 1 b: 2 } And an update + /// properties: properties { a: 2 b: 3 c: 4 } then if the field mask is:paths: "properties.b", + /// "properties.c"then the result will be: properties { a: 1 b: 3 c: 4 } + /// + [Newtonsoft.Json.JsonPropertyAttribute("updateMask")] + public virtual object UpdateMask { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents the autoscaling configuration of a metastore service. + public class GoogleCloudMetastoreV2alphaAutoscalingConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. Whether or not autoscaling is enabled for this service. + [Newtonsoft.Json.JsonPropertyAttribute("autoscalingEnabled")] + public virtual System.Nullable AutoscalingEnabled { get; set; } + + /// Output only. The scaling factor of a service with autoscaling enabled. + [Newtonsoft.Json.JsonPropertyAttribute("autoscalingFactor")] + public virtual System.Nullable AutoscalingFactor { get; set; } + + /// Optional. The LimitConfig of the service. + [Newtonsoft.Json.JsonPropertyAttribute("limitConfig")] + public virtual GoogleCloudMetastoreV2alphaLimitConfig LimitConfig { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Configuration information for the auxiliary service versions. + public class GoogleCloudMetastoreV2alphaAuxiliaryVersionConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore + /// (configured in hive-site.xml) in addition to the primary version's overrides. If keys are present in both + /// the auxiliary version's overrides and the primary version's overrides, the value from the auxiliary + /// version's overrides takes precedence. + /// + [Newtonsoft.Json.JsonPropertyAttribute("configOverrides")] + public virtual System.Collections.Generic.IDictionary ConfigOverrides { get; set; } + + /// + /// Output only. The list of endpoints used to access the auxiliary metastore service, includes version and + /// region data. + /// + [Newtonsoft.Json.JsonPropertyAttribute("endpoints")] + public virtual System.Collections.Generic.IList Endpoints { get; set; } + + /// + /// The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore + /// service's version. + /// + [Newtonsoft.Json.JsonPropertyAttribute("version")] + public virtual string Version { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The details of a backup resource. + public class GoogleCloudMetastoreV2alphaBackup : Google.Apis.Requests.IDirectResponseSchema + { + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time when the backup was started. + [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 description of the backup. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + private string _endTimeRaw; + + private object _endTime; + + /// Output only. The time when the backup finished creating. + [Newtonsoft.Json.JsonPropertyAttribute("endTime")] + public virtual string EndTimeRaw + { + get => _endTimeRaw; + set + { + _endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _endTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")] + public virtual object EndTime + { + get => _endTime; + set + { + _endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _endTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? EndTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw); + set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// + /// Immutable. The relative resource name of the backup, in the following + /// form:projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id} + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Output only. Services that are restoring from the backup. + [Newtonsoft.Json.JsonPropertyAttribute("restoringServices")] + public virtual System.Collections.Generic.IList RestoringServices { get; set; } + + /// Output only. The revision of the service at the time of backup. + [Newtonsoft.Json.JsonPropertyAttribute("serviceRevision")] + public virtual GoogleCloudMetastoreV2alphaService ServiceRevision { get; set; } + + /// Output only. The current state of the backup. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.CancelMigration. + public class GoogleCloudMetastoreV2alphaCancelMigrationRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Configuration information to start the Change Data Capture (CDC) streams from customer database to backend + /// database of Dataproc Metastore. + /// + public class GoogleCloudMetastoreV2alphaCdcConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The bucket to write the intermediate stream event data in. The bucket name must be without any + /// prefix like "gs://". See the bucket naming requirements + /// (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the Artifacts + /// Cloud Storage bucket will be used. + /// + [Newtonsoft.Json.JsonPropertyAttribute("bucket")] + public virtual string Bucket { get; set; } + + /// + /// Required. Input only. The password for the user that Datastream service should use for the MySQL connection. + /// This field is not returned on request. + /// + [Newtonsoft.Json.JsonPropertyAttribute("password")] + public virtual string Password { get; set; } + + /// + /// Required. The URL of the subnetwork resource to create the VM instance hosting the reverse proxy in. More + /// context in https://cloud.google.com/datastream/docs/private-connectivity#reverse-csql-proxy The subnetwork + /// should reside in the network provided in the request that Datastream will peer to and should be in the same + /// region as Datastream, in the following format. + /// projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} + /// + [Newtonsoft.Json.JsonPropertyAttribute("reverseProxySubnet")] + public virtual string ReverseProxySubnet { get; set; } + + /// + /// Optional. The root path inside the Cloud Storage bucket. The stream event data will be written to this path. + /// The default value is /migration. + /// + [Newtonsoft.Json.JsonPropertyAttribute("rootPath")] + public virtual string RootPath { get; set; } + + /// Required. A /29 CIDR IP range for peering with datastream. + [Newtonsoft.Json.JsonPropertyAttribute("subnetIpRange")] + public virtual string SubnetIpRange { get; set; } + + /// Required. The username that the Datastream service should use for the MySQL connection. + [Newtonsoft.Json.JsonPropertyAttribute("username")] + public virtual string Username { get; set; } + + /// + /// Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC network that + /// Datastream will peer to, in the following format: + /// projects/{project_id}/locations/global/networks/{network_id}. More context in + /// https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity + /// + [Newtonsoft.Json.JsonPropertyAttribute("vpcNetwork")] + public virtual string VpcNetwork { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Configuration information to establish customer database connection before the cutover phase of migration + /// + public class GoogleCloudMetastoreV2alphaCloudSQLConnectionConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. The hive database name. + [Newtonsoft.Json.JsonPropertyAttribute("hiveDatabaseName")] + public virtual string HiveDatabaseName { get; set; } + + /// Required. Cloud SQL database connection name (project_id:region:instance_name) + [Newtonsoft.Json.JsonPropertyAttribute("instanceConnectionName")] + public virtual string InstanceConnectionName { get; set; } + + /// Required. The private IP address of the Cloud SQL instance. + [Newtonsoft.Json.JsonPropertyAttribute("ipAddress")] + public virtual string IpAddress { get; set; } + + /// + /// Required. The relative resource name of the subnetwork to be used for Private Service Connect. Note that + /// this cannot be a regular subnet and is used only for NAT. + /// (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used to publish the + /// SOCKS5 proxy service. The subnet size must be at least /29 and it should reside in a network through which + /// the Cloud SQL instance is accessible. The resource name should be in the format, + /// projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} + /// + [Newtonsoft.Json.JsonPropertyAttribute("natSubnet")] + public virtual string NatSubnet { get; set; } + + /// + /// Required. Input only. The password for the user that Dataproc Metastore service will be using to connect to + /// the database. This field is not returned on request. + /// + [Newtonsoft.Json.JsonPropertyAttribute("password")] + public virtual string Password { get; set; } + + /// Required. The network port of the database. + [Newtonsoft.Json.JsonPropertyAttribute("port")] + public virtual System.Nullable Port { get; set; } + + /// + /// Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. The subnetwork + /// should reside in a network through which the Cloud SQL instance is accessible. The resource name should be + /// in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id} + /// + [Newtonsoft.Json.JsonPropertyAttribute("proxySubnet")] + public virtual string ProxySubnet { get; set; } + + /// + /// Required. The username that Dataproc Metastore service will use to connect to the database. + /// + [Newtonsoft.Json.JsonPropertyAttribute("username")] + public virtual string Username { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Configuration information for migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the + /// backend database to Dataproc Metastore. + /// + public class GoogleCloudMetastoreV2alphaCloudSQLMigrationConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Required. Configuration information to start the Change Data Capture (CDC) streams from customer database to + /// backend database of Dataproc Metastore. Dataproc Metastore switches to using its backend database after the + /// cutover phase of migration. + /// + [Newtonsoft.Json.JsonPropertyAttribute("cdcConfig")] + public virtual GoogleCloudMetastoreV2alphaCdcConfig CdcConfig { get; set; } + + /// + /// Required. Configuration information to establish customer database connection before the cutover phase of + /// migration + /// + [Newtonsoft.Json.JsonPropertyAttribute("cloudSqlConnectionConfig")] + public virtual GoogleCloudMetastoreV2alphaCloudSQLConnectionConfig CloudSqlConnectionConfig { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.CompleteMigration. + public class GoogleCloudMetastoreV2alphaCompleteMigrationRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Specifies how metastore metadata should be integrated with the Data Catalog service. + public class GoogleCloudMetastoreV2alphaDataCatalogConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to + /// disable syncing metastore metadata to Data Catalog. + /// + [Newtonsoft.Json.JsonPropertyAttribute("enabled")] + public virtual System.Nullable Enabled { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// A specification of the location of and metadata about a database dump from a relational database management + /// system. + /// + public class GoogleCloudMetastoreV2alphaDatabaseDump : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Required. A Cloud Storage object or folder URI that specifies the source from which to import metadata. It + /// must begin with gs://. + /// + [Newtonsoft.Json.JsonPropertyAttribute("gcsUri")] + public virtual string GcsUri { get; set; } + + /// Optional. The type of the database dump. If unspecified, defaults to MYSQL. + [Newtonsoft.Json.JsonPropertyAttribute("type")] + public virtual string Type { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Encryption settings for the service. + public class GoogleCloudMetastoreV2alphaEncryptionConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// An endpoint used to access the metastore service. + public class GoogleCloudMetastoreV2alphaEndpoint : Google.Apis.Requests.IDirectResponseSchema + { + /// Output only. The URI of the endpoint used to access the metastore service. + [Newtonsoft.Json.JsonPropertyAttribute("endpointUri")] + public virtual string EndpointUri { get; set; } + + /// Output only. The region where the endpoint is located. + [Newtonsoft.Json.JsonPropertyAttribute("region")] + public virtual string Region { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.ExportMetadata. + public class GoogleCloudMetastoreV2alphaExportMetadataRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. The type of the database dump. If unspecified, defaults to MYSQL. + [Newtonsoft.Json.JsonPropertyAttribute("databaseDumpType")] + public virtual string DatabaseDumpType { get; set; } + + /// + /// A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing exported files will be + /// created below it. + /// + [Newtonsoft.Json.JsonPropertyAttribute("destinationGcsFolder")] + public virtual string DestinationGcsFolder { get; set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has + /// completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 + /// minutes after the first request.For example, if an initial request times out, followed by another request + /// with the same request ID, the server ignores the second request to prevent the creation of duplicate + /// commitments.The request ID must be a valid UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID + /// (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Newtonsoft.Json.JsonPropertyAttribute("requestId")] + public virtual string RequestId { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// + /// Specifies configuration information specific to running Hive metastore software as the metastore service. + /// + public class GoogleCloudMetastoreV2alphaHiveMetastoreConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. A mapping of Hive metastore version to the auxiliary version configuration. When specified, a + /// secondary Hive metastore service is created along with the primary service. All auxiliary versions must be + /// less than the service's primary version. The key is the auxiliary service name and it must match the regular + /// expression a-z?. This means that the first character must be a lowercase letter, and all the following + /// characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a + /// hyphen. + /// + [Newtonsoft.Json.JsonPropertyAttribute("auxiliaryVersions")] + public virtual System.Collections.Generic.IDictionary AuxiliaryVersions { get; set; } + + /// + /// Optional. A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore + /// (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These + /// overrides are also applied to auxiliary versions and can be further customized in the auxiliary version's + /// AuxiliaryVersionConfig. + /// + [Newtonsoft.Json.JsonPropertyAttribute("configOverrides")] + public virtual System.Collections.Generic.IDictionary ConfigOverrides { get; set; } + + /// + /// Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to GRPC. + /// + [Newtonsoft.Json.JsonPropertyAttribute("endpointProtocol")] + public virtual string EndpointProtocol { get; set; } + + /// Immutable. The Hive metastore schema version. + [Newtonsoft.Json.JsonPropertyAttribute("version")] + public virtual string Version { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.CreateMetadataImport. + public class GoogleCloudMetastoreV2alphaImportMetadataRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// Immutable. A database dump from a pre-existing metastore's database. + [Newtonsoft.Json.JsonPropertyAttribute("databaseDump")] + public virtual GoogleCloudMetastoreV2alphaDatabaseDump DatabaseDump { get; set; } + + /// Optional. The description of the metadata import. + [Newtonsoft.Json.JsonPropertyAttribute("description")] + public virtual string Description { get; set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has + /// completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 + /// minutes after the first request.For example, if an initial request times out, followed by another request + /// with the same request ID, the server ignores the second request to prevent the creation of duplicate + /// commitments.The request ID must be a valid UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID + /// (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Newtonsoft.Json.JsonPropertyAttribute("requestId")] + public virtual string RequestId { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The details of the latest scheduled backup. + public class GoogleCloudMetastoreV2alphaLatestBackup : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress. + /// + [Newtonsoft.Json.JsonPropertyAttribute("backupId")] + public virtual string BackupId { get; set; } + + /// Output only. The duration of the backup completion. + [Newtonsoft.Json.JsonPropertyAttribute("duration")] + public virtual object Duration { get; set; } + + private string _startTimeRaw; + + private object _startTime; + + /// Output only. The time when the backup was started. + [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); + } + + /// Output only. The current state of the backup. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents the autoscaling limit configuration of a metastore service. + public class GoogleCloudMetastoreV2alphaLimitConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. The highest scaling factor that the service should be autoscaled to. + [Newtonsoft.Json.JsonPropertyAttribute("maxScalingFactor")] + public virtual System.Nullable MaxScalingFactor { get; set; } + + /// Optional. The lowest scaling factor that the service should be autoscaled to. + [Newtonsoft.Json.JsonPropertyAttribute("minScalingFactor")] + public virtual System.Nullable MinScalingFactor { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.ListBackups. + public class GoogleCloudMetastoreV2alphaListBackupsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The backups of the specified service. + [Newtonsoft.Json.JsonPropertyAttribute("backups")] + public virtual System.Collections.Generic.IList Backups { get; set; } + + /// + /// A token that 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; } + + /// Locations that could not be reached. + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.ListMigrationExecutions. + public class GoogleCloudMetastoreV2alphaListMigrationExecutionsResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// The migration executions on the specified service. + [Newtonsoft.Json.JsonPropertyAttribute("migrationExecutions")] + public virtual System.Collections.Generic.IList MigrationExecutions { get; set; } + + /// + /// A token that 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; } + + /// Locations that could not be reached. + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.ListServices. + public class GoogleCloudMetastoreV2alphaListServicesResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// A token that 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; } + + /// The services in the specified location. + [Newtonsoft.Json.JsonPropertyAttribute("services")] + public virtual System.Collections.Generic.IList Services { get; set; } + + /// Locations that could not be reached. + [Newtonsoft.Json.JsonPropertyAttribute("unreachable")] + public virtual System.Collections.Generic.IList Unreachable { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Specifies how metastore metadata should be integrated with external services. + public class GoogleCloudMetastoreV2alphaMetadataIntegration : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. The integration config for the Data Catalog service. + [Newtonsoft.Json.JsonPropertyAttribute("dataCatalogConfig")] + public virtual GoogleCloudMetastoreV2alphaDataCatalogConfig DataCatalogConfig { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// The details of a migration execution resource. + public class GoogleCloudMetastoreV2alphaMigrationExecution : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Configuration information specific to migrating from self-managed hive metastore on Google Cloud using Cloud + /// SQL as the backend database to Dataproc Metastore. + /// + [Newtonsoft.Json.JsonPropertyAttribute("cloudSqlMigrationConfig")] + public virtual GoogleCloudMetastoreV2alphaCloudSQLMigrationConfig CloudSqlMigrationConfig { get; set; } + + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time when the migration execution was started. + [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); + } + + private string _endTimeRaw; + + private object _endTime; + + /// Output only. The time when the migration execution finished. + [Newtonsoft.Json.JsonPropertyAttribute("endTime")] + public virtual string EndTimeRaw + { + get => _endTimeRaw; + set + { + _endTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _endTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use EndTimeDateTimeOffset instead.")] + public virtual object EndTime + { + get => _endTime; + set + { + _endTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _endTime = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? EndTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(EndTimeRaw); + set => EndTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// + /// Output only. The relative resource name of the migration execution, in the following form: + /// projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id} + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Output only. The current phase of the migration execution. + [Newtonsoft.Json.JsonPropertyAttribute("phase")] + public virtual string Phase { get; set; } + + /// Output only. The current state of the migration execution. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// Output only. Additional information about the current state of the migration execution. + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.MoveTableToDatabase. + public class GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. The name of the database where the table resides. + [Newtonsoft.Json.JsonPropertyAttribute("dbName")] + public virtual string DbName { get; set; } + + /// Required. The name of the database where the table should be moved. + [Newtonsoft.Json.JsonPropertyAttribute("destinationDbName")] + public virtual string DestinationDbName { get; set; } + + /// Required. The name of the table to be moved. + [Newtonsoft.Json.JsonPropertyAttribute("tableName")] + public virtual string TableName { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.QueryMetadata. + public class GoogleCloudMetastoreV2alphaQueryMetadataRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate + /// the data. + /// + [Newtonsoft.Json.JsonPropertyAttribute("query")] + public virtual string Query { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.RemoveIamPolicy. + public class GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. Removes IAM policy attached to database or table asynchronously when it is set. The default is + /// false. + /// + [Newtonsoft.Json.JsonPropertyAttribute("asynchronous")] + public virtual System.Nullable Asynchronous { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Response message for DataprocMetastore.RemoveIamPolicy. + public class GoogleCloudMetastoreV2alphaRemoveIamPolicyResponse : Google.Apis.Requests.IDirectResponseSchema + { + /// True if the policy is successfully removed. + [Newtonsoft.Json.JsonPropertyAttribute("success")] + public virtual System.Nullable Success { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.Restore. + public class GoogleCloudMetastoreV2alphaRestoreServiceRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. The relative resource name of the metastore service backup to restore from, in the following + /// form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}. Mutually + /// exclusive with backup_location, and exactly one of the two must be set. + /// + [Newtonsoft.Json.JsonPropertyAttribute("backup")] + public virtual string Backup { get; set; } + + /// + /// Optional. A Cloud Storage URI specifying the location of the backup artifacts, namely - backup avro files + /// under "avro/", backup_metastore.json and service.json, in the following form:gs://. Mutually exclusive with + /// backup, and exactly one of the two must be set. + /// + [Newtonsoft.Json.JsonPropertyAttribute("backupLocation")] + public virtual string BackupLocation { get; set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has + /// completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 + /// minutes after the first request.For example, if an initial request times out, followed by another request + /// with the same request ID, the server ignores the second request to prevent the creation of duplicate + /// commitments.The request ID must be a valid UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID + /// (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Newtonsoft.Json.JsonPropertyAttribute("requestId")] + public virtual string RequestId { get; set; } + + /// Optional. The type of restore. If unspecified, defaults to METADATA_ONLY. + [Newtonsoft.Json.JsonPropertyAttribute("restoreType")] + public virtual string RestoreType { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Represents the scaling configuration of a metastore service. + public class GoogleCloudMetastoreV2alphaScalingConfig : Google.Apis.Requests.IDirectResponseSchema + { + /// Optional. The autoscaling configuration. + [Newtonsoft.Json.JsonPropertyAttribute("autoscalingConfig")] + public virtual GoogleCloudMetastoreV2alphaAutoscalingConfig AutoscalingConfig { get; set; } + + /// Optional. Scaling factor from 1 to 5, increments of 1. + [Newtonsoft.Json.JsonPropertyAttribute("scalingFactor")] + public virtual System.Nullable ScalingFactor { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// This specifies the configuration of scheduled backup. + public class GoogleCloudMetastoreV2alphaScheduledBackup : Google.Apis.Requests.IDirectResponseSchema + { + /// + /// Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will + /// be stored below it. + /// + [Newtonsoft.Json.JsonPropertyAttribute("backupLocation")] + public virtual string BackupLocation { get; set; } + + /// + /// Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is + /// empty: scheduled backup is not enabled. Must be specified to enable scheduled backups. + /// + [Newtonsoft.Json.JsonPropertyAttribute("cronSchedule")] + public virtual string CronSchedule { get; set; } + + /// Optional. Defines whether the scheduled backup is enabled. The default value is false. + [Newtonsoft.Json.JsonPropertyAttribute("enabled")] + public virtual System.Nullable Enabled { get; set; } + + /// Output only. The details of the latest scheduled backup. + [Newtonsoft.Json.JsonPropertyAttribute("latestBackup")] + public virtual GoogleCloudMetastoreV2alphaLatestBackup LatestBackup { get; set; } + + private string _nextScheduledTimeRaw; + + private object _nextScheduledTime; + + /// Output only. The time when the next backups execution is scheduled to start. + [Newtonsoft.Json.JsonPropertyAttribute("nextScheduledTime")] + public virtual string NextScheduledTimeRaw + { + get => _nextScheduledTimeRaw; + set + { + _nextScheduledTime = Google.Apis.Util.Utilities.DeserializeForGoogleFormat(value); + _nextScheduledTimeRaw = value; + } + } + + /// representation of . + [Newtonsoft.Json.JsonIgnoreAttribute] + [System.ObsoleteAttribute("This property is obsolete and may behave unexpectedly; please use NextScheduledTimeDateTimeOffset instead.")] + public virtual object NextScheduledTime + { + get => _nextScheduledTime; + set + { + _nextScheduledTimeRaw = Google.Apis.Util.Utilities.SerializeForGoogleFormat(value); + _nextScheduledTime = value; + } + } + + /// + /// representation of . + /// + [Newtonsoft.Json.JsonIgnoreAttribute] + public virtual System.DateTimeOffset? NextScheduledTimeDateTimeOffset + { + get => Google.Apis.Util.DiscoveryFormat.ParseGoogleDateTimeToDateTimeOffset(NextScheduledTimeRaw); + set => NextScheduledTimeRaw = Google.Apis.Util.DiscoveryFormat.FormatDateTimeOffsetToGoogleDateTime(value); + } + + /// + /// Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from + /// the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. + /// America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC. + /// + [Newtonsoft.Json.JsonPropertyAttribute("timeZone")] + public virtual string TimeZone { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// A managed metastore service that serves metadata queries. + public class GoogleCloudMetastoreV2alphaService : Google.Apis.Requests.IDirectResponseSchema + { + private string _createTimeRaw; + + private object _createTime; + + /// Output only. The time when the metastore service 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); + } + + /// + /// Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. + /// Cannot be updated. + /// + [Newtonsoft.Json.JsonPropertyAttribute("encryptionConfig")] + public virtual GoogleCloudMetastoreV2alphaEncryptionConfig EncryptionConfig { get; set; } + + /// Output only. The list of endpoints used to access the metastore service. + [Newtonsoft.Json.JsonPropertyAttribute("endpoints")] + public virtual System.Collections.Generic.IList Endpoints { get; set; } + + /// + /// Configuration information specific to running Hive metastore software as the metastore service. + /// + [Newtonsoft.Json.JsonPropertyAttribute("hiveMetastoreConfig")] + public virtual GoogleCloudMetastoreV2alphaHiveMetastoreConfig HiveMetastoreConfig { get; set; } + + /// User-defined labels for the metastore service. + [Newtonsoft.Json.JsonPropertyAttribute("labels")] + public virtual System.Collections.Generic.IDictionary Labels { get; set; } + + /// + /// Optional. The setting that defines how metastore metadata should be integrated with external services and + /// systems. + /// + [Newtonsoft.Json.JsonPropertyAttribute("metadataIntegration")] + public virtual GoogleCloudMetastoreV2alphaMetadataIntegration MetadataIntegration { get; set; } + + /// + /// Immutable. The relative resource name of the metastore service, in the following + /// format:projects/{project_number}/locations/{location_id}/services/{service_id}. + /// + [Newtonsoft.Json.JsonPropertyAttribute("name")] + public virtual string Name { get; set; } + + /// Optional. Scaling configuration of the metastore service. + [Newtonsoft.Json.JsonPropertyAttribute("scalingConfig")] + public virtual GoogleCloudMetastoreV2alphaScalingConfig ScalingConfig { get; set; } + + /// Optional. The configuration of scheduled backup for the metastore service. + [Newtonsoft.Json.JsonPropertyAttribute("scheduledBackup")] + public virtual GoogleCloudMetastoreV2alphaScheduledBackup ScheduledBackup { get; set; } + + /// Output only. The current state of the metastore service. + [Newtonsoft.Json.JsonPropertyAttribute("state")] + public virtual string State { get; set; } + + /// + /// Output only. Additional information about the current state of the metastore service, if available. + /// + [Newtonsoft.Json.JsonPropertyAttribute("stateMessage")] + public virtual string StateMessage { get; set; } + + /// Output only. The globally unique resource identifier of the metastore service. + [Newtonsoft.Json.JsonPropertyAttribute("uid")] + public virtual string Uid { get; set; } + + private string _updateTimeRaw; + + private object _updateTime; + + /// Output only. The time when the metastore service 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); + } + + /// + /// Required. A Cloud Storage URI (starting with gs://) that specifies the default warehouse directory of the + /// Hive Metastore. + /// + [Newtonsoft.Json.JsonPropertyAttribute("warehouseGcsUri")] + public virtual string WarehouseGcsUri { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// Request message for DataprocMetastore.StartMigration. + public class GoogleCloudMetastoreV2alphaStartMigrationRequest : Google.Apis.Requests.IDirectResponseSchema + { + /// Required. The configuration details for the migration. + [Newtonsoft.Json.JsonPropertyAttribute("migrationExecution")] + public virtual GoogleCloudMetastoreV2alphaMigrationExecution MigrationExecution { get; set; } + + /// + /// Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has + /// completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 + /// minutes after the first request.For example, if an initial request times out, followed by another request + /// with the same request ID, the server ignores the second request to prevent the creation of duplicate + /// commitments.The request ID must be a valid UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID + /// (00000000-0000-0000-0000-000000000000) is not supported. + /// + [Newtonsoft.Json.JsonPropertyAttribute("requestId")] + public virtual string RequestId { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } + + /// This resource represents a long-running operation that is the result of a network API call. + public class GoogleLongrunningOperation : 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 GoogleRpcStatus 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; } + } + + /// + /// The Status type defines a logical error model that is suitable for different programming environments, including + /// REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces + /// of data: error code, error message, and error details.You can find out more about this error model and how to + /// work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). + /// + public class GoogleRpcStatus : Google.Apis.Requests.IDirectResponseSchema + { + /// The status code, which should be an enum value of google.rpc.Code. + [Newtonsoft.Json.JsonPropertyAttribute("code")] + public virtual System.Nullable Code { get; set; } + + /// + /// A list of messages that carry the error details. There is a common set of message types for APIs to use. + /// + [Newtonsoft.Json.JsonPropertyAttribute("details")] + public virtual System.Collections.Generic.IList> Details { get; set; } + + /// + /// A developer-facing error message, which should be in English. Any user-facing error message should be + /// localized and sent in the google.rpc.Status.details field, or localized by the client. + /// + [Newtonsoft.Json.JsonPropertyAttribute("message")] + public virtual string Message { get; set; } + + /// The ETag of the item. + public virtual string ETag { get; set; } + } +} diff --git a/Src/Generated/Google.Apis.DataprocMetastore.v2alpha/Google.Apis.DataprocMetastore.v2alpha.csproj b/Src/Generated/Google.Apis.DataprocMetastore.v2alpha/Google.Apis.DataprocMetastore.v2alpha.csproj new file mode 100644 index 00000000000..c446006f534 --- /dev/null +++ b/Src/Generated/Google.Apis.DataprocMetastore.v2alpha/Google.Apis.DataprocMetastore.v2alpha.csproj @@ -0,0 +1,66 @@ + + + + + Google.Apis.DataprocMetastore.v2alpha Client Library + 1.68.0.3624 + Google LLC + Copyright 2024 Google LLC + Google + https://github.com/google/google-api-dotnet-client + Apache-2.0 + git + https://github.com/google/google-api-dotnet-client + https://www.gstatic.com/images/branding/product/1x/google_developers_64dp.png + NuGetIcon.png + + Google APIs Client Library for working with Metastore v2alpha. + + Product documentation is available at: + https://cloud.google.com/dataproc-metastore/docs + + API reference documentation for this package is available at: + https://googleapis.dev/dotnet/Google.Apis.DataprocMetastore.v2alpha/latest/api/Google.Apis.DataprocMetastore.v2alpha.html + + The source code for this package is available at: + https://github.com/google/google-api-dotnet-client/tree/master/Src/Generated/Google.Apis.DataprocMetastore.v2alpha + + Supported Platforms: + - .NET Framework 4.6.2+ + - .NET Standard 2.0 + - .NET 6.0+ + + Incompatible platforms: + - .NET Framework < 4.6.2 + - Silverlight + - UWP (will build, but is known not to work at runtime) + - Xamarin/MAUI + - Windows 8 Apps + - Windows Phone 8.1 + - Windows Phone Silverlight 8.0 + + + + + + + + + + + netstandard2.0;net462;net6.0 + true + ..\..\..\google.apis.snk + portable + true + 1570,1587,1591 + + + + + + + + + +