public abstract class MetadataServiceClient
MetadataService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dataplex.V1Assembly
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 |
IReadOnlyList<String> |
The default MetadataService scopes are:
GrpcClient
public virtual MetadataService.MetadataServiceClient GrpcClient { get; }
The underlying gRPC MetadataService client
Property Value | |
---|---|
Type | Description |
MetadataService.MetadataServiceClient |
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(CancellationToken))
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 |
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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
parent | ZoneName Required. The resource name of the parent zone:
|
entity | Entity Required. Entity resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entity | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
entity | Entity Required. Entity resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entity | The RPC response. |
// 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 | |
---|---|
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 |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ZoneName Required. The resource name of the parent zone:
|
entity | Entity Required. Entity resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ZoneName Required. The resource name of the parent zone:
|
entity | Entity Required. Entity resource. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
entity | Entity Required. Entity resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
entity | Entity Required. Entity resource. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
parent | EntityName Required. The resource name of the parent zone:
|
partition | Partition Required. Partition resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Partition | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
partition | Partition Required. Partition resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Partition | The RPC response. |
// 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 | |
---|---|
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 |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | EntityName Required. The resource name of the parent zone:
|
partition | Partition Required. Partition resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | EntityName Required. The resource name of the parent zone:
|
partition | Partition Required. Partition resource. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
partition | Partition Required. Partition resource. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
partition | Partition Required. Partition resource. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
name | EntityName Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
name | EntityName Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EntityName Required. The resource name of the entity:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the entity:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
name | PartitionName Required. The resource name of the partition.
format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the partition.
format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
name | PartitionName Required. The resource name of the partition.
format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | PartitionName Required. The resource name of the partition.
format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the partition.
format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the partition.
format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EntityName Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entity | The RPC response. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entity | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | EntityName Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EntityName Required. The resource name of the entity:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the entity:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the entity:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
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. |
// 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 | |
---|---|
Name | Description |
name | PartitionName Required. The resource name of the partition:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Partition | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the partition:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Partition | The RPC response. |
// 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 | |
---|---|
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 |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | PartitionName Required. The resource name of the partition:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | PartitionName Required. The resource name of the partition:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the partition:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The resource name of the partition:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Partition> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
PagedEnumerable<ListEntitiesResponse, Entity> | A pageable sequence of Entity resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata entities in a zone.
Parameters | |
---|---|
Name | Description |
parent | ZoneName Required. The resource name of the parent zone:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListEntitiesResponse, Entity> | A pageable sequence of Entity resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata entities in a zone.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListEntitiesResponse, Entity> | A pageable sequence of Entity resources. |
// 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 | |
---|---|
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 |
PagedAsyncEnumerable<ListEntitiesResponse, Entity> | A pageable asynchronous sequence of Entity resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata entities in a zone.
Parameters | |
---|---|
Name | Description |
parent | ZoneName Required. The resource name of the parent zone:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListEntitiesResponse, Entity> | A pageable asynchronous sequence of Entity resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata entities in a zone.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent zone:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListEntitiesResponse, Entity> | A pageable asynchronous sequence of Entity resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata partitions of an entity.
Parameters | |
---|---|
Name | Description |
parent | EntityName Required. The resource name of the parent entity:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListPartitionsResponse, Partition> | A pageable sequence of Partition resources. |
// 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 | |
---|---|
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 |
PagedEnumerable<ListPartitionsResponse, Partition> | A pageable sequence of Partition resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata partitions of an entity.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent entity:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListPartitionsResponse, Partition> | A pageable sequence of Partition resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata partitions of an entity.
Parameters | |
---|---|
Name | Description |
parent | EntityName Required. The resource name of the parent entity:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListPartitionsResponse, Partition> | A pageable asynchronous sequence of Partition resources. |
// 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 | |
---|---|
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 |
PagedAsyncEnumerable<ListPartitionsResponse, Partition> | A pageable asynchronous sequence of Partition resources. |
// 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 = default(int? ), CallSettings callSettings = null)
List metadata partitions of an entity.
Parameters | |
---|---|
Name | Description |
parent | String Required. The resource name of the parent entity:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListPartitionsResponse, Partition> | A pageable asynchronous sequence of Partition resources. |
// 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 | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
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. |
// 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 | |
---|---|
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 |
Task<Entity> | A Task containing the RPC response. |
// 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 | |
---|---|
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 |
Task<Entity> | A Task containing the RPC response. |
// 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);