Class: DockerEngineRuby::Models::TaskSpec::Resources::Reservations::GenericResource::NamedResourceSpec

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

Overview

See Also:

  • DockerEngineRuby::Models::TaskSpec::Resources::Reservations::GenericResource#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)


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

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

Instance Attribute Details

#kind ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :kind, String, api_name: :Kind

#value ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :value, String, api_name: :Value

Instance Method Details

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

Returns:

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


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

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