Class: Google::Apis::WorkflowsV1::Workflow
- Inherits:
-
Object
- Object
- Google::Apis::WorkflowsV1::Workflow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workflows_v1/classes.rb,
lib/google/apis/workflows_v1/representations.rb,
lib/google/apis/workflows_v1/representations.rb
Overview
Workflow program to be executed by Workflows.
Instance Attribute Summary collapse
-
#all_kms_keys ⇒ Array<String>
Output only.
-
#all_kms_keys_versions ⇒ Array<String>
Output only.
-
#call_log_level ⇒ String
Optional.
-
#create_time ⇒ String
Output only.
-
#crypto_key_name ⇒ String
Optional.
-
#crypto_key_version ⇒ String
Output only.
-
#description ⇒ String
Description of the workflow provided by the user.
-
#execution_history_level ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Labels associated with this workflow.
-
#name ⇒ String
The resource name of the workflow.
-
#revision_create_time ⇒ String
Output only.
-
#revision_id ⇒ String
Output only.
-
#service_account ⇒ String
The service account associated with the latest workflow version.
-
#source_contents ⇒ String
Workflow code to be executed.
-
#state ⇒ String
Output only.
-
#state_error ⇒ Google::Apis::WorkflowsV1::StateError
Describes an error related to the current state of the workflow.
-
#update_time ⇒ String
Output only.
-
#user_env_vars ⇒ Hash<String,String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Workflow
constructor
A new instance of Workflow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Workflow
Returns a new instance of Workflow.
496 497 498 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 496 def initialize(**args) update!(**args) end |
Instance Attribute Details
#all_kms_keys ⇒ Array<String>
Output only. A list of all KMS crypto keys used to encrypt or decrypt the data
associated with the workflow.
Corresponds to the JSON property allKmsKeys
373 374 375 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 373 def all_kms_keys @all_kms_keys end |
#all_kms_keys_versions ⇒ Array<String>
Output only. A list of all KMS crypto key versions used to encrypt or decrypt
the data associated with the workflow.
Corresponds to the JSON property allKmsKeysVersions
379 380 381 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 379 def all_kms_keys_versions @all_kms_keys_versions end |
#call_log_level ⇒ String
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.
Corresponds to the JSON property callLogLevel
386 387 388 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 386 def call_log_level @call_log_level end |
#create_time ⇒ String
Output only. The timestamp for when the workflow was created. This is a
workflow-wide field and is not tied to a specific revision.
Corresponds to the JSON property createTime
392 393 394 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 392 def create_time @create_time end |
#crypto_key_name ⇒ String
Optional. 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.
Corresponds to the JSON property cryptoKeyName
402 403 404 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 402 def crypto_key_name @crypto_key_name end |
#crypto_key_version ⇒ String
Output 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
Corresponds to the JSON property cryptoKeyVersion
410 411 412 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 410 def crypto_key_version @crypto_key_version end |
#description ⇒ String
Description 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.
Corresponds to the JSON property description
417 418 419 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 417 def description @description end |
#execution_history_level ⇒ String
Optional. Describes the level of the execution history feature to apply to
this workflow.
Corresponds to the JSON property executionHistoryLevel
423 424 425 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 423 def execution_history_level @execution_history_level end |
#labels ⇒ Hash<String,String>
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.
Corresponds to the JSON property labels
432 433 434 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 432 def labels @labels end |
#name ⇒ String
The 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.
Corresponds to the JSON property name
439 440 441 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 439 def name @name end |
#revision_create_time ⇒ String
Output only. The timestamp for the latest revision of the workflow's creation.
Corresponds to the JSON property revisionCreateTime
444 445 446 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 444 def revision_create_time @revision_create_time end |
#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 properties of a workflow: -
Service account - Workflow code to be executed 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.
Corresponds to the JSON property revisionId
453 454 455 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 453 def revision_id @revision_id end |
#service_account ⇒ String
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
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.
Corresponds to the JSON property serviceAccount
466 467 468 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 466 def service_account @service_account end |
#source_contents ⇒ String
Workflow code to be executed. The size limit is 128KB.
Corresponds to the JSON property sourceContents
471 472 473 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 471 def source_contents @source_contents end |
#state ⇒ String
Output only. State of the workflow deployment.
Corresponds to the JSON property state
476 477 478 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 476 def state @state end |
#state_error ⇒ Google::Apis::WorkflowsV1::StateError
Describes an error related to the current state of the workflow.
Corresponds to the JSON property stateError
481 482 483 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 481 def state_error @state_error end |
#update_time ⇒ String
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.
Corresponds to the JSON property updateTime
487 488 489 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 487 def update_time @update_time end |
#user_env_vars ⇒ Hash<String,String>
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".
Corresponds to the JSON property userEnvVars
494 495 496 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 494 def user_env_vars @user_env_vars end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 |
# File 'lib/google/apis/workflows_v1/classes.rb', line 501 def update!(**args) @all_kms_keys = args[:all_kms_keys] if args.key?(:all_kms_keys) @all_kms_keys_versions = args[:all_kms_keys_versions] if args.key?(:all_kms_keys_versions) @call_log_level = args[:call_log_level] if args.key?(:call_log_level) @create_time = args[:create_time] if args.key?(:create_time) @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name) @crypto_key_version = args[:crypto_key_version] if args.key?(:crypto_key_version) @description = args[:description] if args.key?(:description) @execution_history_level = args[:execution_history_level] if args.key?(:execution_history_level) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @revision_create_time = args[:revision_create_time] if args.key?(:revision_create_time) @revision_id = args[:revision_id] if args.key?(:revision_id) @service_account = args[:service_account] if args.key?(:service_account) @source_contents = args[:source_contents] if args.key?(:source_contents) @state = args[:state] if args.key?(:state) @state_error = args[:state_error] if args.key?(:state_error) @update_time = args[:update_time] if args.key?(:update_time) @user_env_vars = args[:user_env_vars] if args.key?(:user_env_vars) end |