Class: DockerEngineAPI::Models::Node::Description::Resources
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DockerEngineAPI::Models::Node::Description::Resources
- Defined in:
- lib/docker_engine_api/models/node.rb
Overview
Defined Under Namespace
Classes: GenericResource
Instance Attribute Summary collapse
-
#generic_resources ⇒ Array<DockerEngineAPI::Models::Node::Description::Resources::GenericResource>?
User-defined resources can be either Integer resources (e.g, ‘SSD=3`) or String resources (e.g, `GPU=UUID1`).
- #memory_bytes ⇒ Integer?
- #nano_cpus ⇒ Integer?
Method Summary
Methods inherited from Internal::Type::BaseModel
#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from DockerEngineAPI::Internal::Type::BaseModel
Instance Attribute Details
#generic_resources ⇒ Array<DockerEngineAPI::Models::Node::Description::Resources::GenericResource>?
User-defined resources can be either Integer resources (e.g, ‘SSD=3`) or String resources (e.g, `GPU=UUID1`).
219 220 221 222 223 |
# File 'lib/docker_engine_api/models/node.rb', line 219 optional :generic_resources, -> { DockerEngineAPI::Internal::Type::ArrayOf[DockerEngineAPI::Node::Description::Resources::GenericResource] }, api_name: :GenericResources |
#memory_bytes ⇒ Integer?
228 |
# File 'lib/docker_engine_api/models/node.rb', line 228 optional :memory_bytes, Integer, api_name: :MemoryBytes |
#nano_cpus ⇒ Integer?
233 |
# File 'lib/docker_engine_api/models/node.rb', line 233 optional :nano_cpus, Integer, api_name: :NanoCPUs |