Class: DockerEngineRuby::Models::NetworkCreateParams::ConfigFrom

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/network_create_params.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(name:, attachable: nil, config_from: nil, config_only: nil, driver: nil, enable_i_pv4: nil, enable_i_pv6: nil, ingress: nil, internal: nil, ipam: nil, labels: nil, options: nil, scope: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see DockerEngineRuby::Models::NetworkCreateParams for more details.

Parameters:

  • name (String)
  • attachable (Boolean) (defaults to: nil)
  • config_from (DockerEngineRuby::Models::NetworkCreateParams::ConfigFrom) (defaults to: nil)

    The config-only network source to provide the configuration for

  • config_only (Boolean) (defaults to: nil)
  • driver (String) (defaults to: nil)
  • enable_i_pv4 (Boolean) (defaults to: nil)
  • enable_i_pv6 (Boolean) (defaults to: nil)
  • ingress (Boolean) (defaults to: nil)
  • internal (Boolean) (defaults to: nil)
  • ipam (DockerEngineRuby::Models::NetworkCreateParams::Ipam) (defaults to: nil)
  • labels (Hash{Symbol=>String}) (defaults to: nil)
  • options (Hash{Symbol=>String}) (defaults to: nil)
  • scope (String) (defaults to: nil)
  • request_options (DockerEngineRuby::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/docker_engine_ruby/models/network_create_params.rb', line 108

class ConfigFrom < DockerEngineRuby::Internal::Type::BaseModel
  # @!attribute network
  #   The name of the config-only network that provides the network's configuration.
  #   The specified network must be an existing config-only network. Only network
  #   names are allowed, not network IDs.
  #
  #   @return [String, nil]
  optional :network, String, api_name: :Network

  # @!method initialize(network: nil)
  #   Some parameter documentations has been truncated, see
  #   {DockerEngineRuby::Models::NetworkCreateParams::ConfigFrom} for more details.
  #
  #   The config-only network source to provide the configuration for this network.
  #
  #   @param network [String] The name of the config-only network that provides the network's
end

Instance Attribute Details

#networkString?

The name of the config-only network that provides the network’s configuration. The specified network must be an existing config-only network. Only network names are allowed, not network IDs.

Returns:

  • (String, nil)


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

optional :network, String, api_name: :Network