Class MetadataServiceClient (2.3.0)

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

MetadataService client wrapper, for convenient use.

Inheritance

Object > MetadataServiceClient

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Remarks

Service for reading and writing metadata entries.

Properties

CreateMetadataStoreOperationsClient

public virtual OperationsClient CreateMetadataStoreOperationsClient { get; }

The long-running operations client for CreateMetadataStore.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the MetadataService service, which is a host of "aiplatform.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
System.Collections.Generic.IReadOnlyList<String>
Remarks

The default MetadataService scopes are:

DeleteArtifactOperationsClient

public virtual OperationsClient DeleteArtifactOperationsClient { get; }

The long-running operations client for DeleteArtifact.

Property Value
TypeDescription
OperationsClient

DeleteContextOperationsClient

public virtual OperationsClient DeleteContextOperationsClient { get; }

The long-running operations client for DeleteContext.

Property Value
TypeDescription
OperationsClient

DeleteExecutionOperationsClient

public virtual OperationsClient DeleteExecutionOperationsClient { get; }

The long-running operations client for DeleteExecution.

Property Value
TypeDescription
OperationsClient

DeleteMetadataStoreOperationsClient

public virtual OperationsClient DeleteMetadataStoreOperationsClient { get; }

The long-running operations client for DeleteMetadataStore.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual MetadataService.MetadataServiceClient GrpcClient { get; }

The underlying gRPC MetadataService client

Property Value
TypeDescription
MetadataService.MetadataServiceClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
IAMPolicyClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

PurgeArtifactsOperationsClient

public virtual OperationsClient PurgeArtifactsOperationsClient { get; }

The long-running operations client for PurgeArtifacts.

Property Value
TypeDescription
OperationsClient

PurgeContextsOperationsClient

public virtual OperationsClient PurgeContextsOperationsClient { get; }

The long-running operations client for PurgeContexts.

Property Value
TypeDescription
OperationsClient

PurgeExecutionsOperationsClient

public virtual OperationsClient PurgeExecutionsOperationsClient { get; }

The long-running operations client for PurgeExecutions.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

AddContextArtifactsAndExecutions(AddContextArtifactsAndExecutionsRequest, CallSettings)

