Class: DockerEngineRuby::Models::Container::HostConfig::PortBinding

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

Returns a new instance of PortBinding.

Parameters:

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


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

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)


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

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)


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

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 })


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

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