Class: DockerEngineRuby::Models::SwarmUnlockKeyResponse

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

Overview

See Also:

  • DockerEngineRuby::Resources::Swarm#unlock_key

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(unlock_key: nil) ⇒ SwarmUnlockKeyResponse

Returns a new instance of SwarmUnlockKeyResponse.

Parameters:

  • unlock_key (String) (defaults to: nil)
  • unlock_key: (String) (defaults to: nil)


# File 'lib/docker_engine_ruby/models/swarm_unlock_key_response.rb', line 12

Instance Attribute Details

#unlock_key ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


10
# File 'lib/docker_engine_ruby/models/swarm_unlock_key_response.rb', line 10

optional :unlock_key, String, api_name: :UnlockKey

Instance Method Details

#to_hash ⇒ { unlock_key: String }

Returns:

  • ({ unlock_key: String })


12
# File 'sig/docker_engine_ruby/models/swarm_unlock_key_response.rbs', line 12

def to_hash: -> { unlock_key: String }