Dataproc Metastore v1beta API - Class DataprocMetastoreClient (2.0.0-beta04)

Stay organized with collections Save and categorize content based on your preferences.
public abstract class DataprocMetastoreClient

Reference documentation and code samples for the Dataproc Metastore v1beta API class DataprocMetastoreClient.

DataprocMetastore client wrapper, for convenient use.

Inheritance

Object > DataprocMetastoreClient

Namespace

Google.Cloud.Metastore.V1Beta

Assembly

Google.Cloud.Metastore.V1Beta.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}.

Properties

AlterMetadataResourceLocationOperationsClient

public virtual OperationsClient AlterMetadataResourceLocationOperationsClient { get; }

The long-running operations client for AlterMetadataResourceLocation.

Property Value
TypeDescription
OperationsClient

CreateBackupOperationsClient

public virtual OperationsClient CreateBackupOperationsClient { get; }

The long-running operations client for CreateBackup.

Property Value
TypeDescription
OperationsClient

CreateMetadataImportOperationsClient

public virtual OperationsClient CreateMetadataImportOperationsClient { get; }

The long-running operations client for CreateMetadataImport.

Property Value
TypeDescription
OperationsClient

CreateServiceOperationsClient

public virtual OperationsClient CreateServiceOperationsClient { get; }

The long-running operations client for CreateService.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the DataprocMetastore service, which is a host of "metastore.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default DataprocMetastore scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default DataprocMetastore scopes are:

DeleteBackupOperationsClient

public virtual OperationsClient DeleteBackupOperationsClient { get; }

The long-running operations client for DeleteBackup.

Property Value
TypeDescription
OperationsClient

DeleteServiceOperationsClient

public virtual OperationsClient DeleteServiceOperationsClient { get; }

The long-running operations client for DeleteService.

Property Value
TypeDescription
OperationsClient

ExportMetadataOperationsClient

public virtual OperationsClient ExportMetadataOperationsClient { get; }

The long-running operations client for ExportMetadata.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual DataprocMetastore.DataprocMetastoreClient GrpcClient { get; }

The underlying gRPC DataprocMetastore client

Property Value
TypeDescription
DataprocMetastore.DataprocMetastoreClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

MoveTableToDatabaseOperationsClient

public virtual OperationsClient MoveTableToDatabaseOperationsClient { get; }

The long-running operations client for MoveTableToDatabase.

Property Value
TypeDescription
OperationsClient

QueryMetadataOperationsClient

public virtual OperationsClient QueryMetadataOperationsClient { get; }

The long-running operations client for QueryMetadata.

Property Value
TypeDescription
OperationsClient

RestoreServiceOperationsClient

public virtual OperationsClient RestoreServiceOperationsClient { get; }

The long-running operations client for RestoreService.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateMetadataImportOperationsClient

public virtual OperationsClient UpdateMetadataImportOperationsClient { get; }

The long-running operations client for UpdateMetadataImport.

Property Value
TypeDescription
OperationsClient

UpdateServiceOperationsClient

public virtual OperationsClient UpdateServiceOperationsClient { get; }

The long-running operations client for UpdateService.

Property Value
TypeDescription
OperationsClient

Methods

AlterMetadataResourceLocation(AlterMetadataResourceLocationRequest, CallSettings)

public virtual 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
Operation<AlterMetadataResourceLocationResponse, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
AlterMetadataResourceLocationRequest request = new AlterMetadataResourceLocationRequest
{
    ServiceAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    ResourceName = "",
    LocationUri = "",
};
// Make the request
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> response = dataprocMetastoreClient.AlterMetadataResourceLocation(request);

// Poll until the returned long-running operation is complete
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AlterMetadataResourceLocationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceAlterMetadataResourceLocation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AlterMetadataResourceLocationResponse retrievedResult = retrievedResponse.Result;
}

AlterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest, CallSettings)

public virtual 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
Task<Operation<AlterMetadataResourceLocationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
AlterMetadataResourceLocationRequest request = new AlterMetadataResourceLocationRequest
{
    ServiceAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    ResourceName = "",
    LocationUri = "",
};
// Make the request
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> response = await dataprocMetastoreClient.AlterMetadataResourceLocationAsync(request);

// Poll until the returned long-running operation is complete
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AlterMetadataResourceLocationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceAlterMetadataResourceLocationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AlterMetadataResourceLocationResponse retrievedResult = retrievedResponse.Result;
}

AlterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest, CancellationToken)

public virtual Task<Operation<AlterMetadataResourceLocationResponse, OperationMetadata>> AlterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest request, CancellationToken cancellationToken)

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AlterMetadataResourceLocationResponse, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
AlterMetadataResourceLocationRequest request = new AlterMetadataResourceLocationRequest
{
    ServiceAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    ResourceName = "",
    LocationUri = "",
};
// Make the request
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> response = await dataprocMetastoreClient.AlterMetadataResourceLocationAsync(request);

// Poll until the returned long-running operation is complete
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AlterMetadataResourceLocationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AlterMetadataResourceLocationResponse, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceAlterMetadataResourceLocationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AlterMetadataResourceLocationResponse retrievedResult = retrievedResponse.Result;
}

Create()

public static DataprocMetastoreClient Create()

Synchronously creates a DataprocMetastoreClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DataprocMetastoreClientBuilder.

Returns
TypeDescription
DataprocMetastoreClient

The created DataprocMetastoreClient.

CreateAsync(CancellationToken)

public static Task<DataprocMetastoreClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a DataprocMetastoreClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DataprocMetastoreClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<DataprocMetastoreClient>

The task representing the created DataprocMetastoreClient.

CreateBackup(CreateBackupRequest, CallSettings)

public virtual 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
Operation<Backup, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    BackupId = "",
    Backup = new Backup(),
    RequestId = "",
};
// Make the request
Operation<Backup, OperationMetadata> response = dataprocMetastoreClient.CreateBackup(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackup(ServiceName, Backup, String, CallSettings)

public virtual Operation<Backup, OperationMetadata> CreateBackup(ServiceName parent, Backup backup, string backupId, CallSettings callSettings = null)

Creates a new backup in a given project and location.

Parameters
NameDescription
parentServiceName

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}.

backupBackup

Required. The backup to create. The name field is ignored. The ID of the created backup must be provided in the request's backup_id field.

backupIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Backup, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = dataprocMetastoreClient.CreateBackup(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackup(String, Backup, String, CallSettings)

public virtual Operation<Backup, OperationMetadata> CreateBackup(string parent, Backup backup, string backupId, CallSettings callSettings = null)

Creates a new backup in a given project and location.

Parameters
NameDescription
parentString

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}.

backupBackup

Required. The backup to create. The name field is ignored. The ID of the created backup must be provided in the request's backup_id field.

backupIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Backup, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = dataprocMetastoreClient.CreateBackup(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateBackup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(CreateBackupRequest, CallSettings)

public virtual 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
Task<Operation<Backup, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    BackupId = "",
    Backup = new Backup(),
    RequestId = "",
};
// Make the request
Operation<Backup, OperationMetadata> response = await dataprocMetastoreClient.CreateBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(CreateBackupRequest, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(CreateBackupRequest request, CancellationToken cancellationToken)

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Backup, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
CreateBackupRequest request = new CreateBackupRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    BackupId = "",
    Backup = new Backup(),
    RequestId = "",
};
// Make the request
Operation<Backup, OperationMetadata> response = await dataprocMetastoreClient.CreateBackupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(ServiceName, Backup, String, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(ServiceName parent, Backup backup, string backupId, CallSettings callSettings = null)

Creates a new backup in a given project and location.

Parameters
NameDescription
parentServiceName

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}.

backupBackup

Required. The backup to create. The name field is ignored. The ID of the created backup must be provided in the request's backup_id field.

backupIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Backup, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await dataprocMetastoreClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(ServiceName, Backup, String, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(ServiceName parent, Backup backup, string backupId, CancellationToken cancellationToken)

Creates a new backup in a given project and location.

Parameters
NameDescription
parentServiceName

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}.

backupBackup

Required. The backup to create. The name field is ignored. The ID of the created backup must be provided in the request's backup_id field.

backupIdString

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Backup, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await dataprocMetastoreClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(String, Backup, String, CallSettings)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(string parent, Backup backup, string backupId, CallSettings callSettings = null)

Creates a new backup in a given project and location.

Parameters
NameDescription
parentString

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}.

backupBackup

Required. The backup to create. The name field is ignored. The ID of the created backup must be provided in the request's backup_id field.

backupIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Backup, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await dataprocMetastoreClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateBackupAsync(String, Backup, String, CancellationToken)

