Class ProjectsResource.LocationsResource.WorkflowsResource.CreateRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Workflows.v1beta
Assembly: Google.Apis.Workflows.v1beta.dll
Syntax
public class ProjectsResource.LocationsResource.WorkflowsResource.CreateRequest : WorkflowsBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Workflow, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Workflow body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Workflow | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
WorkflowId
Required. The ID of the workflow to be created. It has to fulfill the following requirements: * Must contain only letters, numbers, underscores and hyphens. * Must start with a letter. * Must be between 1-64 characters. * Must end with a number or a letter. * Must be unique within the customer project and location.
Declaration
[RequestParameter("workflowId", RequestParameterType.Query)]
public virtual string WorkflowId { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()