Class: DockerEngineRuby::Models::NetworkCreateParams::Ipam

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

Defined Under Namespace

Classes: Config

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



147
# File 'sig/docker_engine_ruby/models/network_create_params.rbs', line 147

def initialize: (

Instance Attribute Details

#config ⇒ Array<DockerEngineRuby::Models::NetworkCreateParams::Ipam::Config>?

List of IPAM configuration options, specified as a map:

{"Subnet": <CIDR>, "IPRange": <CIDR>, "Gateway": <IP address>, "AuxAddress": <device_name:IP address>}


135
136
137
138
139
# File 'lib/docker_engine_ruby/models/network_create_params.rb', line 135

optional :config,
-> {
  DockerEngineRuby::Internal::Type::ArrayOf[DockerEngineRuby::NetworkCreateParams::Ipam::Config]
},
api_name: :Config

#driver ⇒ String?

Name of the IPAM driver to use.

Parameters:

  • (String)

Returns:

  • (String, nil)


145
# File 'lib/docker_engine_ruby/models/network_create_params.rb', line 145

optional :driver, String, api_name: :Driver

#options ⇒ Hash{Symbol=>String}?

Driver-specific options, specified as a map.

Parameters:

  • (::Hash[Symbol, String])

Returns:

  • (Hash{Symbol=>String}, nil)


151
# File 'lib/docker_engine_ruby/models/network_create_params.rb', line 151

optional :options, DockerEngineRuby::Internal::Type::HashOf[String], api_name: :Options

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


153
# File 'sig/docker_engine_ruby/models/network_create_params.rbs', line 153

def to_hash: -> {