Class: Google::Apis::CloudbuildV2::StepTemplate

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

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

Constructor Details

#initialize(**args) ⇒ StepTemplate

Returns a new instance of StepTemplate.



2439
2440
2441
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2439

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#envArray<Google::Apis::CloudbuildV2::EnvVar>

Optional. List of environment variables to set in the Step. Cannot be updated. Corresponds to the JSON property env



2432
2433
2434
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2432

def env
  @env
end

#volume_mountsArray<Google::Apis::CloudbuildV2::VolumeMount>

Optional. Pod volumes to mount into the container's filesystem. Corresponds to the JSON property volumeMounts



2437
2438
2439
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2437

def volume_mounts
  @volume_mounts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2444
2445
2446
2447
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2444

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