Class: DockerEngineRuby::Models::NodeSpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DockerEngineRuby::Models::NodeSpec
- Defined in:
- lib/docker_engine_ruby/models/node_spec.rb
Defined Under Namespace
Modules: Availability, Role
Instance Attribute Summary collapse
-
#availability ⇒ Symbol, ...
Availability of the node.
-
#labels ⇒ Hash{Symbol=>String}?
User-defined key/value metadata.
-
#name ⇒ String?
Name for the node.
-
#role ⇒ Symbol, ...
Role of the node.
Class Method 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(availability: nil, labels: nil, name: nil, role: nil) ⇒ Object
|
|
# File 'lib/docker_engine_ruby/models/node_spec.rb', line 30
|
Instance Attribute Details
#availability ⇒ Symbol, ...
Availability of the node.
10 |
# File 'lib/docker_engine_ruby/models/node_spec.rb', line 10 optional :availability, enum: -> { DockerEngineRuby::NodeSpec::Availability }, api_name: :Availability |
#labels ⇒ Hash{Symbol=>String}?
User-defined key/value metadata.
16 |
# File 'lib/docker_engine_ruby/models/node_spec.rb', line 16 optional :labels, DockerEngineRuby::Internal::Type::HashOf[String], api_name: :Labels |
#name ⇒ String?
Name for the node.
22 |
# File 'lib/docker_engine_ruby/models/node_spec.rb', line 22 optional :name, String, api_name: :Name |
#role ⇒ Symbol, ...
Role of the node.
28 |
# File 'lib/docker_engine_ruby/models/node_spec.rb', line 28 optional :role, enum: -> { DockerEngineRuby::NodeSpec::Role }, api_name: :Role |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/docker_engine_ruby/models/node_spec.rb', line 49
|