Google Cloud Workflows V1 Client - Class CreateWorkflowRequest (0.5.5)

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
Name Description
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
Type Description
string

setParent

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

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

Parameter
Name Description
var string
Returns
Type Description
$this

getWorkflow

Required. Workflow to be created.

Returns
Type Description
Google\Cloud\Workflows\V1\Workflow|null

hasWorkflow

clearWorkflow

setWorkflow

Required. Workflow to be created.

Parameter
Name Description
var Google\Cloud\Workflows\V1\Workflow
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
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
Type Description
Google\Cloud\Workflows\V1\CreateWorkflowRequest