public virtual AddContextArtifactsAndExecutionsResponse AddContextArtifactsAndExecutions(AddContextArtifactsAndExecutionsRequest request, CallSettings callSettings = null)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
requestAddContextArtifactsAndExecutionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddContextArtifactsAndExecutionsResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
AddContextArtifactsAndExecutionsRequest request = new AddContextArtifactsAndExecutionsRequest
{
    ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    ArtifactsAsArtifactNames =
    {
        ArtifactName.FromProjectLocationMetadataStoreArtifact("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"),
    },
    ExecutionsAsExecutionNames =
    {
        ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
    },
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = metadataServiceClient.AddContextArtifactsAndExecutions(request);

AddContextArtifactsAndExecutions(ContextName, IEnumerable<ArtifactName>, IEnumerable<ExecutionName>, CallSettings)

public virtual AddContextArtifactsAndExecutionsResponse AddContextArtifactsAndExecutions(ContextName context, IEnumerable<ArtifactName> artifacts, IEnumerable<ExecutionName> executions, CallSettings callSettings = null)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
contextContextName

Required. The resource name of the Context that the Artifacts and Executions belong to. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

artifactsIEnumerable<ArtifactName>

The resource names of the Artifacts to attribute to the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

executionsIEnumerable<ExecutionName>

The resource names of the Executions to associate with the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddContextArtifactsAndExecutionsResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ArtifactName> artifacts = new ArtifactName[]
{
    ArtifactName.FromProjectLocationMetadataStoreArtifact("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"),
};
IEnumerable<ExecutionName> executions = new ExecutionName[]
{
    ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = metadataServiceClient.AddContextArtifactsAndExecutions(context, artifacts, executions);

AddContextArtifactsAndExecutions(String, IEnumerable<String>, IEnumerable<String>, CallSettings)

public virtual AddContextArtifactsAndExecutionsResponse AddContextArtifactsAndExecutions(string context, IEnumerable<string> artifacts, IEnumerable<string> executions, CallSettings callSettings = null)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
contextString

Required. The resource name of the Context that the Artifacts and Executions belong to. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

artifactsIEnumerable<String>

The resource names of the Artifacts to attribute to the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

executionsIEnumerable<String>

The resource names of the Executions to associate with the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddContextArtifactsAndExecutionsResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> artifacts = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/artifacts/[ARTIFACT]",
};
IEnumerable<string> executions = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/executions/[EXECUTION]",
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = metadataServiceClient.AddContextArtifactsAndExecutions(context, artifacts, executions);

AddContextArtifactsAndExecutionsAsync(AddContextArtifactsAndExecutionsRequest, CallSettings)

public virtual Task<AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutionsAsync(AddContextArtifactsAndExecutionsRequest request, CallSettings callSettings = null)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
requestAddContextArtifactsAndExecutionsRequest

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<AddContextArtifactsAndExecutionsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
AddContextArtifactsAndExecutionsRequest request = new AddContextArtifactsAndExecutionsRequest
{
    ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    ArtifactsAsArtifactNames =
    {
        ArtifactName.FromProjectLocationMetadataStoreArtifact("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"),
    },
    ExecutionsAsExecutionNames =
    {
        ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
    },
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = await metadataServiceClient.AddContextArtifactsAndExecutionsAsync(request);

AddContextArtifactsAndExecutionsAsync(AddContextArtifactsAndExecutionsRequest, CancellationToken)

public virtual Task<AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutionsAsync(AddContextArtifactsAndExecutionsRequest request, CancellationToken cancellationToken)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
requestAddContextArtifactsAndExecutionsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddContextArtifactsAndExecutionsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
AddContextArtifactsAndExecutionsRequest request = new AddContextArtifactsAndExecutionsRequest
{
    ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    ArtifactsAsArtifactNames =
    {
        ArtifactName.FromProjectLocationMetadataStoreArtifact("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"),
    },
    ExecutionsAsExecutionNames =
    {
        ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
    },
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = await metadataServiceClient.AddContextArtifactsAndExecutionsAsync(request);

AddContextArtifactsAndExecutionsAsync(ContextName, IEnumerable<ArtifactName>, IEnumerable<ExecutionName>, CallSettings)

public virtual Task<AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutionsAsync(ContextName context, IEnumerable<ArtifactName> artifacts, IEnumerable<ExecutionName> executions, CallSettings callSettings = null)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
contextContextName

Required. The resource name of the Context that the Artifacts and Executions belong to. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

artifactsIEnumerable<ArtifactName>

The resource names of the Artifacts to attribute to the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

executionsIEnumerable<ExecutionName>

The resource names of the Executions to associate with the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AddContextArtifactsAndExecutionsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ArtifactName> artifacts = new ArtifactName[]
{
    ArtifactName.FromProjectLocationMetadataStoreArtifact("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"),
};
IEnumerable<ExecutionName> executions = new ExecutionName[]
{
    ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = await metadataServiceClient.AddContextArtifactsAndExecutionsAsync(context, artifacts, executions);

AddContextArtifactsAndExecutionsAsync(ContextName, IEnumerable<ArtifactName>, IEnumerable<ExecutionName>, CancellationToken)

public virtual Task<AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutionsAsync(ContextName context, IEnumerable<ArtifactName> artifacts, IEnumerable<ExecutionName> executions, CancellationToken cancellationToken)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
contextContextName

Required. The resource name of the Context that the Artifacts and Executions belong to. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

artifactsIEnumerable<ArtifactName>

The resource names of the Artifacts to attribute to the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

executionsIEnumerable<ExecutionName>

The resource names of the Executions to associate with the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddContextArtifactsAndExecutionsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ArtifactName> artifacts = new ArtifactName[]
{
    ArtifactName.FromProjectLocationMetadataStoreArtifact("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[ARTIFACT]"),
};
IEnumerable<ExecutionName> executions = new ExecutionName[]
{
    ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = await metadataServiceClient.AddContextArtifactsAndExecutionsAsync(context, artifacts, executions);

AddContextArtifactsAndExecutionsAsync(String, IEnumerable<String>, IEnumerable<String>, CallSettings)

public virtual Task<AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutionsAsync(string context, IEnumerable<string> artifacts, IEnumerable<string> executions, CallSettings callSettings = null)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
contextString

Required. The resource name of the Context that the Artifacts and Executions belong to. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

artifactsIEnumerable<String>

The resource names of the Artifacts to attribute to the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

executionsIEnumerable<String>

The resource names of the Executions to associate with the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AddContextArtifactsAndExecutionsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> artifacts = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/artifacts/[ARTIFACT]",
};
IEnumerable<string> executions = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/executions/[EXECUTION]",
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = await metadataServiceClient.AddContextArtifactsAndExecutionsAsync(context, artifacts, executions);

AddContextArtifactsAndExecutionsAsync(String, IEnumerable<String>, IEnumerable<String>, CancellationToken)

public virtual Task<AddContextArtifactsAndExecutionsResponse> AddContextArtifactsAndExecutionsAsync(string context, IEnumerable<string> artifacts, IEnumerable<string> executions, CancellationToken cancellationToken)

Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.

Parameters
NameDescription
contextString

Required. The resource name of the Context that the Artifacts and Executions belong to. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

artifactsIEnumerable<String>

The resource names of the Artifacts to attribute to the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

executionsIEnumerable<String>

The resource names of the Executions to associate with the Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddContextArtifactsAndExecutionsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> artifacts = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/artifacts/[ARTIFACT]",
};
IEnumerable<string> executions = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/executions/[EXECUTION]",
};
// Make the request
AddContextArtifactsAndExecutionsResponse response = await metadataServiceClient.AddContextArtifactsAndExecutionsAsync(context, artifacts, executions);

AddContextChildren(AddContextChildrenRequest, CallSettings)

public virtual AddContextChildrenResponse AddContextChildren(AddContextChildrenRequest request, CallSettings callSettings = null)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
requestAddContextChildrenRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddContextChildrenResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
AddContextChildrenRequest request = new AddContextChildrenRequest
{
    ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    ChildContextsAsContextNames =
    {
        ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    },
};
// Make the request
AddContextChildrenResponse response = metadataServiceClient.AddContextChildren(request);

AddContextChildren(ContextName, IEnumerable<ContextName>, CallSettings)

public virtual AddContextChildrenResponse AddContextChildren(ContextName context, IEnumerable<ContextName> childContexts, CallSettings callSettings = null)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
contextContextName

Required. The resource name of the parent Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

childContextsIEnumerable<ContextName>

The resource names of the child Contexts.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddContextChildrenResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ContextName> childContexts = new ContextName[]
{
    ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
};
// Make the request
AddContextChildrenResponse response = metadataServiceClient.AddContextChildren(context, childContexts);

AddContextChildren(String, IEnumerable<String>, CallSettings)

public virtual AddContextChildrenResponse AddContextChildren(string context, IEnumerable<string> childContexts, CallSettings callSettings = null)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
contextString

Required. The resource name of the parent Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

childContextsIEnumerable<String>

The resource names of the child Contexts.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddContextChildrenResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> childContexts = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]",
};
// Make the request
AddContextChildrenResponse response = metadataServiceClient.AddContextChildren(context, childContexts);

