Class: DockerEngineRuby::Models::TaskSpec::Placement

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

Overview

See Also:

Defined Under Namespace

Classes: Platform, Preference

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(architecture: nil, os: nil) ⇒ Object

Some parameter documentations has been truncated, see Platform for more details.

Platform represents the platform (Arch/OS).

Parameters:

  • architecture (String) (defaults to: nil)

    Architecture represents the hardware architecture (for example,

  • os (String) (defaults to: nil)

    OS represents the Operating System (for example, linux or windows).



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


Instance Attribute Details

#constraintsArray<String>?

Returns:

  • (Array<String>, nil)


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

optional :constraints, DockerEngineRuby::Internal::Type::ArrayOf[String], api_name: :Constraints

#max_replicasInteger?

Returns:

  • (Integer, nil)


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

optional :max_replicas, Integer, api_name: :MaxReplicas

#platformsArray<DockerEngineRuby::Models::TaskSpec::Placement::Platform>?



1123
1124
1125
1126
1127
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 1123

optional :platforms,
-> {
  DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::TaskSpec::Placement::Platform]
},
api_name: :Platforms

#preferencesArray<DockerEngineRuby::Models::TaskSpec::Placement::Preference>?



1132
1133
1134
1135
1136
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 1132

optional :preferences,
-> {
  DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::TaskSpec::Placement::Preference]
},
api_name: :Preferences