Google Cloud Dataproc v1 API - Class WorkflowTemplateServiceClient (5.4.0)

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

Reference documentation and code samples for the Google Cloud Dataproc v1 API class WorkflowTemplateServiceClient.

WorkflowTemplateService client wrapper, for convenient use.

Inheritance

Object > WorkflowTemplateServiceClient

Namespace

Google.Cloud.Dataproc.V1

Assembly

Google.Cloud.Dataproc.V1.dll

Remarks

The API interface for managing Workflow Templates in the Dataproc API.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default WorkflowTemplateService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default WorkflowTemplateService scopes are:

GrpcClient

public virtual WorkflowTemplateService.WorkflowTemplateServiceClient GrpcClient { get; }

The underlying gRPC WorkflowTemplateService client

Property Value
TypeDescription
WorkflowTemplateService.WorkflowTemplateServiceClient

InstantiateInlineWorkflowTemplateOperationsClient

public virtual OperationsClient InstantiateInlineWorkflowTemplateOperationsClient { get; }

The long-running operations client for InstantiateInlineWorkflowTemplate.

Property Value
TypeDescription
OperationsClient

InstantiateWorkflowTemplateOperationsClient

public virtual OperationsClient InstantiateWorkflowTemplateOperationsClient { get; }

The long-running operations client for InstantiateWorkflowTemplate.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

Methods

Create()

public static WorkflowTemplateServiceClient Create()

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

Returns
TypeDescription
WorkflowTemplateServiceClient

The created WorkflowTemplateServiceClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<WorkflowTemplateServiceClient>

The task representing the created WorkflowTemplateServiceClient.

CreateWorkflowTemplate(LocationName, WorkflowTemplate, CallSettings)

