Class: DockerEngineRuby::Models::Network::Peer

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/network.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(ip: nil, name: nil) ⇒ Object

represents one peer of an overlay network.

Parameters:

  • ip (String) (defaults to: nil)

    IP-address of the peer-node in the Swarm cluster.

  • name (String) (defaults to: nil)

    ID of the peer-node in the Swarm cluster.



# File 'lib/docker_engine_ruby/models/network.rb', line 247

Instance Attribute Details

#ipString?

IP-address of the peer-node in the Swarm cluster.

Returns:

  • (String, nil)


239
# File 'lib/docker_engine_ruby/models/network.rb', line 239

optional :ip, String, api_name: :IP

#nameString?

ID of the peer-node in the Swarm cluster.

Returns:

  • (String, nil)


245
# File 'lib/docker_engine_ruby/models/network.rb', line 245

optional :name, String, api_name: :Name