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.
448 449 450 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 448 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
441 442 443 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 441 def annotations @annotations end |
#task_spec ⇒ Google::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 |