Google Cloud Workflows V1 Client - Class CreateWorkflowRequest (0.4.2)

Reference documentation and code samples for the Google Cloud Workflows V1 Client class CreateWorkflowRequest.

Request for the CreateWorkflow method.

Generated from protobuf message google.cloud.workflows.v1.CreateWorkflowRequest

Namespace

Google \ Cloud \ Workflows \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ workflow Google\Cloud\Workflows\V1\Workflow

Required. Workflow to be created.

↳ workflow_id 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.

getParent

Required. Project and location in which the workflow should be created.

Format: projects/{project}/locations/{location}

Returns
TypeDescription
string

setParent

Required. Project and location in which the workflow should be created.

Format: projects/{project}/locations/{location}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWorkflow

Required. Workflow to be created.

Returns
TypeDescription
Google\Cloud\Workflows\V1\Workflow|null

hasWorkflow

clearWorkflow

setWorkflow

Required. Workflow to be created.

Parameter
NameDescription
var Google\Cloud\Workflows\V1\Workflow
Returns
TypeDescription
$this

getWorkflowId

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
TypeDescription
string

setWorkflowId

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.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location} Please see Google\Cloud\Workflows\V1\WorkflowsClient::locationName() for help formatting this field.

workflow Google\Cloud\Workflows\V1\Workflow

Required. Workflow to be created.

workflowId 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
TypeDescription
Google\Cloud\Workflows\V1\CreateWorkflowRequest