Cloud Dataplex v1 API - Class MetadataServiceClient (3.3.0)

public abstract class MetadataServiceClient

Reference documentation and code samples for the Cloud Dataplex v1 API class MetadataServiceClient.

MetadataService client wrapper, for convenient use.

Inheritance

object > MetadataServiceClient

Namespace

Google.Cloud.Dataplex.V1

Assembly

Google.Cloud.Dataplex.V1.dll

Remarks

Metadata service manages metadata resources such as tables, filesets and partitions.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default MetadataService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default MetadataService scopes are:

GrpcClient

public virtual MetadataService.MetadataServiceClient GrpcClient { get; }

The underlying gRPC MetadataService client

Property Value
Type Description
MetadataServiceMetadataServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static MetadataServiceClient Create()

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

Returns
Type Description
MetadataServiceClient

The created MetadataServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskMetadataServiceClient

The task representing the created MetadataServiceClient.

CreateEntity(CreateEntityRequest, CallSettings)

public virtual Entity CreateEntity(CreateEntityRequest request, CallSettings callSettings = null)

Create a metadata entity.

Parameters
Name Description
request CreateEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Entity

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateEntityRequest request = new gcdv::CreateEntityRequest
{
    ParentAsZoneName = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]"),
    Entity = new gcdv::Entity(),
    ValidateOnly = false,
};
// Make the request
gcdv::Entity response = metadataServiceClient.CreateEntity(request);

CreateEntity(ZoneName, Entity, CallSettings)

public virtual Entity CreateEntity(ZoneName parent, Entity entity, CallSettings callSettings = null)

Create a metadata entity.

Parameters
Name Description
parent ZoneName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

entity Entity

Required. Entity resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Entity

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::ZoneName parent = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
gcdv::Entity entity = new gcdv::Entity();
// Make the request
gcdv::Entity response = metadataServiceClient.CreateEntity(parent, entity);

CreateEntity(string, Entity, CallSettings)

public virtual Entity CreateEntity(string parent, Entity entity, CallSettings callSettings = null)

Create a metadata entity.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

entity Entity

Required. Entity resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Entity

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]";
gcdv::Entity entity = new gcdv::Entity();
// Make the request
gcdv::Entity response = metadataServiceClient.CreateEntity(parent, entity);

CreateEntityAsync(CreateEntityRequest, CallSettings)

public virtual Task<Entity> CreateEntityAsync(CreateEntityRequest request, CallSettings callSettings = null)

Create a metadata entity.

Parameters
Name Description
request CreateEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntityRequest request = new gcdv::CreateEntityRequest
{
    ParentAsZoneName = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]"),
    Entity = new gcdv::Entity(),
    ValidateOnly = false,
};
// Make the request
gcdv::Entity response = await metadataServiceClient.CreateEntityAsync(request);

CreateEntityAsync(CreateEntityRequest, CancellationToken)

public virtual Task<Entity> CreateEntityAsync(CreateEntityRequest request, CancellationToken cancellationToken)

Create a metadata entity.

Parameters
Name Description
request CreateEntityRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntityRequest request = new gcdv::CreateEntityRequest
{
    ParentAsZoneName = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]"),
    Entity = new gcdv::Entity(),
    ValidateOnly = false,
};
// Make the request
gcdv::Entity response = await metadataServiceClient.CreateEntityAsync(request);

CreateEntityAsync(ZoneName, Entity, CallSettings)

public virtual Task<Entity> CreateEntityAsync(ZoneName parent, Entity entity, CallSettings callSettings = null)

Create a metadata entity.

Parameters
Name Description
parent ZoneName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

entity Entity

Required. Entity resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ZoneName parent = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
gcdv::Entity entity = new gcdv::Entity();
// Make the request
gcdv::Entity response = await metadataServiceClient.CreateEntityAsync(parent, entity);

CreateEntityAsync(ZoneName, Entity, CancellationToken)

