Class: DockerEngineRuby::Models::Container::NetworkSettings::Port

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/container.rb,
sig/docker_engine_ruby/models/container.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 ⇒ Port

Returns a new instance of Port.

Parameters:

  • host_ip: (String)
  • host_port: (String)


1719
# File 'sig/docker_engine_ruby/models/container.rbs', line 1719

def initialize: (?host_ip: String, ?host_port: String) -> void

Instance Attribute Details

#host_ip ⇒ String?

Host IP address that the container's port is mapped to.

Parameters:

  • (String)

Returns:

  • (String, nil)


2128
# File 'lib/docker_engine_ruby/models/container.rb', line 2128

optional :host_ip, String, api_name: :HostIp

#host_port ⇒ String?

Host port number that the container's port is mapped to.

Parameters:

  • (String)

Returns:

  • (String, nil)


2134
# File 'lib/docker_engine_ruby/models/container.rb', line 2134

optional :host_port, String, api_name: :HostPort

Instance Method Details

#to_hash ⇒ { host_ip: String, host_port: String }

Returns:

  • ({ host_ip: String, host_port: String })


1721
# File 'sig/docker_engine_ruby/models/container.rbs', line 1721

def to_hash: -> { host_ip: String, host_port: String }