Service Client: Google::Cloud::Workflows::V1::Workflows::WorkflowsClient
Client stub representing the remote Workflows gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to workflows.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Workflows::V1::Workflows - Compiled Protocol Buffers messages for google/cloud/workflows/v1/workflows.proto
SYNOPSIS
use Google::Cloud::Workflows::V1::Workflows;
my $msg = Google::Cloud::Workflows::V1::Workflows::Workflow->new({
name => $name,
description => $description,
state => $state,
revision_id => $revision_id,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Workflows::V1::Workflows::Workflow->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/workflows/v1/workflows.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Workflows::V1::Workflows::Workflow
Workflow program to be executed by Workflows.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the workflow. Format: projects/{project}/locations/{location}/workflows/{workflow}. This is a workflow-wide field and is not tied to a specific revision.
$msg->description()/$msg->description($value)Type:
StringDescription of the workflow provided by the user. Must be at most 1000 Unicode characters long. This is a workflow-wide field and is not tied to a specific revision.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Workflows::V1::Workflow::State)Output only. State of the workflow deployment.
$msg->revision_id()/$msg->revision_id($value)Type:
StringOutput only. The revision of the workflow. A new revision of a workflow is created as a result of updating the following properties of a workflow:
- [Service account][google.cloud.workflows.v1.Workflow.service_account] - [Workflow code to be executed][google.cloud.workflows.v1.Workflow.source_contents]
The format is "000001-a4d", where the first six characters define the zero-padded revision ordinal number. They are followed by a hyphen and three hexadecimal random characters.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp for when the workflow was created. This is a workflow-wide field and is not tied to a specific revision.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp for when the workflow was last updated. This is a workflow-wide field and is not tied to a specific revision.
$msg->revision_create_time()/$msg->revision_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp for the latest revision of the workflow's creation.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow::LabelsEntry)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 is a workflow-wide field and is not tied to a specific revision.
$msg->service_account()/$msg->service_account($value)Type:
StringThe 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} or {account}
Using `-` as a wildcard for the `{project}` or not providing one at all 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.
$msg->source_contents()/$msg->source_contents($value)Type:
StringWorkflow code to be executed. The size limit is 128KB.
$msg->crypto_key_name()/$msg->crypto_key_name($value)Type:
StringOptional. The resource name of a KMS crypto key used to encrypt or decrypt the data associated with the workflow.
Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
Using `-` as a wildcard for the `{project}` or not providing one at all will infer the project from the account.
If not provided, data associated with the workflow will not be CMEK-encrypted.
$msg->state_error()/$msg->state_error($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow::StateError)Output only. Error regarding the state of the workflow. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions.
$msg->call_log_level()/$msg->call_log_level($value)Type:
Enum(Google::Cloud::Workflows::V1::Workflow::CallLogLevel)Optional. Describes the level of platform logging to apply to calls and call responses during executions of this workflow. If both the workflow and the execution specify a logging level, the execution level takes precedence.
$msg->user_env_vars()/$msg->user_env_vars($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow::UserEnvVarsEntry)Optional. User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with "GOOGLE" or "WORKFLOWS".
$msg->execution_history_level()/$msg->execution_history_level($value)Type:
Enum(Google::Cloud::Workflows::V1::ExecutionHistoryLevel)Optional. Describes the execution history level to apply to this workflow.
$msg->all_kms_keys()/$msg->all_kms_keys($value)Type:
StringOutput only. A list of all KMS crypto keys used to encrypt or decrypt the data associated with the workflow.
$msg->all_kms_keys_versions()/$msg->all_kms_keys_versions($value)Type:
StringOutput only. A list of all KMS crypto key versions used to encrypt or decrypt the data associated with the workflow.
$msg->crypto_key_version()/$msg->crypto_key_version($value)Type:
StringOutput only. The resource name of a KMS crypto key version used to encrypt or decrypt the data associated with the workflow.
Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}
$msg->tags()/$msg->tags($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow::TagsEntry)Optional. Input only. Immutable. Tags associated with this workflow.
Enum: Workflow::State
STATE_UNSPECIFIED=>0ACTIVE=>1UNAVAILABLE=>2
Enum: Workflow::CallLogLevel
CALL_LOG_LEVEL_UNSPECIFIED=>0LOG_ALL_CALLS=>1LOG_ERRORS_ONLY=>2LOG_NONE=>3
Google::Cloud::Workflows::V1::Workflows::ListWorkflowsRequest
Request for the [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location}
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of workflows to return per call. The service might return fewer than this value even if not at the end of the collection. If a value is not specified, a default value of 500 is used. The maximum permitted value is 1000 and values greater than 1000 are coerced down to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListWorkflows` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListWorkflows` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringFilter to restrict results to specific workflows. For details, see <a href="https://google.aip.dev/160" class="external">AIP-160</a>.
For example, if you are using the Google APIs Explorer:
`state="SUCCEEDED"`
or
`createTime>"2023-08-01" AND state="FAILED"`
$msg->order_by()/$msg->order_by($value)Type:
StringComma-separated list of fields that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a "desc" suffix. If not specified, the results are returned in an unspecified order.
Google::Cloud::Workflows::V1::Workflows::ListWorkflowsResponse
Response for the [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows] method.
Inherits from Protobuf::Message.
Accessors
$msg->workflows()/$msg->workflows($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow)The workflows that match the request.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnreachable resources.
Google::Cloud::Workflows::V1::Workflows::GetWorkflowRequest
Request for the [GetWorkflow][google.cloud.workflows.v1.Workflows.GetWorkflow] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the workflow for which information should be retrieved. Format: projects/{project}/locations/{location}/workflows/{workflow}
$msg->revision_id()/$msg->revision_id($value)Type:
StringOptional. The revision of the workflow to retrieve. If the revision_id is empty, the latest revision is retrieved. The format is "000001-a4d", where the first six characters define the zero-padded decimal revision number. They are followed by a hyphen and three hexadecimal characters.
Google::Cloud::Workflows::V1::Workflows::CreateWorkflowRequest
Request for the [CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Project and location in which the workflow should be created. Format: projects/{project}/locations/{location}
$msg->workflow()/$msg->workflow($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow)Required. Workflow to be created.
$msg->workflow_id()/$msg->workflow_id($value)Type:
StringRequired. 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.
Google::Cloud::Workflows::V1::Workflows::DeleteWorkflowRequest
Request for the [DeleteWorkflow][google.cloud.workflows.v1.Workflows.DeleteWorkflow] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the workflow to be deleted. Format: projects/{project}/locations/{location}/workflows/{workflow}
Google::Cloud::Workflows::V1::Workflows::UpdateWorkflowRequest
Request for the [UpdateWorkflow][google.cloud.workflows.v1.Workflows.UpdateWorkflow] method.
Inherits from Protobuf::Message.
Accessors
$msg->workflow()/$msg->workflow($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow)Required. Workflow to be updated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)List of fields to be updated. If not present, the entire workflow will be updated.
Google::Cloud::Workflows::V1::Workflows::OperationMetadata
Represents the metadata of the long-running operation.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation finished running.
$msg->target()/$msg->target($value)Type:
StringServer-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringName of the verb executed by the operation.
$msg->api_version()/$msg->api_version($value)Type:
StringAPI version used to start the operation.
Google::Cloud::Workflows::V1::Workflows::ListWorkflowRevisionsRequest
Request for the [ListWorkflowRevisions][google.cloud.workflows.v1.Workflows.ListWorkflowRevisions] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Workflow for which the revisions should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow}
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of revisions to return per page. If a value is not specified, a default value of 20 is used. The maximum permitted value is 100. Values greater than 100 are coerced down to 100.
$msg->page_token()/$msg->page_token($value)Type:
StringThe page token, received from a previous ListWorkflowRevisions call. Provide this to retrieve the subsequent page.
Google::Cloud::Workflows::V1::Workflows::ListWorkflowRevisionsResponse
Response for the [ListWorkflowRevisions][google.cloud.workflows.v1.Workflows.ListWorkflowRevisions] method.
Inherits from Protobuf::Message.
Accessors
$msg->workflows()/$msg->workflows($value)Type:
Message(Google::Cloud::Workflows::V1::Workflows::Workflow)The revisions of the workflow, ordered in reverse chronological order.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Workflows::V1::Workflows::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.