public virtual Task<Entity> CreateEntityAsync(ZoneName parent, Entity entity, CancellationToken cancellationToken)

Create a metadata entity.

Parameters
Name Description
parent ZoneName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

entity Entity

Required. Entity resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ZoneName parent = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
gcdv::Entity entity = new gcdv::Entity();
// Make the request
gcdv::Entity response = await metadataServiceClient.CreateEntityAsync(parent, entity);

CreateEntityAsync(string, Entity, CallSettings)

public virtual Task<Entity> CreateEntityAsync(string parent, Entity entity, CallSettings callSettings = null)

Create a metadata entity.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

entity Entity

Required. Entity resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]";
gcdv::Entity entity = new gcdv::Entity();
// Make the request
gcdv::Entity response = await metadataServiceClient.CreateEntityAsync(parent, entity);

CreateEntityAsync(string, Entity, CancellationToken)

public virtual Task<Entity> CreateEntityAsync(string parent, Entity entity, CancellationToken cancellationToken)

Create a metadata entity.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

entity Entity

Required. Entity resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]";
gcdv::Entity entity = new gcdv::Entity();
// Make the request
gcdv::Entity response = await metadataServiceClient.CreateEntityAsync(parent, entity);

CreatePartition(CreatePartitionRequest, CallSettings)

public virtual Partition CreatePartition(CreatePartitionRequest request, CallSettings callSettings = null)

Create a metadata partition.

Parameters
Name Description
request CreatePartitionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Partition

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::CreatePartitionRequest request = new gcdv::CreatePartitionRequest
{
    ParentAsEntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Partition = new gcdv::Partition(),
    ValidateOnly = false,
};
// Make the request
gcdv::Partition response = metadataServiceClient.CreatePartition(request);

CreatePartition(EntityName, Partition, CallSettings)

public virtual Partition CreatePartition(EntityName parent, Partition partition, CallSettings callSettings = null)

Create a metadata partition.

Parameters
Name Description
parent EntityName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

partition Partition

Required. Partition resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Partition

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::EntityName parent = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
gcdv::Partition partition = new gcdv::Partition();
// Make the request
gcdv::Partition response = metadataServiceClient.CreatePartition(parent, partition);

CreatePartition(string, Partition, CallSettings)

public virtual Partition CreatePartition(string parent, Partition partition, CallSettings callSettings = null)

Create a metadata partition.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

partition Partition

Required. Partition resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Partition

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
gcdv::Partition partition = new gcdv::Partition();
// Make the request
gcdv::Partition response = metadataServiceClient.CreatePartition(parent, partition);

CreatePartitionAsync(CreatePartitionRequest, CallSettings)

public virtual Task<Partition> CreatePartitionAsync(CreatePartitionRequest request, CallSettings callSettings = null)

Create a metadata partition.

Parameters
Name Description
request CreatePartitionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreatePartitionRequest request = new gcdv::CreatePartitionRequest
{
    ParentAsEntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Partition = new gcdv::Partition(),
    ValidateOnly = false,
};
// Make the request
gcdv::Partition response = await metadataServiceClient.CreatePartitionAsync(request);

CreatePartitionAsync(CreatePartitionRequest, CancellationToken)

public virtual Task<Partition> CreatePartitionAsync(CreatePartitionRequest request, CancellationToken cancellationToken)

Create a metadata partition.

Parameters
Name Description
request CreatePartitionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreatePartitionRequest request = new gcdv::CreatePartitionRequest
{
    ParentAsEntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Partition = new gcdv::Partition(),
    ValidateOnly = false,
};
// Make the request
gcdv::Partition response = await metadataServiceClient.CreatePartitionAsync(request);

CreatePartitionAsync(EntityName, Partition, CallSettings)

public virtual Task<Partition> CreatePartitionAsync(EntityName parent, Partition partition, CallSettings callSettings = null)

Create a metadata partition.

Parameters
Name Description
parent EntityName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

partition Partition

