Dataproc Metastore v1 API - Class DataprocMetastoreClientImpl (2.5.0)

public sealed class DataprocMetastoreClientImpl : DataprocMetastoreClient

Reference documentation and code samples for the Dataproc Metastore v1 API class DataprocMetastoreClientImpl.

DataprocMetastore client wrapper implementation, for convenient use.

Inheritance

object > DataprocMetastoreClient > DataprocMetastoreClientImpl

Namespace

Google.Cloud.Metastore.V1

Assembly

Google.Cloud.Metastore.V1.dll

Remarks

Configures and manages metastore services. Metastore services are fully managed, highly available, autoscaled, autohealing, OSS-native deployments of technical metadata management software. Each metastore service exposes a network endpoint through which metadata queries are served. Metadata queries can originate from a variety of sources, including Apache Hive, Apache Presto, and Apache Spark.

The Dataproc Metastore API defines the following resource model:

  • The service works with a collection of Google Cloud projects, named: /projects/*
  • Each project has a collection of available locations, named: /locations/* (a location must refer to a Google Cloud region)
  • Each location has a collection of services, named: /services/*
  • Dataproc Metastore services are resources with names of the form:

/projects/{project_number}/locations/{location_id}/services/{service_id}.

Constructors

DataprocMetastoreClientImpl(DataprocMetastoreClient, DataprocMetastoreSettings, ILogger)

public DataprocMetastoreClientImpl(DataprocMetastore.DataprocMetastoreClient grpcClient, DataprocMetastoreSettings settings, ILogger logger)

Constructs a client wrapper for the DataprocMetastore service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientDataprocMetastoreDataprocMetastoreClient

The underlying gRPC client.

settingsDataprocMetastoreSettings

The base DataprocMetastoreSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

AlterMetadataResourceLocationOperationsClient

public override OperationsClient AlterMetadataResourceLocationOperationsClient { get; }

The long-running operations client for AlterMetadataResourceLocation.

Property Value
TypeDescription
OperationsClient
Overrides

CreateBackupOperationsClient

public override OperationsClient CreateBackupOperationsClient { get; }

The long-running operations client for CreateBackup.

Property Value
TypeDescription
OperationsClient
Overrides

CreateMetadataImportOperationsClient

public override OperationsClient CreateMetadataImportOperationsClient { get; }

The long-running operations client for CreateMetadataImport.

Property Value
TypeDescription
OperationsClient
Overrides

CreateServiceOperationsClient

public override OperationsClient CreateServiceOperationsClient { get; }

The long-running operations client for CreateService.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteBackupOperationsClient

public override OperationsClient DeleteBackupOperationsClient { get; }

The long-running operations client for DeleteBackup.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteServiceOperationsClient

public override OperationsClient DeleteServiceOperationsClient { get; }

The long-running operations client for DeleteService.

Property Value
TypeDescription
OperationsClient
Overrides

ExportMetadataOperationsClient

public override OperationsClient ExportMetadataOperationsClient { get; }

The long-running operations client for ExportMetadata.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override DataprocMetastore.DataprocMetastoreClient GrpcClient { get; }

The underlying gRPC DataprocMetastore client

Property Value
TypeDescription
DataprocMetastoreDataprocMetastoreClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

MoveTableToDatabaseOperationsClient

public override OperationsClient MoveTableToDatabaseOperationsClient { get; }

The long-running operations client for MoveTableToDatabase.

Property Value
TypeDescription
OperationsClient
Overrides

QueryMetadataOperationsClient

public override OperationsClient QueryMetadataOperationsClient { get; }

The long-running operations client for QueryMetadata.

Property Value
TypeDescription
OperationsClient
Overrides

RestoreServiceOperationsClient

public override OperationsClient RestoreServiceOperationsClient { get; }

The long-running operations client for RestoreService.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateMetadataImportOperationsClient

public override OperationsClient UpdateMetadataImportOperationsClient { get; }

The long-running operations client for UpdateMetadataImport.

Property Value
TypeDescription
OperationsClient
Overrides

UpdateServiceOperationsClient

public override OperationsClient UpdateServiceOperationsClient { get; }

The long-running operations client for UpdateService.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

AlterMetadataResourceLocation(AlterMetadataResourceLocationRequest, CallSettings)

public override Operation<AlterMetadataResourceLocationResponse, OperationMetadata> AlterMetadataResourceLocation(AlterMetadataResourceLocationRequest request, CallSettings callSettings = 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.

Parameters
NameDescription
requestAlterMetadataResourceLocationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationAlterMetadataResourceLocationResponseOperationMetadata

The RPC response.

Overrides

AlterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest, CallSettings)

public override Task<Operation<AlterMetadataResourceLocationResponse, OperationMetadata>> AlterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest request, CallSettings callSettings = 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.

Parameters
NameDescription
requestAlterMetadataResourceLocationRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationAlterMetadataResourceLocationResponseOperationMetadata

A Task containing the RPC response.

Overrides

CreateBackup(CreateBackupRequest, CallSettings)

public override Operation<Backup, OperationMetadata> CreateBackup(CreateBackupRequest request, CallSettings callSettings = null)

Creates a new backup in a given project and location.

Parameters
NameDescription
requestCreateBackupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationBackupOperationMetadata

The RPC response.

Overrides

CreateBackupAsync(CreateBackupRequest, CallSettings)

public override Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(CreateBackupRequest request, CallSettings callSettings = null)

Creates a new backup in a given project and location.

Parameters
NameDescription
requestCreateBackupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationBackupOperationMetadata

A Task containing the RPC response.

Overrides

CreateMetadataImport(CreateMetadataImportRequest, CallSettings)

public override Operation<MetadataImport, OperationMetadata> CreateMetadataImport(CreateMetadataImportRequest request, CallSettings callSettings = null)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
requestCreateMetadataImportRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMetadataImportOperationMetadata

The RPC response.

Overrides

CreateMetadataImportAsync(CreateMetadataImportRequest, CallSettings)

public override Task<Operation<MetadataImport, OperationMetadata>> CreateMetadataImportAsync(CreateMetadataImportRequest request, CallSettings callSettings = null)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
requestCreateMetadataImportRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMetadataImportOperationMetadata

A Task containing the RPC response.

Overrides

CreateService(CreateServiceRequest, CallSettings)

public override Operation<Service, OperationMetadata> CreateService(CreateServiceRequest request, CallSettings callSettings = null)

Creates a metastore service in a project and location.

Parameters
NameDescription
requestCreateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationServiceOperationMetadata

The RPC response.

Overrides

CreateServiceAsync(CreateServiceRequest, CallSettings)

public override Task<Operation<Service, OperationMetadata>> CreateServiceAsync(CreateServiceRequest request, CallSettings callSettings = null)

Creates a metastore service in a project and location.

Parameters
NameDescription
requestCreateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationServiceOperationMetadata

A Task containing the RPC response.

Overrides

DeleteBackup(DeleteBackupRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteBackup(DeleteBackupRequest request, CallSettings callSettings = null)

Deletes a single backup.

Parameters
NameDescription
requestDeleteBackupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteBackupAsync(DeleteBackupRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeleteBackupAsync(DeleteBackupRequest request, CallSettings callSettings = null)

Deletes a single backup.

Parameters
NameDescription
requestDeleteBackupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

DeleteService(DeleteServiceRequest, CallSettings)

public override Operation<Empty, OperationMetadata> DeleteService(DeleteServiceRequest request, CallSettings callSettings = null)

Deletes a single service.

Parameters
NameDescription
requestDeleteServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Overrides

DeleteServiceAsync(DeleteServiceRequest, CallSettings)

public override Task<Operation<Empty, OperationMetadata>> DeleteServiceAsync(DeleteServiceRequest request, CallSettings callSettings = null)

Deletes a single service.

Parameters
NameDescription
requestDeleteServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Overrides

ExportMetadata(ExportMetadataRequest, CallSettings)

public override Operation<MetadataExport, OperationMetadata> ExportMetadata(ExportMetadataRequest request, CallSettings callSettings = null)

Exports metadata from a service.

Parameters
NameDescription
requestExportMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMetadataExportOperationMetadata

The RPC response.

Overrides

ExportMetadataAsync(ExportMetadataRequest, CallSettings)

public override Task<Operation<MetadataExport, OperationMetadata>> ExportMetadataAsync(ExportMetadataRequest request, CallSettings callSettings = null)

Exports metadata from a service.

Parameters
NameDescription
requestExportMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMetadataExportOperationMetadata

A Task containing the RPC response.

Overrides

GetBackup(GetBackupRequest, CallSettings)

public override Backup GetBackup(GetBackupRequest request, CallSettings callSettings = null)

Gets details of a single backup.

Parameters
NameDescription
requestGetBackupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Backup

The RPC response.

Overrides

GetBackupAsync(GetBackupRequest, CallSettings)

public override Task<Backup> GetBackupAsync(GetBackupRequest request, CallSettings callSettings = null)

Gets details of a single backup.

Parameters
NameDescription
requestGetBackupRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBackup

A Task containing the RPC response.

Overrides

GetMetadataImport(GetMetadataImportRequest, CallSettings)

public override MetadataImport GetMetadataImport(GetMetadataImportRequest request, CallSettings callSettings = null)

Gets details of a single import.

Parameters
NameDescription
requestGetMetadataImportRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MetadataImport

The RPC response.

Overrides

GetMetadataImportAsync(GetMetadataImportRequest, CallSettings)

public override Task<MetadataImport> GetMetadataImportAsync(GetMetadataImportRequest request, CallSettings callSettings = null)

Gets details of a single import.

Parameters
NameDescription
requestGetMetadataImportRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMetadataImport

A Task containing the RPC response.

Overrides

GetService(GetServiceRequest, CallSettings)

public override Service GetService(GetServiceRequest request, CallSettings callSettings = null)

Gets the details of a single service.

Parameters
NameDescription
requestGetServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Service

The RPC response.

Overrides

GetServiceAsync(GetServiceRequest, CallSettings)

public override Task<Service> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)

Gets the details of a single service.

Parameters
NameDescription
requestGetServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskService

A Task containing the RPC response.

Overrides

ListBackups(ListBackupsRequest, CallSettings)

public override PagedEnumerable<ListBackupsResponse, Backup> ListBackups(ListBackupsRequest request, CallSettings callSettings = null)

Lists backups in a service.

Parameters
NameDescription
requestListBackupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListBackupsResponseBackup

A pageable sequence of Backup resources.

Overrides

ListBackupsAsync(ListBackupsRequest, CallSettings)

public override PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(ListBackupsRequest request, CallSettings callSettings = null)

Lists backups in a service.

Parameters
NameDescription
requestListBackupsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListBackupsResponseBackup

A pageable asynchronous sequence of Backup resources.

Overrides

ListMetadataImports(ListMetadataImportsRequest, CallSettings)

public override PagedEnumerable<ListMetadataImportsResponse, MetadataImport> ListMetadataImports(ListMetadataImportsRequest request, CallSettings callSettings = null)

Lists imports in a service.

Parameters
NameDescription
requestListMetadataImportsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListMetadataImportsResponseMetadataImport

A pageable sequence of MetadataImport resources.

Overrides

ListMetadataImportsAsync(ListMetadataImportsRequest, CallSettings)

public override PagedAsyncEnumerable<ListMetadataImportsResponse, MetadataImport> ListMetadataImportsAsync(ListMetadataImportsRequest request, CallSettings callSettings = null)

Lists imports in a service.

Parameters
NameDescription
requestListMetadataImportsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListMetadataImportsResponseMetadataImport

A pageable asynchronous sequence of MetadataImport resources.

Overrides

ListServices(ListServicesRequest, CallSettings)

public override PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)

Lists services in a project and location.

Parameters
NameDescription
requestListServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListServicesResponseService

A pageable sequence of Service resources.

Overrides

ListServicesAsync(ListServicesRequest, CallSettings)

public override PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)

Lists services in a project and location.

Parameters
NameDescription
requestListServicesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListServicesResponseService

A pageable asynchronous sequence of Service resources.

Overrides

MoveTableToDatabase(MoveTableToDatabaseRequest, CallSettings)

public override Operation<MoveTableToDatabaseResponse, OperationMetadata> MoveTableToDatabase(MoveTableToDatabaseRequest request, CallSettings callSettings = null)

Move a table to another database.

Parameters
NameDescription
requestMoveTableToDatabaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMoveTableToDatabaseResponseOperationMetadata

The RPC response.

Overrides

MoveTableToDatabaseAsync(MoveTableToDatabaseRequest, CallSettings)

public override Task<Operation<MoveTableToDatabaseResponse, OperationMetadata>> MoveTableToDatabaseAsync(MoveTableToDatabaseRequest request, CallSettings callSettings = null)

Move a table to another database.

Parameters
NameDescription
requestMoveTableToDatabaseRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMoveTableToDatabaseResponseOperationMetadata

A Task containing the RPC response.

Overrides

QueryMetadata(QueryMetadataRequest, CallSettings)

public override Operation<QueryMetadataResponse, OperationMetadata> QueryMetadata(QueryMetadataRequest request, CallSettings callSettings = null)

Query DPMS metadata.

Parameters
NameDescription
requestQueryMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationQueryMetadataResponseOperationMetadata

The RPC response.

Overrides

QueryMetadataAsync(QueryMetadataRequest, CallSettings)

public override Task<Operation<QueryMetadataResponse, OperationMetadata>> QueryMetadataAsync(QueryMetadataRequest request, CallSettings callSettings = null)

Query DPMS metadata.

Parameters
NameDescription
requestQueryMetadataRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationQueryMetadataResponseOperationMetadata

A Task containing the RPC response.

Overrides

RestoreService(RestoreServiceRequest, CallSettings)

public override Operation<Restore, OperationMetadata> RestoreService(RestoreServiceRequest request, CallSettings callSettings = null)

Restores a service from a backup.

Parameters
NameDescription
requestRestoreServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationRestoreOperationMetadata

The RPC response.

Overrides

RestoreServiceAsync(RestoreServiceRequest, CallSettings)

public override Task<Operation<Restore, OperationMetadata>> RestoreServiceAsync(RestoreServiceRequest request, CallSettings callSettings = null)

Restores a service from a backup.

Parameters
NameDescription
requestRestoreServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationRestoreOperationMetadata

A Task containing the RPC response.

Overrides

UpdateMetadataImport(UpdateMetadataImportRequest, CallSettings)

public override Operation<MetadataImport, OperationMetadata> UpdateMetadataImport(UpdateMetadataImportRequest request, CallSettings callSettings = null)

Updates a single import. Only the description field of MetadataImport is supported to be updated.

Parameters
NameDescription
requestUpdateMetadataImportRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationMetadataImportOperationMetadata

The RPC response.

Overrides

UpdateMetadataImportAsync(UpdateMetadataImportRequest, CallSettings)

public override Task<Operation<MetadataImport, OperationMetadata>> UpdateMetadataImportAsync(UpdateMetadataImportRequest request, CallSettings callSettings = null)

Updates a single import. Only the description field of MetadataImport is supported to be updated.

Parameters
NameDescription
requestUpdateMetadataImportRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationMetadataImportOperationMetadata

A Task containing the RPC response.

Overrides

UpdateService(UpdateServiceRequest, CallSettings)

public override Operation<Service, OperationMetadata> UpdateService(UpdateServiceRequest request, CallSettings callSettings = null)

Updates the parameters of a single service.

Parameters
NameDescription
requestUpdateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationServiceOperationMetadata

The RPC response.

Overrides

UpdateServiceAsync(UpdateServiceRequest, CallSettings)

public override Task<Operation<Service, OperationMetadata>> UpdateServiceAsync(UpdateServiceRequest request, CallSettings callSettings = null)

Updates the parameters of a single service.

Parameters
NameDescription
requestUpdateServiceRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationServiceOperationMetadata

A Task containing the RPC response.

Overrides