Class: Google::Apis::CloudbuildV2::Sidecar
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::Sidecar
- 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
Sidecars run alongside the Task's step containers.
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 Sidecar.
-
#script ⇒ String
The contents of an executable file to execute.
-
#security_context ⇒ Google::Apis::CloudbuildV2::SecurityContext
Security options the container should be run with.
-
#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) ⇒ Sidecar
constructor
A new instance of Sidecar.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Sidecar
Returns a new instance of Sidecar.
2098 2099 2100 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2098 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Arguments to the entrypoint.
Corresponds to the JSON property args
2056 2057 2058 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2056 def args @args end |
#command ⇒ Array<String>
Entrypoint array.
Corresponds to the JSON property command
2061 2062 2063 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2061 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
2066 2067 2068 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2066 def env @env end |
#image ⇒ String
Docker image name.
Corresponds to the JSON property image
2071 2072 2073 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2071 def image @image end |
#name ⇒ String
Name of the Sidecar.
Corresponds to the JSON property name
2076 2077 2078 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2076 def name @name end |
#script ⇒ String
The contents of an executable file to execute.
Corresponds to the JSON property script
2081 2082 2083 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2081 def script @script end |
#security_context ⇒ Google::Apis::CloudbuildV2::SecurityContext
Security options the container should be run with.
Corresponds to the JSON property securityContext
2086 2087 2088 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2086 def security_context @security_context end |
#volume_mounts ⇒ Array<Google::Apis::CloudbuildV2::VolumeMount>
Pod volumes to mount into the container's filesystem.
Corresponds to the JSON property volumeMounts
2091 2092 2093 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2091 def volume_mounts @volume_mounts end |
#working_dir ⇒ String
Container's working directory.
Corresponds to the JSON property workingDir
2096 2097 2098 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2096 def working_dir @working_dir end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2103 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) @volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts) @working_dir = args[:working_dir] if args.key?(:working_dir) end |