Class: Google::Apis::CloudbuildV2::EmbeddedTask

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb

Overview

EmbeddedTask defines a Task that is embedded in a Pipeline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmbeddedTask

Returns a new instance of EmbeddedTask.



448
449
450
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 448

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotationsHash<String,String>

User annotations. See https://google.aip.dev/128#annotations Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


441
442
443
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 441

def annotations
  @annotations
end

#task_specGoogle::Apis::CloudbuildV2::TaskSpec

TaskSpec contains the Spec to instantiate a TaskRun. Corresponds to the JSON property taskSpec



446
447
448
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 446

def task_spec
  @task_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



453
454
455
456
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 453

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @task_spec = args[:task_spec] if args.key?(:task_spec)
end