public virtual WorkflowTemplate CreateWorkflowTemplate(LocationName parent, WorkflowTemplate template, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
parentLocationName

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
WorkflowTemplate

The RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = workflowTemplateServiceClient.CreateWorkflowTemplate(parent, template);

CreateWorkflowTemplate(CreateWorkflowTemplateRequest, CallSettings)

public virtual WorkflowTemplate CreateWorkflowTemplate(CreateWorkflowTemplateRequest request, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
requestCreateWorkflowTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
WorkflowTemplate

The RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
CreateWorkflowTemplateRequest request = new CreateWorkflowTemplateRequest
{
    ParentAsRegionName = RegionName.FromProjectRegion("[PROJECT]", "[REGION]"),
    Template = new WorkflowTemplate(),
};
// Make the request
WorkflowTemplate response = workflowTemplateServiceClient.CreateWorkflowTemplate(request);

CreateWorkflowTemplate(RegionName, WorkflowTemplate, CallSettings)

public virtual WorkflowTemplate CreateWorkflowTemplate(RegionName parent, WorkflowTemplate template, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
parentRegionName

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
WorkflowTemplate

The RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
RegionName parent = RegionName.FromProjectRegion("[PROJECT]", "[REGION]");
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = workflowTemplateServiceClient.CreateWorkflowTemplate(parent, template);

CreateWorkflowTemplate(String, WorkflowTemplate, CallSettings)

public virtual WorkflowTemplate CreateWorkflowTemplate(string parent, WorkflowTemplate template, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
parentString

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
WorkflowTemplate

The RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/regions/[REGION]";
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = workflowTemplateServiceClient.CreateWorkflowTemplate(parent, template);

CreateWorkflowTemplateAsync(LocationName, WorkflowTemplate, CallSettings)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(LocationName parent, WorkflowTemplate template, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
parentLocationName

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(parent, template);

CreateWorkflowTemplateAsync(LocationName, WorkflowTemplate, CancellationToken)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(LocationName parent, WorkflowTemplate template, CancellationToken cancellationToken)

Creates new workflow template.

Parameters
NameDescription
parentLocationName

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(parent, template);

CreateWorkflowTemplateAsync(CreateWorkflowTemplateRequest, CallSettings)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(CreateWorkflowTemplateRequest request, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
requestCreateWorkflowTemplateRequest

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

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
CreateWorkflowTemplateRequest request = new CreateWorkflowTemplateRequest
{
    ParentAsRegionName = RegionName.FromProjectRegion("[PROJECT]", "[REGION]"),
    Template = new WorkflowTemplate(),
};
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(request);

CreateWorkflowTemplateAsync(CreateWorkflowTemplateRequest, CancellationToken)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(CreateWorkflowTemplateRequest request, CancellationToken cancellationToken)

Creates new workflow template.

Parameters
NameDescription
requestCreateWorkflowTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
CreateWorkflowTemplateRequest request = new CreateWorkflowTemplateRequest
{
    ParentAsRegionName = RegionName.FromProjectRegion("[PROJECT]", "[REGION]"),
    Template = new WorkflowTemplate(),
};
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(request);

CreateWorkflowTemplateAsync(RegionName, WorkflowTemplate, CallSettings)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(RegionName parent, WorkflowTemplate template, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
parentRegionName

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
RegionName parent = RegionName.FromProjectRegion("[PROJECT]", "[REGION]");
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(parent, template);

CreateWorkflowTemplateAsync(RegionName, WorkflowTemplate, CancellationToken)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(RegionName parent, WorkflowTemplate template, CancellationToken cancellationToken)

Creates new workflow template.

Parameters
NameDescription
parentRegionName

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
RegionName parent = RegionName.FromProjectRegion("[PROJECT]", "[REGION]");
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(parent, template);

CreateWorkflowTemplateAsync(String, WorkflowTemplate, CallSettings)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(string parent, WorkflowTemplate template, CallSettings callSettings = null)

Creates new workflow template.

Parameters
NameDescription
parentString

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/regions/[REGION]";
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(parent, template);

CreateWorkflowTemplateAsync(String, WorkflowTemplate, CancellationToken)

public virtual Task<WorkflowTemplate> CreateWorkflowTemplateAsync(string parent, WorkflowTemplate template, CancellationToken cancellationToken)

Creates new workflow template.

Parameters
NameDescription
parentString

Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.create, the resource name of the region has the following format: projects/{project_id}/regions/{region}

  • For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location}

templateWorkflowTemplate

Required. The Dataproc workflow template to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/regions/[REGION]";
WorkflowTemplate template = new WorkflowTemplate();
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.CreateWorkflowTemplateAsync(parent, template);

DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest, CallSettings)

public virtual void DeleteWorkflowTemplate(DeleteWorkflowTemplateRequest request, CallSettings callSettings = null)

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
requestDeleteWorkflowTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
DeleteWorkflowTemplateRequest request = new DeleteWorkflowTemplateRequest
{
    WorkflowTemplateName = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"),
    Version = 0,
};
// Make the request
workflowTemplateServiceClient.DeleteWorkflowTemplate(request);

DeleteWorkflowTemplate(WorkflowTemplateName, CallSettings)

public virtual void DeleteWorkflowTemplate(WorkflowTemplateName name, CallSettings callSettings = null)

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
nameWorkflowTemplateName

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
WorkflowTemplateName name = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
// Make the request
workflowTemplateServiceClient.DeleteWorkflowTemplate(name);

DeleteWorkflowTemplate(String, CallSettings)

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

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
nameString

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/regions/[REGION]/workflowTemplates/[WORKFLOW_TEMPLATE]";
// Make the request
workflowTemplateServiceClient.DeleteWorkflowTemplate(name);

DeleteWorkflowTemplateAsync(DeleteWorkflowTemplateRequest, CallSettings)

public virtual Task DeleteWorkflowTemplateAsync(DeleteWorkflowTemplateRequest request, CallSettings callSettings = null)

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
requestDeleteWorkflowTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteWorkflowTemplateRequest request = new DeleteWorkflowTemplateRequest
{
    WorkflowTemplateName = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"),
    Version = 0,
};
// Make the request
await workflowTemplateServiceClient.DeleteWorkflowTemplateAsync(request);

DeleteWorkflowTemplateAsync(DeleteWorkflowTemplateRequest, CancellationToken)

public virtual Task DeleteWorkflowTemplateAsync(DeleteWorkflowTemplateRequest request, CancellationToken cancellationToken)

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
requestDeleteWorkflowTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteWorkflowTemplateRequest request = new DeleteWorkflowTemplateRequest
{
    WorkflowTemplateName = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"),
    Version = 0,
};
// Make the request
await workflowTemplateServiceClient.DeleteWorkflowTemplateAsync(request);

DeleteWorkflowTemplateAsync(WorkflowTemplateName, CallSettings)

public virtual Task DeleteWorkflowTemplateAsync(WorkflowTemplateName name, CallSettings callSettings = null)

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
nameWorkflowTemplateName

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
WorkflowTemplateName name = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
// Make the request
await workflowTemplateServiceClient.DeleteWorkflowTemplateAsync(name);

DeleteWorkflowTemplateAsync(WorkflowTemplateName, CancellationToken)

public virtual Task DeleteWorkflowTemplateAsync(WorkflowTemplateName name, CancellationToken cancellationToken)

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
nameWorkflowTemplateName

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
WorkflowTemplateName name = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
// Make the request
await workflowTemplateServiceClient.DeleteWorkflowTemplateAsync(name);

DeleteWorkflowTemplateAsync(String, CallSettings)

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

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
nameString

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/regions/[REGION]/workflowTemplates/[WORKFLOW_TEMPLATE]";
// Make the request
await workflowTemplateServiceClient.DeleteWorkflowTemplateAsync(name);

DeleteWorkflowTemplateAsync(String, CancellationToken)

public virtual Task DeleteWorkflowTemplateAsync(string name, CancellationToken cancellationToken)

Deletes a workflow template. It does not cancel in-progress workflows.

Parameters
NameDescription
nameString

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/regions/[REGION]/workflowTemplates/[WORKFLOW_TEMPLATE]";
// Make the request
await workflowTemplateServiceClient.DeleteWorkflowTemplateAsync(name);

GetWorkflowTemplate(GetWorkflowTemplateRequest, CallSettings)

public virtual WorkflowTemplate GetWorkflowTemplate(GetWorkflowTemplateRequest request, CallSettings callSettings = null)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional version parameter.

Parameters
NameDescription
requestGetWorkflowTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
WorkflowTemplate

The RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
GetWorkflowTemplateRequest request = new GetWorkflowTemplateRequest
{
    WorkflowTemplateName = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"),
    Version = 0,
};
// Make the request
WorkflowTemplate response = workflowTemplateServiceClient.GetWorkflowTemplate(request);

GetWorkflowTemplate(WorkflowTemplateName, CallSettings)

public virtual WorkflowTemplate GetWorkflowTemplate(WorkflowTemplateName name, CallSettings callSettings = null)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional version parameter.

Parameters
NameDescription
nameWorkflowTemplateName

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
WorkflowTemplate

The RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
WorkflowTemplateName name = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
// Make the request
WorkflowTemplate response = workflowTemplateServiceClient.GetWorkflowTemplate(name);

GetWorkflowTemplate(String, CallSettings)

public virtual WorkflowTemplate GetWorkflowTemplate(string name, CallSettings callSettings = null)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional version parameter.

Parameters
NameDescription
nameString

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
WorkflowTemplate

The RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/regions/[REGION]/workflowTemplates/[WORKFLOW_TEMPLATE]";
// Make the request
WorkflowTemplate response = workflowTemplateServiceClient.GetWorkflowTemplate(name);

GetWorkflowTemplateAsync(GetWorkflowTemplateRequest, CallSettings)

public virtual Task<WorkflowTemplate> GetWorkflowTemplateAsync(GetWorkflowTemplateRequest request, CallSettings callSettings = null)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional version parameter.

Parameters
NameDescription
requestGetWorkflowTemplateRequest

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

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
GetWorkflowTemplateRequest request = new GetWorkflowTemplateRequest
{
    WorkflowTemplateName = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"),
    Version = 0,
};
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.GetWorkflowTemplateAsync(request);

GetWorkflowTemplateAsync(GetWorkflowTemplateRequest, CancellationToken)

public virtual Task<WorkflowTemplate> GetWorkflowTemplateAsync(GetWorkflowTemplateRequest request, CancellationToken cancellationToken)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional version parameter.

Parameters
NameDescription
requestGetWorkflowTemplateRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
GetWorkflowTemplateRequest request = new GetWorkflowTemplateRequest
{
    WorkflowTemplateName = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"),
    Version = 0,
};
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.GetWorkflowTemplateAsync(request);

GetWorkflowTemplateAsync(WorkflowTemplateName, CallSettings)

public virtual Task<WorkflowTemplate> GetWorkflowTemplateAsync(WorkflowTemplateName name, CallSettings callSettings = null)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional version parameter.

Parameters
NameDescription
nameWorkflowTemplateName

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}

  • For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<WorkflowTemplate>

A Task containing the RPC response.

Example
// Create client
WorkflowTemplateServiceClient workflowTemplateServiceClient = await WorkflowTemplateServiceClient.CreateAsync();
// Initialize request argument(s)
WorkflowTemplateName name = WorkflowTemplateName.FromProjectRegionWorkflowTemplate("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
// Make the request
WorkflowTemplate response = await workflowTemplateServiceClient.GetWorkflowTemplateAsync(name);

GetWorkflowTemplateAsync(WorkflowTemplateName, CancellationToken)

public virtual Task<WorkflowTemplate> GetWorkflowTemplateAsync(WorkflowTemplateName name, CancellationToken cancellationToken)

Retrieves the latest workflow template.

Can retrieve previously instantiated template by specifying optional version parameter.

Parameters
NameDescription
nameWorkflowTemplateName

Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.

  • For projects.regions.workflowTemplates.get, the