Class: DockerEngineAPI::Models::Plugin::Settings::Device

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_api/models/plugin.rb

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(args:, devices:, env:, mounts:) ⇒ Object

user-configurable settings for the plugin.

Parameters:



456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
# File 'lib/docker_engine_api/models/plugin.rb', line 456

class Device < DockerEngineAPI::Internal::Type::BaseModel
  # @!attribute description
  #
  #   @return [String]
  required :description, String, api_name: :Description

  # @!attribute name
  #
  #   @return [String]
  required :name, String, api_name: :Name

  # @!attribute path
  #
  #   @return [String]
  required :path, String, api_name: :Path

  # @!attribute settable
  #
  #   @return [Array<String>]
  required :settable, DockerEngineAPI::Internal::Type::ArrayOf[String], api_name: :Settable

  # @!method initialize(description:, name:, path:, settable:)
  #   @param description [String]
  #   @param name [String]
  #   @param path [String]
  #   @param settable [Array<String>]
end

Instance Attribute Details

#descriptionString

Returns:

  • (String)


460
# File 'lib/docker_engine_api/models/plugin.rb', line 460

required :description, String, api_name: :Description

#nameString

Returns:

  • (String)


465
# File 'lib/docker_engine_api/models/plugin.rb', line 465

required :name, String, api_name: :Name

#pathString

Returns:

  • (String)


470
# File 'lib/docker_engine_api/models/plugin.rb', line 470

required :path, String, api_name: :Path

#settableArray<String>

Returns:

  • (Array<String>)


475
# File 'lib/docker_engine_api/models/plugin.rb', line 475

required :settable, DockerEngineAPI::Internal::Type::ArrayOf[String], api_name: :Settable