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.
-
#params ⇒ Array<Google::Apis::CloudbuildV2::Param>
Optional.
-
#ref ⇒ Google::Apis::CloudbuildV2::StepRef
A reference to a remote Step, i.e.
-
#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.
2738 2739 2740 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2738 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Arguments to the entrypoint.
Corresponds to the JSON property args
2681 2682 2683 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2681 def args @args end |
#command ⇒ Array<String>
Entrypoint array.
Corresponds to the JSON property command
2686 2687 2688 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2686 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
2691 2692 2693 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2691 def env @env end |
#image ⇒ String
Docker image name.
Corresponds to the JSON property image
2696 2697 2698 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2696 def image @image end |
#name ⇒ String
Name of the container specified as a DNS_LABEL.
Corresponds to the JSON property name
2701 2702 2703 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2701 def name @name end |
#params ⇒ Array<Google::Apis::CloudbuildV2::Param>
Optional. Optional parameters passed to the StepAction.
Corresponds to the JSON property params
2706 2707 2708 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2706 def params @params end |
#ref ⇒ Google::Apis::CloudbuildV2::StepRef
A reference to a remote Step, i.e. a StepAction.
Corresponds to the JSON property ref
2711 2712 2713 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2711 def ref @ref end |
#script ⇒ String
The contents of an executable file to execute.
Corresponds to the JSON property script
2716 2717 2718 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2716 def script @script end |
#security_context ⇒ Google::Apis::CloudbuildV2::SecurityContext
Security options the container should be run with.
Corresponds to the JSON property securityContext
2721 2722 2723 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2721 def security_context @security_context end |
#timeout ⇒ String
Time after which the Step times out. Defaults to never.
Corresponds to the JSON property timeout
2726 2727 2728 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2726 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
2731 2732 2733 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2731 def volume_mounts @volume_mounts end |
#working_dir ⇒ String
Container's working directory.
Corresponds to the JSON property workingDir
2736 2737 2738 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2736 def working_dir @working_dir end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2743 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) @params = args[:params] if args.key?(:params) @ref = args[:ref] if args.key?(:ref) @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 |