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.
-
#readiness_probe ⇒ Google::Apis::CloudbuildV2::Probe
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
-
#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.
2259 2260 2261 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2259 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Arguments to the entrypoint.
Corresponds to the JSON property args
2211 2212 2213 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2211 def args @args end |
#command ⇒ Array<String>
Entrypoint array.
Corresponds to the JSON property command
2216 2217 2218 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2216 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
2221 2222 2223 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2221 def env @env end |
#image ⇒ String
Docker image name.
Corresponds to the JSON property image
2226 2227 2228 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2226 def image @image end |
#name ⇒ String
Name of the Sidecar.
Corresponds to the JSON property name
2231 2232 2233 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2231 def name @name end |
#readiness_probe ⇒ Google::Apis::CloudbuildV2::Probe
Probe describes a health check to be performed against a container to
determine whether it is alive or ready to receive traffic.
Corresponds to the JSON property readinessProbe
2237 2238 2239 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2237 def readiness_probe @readiness_probe end |
#script ⇒ String
The contents of an executable file to execute.
Corresponds to the JSON property script
2242 2243 2244 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2242 def script @script end |
#security_context ⇒ Google::Apis::CloudbuildV2::SecurityContext
Security options the container should be run with.
Corresponds to the JSON property securityContext
2247 2248 2249 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2247 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
2252 2253 2254 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2252 def volume_mounts @volume_mounts end |
#working_dir ⇒ String
Container's working directory.
Corresponds to the JSON property workingDir
2257 2258 2259 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2257 def working_dir @working_dir end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2264 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) @readiness_probe = args[:readiness_probe] if args.key?(:readiness_probe) @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 |