Dataproc Metastore v1 API - Class DataprocMetastoreFederationClient (2.7.0)

public abstract class DataprocMetastoreFederationClient

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

DataprocMetastoreFederation client wrapper, for convenient use.

Inheritance

object > DataprocMetastoreFederationClient

Namespace

Google.Cloud.Metastore.V1

Assembly

Google.Cloud.Metastore.V1.dll

Remarks

Configures and manages metastore federation services. Dataproc Metastore Federation Service allows federating a collection of backend metastores like BigQuery, Dataplex Lakes, and other Dataproc Metastores. The Federation Service exposes a gRPC URL through which metadata from the backend metastores are served at query time.

The Dataproc Metastore Federation API defines the following resource model:

  • The service works with a collection of Google Cloud projects.
  • Each project has a collection of available locations.
  • Each location has a collection of federations.
  • Dataproc Metastore Federations are resources with names of the form: projects/{project_number}/locations/{location_id}/federations/{federation_id}.

Properties

CreateFederationOperationsClient

public virtual OperationsClient CreateFederationOperationsClient { get; }

The long-running operations client for CreateFederation.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the DataprocMetastoreFederation 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 DataprocMetastoreFederation scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default DataprocMetastoreFederation scopes are:

DeleteFederationOperationsClient

public virtual OperationsClient DeleteFederationOperationsClient { get; }

The long-running operations client for DeleteFederation.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual DataprocMetastoreFederation.DataprocMetastoreFederationClient GrpcClient { get; }

The underlying gRPC DataprocMetastoreFederation client

Property Value
TypeDescription
DataprocMetastoreFederationDataprocMetastoreFederationClient

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

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateFederationOperationsClient

public virtual OperationsClient UpdateFederationOperationsClient { get; }

The long-running operations client for UpdateFederation.

Property Value
TypeDescription
OperationsClient

Methods

Create()

public static DataprocMetastoreFederationClient Create()

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

Returns
TypeDescription
DataprocMetastoreFederationClient

The created DataprocMetastoreFederationClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskDataprocMetastoreFederationClient

The task representing the created DataprocMetastoreFederationClient.

CreateFederation(LocationName, Federation, string, CallSettings)

public virtual Operation<Federation, OperationMetadata> CreateFederation(LocationName parent, Federation federation, string federationId, CallSettings callSettings = null)

Creates a metastore federation in a project and location.

Parameters
NameDescription
parentLocationName

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

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

federationFederation

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

federationIdstring

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

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Federation federation = new Federation();
string federationId = "";
// Make the request
Operation<Federation, OperationMetadata> response = dataprocMetastoreFederationClient.CreateFederation(parent, federation, federationId);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederation(CreateFederationRequest, CallSettings)

public virtual Operation<Federation, OperationMetadata> CreateFederation(CreateFederationRequest request, CallSettings callSettings = null)

Creates a metastore federation in a project and location.

Parameters
NameDescription
requestCreateFederationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFederationOperationMetadata

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
CreateFederationRequest request = new CreateFederationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    FederationId = "",
    Federation = new Federation(),
    RequestId = "",
};
// Make the request
Operation<Federation, OperationMetadata> response = dataprocMetastoreFederationClient.CreateFederation(request);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederation(string, Federation, string, CallSettings)

public virtual Operation<Federation, OperationMetadata> CreateFederation(string parent, Federation federation, string federationId, CallSettings callSettings = null)

Creates a metastore federation in a project and location.

Parameters
NameDescription
parentstring

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

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

federationFederation

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

federationIdstring

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

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Federation federation = new Federation();
string federationId = "";
// Make the request
Operation<Federation, OperationMetadata> response = dataprocMetastoreFederationClient.CreateFederation(parent, federation, federationId);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceCreateFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederationAsync(LocationName, Federation, string, CallSettings)

public virtual Task<Operation<Federation, OperationMetadata>> CreateFederationAsync(LocationName parent, Federation federation, string federationId, CallSettings callSettings = null)

Creates a metastore federation in a project and location.

Parameters
NameDescription
parentLocationName

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

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

federationFederation

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

