Class MetadataServiceClient (2.0.0)

public abstract 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
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default MetadataService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default MetadataService scopes are:

GrpcClient

public virtual MetadataService.MetadataServiceClient GrpcClient { get; }

The underlying gRPC MetadataService client

Property Value
TypeDescription
MetadataService.MetadataServiceClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
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
TypeDescription
MetadataServiceClient

The created MetadataServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<MetadataServiceClient>

The task representing the created MetadataServiceClient.

CreateEntity(CreateEntityRequest, CallSettings)

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

Create a metadata entity.

Parameters
NameDescription
requestCreateEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Entity

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
CreateEntityRequest request = new CreateEntityRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]"),
    Entity = new Entity(),
    ValidateOnly = false,
};
// Make the request
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
NameDescription
parentZoneName

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

entityEntity

Required. Entity resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Entity

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
Entity entity = new Entity();
// Make the request
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
NameDescription
parentString

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

entityEntity

Required. Entity resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Entity

The RPC response.

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

CreateEntityAsync(CreateEntityRequest, CallSettings)

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

Create a metadata entity.

Parameters
NameDescription
requestCreateEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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

CreateEntityAsync(CreateEntityRequest, CancellationToken)

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

Create a metadata entity.

Parameters
NameDescription
requestCreateEntityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEntityRequest request = new CreateEntityRequest
{
    ParentAsZoneName = ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]"),
    Entity = new Entity(),
    ValidateOnly = false,
};
// Make the request
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
NameDescription
parentZoneName

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

entityEntity

Required. Entity resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
Entity entity = new Entity();
// Make the request
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
NameDescription
parentZoneName

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

entityEntity

Required. Entity resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ZoneName parent = ZoneName.FromProjectLocationLakeZone("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]");
Entity entity = new Entity();
// Make the request
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
NameDescription
parentString

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

entityEntity

Required. Entity resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]";
Entity entity = new Entity();
// Make the request
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
NameDescription
parentString

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

entityEntity

Required. Entity resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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

CreatePartition(CreatePartitionRequest, CallSettings)

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

Create a metadata partition.

Parameters
NameDescription
requestCreatePartitionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Partition

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
CreatePartitionRequest request = new CreatePartitionRequest
{
    ParentAsEntityName = EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Partition = new Partition(),
    ValidateOnly = false,
};
// Make the request
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
NameDescription
parentEntityName

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

partitionPartition

Required. Partition resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Partition

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
EntityName parent = EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
Partition partition = new Partition();
// Make the request
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
NameDescription
parentString

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

partitionPartition

Required. Partition resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Partition

The RPC response.

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

CreatePartitionAsync(CreatePartitionRequest, CallSettings)

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

Create a metadata partition.

Parameters
NameDescription
requestCreatePartitionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

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

CreatePartitionAsync(CreatePartitionRequest, CancellationToken)

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

Create a metadata partition.

Parameters
NameDescription
requestCreatePartitionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
CreatePartitionRequest request = new CreatePartitionRequest
{
    ParentAsEntityName = EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]"),
    Partition = new Partition(),
    ValidateOnly = false,
};
// Make the request
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
NameDescription
parentEntityName

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

partitionPartition

Required. Partition resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
EntityName parent = EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
Partition partition = new Partition();
// Make the request
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
NameDescription
parentEntityName

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

partitionPartition

Required. Partition resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
EntityName parent = EntityName.FromProjectLocationLakeZoneEntity("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]");
Partition partition = new Partition();
// Make the request
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
NameDescription
parentString

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

partitionPartition

Required. Partition resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
Partition partition = new Partition();
// Make the request
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
NameDescription
parentString

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

partitionPartition

Required. Partition resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

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

DeleteEntity(DeleteEntityRequest, CallSettings)

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

Delete a metadata entity.

