Class: DockerEngineRuby::Models::NetworkSummary::Peer

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

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) ⇒ Peer

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.

  • ip: (String) (defaults to: nil)
  • name: (String) (defaults to: nil)


# File 'lib/docker_engine_ruby/models/network_summary.rb', line 251

Instance Attribute Details

#ip ⇒ String?

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

Parameters:

  • (String)

Returns:

  • (String, nil)


243
# File 'lib/docker_engine_ruby/models/network_summary.rb', line 243

optional :ip, String, api_name: :IP

#name ⇒ String?

ID of the peer-node in the Swarm cluster.

Parameters:

  • (String)

Returns:

  • (String, nil)


249
# File 'lib/docker_engine_ruby/models/network_summary.rb', line 249

optional :name, String, api_name: :Name

Instance Method Details

#to_hash ⇒ { ip: String, name: String }

Returns:

  • ({ ip: String, name: String })


234
# File 'sig/docker_engine_ruby/models/network_summary.rbs', line 234

def to_hash: -> { ip: String, name: String }