AddContextChildrenAsync(AddContextChildrenRequest, CallSettings)

public virtual Task<AddContextChildrenResponse> AddContextChildrenAsync(AddContextChildrenRequest request, CallSettings callSettings = null)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
requestAddContextChildrenRequest

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<AddContextChildrenResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
AddContextChildrenRequest request = new AddContextChildrenRequest
{
    ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    ChildContextsAsContextNames =
    {
        ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    },
};
// Make the request
AddContextChildrenResponse response = await metadataServiceClient.AddContextChildrenAsync(request);

AddContextChildrenAsync(AddContextChildrenRequest, CancellationToken)

public virtual Task<AddContextChildrenResponse> AddContextChildrenAsync(AddContextChildrenRequest request, CancellationToken cancellationToken)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
requestAddContextChildrenRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddContextChildrenResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
AddContextChildrenRequest request = new AddContextChildrenRequest
{
    ContextAsContextName = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    ChildContextsAsContextNames =
    {
        ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
    },
};
// Make the request
AddContextChildrenResponse response = await metadataServiceClient.AddContextChildrenAsync(request);

AddContextChildrenAsync(ContextName, IEnumerable<ContextName>, CallSettings)

public virtual Task<AddContextChildrenResponse> AddContextChildrenAsync(ContextName context, IEnumerable<ContextName> childContexts, CallSettings callSettings = null)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
contextContextName

