Class: Google::Apis::WorkflowsV1beta::Workflow
- Inherits:
-
Object
- Object
- Google::Apis::WorkflowsV1beta::Workflow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workflows_v1beta/classes.rb,
lib/google/apis/workflows_v1beta/representations.rb,
lib/google/apis/workflows_v1beta/representations.rb
Overview
Workflow program to be executed by Workflows.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Description of the workflow provided by the user.
-
#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.
-
#update_time ⇒ String
Output only.
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.
387 388 389 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 387 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp of when the workflow was created.
Corresponds to the JSON property createTime
322 323 324 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 322 def create_time @create_time end |
#description ⇒ String
Description of the workflow provided by the user. Must be at most 1000 unicode
characters long.
Corresponds to the JSON property description
328 329 330 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 328 def description @description 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.
Corresponds to the JSON property labels
336 337 338 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 336 def labels @labels end |
#name ⇒ String
The resource name of the workflow. Format: projects/project/locations/
location/workflows/workflow
Corresponds to the JSON property name
342 343 344 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 342 def name @name end |
#revision_create_time ⇒ String
Output only. The timestamp that the latest revision of the workflow was
created.
Corresponds to the JSON property revisionCreateTime
348 349 350 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 348 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 6 characters define the zero-padded revision ordinal number.
They are followed by a hyphen and 3 hexadecimal random characters.
Corresponds to the JSON property revisionId
357 358 359 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 357 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
370 371 372 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 370 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
375 376 377 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 375 def source_contents @source_contents end |
#state ⇒ String
Output only. State of the workflow deployment.
Corresponds to the JSON property state
380 381 382 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 380 def state @state end |
#update_time ⇒ String
Output only. The last update timestamp of the workflow.
Corresponds to the JSON property updateTime
385 386 387 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 385 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/google/apis/workflows_v1beta/classes.rb', line 392 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @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) @update_time = args[:update_time] if args.key?(:update_time) end |