public virtual Task<Operation<Backup, OperationMetadata>> CreateBackupAsync(string parent, Backup backup, string backupId, CancellationToken cancellationToken)

Creates a new backup in a given project and location.

Parameters
NameDescription
parentString

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}.

backupBackup

Required. The backup to create. The name field is ignored. The ID of the created backup must be provided in the request's backup_id field.

backupIdString

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Backup, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
Backup backup = new Backup();
string backupId = "";
// Make the request
Operation<Backup, OperationMetadata> response = await dataprocMetastoreClient.CreateBackupAsync(parent, backup, backupId);

// Poll until the returned long-running operation is complete
Operation<Backup, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Backup result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Backup, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateBackupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Backup retrievedResult = retrievedResponse.Result;
}

CreateMetadataImport(CreateMetadataImportRequest, CallSettings)

public virtual 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
Operation<MetadataImport, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
CreateMetadataImportRequest request = new CreateMetadataImportRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    MetadataImportId = "",
    MetadataImport = new MetadataImport(),
    RequestId = "",
};
// Make the request
Operation<MetadataImport, OperationMetadata> response = dataprocMetastoreClient.CreateMetadataImport(request);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateMetadataImport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImport(ServiceName, MetadataImport, String, CallSettings)

public virtual Operation<MetadataImport, OperationMetadata> CreateMetadataImport(ServiceName parent, MetadataImport metadataImport, string metadataImportId, CallSettings callSettings = null)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
parentServiceName

Required. The relative resource name of the service in which to create a metastore import, in the following form:

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

metadataImportMetadataImport

Required. The metadata import to create. The name field is ignored. The ID of the created metadata import must be provided in the request's metadata_import_id field.

metadataImportIdString

Required. The ID of the metadata import, which is used as the final component of the metadata import'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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MetadataImport, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
MetadataImport metadataImport = new MetadataImport();
string metadataImportId = "";
// Make the request
Operation<MetadataImport, OperationMetadata> response = dataprocMetastoreClient.CreateMetadataImport(parent, metadataImport, metadataImportId);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateMetadataImport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImport(String, MetadataImport, String, CallSettings)

public virtual Operation<MetadataImport, OperationMetadata> CreateMetadataImport(string parent, MetadataImport metadataImport, string metadataImportId, CallSettings callSettings = null)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
parentString

Required. The relative resource name of the service in which to create a metastore import, in the following form:

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

metadataImportMetadataImport

Required. The metadata import to create. The name field is ignored. The ID of the created metadata import must be provided in the request's metadata_import_id field.

metadataImportIdString

Required. The ID of the metadata import, which is used as the final component of the metadata import'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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<MetadataImport, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
MetadataImport metadataImport = new MetadataImport();
string metadataImportId = "";
// Make the request
Operation<MetadataImport, OperationMetadata> response = dataprocMetastoreClient.CreateMetadataImport(parent, metadataImport, metadataImportId);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateMetadataImport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImportAsync(CreateMetadataImportRequest, CallSettings)

public virtual 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
Task<Operation<MetadataImport, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
CreateMetadataImportRequest request = new CreateMetadataImportRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    MetadataImportId = "",
    MetadataImport = new MetadataImport(),
    RequestId = "",
};
// Make the request
Operation<MetadataImport, OperationMetadata> response = await dataprocMetastoreClient.CreateMetadataImportAsync(request);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateMetadataImportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImportAsync(CreateMetadataImportRequest, CancellationToken)

public virtual Task<Operation<MetadataImport, OperationMetadata>> CreateMetadataImportAsync(CreateMetadataImportRequest request, CancellationToken cancellationToken)

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<MetadataImport, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
CreateMetadataImportRequest request = new CreateMetadataImportRequest
{
    ParentAsServiceName = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]"),
    MetadataImportId = "",
    MetadataImport = new MetadataImport(),
    RequestId = "",
};
// Make the request
Operation<MetadataImport, OperationMetadata> response = await dataprocMetastoreClient.CreateMetadataImportAsync(request);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateMetadataImportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImportAsync(ServiceName, MetadataImport, String, CallSettings)

public virtual Task<Operation<MetadataImport, OperationMetadata>> CreateMetadataImportAsync(ServiceName parent, MetadataImport metadataImport, string metadataImportId, CallSettings callSettings = null)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
parentServiceName

