Class: Google::Apis::CloudbuildV2::EmbeddedTask
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::EmbeddedTask
- 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
-
#annotations ⇒ Hash<String,String>
User annotations.
-
#task_spec ⇒ Google::Apis::CloudbuildV2::TaskSpec
TaskSpec contains the Spec to instantiate a TaskRun.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmbeddedTask
constructor
A new instance of EmbeddedTask.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#annotations ⇒ Hash<String,String>
User annotations. See https://google.aip.dev/128#annotations
Corresponds to the JSON property annotations
557 558 559 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 557 def annotations @annotations end |
#task_spec ⇒ Google::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 |