2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.0 2.1.1 2.0.0 1.2.0 1.1.0 1.0.2 0.8.0 0.7.2 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.5 Reference documentation and code samples for the Workflows V1 API class Google::Cloud::Workflows::V1::CreateWorkflowRequest.

Request for the
[CreateWorkflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Cloud-Workflows-V1-Workflows-Client#Google__Cloud__Workflows__V1__Workflows__Client_create_workflow_instance_ "Google::Cloud::Workflows::V1::Workflows::Client#create_workflow (method)")
method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

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

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}
**Returns**

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

### #workflow

    def workflow() -> ::Google::Cloud::Workflows::V1::Workflow

**Returns**

- ([::Google::Cloud::Workflows::V1::Workflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Cloud-Workflows-V1-Workflow)) --- Required. Workflow to be created.

### #workflow=

    def workflow=(value) -> ::Google::Cloud::Workflows::V1::Workflow

**Parameter**

- **value** ([::Google::Cloud::Workflows::V1::Workflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Cloud-Workflows-V1-Workflow)) --- Required. Workflow to be created.
**Returns**

- ([::Google::Cloud::Workflows::V1::Workflow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Cloud-Workflows-V1-Workflow)) --- Required. Workflow to be created.

### #workflow_id

    def workflow_id() -> ::String

**Returns**

- (::String) --- 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.

### #workflow_id=

    def workflow_id=(value) -> ::String

**Parameter**

- **value** (::String) ---

  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.
**Returns**

- (::String) --- 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.