Required. Partition resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntityName parent = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
gcdv::Partition partition = new gcdv::Partition();
// Make the request
gcdv::Partition response = await metadataServiceClient.CreatePartitionAsync(parent, partition);

CreatePartitionAsync(EntityName, Partition, CancellationToken)

public virtual Task<Partition> CreatePartitionAsync(EntityName parent, Partition partition, CancellationToken cancellationToken)

Create a metadata partition.

Parameters
Name Description
parent EntityName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

partition Partition

Required. Partition resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntityName parent = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
gcdv::Partition partition = new gcdv::Partition();
// Make the request
gcdv::Partition response = await metadataServiceClient.CreatePartitionAsync(parent, partition);

CreatePartitionAsync(string, Partition, CallSettings)

public virtual Task<Partition> CreatePartitionAsync(string parent, Partition partition, CallSettings callSettings = null)

Create a metadata partition.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

partition Partition

Required. Partition resource.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
gcdv::Partition partition = new gcdv::Partition();
// Make the request
gcdv::Partition response = await metadataServiceClient.CreatePartitionAsync(parent, partition);

CreatePartitionAsync(string, Partition, CancellationToken)

public virtual Task<Partition> CreatePartitionAsync(string parent, Partition partition, CancellationToken cancellationToken)

Create a metadata partition.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

partition Partition

Required. Partition resource.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
gcdv::Partition partition = new gcdv::Partition();
// Make the request
gcdv::Partition response = await metadataServiceClient.CreatePartitionAsync(parent, partition);

DeleteEntity(DeleteEntityRequest, CallSettings)

public virtual void DeleteEntity(DeleteEntityRequest request, CallSettings callSettings = null)

Delete a metadata entity.

Parameters
Name Description
request DeleteEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteEntityRequest request = new gcdv::DeleteEntityRequest
{
    EntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Etag = "",
};
// Make the request
metadataServiceClient.DeleteEntity(request);

DeleteEntity(EntityName, CallSettings)

public virtual void DeleteEntity(EntityName name, CallSettings callSettings = null)

Delete a metadata entity.

Parameters
Name Description
name EntityName

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::EntityName name = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
metadataServiceClient.DeleteEntity(name);

DeleteEntity(string, CallSettings)

public virtual void DeleteEntity(string name, CallSettings callSettings = null)

Delete a metadata entity.

Parameters
Name Description
name string

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
metadataServiceClient.DeleteEntity(name);

DeleteEntityAsync(DeleteEntityRequest, CallSettings)

public virtual Task DeleteEntityAsync(DeleteEntityRequest request, CallSettings callSettings = null)

Delete a metadata entity.

Parameters
Name Description
request DeleteEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntityRequest request = new gcdv::DeleteEntityRequest
{
    EntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Etag = "",
};
// Make the request
await metadataServiceClient.DeleteEntityAsync(request);

DeleteEntityAsync(DeleteEntityRequest, CancellationToken)

public virtual Task DeleteEntityAsync(DeleteEntityRequest request, CancellationToken cancellationToken)

Delete a metadata entity.

Parameters
Name Description
request DeleteEntityRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntityRequest request = new gcdv::DeleteEntityRequest
{
    EntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Etag = "",
};
// Make the request
await metadataServiceClient.DeleteEntityAsync(request);

DeleteEntityAsync(EntityName, CallSettings)

public virtual Task DeleteEntityAsync(EntityName name, CallSettings callSettings = null)

Delete a metadata entity.

Parameters
Name Description
name EntityName

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntityName name = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
await metadataServiceClient.DeleteEntityAsync(name);

DeleteEntityAsync(EntityName, CancellationToken)

public virtual Task DeleteEntityAsync(EntityName name, CancellationToken cancellationToken)

Delete a metadata entity.

Parameters
Name Description
name EntityName

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntityName name = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
await metadataServiceClient.DeleteEntityAsync(name);

DeleteEntityAsync(string, CallSettings)

public virtual Task DeleteEntityAsync(string name, CallSettings callSettings = null)

Delete a metadata entity.

Parameters
Name Description
name string

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
await metadataServiceClient.DeleteEntityAsync(name);

DeleteEntityAsync(string, CancellationToken)

public virtual Task DeleteEntityAsync(string name, CancellationToken cancellationToken)

Delete a metadata entity.

Parameters
Name Description
name string

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
await metadataServiceClient.DeleteEntityAsync(name);

DeletePartition(DeletePartitionRequest, CallSettings)

public virtual void DeletePartition(DeletePartitionRequest request, CallSettings callSettings = null)

Delete a metadata partition.

Parameters
Name Description
request DeletePartitionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::DeletePartitionRequest request = new gcdv::DeletePartitionRequest
{
    PartitionName = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
metadataServiceClient.DeletePartition(request);

DeletePartition(PartitionName, CallSettings)

public virtual void DeletePartition(PartitionName name, CallSettings callSettings = null)

Delete a metadata partition.

Parameters
Name Description
name PartitionName

Required. The resource name of the partition. format: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::PartitionName name = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
metadataServiceClient.DeletePartition(name);

DeletePartition(string, CallSettings)

public virtual void DeletePartition(string name, CallSettings callSettings = null)

Delete a metadata partition.

Parameters
Name Description
name string

Required. The resource name of the partition. format: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
metadataServiceClient.DeletePartition(name);

DeletePartitionAsync(DeletePartitionRequest, CallSettings)

public virtual Task DeletePartitionAsync(DeletePartitionRequest request, CallSettings callSettings = null)

Delete a metadata partition.

Parameters
Name Description
request DeletePartitionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeletePartitionRequest request = new gcdv::DeletePartitionRequest
{
    PartitionName = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
await metadataServiceClient.DeletePartitionAsync(request);

DeletePartitionAsync(DeletePartitionRequest, CancellationToken)

public virtual Task DeletePartitionAsync(DeletePartitionRequest request, CancellationToken cancellationToken)

Delete a metadata partition.

Parameters
Name Description
request DeletePartitionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeletePartitionRequest request = new gcdv::DeletePartitionRequest
{
    PartitionName = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
await metadataServiceClient.DeletePartitionAsync(request);

DeletePartitionAsync(PartitionName, CallSettings)

public virtual Task DeletePartitionAsync(PartitionName name, CallSettings callSettings = null)

Delete a metadata partition.

Parameters
Name Description
name PartitionName

Required. The resource name of the partition. format: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::PartitionName name = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
await metadataServiceClient.DeletePartitionAsync(name);

DeletePartitionAsync(PartitionName, CancellationToken)

public virtual Task DeletePartitionAsync(PartitionName name, CancellationToken cancellationToken)

Delete a metadata partition.

Parameters
Name Description
name PartitionName

Required. The resource name of the partition. format: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::PartitionName name = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
await metadataServiceClient.DeletePartitionAsync(name);

DeletePartitionAsync(string, CallSettings)

public virtual Task DeletePartitionAsync(string name, CallSettings callSettings = null)

Delete a metadata partition.

Parameters
Name Description
name string

Required. The resource name of the partition. format: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
await metadataServiceClient.DeletePartitionAsync(name);

DeletePartitionAsync(string, CancellationToken)

public virtual Task DeletePartitionAsync(string name, CancellationToken cancellationToken)

Delete a metadata partition.

Parameters
Name Description
name string

Required. The resource name of the partition. format: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
await metadataServiceClient.DeletePartitionAsync(name);

GetEntity(EntityName, CallSettings)

public virtual Entity GetEntity(EntityName name, CallSettings callSettings = null)

Get a metadata entity.

Parameters
Name Description
name EntityName

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Entity

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::EntityName name = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
gcdv::Entity response = metadataServiceClient.GetEntity(name);

GetEntity(GetEntityRequest, CallSettings)

public virtual Entity GetEntity(GetEntityRequest request, CallSettings callSettings = null)

Get a metadata entity.

Parameters
Name Description
request GetEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Entity

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::GetEntityRequest request = new gcdv::GetEntityRequest
{
    EntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    View = gcdv::GetEntityRequest.Types.EntityView.Unspecified,
};
// Make the request
gcdv::Entity response = metadataServiceClient.GetEntity(request);

GetEntity(string, CallSettings)

public virtual Entity GetEntity(string name, CallSettings callSettings = null)

Get a metadata entity.

Parameters
Name Description
name string

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Entity

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
gcdv::Entity response = metadataServiceClient.GetEntity(name);

GetEntityAsync(EntityName, CallSettings)

public virtual Task<Entity> GetEntityAsync(EntityName name, CallSettings callSettings = null)

Get a metadata entity.

Parameters
Name Description
name EntityName

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntityName name = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
gcdv::Entity response = await metadataServiceClient.GetEntityAsync(name);

GetEntityAsync(EntityName, CancellationToken)

public virtual Task<Entity> GetEntityAsync(EntityName name, CancellationToken cancellationToken)

Get a metadata entity.

Parameters
Name Description
name EntityName

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntityName name = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
gcdv::Entity response = await metadataServiceClient.GetEntityAsync(name);

GetEntityAsync(GetEntityRequest, CallSettings)

public virtual Task<Entity> GetEntityAsync(GetEntityRequest request, CallSettings callSettings = null)

Get a metadata entity.

Parameters
Name Description
request GetEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetEntityRequest request = new gcdv::GetEntityRequest
{
    EntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    View = gcdv::GetEntityRequest.Types.EntityView.Unspecified,
};
// Make the request
gcdv::Entity response = await metadataServiceClient.GetEntityAsync(request);

GetEntityAsync(GetEntityRequest, CancellationToken)

public virtual Task<Entity> GetEntityAsync(GetEntityRequest request, CancellationToken cancellationToken)

Get a metadata entity.

Parameters
Name Description
request GetEntityRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetEntityRequest request = new gcdv::GetEntityRequest
{
    EntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    View = gcdv::GetEntityRequest.Types.EntityView.Unspecified,
};
// Make the request
gcdv::Entity response = await metadataServiceClient.GetEntityAsync(request);

GetEntityAsync(string, CallSettings)

public virtual Task<Entity> GetEntityAsync(string name, CallSettings callSettings = null)

Get a metadata entity.

Parameters
Name Description
name string

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
gcdv::Entity response = await metadataServiceClient.GetEntityAsync(name);

GetEntityAsync(string, CancellationToken)

public virtual Task<Entity> GetEntityAsync(string name, CancellationToken cancellationToken)

Get a metadata entity.

Parameters
Name Description
name string

Required. The resource name of the entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
gcdv::Entity response = await metadataServiceClient.GetEntityAsync(name);

GetPartition(GetPartitionRequest, CallSettings)

public virtual Partition GetPartition(GetPartitionRequest request, CallSettings callSettings = null)

Get a metadata partition of an entity.

Parameters
Name Description
request GetPartitionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Partition

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::GetPartitionRequest request = new gcdv::GetPartitionRequest
{
    PartitionName = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
gcdv::Partition response = metadataServiceClient.GetPartition(request);

GetPartition(PartitionName, CallSettings)

public virtual Partition GetPartition(PartitionName name, CallSettings callSettings = null)

Get a metadata partition of an entity.

Parameters
Name Description
name PartitionName

Required. The resource name of the partition: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Partition

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::PartitionName name = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
gcdv::Partition response = metadataServiceClient.GetPartition(name);

GetPartition(string, CallSettings)

public virtual Partition GetPartition(string name, CallSettings callSettings = null)

Get a metadata partition of an entity.

Parameters
Name Description
name string

Required. The resource name of the partition: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Partition

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
gcdv::Partition response = metadataServiceClient.GetPartition(name);

GetPartitionAsync(GetPartitionRequest, CallSettings)

public virtual Task<Partition> GetPartitionAsync(GetPartitionRequest request, CallSettings callSettings = null)

Get a metadata partition of an entity.

Parameters
Name Description
request GetPartitionRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetPartitionRequest request = new gcdv::GetPartitionRequest
{
    PartitionName = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
gcdv::Partition response = await metadataServiceClient.GetPartitionAsync(request);

GetPartitionAsync(GetPartitionRequest, CancellationToken)

public virtual Task<Partition> GetPartitionAsync(GetPartitionRequest request, CancellationToken cancellationToken)

Get a metadata partition of an entity.

Parameters
Name Description
request GetPartitionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetPartitionRequest request = new gcdv::GetPartitionRequest
{
    PartitionName = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
gcdv::Partition response = await metadataServiceClient.GetPartitionAsync(request);

GetPartitionAsync(PartitionName, CallSettings)

public virtual Task<Partition> GetPartitionAsync(PartitionName name, CallSettings callSettings = null)

Get a metadata partition of an entity.

Parameters
Name Description
name PartitionName

Required. The resource name of the partition: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::PartitionName name = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
gcdv::Partition response = await metadataServiceClient.GetPartitionAsync(name);

GetPartitionAsync(PartitionName, CancellationToken)

public virtual Task<Partition> GetPartitionAsync(PartitionName name, CancellationToken cancellationToken)

Get a metadata partition of an entity.

Parameters
Name Description
name PartitionName

Required. The resource name of the partition: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::PartitionName name = gcdv::PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
gcdv::Partition response = await metadataServiceClient.GetPartitionAsync(name);

GetPartitionAsync(string, CallSettings)

public virtual Task<Partition> GetPartitionAsync(string name, CallSettings callSettings = null)

Get a metadata partition of an entity.

Parameters
Name Description
name string

Required. The resource name of the partition: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
gcdv::Partition response = await metadataServiceClient.GetPartitionAsync(name);

GetPartitionAsync(string, CancellationToken)

public virtual Task<Partition> GetPartitionAsync(string name, CancellationToken cancellationToken)

Get a metadata partition of an entity.

Parameters
Name Description
name string

Required. The resource name of the partition: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}. The {partition_value_path} segment consists of an ordered sequence of partition values separated by "/". All values must be provided.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPartition

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
gcdv::Partition response = await metadataServiceClient.GetPartitionAsync(name);

ListEntities(ListEntitiesRequest, CallSettings)

public virtual PagedEnumerable<ListEntitiesResponse, Entity> ListEntities(ListEntitiesRequest request, CallSettings callSettings = null)

List metadata entities in a zone.

Parameters
Name Description
request ListEntitiesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListEntitiesResponseEntity

A pageable sequence of Entity resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::ListEntitiesRequest request = new gcdv::ListEntitiesRequest
{
    ParentAsZoneName = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]"),
    View = gcdv::ListEntitiesRequest.Types.EntityView.Unspecified,
    Filter = "",
};
// Make the request
PagedEnumerable<gcdv::ListEntitiesResponse, gcdv::Entity> response = metadataServiceClient.ListEntities(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Entity 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 (gcdv::ListEntitiesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Entity 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<gcdv::Entity> 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 (gcdv::Entity 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;

ListEntities(ZoneName, string, int?, CallSettings)

public virtual PagedEnumerable<ListEntitiesResponse, Entity> ListEntities(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata entities in a zone.

Parameters
Name Description
parent ZoneName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListEntitiesResponseEntity

A pageable sequence of Entity resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::ZoneName parent = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
// Make the request
PagedEnumerable<gcdv::ListEntitiesResponse, gcdv::Entity> response = metadataServiceClient.ListEntities(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Entity 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 (gcdv::ListEntitiesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Entity 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<gcdv::Entity> 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 (gcdv::Entity 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;

ListEntities(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListEntitiesResponse, Entity> ListEntities(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata entities in a zone.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListEntitiesResponseEntity

A pageable sequence of Entity resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]";
// Make the request
PagedEnumerable<gcdv::ListEntitiesResponse, gcdv::Entity> response = metadataServiceClient.ListEntities(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Entity 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 (gcdv::ListEntitiesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Entity 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<gcdv::Entity> 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 (gcdv::Entity 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;

ListEntitiesAsync(ListEntitiesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListEntitiesResponse, Entity> ListEntitiesAsync(ListEntitiesRequest request, CallSettings callSettings = null)

List metadata entities in a zone.

Parameters
Name Description
request ListEntitiesRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListEntitiesResponseEntity

A pageable asynchronous sequence of Entity resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListEntitiesRequest request = new gcdv::ListEntitiesRequest
{
    ParentAsZoneName = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]"),
    View = gcdv::ListEntitiesRequest.Types.EntityView.Unspecified,
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListEntitiesResponse, gcdv::Entity> response = metadataServiceClient.ListEntitiesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Entity 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((gcdv::ListEntitiesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Entity 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<gcdv::Entity> 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 (gcdv::Entity 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;

ListEntitiesAsync(ZoneName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEntitiesResponse, Entity> ListEntitiesAsync(ZoneName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata entities in a zone.

Parameters
Name Description
parent ZoneName

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListEntitiesResponseEntity

A pageable asynchronous sequence of Entity resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ZoneName parent = gcdv::ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
// Make the request
PagedAsyncEnumerable<gcdv::ListEntitiesResponse, gcdv::Entity> response = metadataServiceClient.ListEntitiesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Entity 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((gcdv::ListEntitiesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Entity 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<gcdv::Entity> 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 (gcdv::Entity 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;

ListEntitiesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEntitiesResponse, Entity> ListEntitiesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata entities in a zone.

Parameters
Name Description
parent string

Required. The resource name of the parent zone: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListEntitiesResponseEntity

A pageable asynchronous sequence of Entity resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]";
// Make the request
PagedAsyncEnumerable<gcdv::ListEntitiesResponse, gcdv::Entity> response = metadataServiceClient.ListEntitiesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Entity 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((gcdv::ListEntitiesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Entity 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<gcdv::Entity> 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 (gcdv::Entity 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;

ListPartitions(EntityName, string, int?, CallSettings)

public virtual PagedEnumerable<ListPartitionsResponse, Partition> ListPartitions(EntityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata partitions of an entity.

Parameters
Name Description
parent EntityName

Required. The resource name of the parent entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListPartitionsResponsePartition

A pageable sequence of Partition resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::EntityName parent = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
PagedEnumerable<gcdv::ListPartitionsResponse, gcdv::Partition> response = metadataServiceClient.ListPartitions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Partition 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 (gcdv::ListPartitionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Partition 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<gcdv::Partition> 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 (gcdv::Partition 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;

ListPartitions(ListPartitionsRequest, CallSettings)

public virtual PagedEnumerable<ListPartitionsResponse, Partition> ListPartitions(ListPartitionsRequest request, CallSettings callSettings = null)

List metadata partitions of an entity.

Parameters
Name Description
request ListPartitionsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListPartitionsResponsePartition

A pageable sequence of Partition resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::ListPartitionsRequest request = new gcdv::ListPartitionsRequest
{
    ParentAsEntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Filter = "",
};
// Make the request
PagedEnumerable<gcdv::ListPartitionsResponse, gcdv::Partition> response = metadataServiceClient.ListPartitions(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Partition 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 (gcdv::ListPartitionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Partition 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<gcdv::Partition> 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 (gcdv::Partition 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;

ListPartitions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListPartitionsResponse, Partition> ListPartitions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata partitions of an entity.

Parameters
Name Description
parent string

Required. The resource name of the parent entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListPartitionsResponsePartition

A pageable sequence of Partition resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
PagedEnumerable<gcdv::ListPartitionsResponse, gcdv::Partition> response = metadataServiceClient.ListPartitions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::Partition 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 (gcdv::ListPartitionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Partition 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<gcdv::Partition> 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 (gcdv::Partition 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;

ListPartitionsAsync(EntityName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPartitionsResponse, Partition> ListPartitionsAsync(EntityName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata partitions of an entity.

Parameters
Name Description
parent EntityName

Required. The resource name of the parent entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListPartitionsResponsePartition

A pageable asynchronous sequence of Partition resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntityName parent = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
// Make the request
PagedAsyncEnumerable<gcdv::ListPartitionsResponse, gcdv::Partition> response = metadataServiceClient.ListPartitionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Partition 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((gcdv::ListPartitionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Partition 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<gcdv::Partition> 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 (gcdv::Partition 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;

ListPartitionsAsync(ListPartitionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListPartitionsResponse, Partition> ListPartitionsAsync(ListPartitionsRequest request, CallSettings callSettings = null)

List metadata partitions of an entity.

Parameters
Name Description
request ListPartitionsRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListPartitionsResponsePartition

A pageable asynchronous sequence of Partition resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListPartitionsRequest request = new gcdv::ListPartitionsRequest
{
    ParentAsEntityName = gcdv::EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListPartitionsResponse, gcdv::Partition> response = metadataServiceClient.ListPartitionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Partition 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((gcdv::ListPartitionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Partition 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<gcdv::Partition> 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 (gcdv::Partition 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;

ListPartitionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPartitionsResponse, Partition> ListPartitionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List metadata partitions of an entity.

Parameters
Name Description
parent string

Required. The resource name of the parent entity: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.

pageToken string

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

pageSize int

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.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListPartitionsResponsePartition

A pageable asynchronous sequence of Partition resources.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
PagedAsyncEnumerable<gcdv::ListPartitionsResponse, gcdv::Partition> response = metadataServiceClient.ListPartitionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcdv::Partition 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((gcdv::ListPartitionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcdv::Partition 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<gcdv::Partition> 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 (gcdv::Partition 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;

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
Type Description
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.

UpdateEntity(UpdateEntityRequest, CallSettings)

public virtual Entity UpdateEntity(UpdateEntityRequest request, CallSettings callSettings = null)

Update a metadata entity. Only supports full resource update.

Parameters
Name Description
request UpdateEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Entity

The RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = gcdv::MetadataServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateEntityRequest request = new gcdv::UpdateEntityRequest
{
    Entity = new gcdv::Entity(),
    ValidateOnly = false,
};
// Make the request
gcdv::Entity response = metadataServiceClient.UpdateEntity(request);

UpdateEntityAsync(UpdateEntityRequest, CallSettings)

public virtual Task<Entity> UpdateEntityAsync(UpdateEntityRequest request, CallSettings callSettings = null)

Update a metadata entity. Only supports full resource update.

Parameters
Name Description
request UpdateEntityRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateEntityRequest request = new gcdv::UpdateEntityRequest
{
    Entity = new gcdv::Entity(),
    ValidateOnly = false,
};
// Make the request
gcdv::Entity response = await metadataServiceClient.UpdateEntityAsync(request);

UpdateEntityAsync(UpdateEntityRequest, CancellationToken)

public virtual Task<Entity> UpdateEntityAsync(UpdateEntityRequest request, CancellationToken cancellationToken)

Update a metadata entity. Only supports full resource update.

Parameters
Name Description
request UpdateEntityRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEntity

A Task containing the RPC response.

Example
// Create client
gcdv::MetadataServiceClient metadataServiceClient = await gcdv::MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateEntityRequest request = new gcdv::UpdateEntityRequest
{
    Entity = new gcdv::Entity(),
    ValidateOnly = false,
};
// Make the request
gcdv::Entity response = await metadataServiceClient.UpdateEntityAsync(request);