Required. The resource name of the parent Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

childContextsIEnumerable<ContextName>

The resource names of the child Contexts.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AddContextChildrenResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ContextName> childContexts = new ContextName[]
{
    ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
};
// Make the request
AddContextChildrenResponse response = await metadataServiceClient.AddContextChildrenAsync(context, childContexts);

AddContextChildrenAsync(ContextName, IEnumerable<ContextName>, CancellationToken)

public virtual Task<AddContextChildrenResponse> AddContextChildrenAsync(ContextName context, IEnumerable<ContextName> childContexts, CancellationToken cancellationToken)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
contextContextName

Required. The resource name of the parent Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

childContextsIEnumerable<ContextName>

The resource names of the child Contexts.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddContextChildrenResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ContextName context = ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
IEnumerable<ContextName> childContexts = new ContextName[]
{
    ContextName.FromProjectLocationMetadataStoreContext("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]"),
};
// Make the request
AddContextChildrenResponse response = await metadataServiceClient.AddContextChildrenAsync(context, childContexts);

AddContextChildrenAsync(String, IEnumerable<String>, CallSettings)

public virtual Task<AddContextChildrenResponse> AddContextChildrenAsync(string context, IEnumerable<string> childContexts, CallSettings callSettings = null)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
contextString

Required. The resource name of the parent Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

childContextsIEnumerable<String>

The resource names of the child Contexts.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AddContextChildrenResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> childContexts = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]",
};
// Make the request
AddContextChildrenResponse response = await metadataServiceClient.AddContextChildrenAsync(context, childContexts);

AddContextChildrenAsync(String, IEnumerable<String>, CancellationToken)

public virtual Task<AddContextChildrenResponse> AddContextChildrenAsync(string context, IEnumerable<string> childContexts, CancellationToken cancellationToken)

Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.

Parameters
NameDescription
contextString

Required. The resource name of the parent Context.

Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

childContextsIEnumerable<String>

The resource names of the child Contexts.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddContextChildrenResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
string context = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]";
IEnumerable<string> childContexts = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/contexts/[CONTEXT]",
};
// Make the request
AddContextChildrenResponse response = await metadataServiceClient.AddContextChildrenAsync(context, childContexts);

AddExecutionEvents(AddExecutionEventsRequest, CallSettings)

public virtual AddExecutionEventsResponse AddExecutionEvents(AddExecutionEventsRequest request, CallSettings callSettings = null)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription
requestAddExecutionEventsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddExecutionEventsResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
AddExecutionEventsRequest request = new AddExecutionEventsRequest
{
    ExecutionAsExecutionName = ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
    Events = { new Event(), },
};
// Make the request
AddExecutionEventsResponse response = metadataServiceClient.AddExecutionEvents(request);

AddExecutionEvents(ExecutionName, IEnumerable<Event>, CallSettings)

public virtual AddExecutionEventsResponse AddExecutionEvents(ExecutionName execution, IEnumerable<Event> events, CallSettings callSettings = null)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription
executionExecutionName

Required. The resource name of the Execution that the Events connect Artifacts with. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

eventsIEnumerable<Event>

