Class: DockerEngineRuby::Models::Task::AssignedGenericResource::NamedResourceSpec

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

Overview

See Also:

  • DockerEngineRuby::Models::Task::AssignedGenericResource#named_resource_spec

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

Returns a new instance of NamedResourceSpec.

Parameters:

  • kind: (String)
  • value: (String)


178
# File 'sig/docker_engine_ruby/models/task.rbs', line 178

def initialize: (?kind: String, ?value: String) -> void

Instance Attribute Details

#kind ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


179
# File 'lib/docker_engine_ruby/models/task.rb', line 179

optional :kind, String, api_name: :Kind

#value ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


184
# File 'lib/docker_engine_ruby/models/task.rb', line 184

optional :value, String, api_name: :Value

Instance Method Details

#to_hash ⇒ { kind: String, value: String }

Returns:

  • ({ kind: String, value: String })


180
# File 'sig/docker_engine_ruby/models/task.rbs', line 180

def to_hash: -> { kind: String, value: String }