[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Workflows V1 API - Class Google::Cloud::Workflows::V1::CreateWorkflowRequest (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-workflows-v1/latest/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [2.1.1](/ruby/docs/reference/google-cloud-workflows-v1/2.1.1/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [2.0.0](/ruby/docs/reference/google-cloud-workflows-v1/2.0.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-workflows-v1/1.2.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-workflows-v1/1.1.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [1.0.2](/ruby/docs/reference/google-cloud-workflows-v1/1.0.2/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-workflows-v1/0.8.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-workflows-v1/0.7.2/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-workflows-v1/0.6.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-workflows-v1/0.5.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.4.1](/ruby/docs/reference/google-cloud-workflows-v1/0.4.1/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-workflows-v1/0.3.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-workflows-v1/0.2.0/Google-Cloud-Workflows-V1-CreateWorkflowRequest)\n- [0.1.5](/ruby/docs/reference/google-cloud-workflows-v1/0.1.5/Google-Cloud-Workflows-V1-CreateWorkflowRequest) \nReference documentation and code samples for the Workflows V1 API class Google::Cloud::Workflows::V1::CreateWorkflowRequest.\n\nRequest for the\n[CreateWorkflow](/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)\")\nmethod. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} \n**Returns**\n\n- (::String) --- Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}\n\n### #workflow\n\n def workflow() -\u003e ::Google::Cloud::Workflows::V1::Workflow\n\n**Returns**\n\n- ([::Google::Cloud::Workflows::V1::Workflow](./Google-Cloud-Workflows-V1-Workflow)) --- Required. Workflow to be created.\n\n### #workflow=\n\n def workflow=(value) -\u003e ::Google::Cloud::Workflows::V1::Workflow\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Workflows::V1::Workflow](./Google-Cloud-Workflows-V1-Workflow)) --- Required. Workflow to be created. \n**Returns**\n\n- ([::Google::Cloud::Workflows::V1::Workflow](./Google-Cloud-Workflows-V1-Workflow)) --- Required. Workflow to be created.\n\n### #workflow_id\n\n def workflow_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The ID of the workflow to be created. It has to fulfill the\n following requirements:\n\n - Must contain only letters, numbers, underscores and hyphens.\n - Must start with a letter.\n - Must be between 1-64 characters.\n - Must end with a number or a letter.\n - Must be unique within the customer project and location.\n\n### #workflow_id=\n\n def workflow_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. The ID of the workflow to be created. It has to fulfill the\n following requirements:\n - Must contain only letters, numbers, underscores and hyphens.\n - Must start with a letter.\n - Must be between 1-64 characters.\n - Must end with a number or a letter.\n- Must be unique within the customer project and location. \n**Returns**\n\n- (::String) --- Required. The ID of the workflow to be created. It has to fulfill the\n following requirements:\n\n - Must contain only letters, numbers, underscores and hyphens.\n - Must start with a letter.\n - Must be between 1-64 characters.\n - Must end with a number or a letter.\n - Must be unique within the customer project and location."]]