Class: Google::Apis::CloudbuildV2::Step
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::Step
- 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
Step embeds the Container type, which allows it to include fields not provided by Container.
Instance Attribute Summary collapse
-
#args ⇒ Array<String>
Arguments to the entrypoint.
-
#command ⇒ Array<String>
Entrypoint array.
-
#env ⇒ Array<Google::Apis::CloudbuildV2::EnvVar>
List of environment variables to set in the container.
-
#image ⇒ String
Docker image name.
-
#name ⇒ String
Name of the container specified as a DNS_LABEL.
-
#script ⇒ String
The contents of an executable file to execute.
-
#security_context ⇒ Google::Apis::CloudbuildV2::SecurityContext
Security options the container should be run with.
-
#timeout ⇒ String
Time after which the Step times out.
-
#volume_mounts ⇒ Array<Google::Apis::CloudbuildV2::VolumeMount>
Pod volumes to mount into the container's filesystem.
-
#working_dir ⇒ String
Container's working directory.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Step
constructor
A new instance of Step.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Step
Returns a new instance of Step.
2608 2609 2610 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2608 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Arguments to the entrypoint.
Corresponds to the JSON property args
2561 2562 2563 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2561 def args @args end |
#command ⇒ Array<String>
Entrypoint array.
Corresponds to the JSON property command
2566 2567 2568 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2566 def command @command end |
#env ⇒ Array<Google::Apis::CloudbuildV2::EnvVar>
List of environment variables to set in the container.
Corresponds to the JSON property env
2571 2572 2573 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2571 def env @env end |
#image ⇒ String
Docker image name.
Corresponds to the JSON property image
2576 2577 2578 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2576 def image @image end |
#name ⇒ String
Name of the container specified as a DNS_LABEL.
Corresponds to the JSON property name
2581 2582 2583 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2581 def name @name end |
#script ⇒ String
The contents of an executable file to execute.
Corresponds to the JSON property script
2586 2587 2588 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2586 def script @script end |
#security_context ⇒ Google::Apis::CloudbuildV2::SecurityContext
Security options the container should be run with.
Corresponds to the JSON property securityContext
2591 2592 2593 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2591 def security_context @security_context end |
#timeout ⇒ String
Time after which the Step times out. Defaults to never.
Corresponds to the JSON property timeout
2596 2597 2598 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2596 def timeout @timeout end |
#volume_mounts ⇒ Array<Google::Apis::CloudbuildV2::VolumeMount>
Pod volumes to mount into the container's filesystem.
Corresponds to the JSON property volumeMounts
2601 2602 2603 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2601 def volume_mounts @volume_mounts end |
#working_dir ⇒ String
Container's working directory.
Corresponds to the JSON property workingDir
2606 2607 2608 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2606 def working_dir @working_dir end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2613 def update!(**args) @args = args[:args] if args.key?(:args) @command = args[:command] if args.key?(:command) @env = args[:env] if args.key?(:env) @image = args[:image] if args.key?(:image) @name = args[:name] if args.key?(:name) @script = args[:script] if args.key?(:script) @security_context = args[:security_context] if args.key?(:security_context) @timeout = args[:timeout] if args.key?(:timeout) @volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts) @working_dir = args[:working_dir] if args.key?(:working_dir) end |