federationIdstring

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

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Federation federation = new Federation();
string federationId = "";
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederationAsync(LocationName, Federation, string, CancellationToken)

public virtual Task<Operation<Federation, OperationMetadata>> CreateFederationAsync(LocationName parent, Federation federation, string federationId, CancellationToken cancellationToken)

Creates a metastore federation in a project and location.

Parameters
NameDescription
parentLocationName

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

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

federationFederation

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

federationIdstring

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

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Federation federation = new Federation();
string federationId = "";
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederationAsync(CreateFederationRequest, CallSettings)

public virtual Task<Operation<Federation, OperationMetadata>> CreateFederationAsync(CreateFederationRequest request, CallSettings callSettings = null)

Creates a metastore federation in a project and location.

Parameters
NameDescription
requestCreateFederationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
CreateFederationRequest request = new CreateFederationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    FederationId = "",
    Federation = new Federation(),
    RequestId = "",
};
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.CreateFederationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederationAsync(CreateFederationRequest, CancellationToken)

public virtual Task<Operation<Federation, OperationMetadata>> CreateFederationAsync(CreateFederationRequest request, CancellationToken cancellationToken)

Creates a metastore federation in a project and location.

Parameters
NameDescription
requestCreateFederationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
CreateFederationRequest request = new CreateFederationRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    FederationId = "",
    Federation = new Federation(),
    RequestId = "",
};
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.CreateFederationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederationAsync(string, Federation, string, CallSettings)

public virtual Task<Operation<Federation, OperationMetadata>> CreateFederationAsync(string parent, Federation federation, string federationId, CallSettings callSettings = null)

Creates a metastore federation in a project and location.

Parameters
NameDescription
parentstring

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

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

federationFederation

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

federationIdstring

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

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Federation federation = new Federation();
string federationId = "";
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

CreateFederationAsync(string, Federation, string, CancellationToken)

public virtual Task<Operation<Federation, OperationMetadata>> CreateFederationAsync(string parent, Federation federation, string federationId, CancellationToken cancellationToken)

Creates a metastore federation in a project and location.

Parameters
NameDescription
parentstring

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

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

federationFederation

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

federationIdstring

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

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Federation federation = new Federation();
string federationId = "";
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.CreateFederationAsync(parent, federation, federationId);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceCreateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