Required. The relative resource name of the service in which to create a metastore import, in the following form:

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

metadataImportMetadataImport

Required. The metadata import to create. The name field is ignored. The ID of the created metadata import must be provided in the request's metadata_import_id field.

metadataImportIdString

Required. The ID of the metadata import, which is used as the final component of the metadata import'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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MetadataImport, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
MetadataImport metadataImport = new MetadataImport();
string metadataImportId = "";
// Make the request
Operation<MetadataImport, OperationMetadata> response = await dataprocMetastoreClient.CreateMetadataImportAsync(parent, metadataImport, metadataImportId);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateMetadataImportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImportAsync(ServiceName, MetadataImport, String, CancellationToken)

public virtual Task<Operation<MetadataImport, OperationMetadata>> CreateMetadataImportAsync(ServiceName parent, MetadataImport metadataImport, string metadataImportId, CancellationToken cancellationToken)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
parentServiceName

Required. The relative resource name of the service in which to create a metastore import, in the following form:

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

metadataImportMetadataImport

Required. The metadata import to create. The name field is ignored. The ID of the created metadata import must be provided in the request's metadata_import_id field.

metadataImportIdString

Required. The ID of the metadata import, which is used as the final component of the metadata import'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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<MetadataImport, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationService("[PROJECT]", "[LOCATION]", "[SERVICE]");
MetadataImport metadataImport = new MetadataImport();
string metadataImportId = "";
// Make the request
Operation<MetadataImport, OperationMetadata> response = await dataprocMetastoreClient.CreateMetadataImportAsync(parent, metadataImport, metadataImportId);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateMetadataImportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImportAsync(String, MetadataImport, String, CallSettings)

public virtual Task<Operation<MetadataImport, OperationMetadata>> CreateMetadataImportAsync(string parent, MetadataImport metadataImport, string metadataImportId, CallSettings callSettings = null)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
parentString

Required. The relative resource name of the service in which to create a metastore import, in the following form:

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

metadataImportMetadataImport

Required. The metadata import to create. The name field is ignored. The ID of the created metadata import must be provided in the request's metadata_import_id field.

metadataImportIdString

Required. The ID of the metadata import, which is used as the final component of the metadata import'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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<MetadataImport, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
MetadataImport metadataImport = new MetadataImport();
string metadataImportId = "";
// Make the request
Operation<MetadataImport, OperationMetadata> response = await dataprocMetastoreClient.CreateMetadataImportAsync(parent, metadataImport, metadataImportId);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateMetadataImportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateMetadataImportAsync(String, MetadataImport, String, CancellationToken)

public virtual Task<Operation<MetadataImport, OperationMetadata>> CreateMetadataImportAsync(string parent, MetadataImport metadataImport, string metadataImportId, CancellationToken cancellationToken)

Creates a new MetadataImport in a given project and location.

Parameters
NameDescription
parentString

Required. The relative resource name of the service in which to create a metastore import, in the following form:

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

metadataImportMetadataImport

Required. The metadata import to create. The name field is ignored. The ID of the created metadata import must be provided in the request's metadata_import_id field.

metadataImportIdString

Required. The ID of the metadata import, which is used as the final component of the metadata import'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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<MetadataImport, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/services/[SERVICE]";
MetadataImport metadataImport = new MetadataImport();
string metadataImportId = "";
// Make the request
Operation<MetadataImport, OperationMetadata> response = await dataprocMetastoreClient.CreateMetadataImportAsync(parent, metadataImport, metadataImportId);

// Poll until the returned long-running operation is complete
Operation<MetadataImport, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MetadataImport result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<MetadataImport, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateMetadataImportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    MetadataImport retrievedResult = retrievedResponse.Result;
}

CreateService(LocationName, Service, String, CallSettings)

public virtual Operation<Service, OperationMetadata> CreateService(LocationName parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a metastore service in a project and location.

Parameters
NameDescription
parentLocationName

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}.

serviceService

Required. The Metastore service to create. The name field is ignored. The ID of the created metastore service must be provided in the request's service_id field.

serviceIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Service, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Service service = new Service();
string serviceId = "";
// Make the request
Operation<Service, OperationMetadata> response = dataprocMetastoreClient.CreateService(parent, service, serviceId);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateService(CreateServiceRequest, CallSettings)

