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

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

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(constraints: nil, max_replicas: nil, platforms: nil, preferences: nil) ⇒ Object

Parameters:



1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 1144

class Platform < DockerEngineRuby::Internal::Type::BaseModel
  # @!attribute architecture
  #   Architecture represents the hardware architecture (for example, `x86_64`).
  #
  #   @return [String, nil]
  optional :architecture, String, api_name: :Architecture

  # @!attribute os
  #   OS represents the Operating System (for example, `linux` or `windows`).
  #
  #   @return [String, nil]
  optional :os, String, api_name: :OS

  # @!method initialize(architecture: nil, os: nil)
  #   Some parameter documentations has been truncated, see
  #   {DockerEngineRuby::Models::TaskSpec::Placement::Platform} for more details.
  #
  #   Platform represents the platform (Arch/OS).
  #
  #   @param architecture [String] Architecture represents the hardware architecture (for example,
  #
  #   @param os [String] OS represents the Operating System (for example, `linux` or `windows`).
end

Instance Attribute Details

#architectureString?

Architecture represents the hardware architecture (for example, x86_64).

Returns:

  • (String, nil)


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

optional :architecture, String, api_name: :Architecture

#osString?

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

Returns:

  • (String, nil)


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

optional :os, String, api_name: :OS