DeleteFederation(DeleteFederationRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteFederation(DeleteFederationRequest request, CallSettings callSettings = null)

Deletes a single federation.

Parameters
NameDescription
requestDeleteFederationRequest

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.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
DeleteFederationRequest request = new DeleteFederationRequest
{
    FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = dataprocMetastoreFederationClient.DeleteFederation(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederation(FederationName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteFederation(FederationName name, CallSettings callSettings = null)

Deletes a single federation.

Parameters
NameDescription
nameFederationName

Required. The relative resource name of the metastore federation to delete, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]");
// Make the request
Operation<Empty, OperationMetadata> response = dataprocMetastoreFederationClient.DeleteFederation(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederation(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteFederation(string name, CallSettings callSettings = null)

Deletes a single federation.

Parameters
NameDescription
namestring

Required. The relative resource name of the metastore federation to delete, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]";
// Make the request
Operation<Empty, OperationMetadata> response = dataprocMetastoreFederationClient.DeleteFederation(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceDeleteFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederationAsync(DeleteFederationRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFederationAsync(DeleteFederationRequest request, CallSettings callSettings = null)

Deletes a single federation.

Parameters
NameDescription
requestDeleteFederationRequest

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.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
DeleteFederationRequest request = new DeleteFederationRequest
{
    FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataprocMetastoreFederationClient.DeleteFederationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederationAsync(DeleteFederationRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFederationAsync(DeleteFederationRequest request, CancellationToken cancellationToken)

Deletes a single federation.

Parameters
NameDescription
requestDeleteFederationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
DeleteFederationRequest request = new DeleteFederationRequest
{
    FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await dataprocMetastoreFederationClient.DeleteFederationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederationAsync(FederationName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFederationAsync(FederationName name, CallSettings callSettings = null)

Deletes a single federation.

Parameters
NameDescription
nameFederationName

Required. The relative resource name of the metastore federation to delete, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederationAsync(FederationName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFederationAsync(FederationName name, CancellationToken cancellationToken)

Deletes a single federation.

Parameters
NameDescription
nameFederationName

Required. The relative resource name of the metastore federation to delete, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]");
// Make the request
Operation<Empty, OperationMetadata> response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederationAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFederationAsync(string name, CallSettings callSettings = null)

Deletes a single federation.

Parameters
NameDescription
namestring

Required. The relative resource name of the metastore federation to delete, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteFederationAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteFederationAsync(string name, CancellationToken cancellationToken)

Deletes a single federation.

Parameters
NameDescription
namestring

Required. The relative resource name of the metastore federation to delete, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]";
// Make the request
Operation<Empty, OperationMetadata> response = await dataprocMetastoreFederationClient.DeleteFederationAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty 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<Empty, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceDeleteFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetFederation(FederationName, CallSettings)

public virtual Federation GetFederation(FederationName name, CallSettings callSettings = null)

Gets the details of a single federation.

Parameters
NameDescription
nameFederationName

Required. The relative resource name of the metastore federation to retrieve, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Federation

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]");
// Make the request
Federation response = dataprocMetastoreFederationClient.GetFederation(name);

GetFederation(GetFederationRequest, CallSettings)

public virtual Federation GetFederation(GetFederationRequest request, CallSettings callSettings = null)

Gets the details of a single federation.

Parameters
NameDescription
requestGetFederationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Federation

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
GetFederationRequest request = new GetFederationRequest
{
    FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"),
};
// Make the request
Federation response = dataprocMetastoreFederationClient.GetFederation(request);

GetFederation(string, CallSettings)

public virtual Federation GetFederation(string name, CallSettings callSettings = null)

Gets the details of a single federation.

Parameters
NameDescription
namestring

Required. The relative resource name of the metastore federation to retrieve, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Federation

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]";
// Make the request
Federation response = dataprocMetastoreFederationClient.GetFederation(name);

GetFederationAsync(FederationName, CallSettings)

public virtual Task<Federation> GetFederationAsync(FederationName name, CallSettings callSettings = null)

Gets the details of a single federation.

Parameters
NameDescription
nameFederationName

Required. The relative resource name of the metastore federation to retrieve, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFederation

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]");
// Make the request
Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name);

GetFederationAsync(FederationName, CancellationToken)

public virtual Task<Federation> GetFederationAsync(FederationName name, CancellationToken cancellationToken)

Gets the details of a single federation.

Parameters
NameDescription
nameFederationName

Required. The relative resource name of the metastore federation to retrieve, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFederation

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
FederationName name = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]");
// Make the request
Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name);

GetFederationAsync(GetFederationRequest, CallSettings)

public virtual Task<Federation> GetFederationAsync(GetFederationRequest request, CallSettings callSettings = null)

Gets the details of a single federation.

Parameters
NameDescription
requestGetFederationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFederation

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
GetFederationRequest request = new GetFederationRequest
{
    FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"),
};
// Make the request
Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(request);

GetFederationAsync(GetFederationRequest, CancellationToken)

public virtual Task<Federation> GetFederationAsync(GetFederationRequest request, CancellationToken cancellationToken)

Gets the details of a single federation.

Parameters
NameDescription
requestGetFederationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFederation

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
GetFederationRequest request = new GetFederationRequest
{
    FederationName = FederationName.FromProjectLocationFederation("[PROJECT]", "[LOCATION]", "[FEDERATION]"),
};
// Make the request
Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(request);

GetFederationAsync(string, CallSettings)

public virtual Task<Federation> GetFederationAsync(string name, CallSettings callSettings = null)

Gets the details of a single federation.

Parameters
NameDescription
namestring

Required. The relative resource name of the metastore federation to retrieve, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskFederation

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]";
// Make the request
Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name);

GetFederationAsync(string, CancellationToken)

public virtual Task<Federation> GetFederationAsync(string name, CancellationToken cancellationToken)

Gets the details of a single federation.

Parameters
NameDescription
namestring

Required. The relative resource name of the metastore federation to retrieve, in the following form:

projects/{project_number}/locations/{location_id}/federations/{federation_id}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskFederation

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/federations/[FEDERATION]";
// Make the request
Federation response = await dataprocMetastoreFederationClient.GetFederationAsync(name);

ListFederations(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListFederationsResponse, Federation> ListFederations(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists federations in a project and location.

Parameters
NameDescription
parentLocationName

Required. The relative resource name of the location of metastore federations to list, in the following form: projects/{project_number}/locations/{location_id}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListFederationsResponseFederation

A pageable sequence of Federation resources.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFederationsResponse, Federation> response = dataprocMetastoreFederationClient.ListFederations(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Federation item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFederationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Federation item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Federation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Federation item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListFederations(ListFederationsRequest, CallSettings)

public virtual PagedEnumerable<ListFederationsResponse, Federation> ListFederations(ListFederationsRequest request, CallSettings callSettings = null)

Lists federations in a project and location.

Parameters
NameDescription
requestListFederationsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListFederationsResponseFederation

A pageable sequence of Federation resources.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
ListFederationsRequest request = new ListFederationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListFederationsResponse, Federation> response = dataprocMetastoreFederationClient.ListFederations(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Federation item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFederationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Federation item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Federation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Federation item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListFederations(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListFederationsResponse, Federation> ListFederations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists federations in a project and location.

Parameters
NameDescription
parentstring

Required. The relative resource name of the location of metastore federations to list, in the following form: projects/{project_number}/locations/{location_id}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListFederationsResponseFederation

A pageable sequence of Federation resources.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListFederationsResponse, Federation> response = dataprocMetastoreFederationClient.ListFederations(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Federation item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFederationsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Federation item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Federation> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Federation item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListFederationsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListFederationsResponse, Federation> ListFederationsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists federations in a project and location.

Parameters
NameDescription
parentLocationName

Required. The relative resource name of the location of metastore federations to list, in the following form: projects/{project_number}/locations/{location_id}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListFederationsResponseFederation

A pageable asynchronous sequence of Federation resources.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFederationsResponse, Federation> response = dataprocMetastoreFederationClient.ListFederationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Federation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Federation item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Federation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Federation item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListFederationsAsync(ListFederationsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListFederationsResponse, Federation> ListFederationsAsync(ListFederationsRequest request, CallSettings callSettings = null)

Lists federations in a project and location.

Parameters
NameDescription
requestListFederationsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListFederationsResponseFederation

A pageable asynchronous sequence of Federation resources.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
ListFederationsRequest request = new ListFederationsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListFederationsResponse, Federation> response = dataprocMetastoreFederationClient.ListFederationsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Federation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Federation item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Federation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Federation item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListFederationsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListFederationsResponse, Federation> ListFederationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists federations in a project and location.

Parameters
NameDescription
parentstring

Required. The relative resource name of the location of metastore federations to list, in the following form: projects/{project_number}/locations/{location_id}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListFederationsResponseFederation

A pageable asynchronous sequence of Federation resources.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFederationsResponse, Federation> response = dataprocMetastoreFederationClient.ListFederationsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Federation item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFederationsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Federation item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Federation> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Federation item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateFederation(string, CallSettings)

public virtual Operation<Federation, OperationMetadata> PollOnceCreateFederation(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateFederation.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFederationOperationMetadata

The result of polling the operation.

PollOnceCreateFederationAsync(string, CallSettings)

public virtual Task<Operation<Federation, OperationMetadata>> PollOnceCreateFederationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateFederation.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteFederation(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteFederation(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteFederation.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteFederationAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteFederationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteFederation.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateFederation(string, CallSettings)

public virtual Operation<Federation, OperationMetadata> PollOnceUpdateFederation(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateFederation.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFederationOperationMetadata

The result of polling the operation.

PollOnceUpdateFederationAsync(string, CallSettings)

public virtual Task<Operation<Federation, OperationMetadata>> PollOnceUpdateFederationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateFederation.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateFederation(Federation, FieldMask, CallSettings)

public virtual Operation<Federation, OperationMetadata> UpdateFederation(Federation federation, FieldMask updateMask, CallSettings callSettings = null)

Updates the fields of a federation.

Parameters
NameDescription
federationFederation

Required. The metastore federation to update. The server only merges fields in the service if they are specified in update_mask.

The metastore federation's name field is used to identify the metastore service to be updated.

updateMaskFieldMask

Required. A field mask used to specify the fields to be overwritten in the metastore federation resource by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFederationOperationMetadata

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
Federation federation = new Federation();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Federation, OperationMetadata> response = dataprocMetastoreFederationClient.UpdateFederation(federation, updateMask);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceUpdateFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

UpdateFederation(UpdateFederationRequest, CallSettings)

public virtual Operation<Federation, OperationMetadata> UpdateFederation(UpdateFederationRequest request, CallSettings callSettings = null)

Updates the fields of a federation.

Parameters
NameDescription
requestUpdateFederationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationFederationOperationMetadata

The RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = DataprocMetastoreFederationClient.Create();
// Initialize request argument(s)
UpdateFederationRequest request = new UpdateFederationRequest
{
    UpdateMask = new FieldMask(),
    Federation = new Federation(),
    RequestId = "",
};
// Make the request
Operation<Federation, OperationMetadata> response = dataprocMetastoreFederationClient.UpdateFederation(request);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = dataprocMetastoreFederationClient.PollOnceUpdateFederation(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

UpdateFederationAsync(Federation, FieldMask, CallSettings)

public virtual Task<Operation<Federation, OperationMetadata>> UpdateFederationAsync(Federation federation, FieldMask updateMask, CallSettings callSettings = null)

Updates the fields of a federation.

Parameters
NameDescription
federationFederation

Required. The metastore federation to update. The server only merges fields in the service if they are specified in update_mask.

The metastore federation's name field is used to identify the metastore service to be updated.

updateMaskFieldMask

Required. A field mask used to specify the fields to be overwritten in the metastore federation resource by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
Federation federation = new Federation();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.UpdateFederationAsync(federation, updateMask);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

UpdateFederationAsync(Federation, FieldMask, CancellationToken)

public virtual Task<Operation<Federation, OperationMetadata>> UpdateFederationAsync(Federation federation, FieldMask updateMask, CancellationToken cancellationToken)

Updates the fields of a federation.

Parameters
NameDescription
federationFederation

Required. The metastore federation to update. The server only merges fields in the service if they are specified in update_mask.

The metastore federation's name field is used to identify the metastore service to be updated.

updateMaskFieldMask

Required. A field mask used to specify the fields to be overwritten in the metastore federation resource by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
Federation federation = new Federation();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.UpdateFederationAsync(federation, updateMask);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

UpdateFederationAsync(UpdateFederationRequest, CallSettings)

public virtual Task<Operation<Federation, OperationMetadata>> UpdateFederationAsync(UpdateFederationRequest request, CallSettings callSettings = null)

Updates the fields of a federation.

Parameters
NameDescription
requestUpdateFederationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
UpdateFederationRequest request = new UpdateFederationRequest
{
    UpdateMask = new FieldMask(),
    Federation = new Federation(),
    RequestId = "",
};
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.UpdateFederationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}

UpdateFederationAsync(UpdateFederationRequest, CancellationToken)

public virtual Task<Operation<Federation, OperationMetadata>> UpdateFederationAsync(UpdateFederationRequest request, CancellationToken cancellationToken)

Updates the fields of a federation.

Parameters
NameDescription
requestUpdateFederationRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationFederationOperationMetadata

A Task containing the RPC response.

Example
// Create client
DataprocMetastoreFederationClient dataprocMetastoreFederationClient = await DataprocMetastoreFederationClient.CreateAsync();
// Initialize request argument(s)
UpdateFederationRequest request = new UpdateFederationRequest
{
    UpdateMask = new FieldMask(),
    Federation = new Federation(),
    RequestId = "",
};
// Make the request
Operation<Federation, OperationMetadata> response = await dataprocMetastoreFederationClient.UpdateFederationAsync(request);

// Poll until the returned long-running operation is complete
Operation<Federation, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Federation 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<Federation, OperationMetadata> retrievedResponse = await dataprocMetastoreFederationClient.PollOnceUpdateFederationAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Federation retrievedResult = retrievedResponse.Result;
}