Class: Google::Apis::WorkstationsV1beta::Container
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1beta::Container
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workstations_v1beta/classes.rb,
lib/google/apis/workstations_v1beta/representations.rb,
lib/google/apis/workstations_v1beta/representations.rb
Overview
A Docker container.
Instance Attribute Summary collapse
-
#args ⇒ Array<String>
Arguments passed to the entrypoint.
-
#command ⇒ Array<String>
If set, overrides the default ENTRYPOINT specified by the image.
-
#env ⇒ Hash<String,String>
Environment variables passed to the container.
-
#image ⇒ String
Docker image defining the container.
-
#run_as_user ⇒ Fixnum
If set, overrides the USER specified in the image with the given uid.
-
#working_dir ⇒ String
If set, overrides the default DIR specified by the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Container
constructor
A new instance of Container.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Container
Returns a new instance of Container.
220 221 222 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Arguments passed to the entrypoint.
Corresponds to the JSON property args
192 193 194 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 192 def args @args end |
#command ⇒ Array<String>
If set, overrides the default ENTRYPOINT specified by the image.
Corresponds to the JSON property command
197 198 199 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 197 def command @command end |
#env ⇒ Hash<String,String>
Environment variables passed to the container.
Corresponds to the JSON property env
202 203 204 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 202 def env @env end |
#image ⇒ String
Docker image defining the container. This image must be accessible by the
service account specified in the workstation configuration.
Corresponds to the JSON property image
208 209 210 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 208 def image @image end |
#run_as_user ⇒ Fixnum
If set, overrides the USER specified in the image with the given uid.
Corresponds to the JSON property runAsUser
213 214 215 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 213 def run_as_user @run_as_user end |
#working_dir ⇒ String
If set, overrides the default DIR specified by the image.
Corresponds to the JSON property workingDir
218 219 220 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 218 def working_dir @working_dir end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
225 226 227 228 229 230 231 232 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 225 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) @run_as_user = args[:run_as_user] if args.key?(:run_as_user) @working_dir = args[:working_dir] if args.key?(:working_dir) end |