Class: Google::Apis::WorkstationsV1beta::Container

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Container

Returns a new instance of Container.



246
247
248
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 246

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#argsArray<String>

Arguments passed to the entrypoint. Corresponds to the JSON property args

Returns:

  • (Array<String>)


218
219
220
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 218

def args
  @args
end

#commandArray<String>

If set, overrides the default ENTRYPOINT specified by the image. Corresponds to the JSON property command

Returns:

  • (Array<String>)


223
224
225
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 223

def command
  @command
end

#envHash<String,String>

Environment variables passed to the container's entrypoint. Corresponds to the JSON property env

Returns:

  • (Hash<String,String>)


228
229
230
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 228

def env
  @env
end

#imageString

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

Returns:

  • (String)


234
235
236
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 234

def image
  @image
end

#run_as_userFixnum

If set, overrides the USER specified in the image with the given uid. Corresponds to the JSON property runAsUser

Returns:

  • (Fixnum)


239
240
241
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 239

def run_as_user
  @run_as_user
end

#working_dirString

If set, overrides the default DIR specified by the image. Corresponds to the JSON property workingDir

Returns:

  • (String)


244
245
246
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 244

def working_dir
  @working_dir
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



251
252
253
254
255
256
257
258
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 251

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