Class: DockerEngineRuby::Models::Node::Status

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

Overview

See Also:

Defined Under Namespace

Modules: State

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(addr: nil, message: nil, state: nil) ⇒ Object

NodeStatus represents the status of a node.

It provides the current status of the node, as seen by the manager.

Parameters:

  • addr (String) (defaults to: nil)

    IP address of the node.

  • message (String) (defaults to: nil)
  • state (Symbol, DockerEngineRuby::Models::Node::Status::State) (defaults to: nil)

    NodeState represents the state of a node.



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


Instance Attribute Details

#addrString?

IP address of the node.

Returns:

  • (String, nil)


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

optional :addr, String, api_name: :Addr

#messageString?

Returns:

  • (String, nil)


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

optional :message, String, api_name: :Message

#stateSymbol, ...

NodeState represents the state of a node.



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

optional :state, enum: -> { DockerEngineRuby::Node::Status::State }, api_name: :State