The Events to create and add.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddExecutionEventsResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
ExecutionName execution = ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
IEnumerable<Event> events = new Event[] { new Event(), };
// Make the request
AddExecutionEventsResponse response = metadataServiceClient.AddExecutionEvents(execution, events);

AddExecutionEvents(String, IEnumerable<Event>, CallSettings)

public virtual AddExecutionEventsResponse AddExecutionEvents(string execution, IEnumerable<Event> events, CallSettings callSettings = null)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription
executionString

Required. The resource name of the Execution that the Events connect Artifacts with. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

eventsIEnumerable<Event>

The Events to create and add.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AddExecutionEventsResponse

The RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = MetadataServiceClient.Create();
// Initialize request argument(s)
string execution = "projects/[PROJECT]/locations/[LOCATION]/metadataStores/[METADATA_STORE]/executions/[EXECUTION]";
IEnumerable<Event> events = new Event[] { new Event(), };
// Make the request
AddExecutionEventsResponse response = metadataServiceClient.AddExecutionEvents(execution, events);

AddExecutionEventsAsync(AddExecutionEventsRequest, CallSettings)

public virtual Task<AddExecutionEventsResponse> AddExecutionEventsAsync(AddExecutionEventsRequest request, CallSettings callSettings = null)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription
requestAddExecutionEventsRequest

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<AddExecutionEventsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
AddExecutionEventsRequest request = new AddExecutionEventsRequest
{
    ExecutionAsExecutionName = ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
    Events = { new Event(), },
};
// Make the request
AddExecutionEventsResponse response = await metadataServiceClient.AddExecutionEventsAsync(request);

AddExecutionEventsAsync(AddExecutionEventsRequest, CancellationToken)

public virtual Task<AddExecutionEventsResponse> AddExecutionEventsAsync(AddExecutionEventsRequest request, CancellationToken cancellationToken)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription
requestAddExecutionEventsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddExecutionEventsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
AddExecutionEventsRequest request = new AddExecutionEventsRequest
{
    ExecutionAsExecutionName = ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]"),
    Events = { new Event(), },
};
// Make the request
AddExecutionEventsResponse response = await metadataServiceClient.AddExecutionEventsAsync(request);

AddExecutionEventsAsync(ExecutionName, IEnumerable<Event>, CallSettings)

public virtual Task<AddExecutionEventsResponse> AddExecutionEventsAsync(ExecutionName execution, IEnumerable<Event> events, CallSettings callSettings = null)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription
executionExecutionName

Required. The resource name of the Execution that the Events connect Artifacts with. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

eventsIEnumerable<Event>

The Events to create and add.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AddExecutionEventsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ExecutionName execution = ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
IEnumerable<Event> events = new Event[] { new Event(), };
// Make the request
AddExecutionEventsResponse response = await metadataServiceClient.AddExecutionEventsAsync(execution, events);

AddExecutionEventsAsync(ExecutionName, IEnumerable<Event>, CancellationToken)

public virtual Task<AddExecutionEventsResponse> AddExecutionEventsAsync(ExecutionName execution, IEnumerable<Event> events, CancellationToken cancellationToken)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription
executionExecutionName

Required. The resource name of the Execution that the Events connect Artifacts with. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}

eventsIEnumerable<Event>

The Events to create and add.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AddExecutionEventsResponse>

A Task containing the RPC response.

Example
// Create client
MetadataServiceClient metadataServiceClient = await MetadataServiceClient.CreateAsync();
// Initialize request argument(s)
ExecutionName execution = ExecutionName.FromProjectLocationMetadataStoreExecution("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[EXECUTION]");
IEnumerable<Event> events = new Event[] { new Event(), };
// Make the request
AddExecutionEventsResponse response = await metadataServiceClient.AddExecutionEventsAsync(execution, events);

AddExecutionEventsAsync(String, IEnumerable<Event>, CallSettings)

public virtual Task<AddExecutionEventsResponse> AddExecutionEventsAsync(string execution, IEnumerable<Event> events, CallSettings callSettings = null)

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

Parameters
NameDescription