Class ProjectsResource.LocationsResource.WorkflowsResource
The "workflows" collection of methods.
Inherited Members
Namespace: Google.Apis.Workflows.v1beta
Assembly: Google.Apis.Workflows.v1beta.dll
Syntax
public class ProjectsResource.LocationsResource.WorkflowsResource
Constructors
WorkflowsResource(IClientService)
Constructs a new resource.
Declaration
public WorkflowsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Workflow, string)
Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return ALREADY_EXISTS error.
Declaration
public virtual ProjectsResource.LocationsResource.WorkflowsResource.CreateRequest Create(Workflow body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Workflow | body | The body of the request. |
string | parent | Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkflowsResource.CreateRequest |
Delete(string)
Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.
Declaration
public virtual ProjectsResource.LocationsResource.WorkflowsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the workflow to be deleted. Format: projects/{project}/locations/{location}/workflows/{workflow} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkflowsResource.DeleteRequest |
Get(string)
Gets details of a single Workflow.
Declaration
public virtual ProjectsResource.LocationsResource.WorkflowsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Name of the workflow which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkflowsResource.GetRequest |
List(string)
Lists Workflows in a given project and location. The default order is not specified.
Declaration
public virtual ProjectsResource.LocationsResource.WorkflowsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkflowsResource.ListRequest |
Patch(Workflow, string)
Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a successful update operation. In that case, such revision will be used in new workflow executions.
Declaration
public virtual ProjectsResource.LocationsResource.WorkflowsResource.PatchRequest Patch(Workflow body, string name)
Parameters
Type | Name | Description |
---|---|---|
Workflow | body | The body of the request. |
string | name | The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow} |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.WorkflowsResource.PatchRequest |