public virtual 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
Operation<Service, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServiceId = "",
    Service = new Service(),
    RequestId = "",
};
// Make the request
Operation<Service, OperationMetadata> response = dataprocMetastoreClient.CreateService(request);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateService(String, Service, String, CallSettings)

public virtual Operation<Service, OperationMetadata> CreateService(string parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a metastore service in a project and location.

Parameters
NameDescription
parentString

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}.

serviceService

Required. The Metastore service to create. The name field is ignored. The ID of the created metastore service must be provided in the request's service_id field.

serviceIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Service, OperationMetadata>

The RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = DataprocMetastoreClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Service service = new Service();
string serviceId = "";
// Make the request
Operation<Service, OperationMetadata> response = dataprocMetastoreClient.CreateService(parent, service, serviceId);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = dataprocMetastoreClient.PollOnceCreateService(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateServiceAsync(LocationName, Service, String, CallSettings)

public virtual Task<Operation<Service, OperationMetadata>> CreateServiceAsync(LocationName parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a metastore service in a project and location.

Parameters
NameDescription
parentLocationName

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}.

serviceService

Required. The Metastore service to create. The name field is ignored. The ID of the created metastore service must be provided in the request's service_id field.

serviceIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Service, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Service service = new Service();
string serviceId = "";
// Make the request
Operation<Service, OperationMetadata> response = await dataprocMetastoreClient.CreateServiceAsync(parent, service, serviceId);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateServiceAsync(LocationName, Service, String, CancellationToken)

public virtual Task<Operation<Service, OperationMetadata>> CreateServiceAsync(LocationName parent, Service service, string serviceId, CancellationToken cancellationToken)

Creates a metastore service in a project and location.

Parameters
NameDescription
parentLocationName

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}.

serviceService

Required. The Metastore service to create. The name field is ignored. The ID of the created metastore service must be provided in the request's service_id field.

serviceIdString

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Service, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Service service = new Service();
string serviceId = "";
// Make the request
Operation<Service, OperationMetadata> response = await dataprocMetastoreClient.CreateServiceAsync(parent, service, serviceId);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateServiceAsync(CreateServiceRequest, CallSettings)

public virtual 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
Task<Operation<Service, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServiceId = "",
    Service = new Service(),
    RequestId = "",
};
// Make the request
Operation<Service, OperationMetadata> response = await dataprocMetastoreClient.CreateServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateServiceAsync(CreateServiceRequest, CancellationToken)

public virtual Task<Operation<Service, OperationMetadata>> CreateServiceAsync(CreateServiceRequest request, CancellationToken cancellationToken)

Creates a metastore service in a project and location.

Parameters
NameDescription
requestCreateServiceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Service, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
CreateServiceRequest request = new CreateServiceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ServiceId = "",
    Service = new Service(),
    RequestId = "",
};
// Make the request
Operation<Service, OperationMetadata> response = await dataprocMetastoreClient.CreateServiceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateServiceAsync(String, Service, String, CallSettings)

public virtual Task<Operation<Service, OperationMetadata>> CreateServiceAsync(string parent, Service service, string serviceId, CallSettings callSettings = null)

Creates a metastore service in a project and location.

Parameters
NameDescription
parentString

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}.

serviceService

Required. The Metastore service to create. The name field is ignored. The ID of the created metastore service must be provided in the request's service_id field.

serviceIdString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Service, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMetastoreClient = await DataprocMetastoreClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Service service = new Service();
string serviceId = "";
// Make the request
Operation<Service, OperationMetadata> response = await dataprocMetastoreClient.CreateServiceAsync(parent, service, serviceId);

// Poll until the returned long-running operation is complete
Operation<Service, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Service result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Service, OperationMetadata> retrievedResponse = await dataprocMetastoreClient.PollOnceCreateServiceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Service retrievedResult = retrievedResponse.Result;
}

CreateServiceAsync(String, Service, String, CancellationToken)

public virtual Task<Operation<Service, OperationMetadata>> CreateServiceAsync(string parent, Service service, string serviceId, CancellationToken cancellationToken)

Creates a metastore service in a project and location.

Parameters
NameDescription
parentString

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}.

serviceService

Required. The Metastore service to create. The name field is ignored. The ID of the created metastore service must be provided in the request's service_id field.

serviceIdString

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Service, OperationMetadata>>

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreClient dataprocMe