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.



426
427
428
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 426

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


419
420
421
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 419

def annotations
  @annotations
end

#task_specGoogle::Apis::CloudbuildV2::TaskSpec

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



424
425
426
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 424

def task_spec
  @task_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



431
432
433
434
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 431

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