Class: DockerEngineRuby::Models::TaskSpec::Network

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



1113
# File 'sig/docker_engine_ruby/models/task_spec.rbs', line 1113

def initialize: (

Instance Attribute Details

#aliases ⇒ Array<String>?

Discoverable alternate names for the service on this network.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


1084
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 1084

optional :aliases, DockerEngineRuby::Internal::Type::ArrayOf[String], api_name: :Aliases

#driver_opts ⇒ Hash{Symbol=>String}?

Driver attachment options for the network target.

Parameters:

  • (::Hash[Symbol, String])

Returns:

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


1090
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 1090

optional :driver_opts, DockerEngineRuby::Internal::Type::HashOf[String], api_name: :DriverOpts

#target ⇒ String?

The target network for attachment. Must be a network name or ID.

Parameters:

  • (String)

Returns:

  • (String, nil)


1096
# File 'lib/docker_engine_ruby/models/task_spec.rb', line 1096

optional :target, String, api_name: :Target

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


1119
# File 'sig/docker_engine_ruby/models/task_spec.rbs', line 1119

def to_hash: -> {