Class: DockerEngineRuby::Models::Node::Description::Resources

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/node.rb,
sig/docker_engine_ruby/models/node.rbs

Overview

See Also:

  • DockerEngineRuby::Models::Node::Description#resources

Defined Under Namespace

Classes: GenericResource

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 ⇒ Object



221
# File 'sig/docker_engine_ruby/models/node.rbs', line 221

def initialize: (

Instance Attribute Details

#generic_resources ⇒ Array<DockerEngineRuby::Models::Node::Description::Resources::GenericResource>?



214
215
216
217
218
# File 'lib/docker_engine_ruby/models/node.rb', line 214

optional :generic_resources,
-> {
  DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::Node::Description::Resources::GenericResource]
},
api_name: :GenericResources

#memory_bytes ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


223
# File 'lib/docker_engine_ruby/models/node.rb', line 223

optional :memory_bytes, Integer, api_name: :MemoryBytes

#nano_cpus ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


228
# File 'lib/docker_engine_ruby/models/node.rb', line 228

optional :nano_cpus, Integer, api_name: :NanoCPUs

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


227
# File 'sig/docker_engine_ruby/models/node.rbs', line 227

def to_hash: -> {