Reference documentation and code samples for the Google Cloud Workflows V1beta Client class Workflow.
Workflow program to be executed by Workflows.
Generated from protobuf message google.cloud.workflows.v1beta.Workflow
Namespace
Google \ Cloud \ Workflows \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}
↳ description
string
Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
↳ state
int
Output only. State of the workflow deployment.
↳ revision_id
string
Output only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following fields of a workflow: - source_code
- service_account
The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
↳ create_time
↳ update_time
↳ revision_create_time
Google\Protobuf\Timestamp
Output only. The timestamp that the latest revision of the workflow was created.
↳ labels
array| Google\Protobuf\Internal\MapField
Labels associated with this workflow. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
↳ service_account
string
Name of the service account associated with the latest workflow version. This service account represents the identity of the workflow and determines what permissions the workflow has. Format: projects/{project}/serviceAccounts/{account} Using -
as a wildcard for the {project}
will infer the project from the account. The {account}
value can be the email
address or the unique_id
of the service account. If not provided, workflow will use the project's default service account. Modifying this field for an existing workflow results in a new workflow revision.
↳ source_contents
string
Workflow code to be executed. The size limit is 32KB.
getName
The resource name of the workflow.
Format: projects/{project}/locations/{location}/workflows/{workflow}
string
setName
The resource name of the workflow.
Format: projects/{project}/locations/{location}/workflows/{workflow}
var
string
$this
getDescription
Description of the workflow provided by the user.
Must be at most 1000 unicode characters long.
string
setDescription
Description of the workflow provided by the user.
Must be at most 1000 unicode characters long.
var
string
$this
getState
Output only. State of the workflow deployment.
int
setState
Output only. State of the workflow deployment.
var
int
$this
getRevisionId
Output only. The revision of the workflow.
A new revision of a workflow is created as a result of updating the following fields of a workflow:
-
source_code
-
service_account
The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
string
setRevisionId
Output only. The revision of the workflow.
A new revision of a workflow is created as a result of updating the following fields of a workflow:
-
source_code
-
service_account
The format is "000001-a4d", where the first 6 characters define the zero-padded revision ordinal number. They are followed by a hyphen and 3 hexadecimal random characters.
var
string
$this
getCreateTime
Output only. The timestamp of when the workflow was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp of when the workflow was created.
$this
getUpdateTime
Output only. The last update timestamp of the workflow.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The last update timestamp of the workflow.
$this
getRevisionCreateTime
Output only. The timestamp that the latest revision of the workflow was created.
hasRevisionCreateTime
clearRevisionCreateTime
setRevisionCreateTime
Output only. The timestamp that the latest revision of the workflow was created.
$this
getLabels
Labels associated with this workflow.
Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
setLabels
Labels associated with this workflow.
Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores and dashes. Label keys must start with a letter. International characters are allowed.
$this
getServiceAccount
Name of the service account associated with the latest workflow version.
This service account represents the identity of the workflow and determines
what permissions the workflow has.
Format: projects/{project}/serviceAccounts/{account}
Using -
as a wildcard for the {project}
will infer the project from
the account. The {account}
value can be the email
address or the unique_id
of the service account.
If not provided, workflow will use the project's default service account.
Modifying this field for an existing workflow results in a new workflow
revision.
string
setServiceAccount
Name of the service account associated with the latest workflow version.
This service account represents the identity of the workflow and determines
what permissions the workflow has.
Format: projects/{project}/serviceAccounts/{account}
Using -
as a wildcard for the {project}
will infer the project from
the account. The {account}
value can be the email
address or the unique_id
of the service account.
If not provided, workflow will use the project's default service account.
Modifying this field for an existing workflow results in a new workflow
revision.
var
string
$this
getSourceContents
Workflow code to be executed. The size limit is 32KB.
string
hasSourceContents
setSourceContents
Workflow code to be executed. The size limit is 32KB.
var
string
$this
getSourceCode
string