Class: DockerEngineRuby::Models::Plugin::Config::Interface

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

Overview

See Also:

  • DockerEngineRuby::Models::Plugin::Config#interface

Defined Under Namespace

Modules: ProtocolScheme

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(socket:, types:, protocol_scheme: nil) ⇒ Object

Parameters:



# File 'lib/docker_engine_ruby/models/plugin.rb', line 236

Instance Attribute Details

#protocol_scheme ⇒ Symbol, ...



232
233
234
# File 'lib/docker_engine_ruby/models/plugin.rb', line 232

optional :protocol_scheme,
enum: -> { DockerEngineRuby::Plugin::Config::Interface::ProtocolScheme },
api_name: :ProtocolScheme

#socket ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


222
# File 'lib/docker_engine_ruby/models/plugin.rb', line 222

required :socket, String, api_name: :Socket

#types ⇒ Array<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


227
# File 'lib/docker_engine_ruby/models/plugin.rb', line 227

required :types, DockerEngineRuby::Internal::Type::ArrayOf[String], api_name: :Types

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


230
# File 'sig/docker_engine_ruby/models/plugin.rbs', line 230

def to_hash: -> {