# Workflows v1beta API - Class CreateWorkflowRequest (2.0.0-beta06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/2.0.0-beta05/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/1.0.0-beta03/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest)

    public sealed class CreateWorkflowRequest : IMessage<CreateWorkflowRequest>, IEquatable<CreateWorkflowRequest>, IDeepCloneable<CreateWorkflowRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Workflows v1beta API class CreateWorkflowRequest.

Request for the
\[CreateWorkflow\]\[google.cloud.workflows.v1beta.Workflows.CreateWorkflow\]
method.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CreateWorkflowRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateWorkflowRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateWorkflowRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateWorkflowRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Workflows.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta)

## Assembly

Google.Cloud.Workflows.V1Beta.dll

## Constructors

### CreateWorkflowRequest()

    public CreateWorkflowRequest()

### CreateWorkflowRequest(CreateWorkflowRequest)

    public CreateWorkflowRequest(CreateWorkflowRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest` |

## Properties

### Parent

    public string Parent { get; set; }

Required. Project and location in which the workflow should be created.
Format: projects/{project}/locations/{location}

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest#Google_Cloud_Workflows_V1Beta_CreateWorkflowRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` |   |

### Workflow

    public Workflow Workflow { get; set; }

Required. Workflow to be created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.Workflow` |   |

### WorkflowId

    public string WorkflowId { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |