Class: DockerEngineRuby::Models::TaskSpec::ContainerSpec::Config

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/task_spec.rb

Defined Under Namespace

Classes: File

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(config_id: nil, config_name: nil, file: nil, runtime: nil) ⇒ Object

Parameters:



360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 360

class Config < DockerEngineRuby::Internal::Type::BaseModel
  # @!attribute config_id
  #
  #   @return [String, nil]
  optional :config_id, String, api_name: :ConfigID

  # @!attribute config_name
  #
  #   @return [String, nil]
  optional :config_name, String, api_name: :ConfigName

  # @!attribute file
  #
  #   @return [DockerEngineRuby::Models::TaskSpec::ContainerSpec::Config::File, nil]
  optional :file, -> { DockerEngineRuby::TaskSpec::ContainerSpec::Config::File }, api_name: :File

  # @!attribute runtime
  #
  #   @return [Hash{Symbol=>Object}, nil]
  optional :runtime,
           DockerEngineRuby::Internal::Type::HashOf[DockerEngineRuby::Internal::Type::Unknown],
           api_name: :Runtime

  # @!method initialize(config_id: nil, config_name: nil, file: nil, runtime: nil)
  #   @param config_id [String]
  #   @param config_name [String]
  #   @param file [DockerEngineRuby::Models::TaskSpec::ContainerSpec::Config::File]
  #   @param runtime [Hash{Symbol=>Object}]

  # @see DockerEngineRuby::Models::TaskSpec::ContainerSpec::Config#file
  class File < DockerEngineRuby::Internal::Type::BaseModel
    # @!attribute gid
    #
    #   @return [String, nil]
    optional :gid, String, api_name: :GID

    # @!attribute mode
    #
    #   @return [Integer, nil]
    optional :mode, Integer, api_name: :Mode

    # @!attribute name
    #
    #   @return [String, nil]
    optional :name, String, api_name: :Name

    # @!attribute uid
    #
    #   @return [String, nil]
    optional :uid, String, api_name: :UID

    # @!method initialize(gid: nil, mode: nil, name: nil, uid: nil)
    #   @param gid [String]
    #   @param mode [Integer]
    #   @param name [String]
    #   @param uid [String]
  end
end

Instance Attribute Details

#config_idString?

Returns:

  • (String, nil)


364
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 364

optional :config_id, String, api_name: :ConfigID

#config_nameString?

Returns:

  • (String, nil)


369
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 369

optional :config_name, String, api_name: :ConfigName

#fileDockerEngineRuby::Models::TaskSpec::ContainerSpec::Config::File?



374
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 374

optional :file, -> { DockerEngineRuby::TaskSpec::ContainerSpec::Config::File }, api_name: :File

#runtimeHash{Symbol=>Object}?

Returns:

  • (Hash{Symbol=>Object}, nil)


379
380
381
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 379

optional :runtime,
DockerEngineRuby::Internal::Type::HashOf[DockerEngineRuby::Internal::Type::Unknown],
api_name: :Runtime