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.



564
565
566
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 564

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>)


557
558
559
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 557

def annotations
  @annotations
end

#task_specGoogle::Apis::CloudbuildV2::TaskSpec

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



562
563
564
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 562

def task_spec
  @task_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



569
570
571
572
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 569

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