Parameters
NameDescription
requestDeleteEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
DeleteEntityRequest request = new DeleteEntityRequest
{
    EntityName = 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
NameDescription
nameEntityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
EntityName name = 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
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MetadataServiceClient metadataServiceClient = 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
NameDescription
requestDeleteEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEntityRequest request = new DeleteEntityRequest
{
    EntityName = 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
NameDescription
requestDeleteEntityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEntityRequest request = new DeleteEntityRequest
{
    EntityName = 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
NameDescription
nameEntityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
EntityName name = 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
NameDescription
nameEntityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
EntityName name = 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
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await 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
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await 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
NameDescription
requestDeletePartitionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
DeletePartitionRequest request = new DeletePartitionRequest
{
    PartitionName = 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
NameDescription
namePartitionName

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
PartitionName name = 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
NameDescription
nameString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MetadataServiceClient metadataServiceClient = 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
NameDescription
requestDeletePartitionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePartitionRequest request = new DeletePartitionRequest
{
    PartitionName = 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
NameDescription
requestDeletePartitionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePartitionRequest request = new DeletePartitionRequest
{
    PartitionName = 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
NameDescription
namePartitionName

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
PartitionName name = 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
NameDescription
namePartitionName

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
PartitionName name = 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
NameDescription
nameString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await 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
NameDescription
nameString

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await 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
NameDescription
nameEntityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Entity

The RPC response.

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

GetEntity(GetEntityRequest, CallSettings)

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

Get a metadata entity.

Parameters
NameDescription
requestGetEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Entity

The RPC response.

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

GetEntity(String, CallSettings)

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

Get a metadata entity.

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Entity

The RPC response.

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

GetEntityAsync(EntityName, CallSettings)

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

Get a metadata entity.

Parameters
NameDescription
nameEntityName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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

GetEntityAsync(EntityName, CancellationToken)

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

Get a metadata entity.

Parameters
NameDescription
nameEntityName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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

GetEntityAsync(GetEntityRequest, CallSettings)

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

Get a metadata entity.

Parameters
NameDescription
requestGetEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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

GetEntityAsync(GetEntityRequest, CancellationToken)

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

Get a metadata entity.

Parameters
NameDescription
requestGetEntityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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

GetEntityAsync(String, CallSettings)

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

Get a metadata entity.

Parameters
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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

GetEntityAsync(String, CancellationToken)

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

Get a metadata entity.

Parameters
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]";
// Make the request
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
NameDescription
requestGetPartitionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Partition

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
GetPartitionRequest request = new GetPartitionRequest
{
    PartitionName = PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
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
NameDescription
namePartitionName

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Partition

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
PartitionName name = PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
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
NameDescription
nameString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Partition

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
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
NameDescription
requestGetPartitionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
GetPartitionRequest request = new GetPartitionRequest
{
    PartitionName = PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
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
NameDescription
requestGetPartitionRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
GetPartitionRequest request = new GetPartitionRequest
{
    PartitionName = PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]"),
};
// Make the request
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
NameDescription
namePartitionName

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
PartitionName name = PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
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
NameDescription
namePartitionName

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
PartitionName name = PartitionName.FromProjectLocationLakeZoneEntityPartition("[PROJECT]", "[LOCATION]", "[LAKE]", "[ZONE]", "[ENTITY]", "[PARTITION]");
// Make the request
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
NameDescription
nameString

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
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
NameDescription
nameString

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Partition>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/lakes/[LAKE]/zones/[ZONE]/entities/[ENTITY]/partitions/[PARTITION]";
// Make the request
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
NameDescription
requestListEntitiesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListEntitiesResponse, Entity>

A pageable sequence of Entity resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListEntitiesResponse, Entity>

A pageable sequence of Entity resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListEntitiesResponse, Entity>

A pageable sequence of Entity resources.

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

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListEntitiesResponse, Entity>

A pageable asynchronous sequence of Entity resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListEntitiesResponse, Entity>

A pageable asynchronous sequence of Entity resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListEntitiesResponse, Entity>

A pageable asynchronous sequence of Entity resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListPartitionsResponse, Partition>

A pageable sequence of Partition resources.

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

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListPartitionsResponse, Partition>

A pageable sequence of Partition resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedEnumerable<ListPartitionsResponse, Partition>

A pageable sequence of Partition resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListPartitionsResponse, Partition>

A pageable asynchronous sequence of Partition resources.

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

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListPartitionsResponse, Partition>

A pageable asynchronous sequence of Partition resources.

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

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

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

pageTokenString

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

pageSizeNullable<Int32>

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
PagedAsyncEnumerable<ListPartitionsResponse, Partition>

A pageable asynchronous sequence of Partition resources.

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

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

UpdateEntity(UpdateEntityRequest, CallSettings)

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

Update a metadata entity. Only supports full resource update.

Parameters
NameDescription
requestUpdateEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Entity

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
UpdateEntityRequest request = new UpdateEntityRequest
{
    Entity = new Entity(),
    ValidateOnly = false,
};
// Make the request
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
NameDescription
requestUpdateEntityRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateEntityRequest request = new UpdateEntityRequest
{
    Entity = new Entity(),
    ValidateOnly = false,
};
// Make the request
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
NameDescription
requestUpdateEntityRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Entity>

A Task containing the RPC response.

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