Class: Google::Apis::CloudbuildV2::StepTemplate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::StepTemplate
- 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
StepTemplate can be used as the basis for all step containers within the Task, so that the steps inherit settings on the base container.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ StepTemplate
constructor
A new instance of StepTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StepTemplate
Returns a new instance of StepTemplate.
2412 2413 2414 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2412 def initialize(**args) update!(**args) end |
Instance Attribute Details
#env ⇒ Array<Google::Apis::CloudbuildV2::EnvVar>
Optional. List of environment variables to set in the Step. Cannot be updated.
Corresponds to the JSON property env
2410 2411 2412 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2410 def env @env end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2417 2418 2419 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2417 def update!(**args) @env = args[:env] if args.key?(:env) end |