Class: DockerEngineRuby::Models::Privilege

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/docker_engine_ruby/models/privilege.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(description: nil, name: nil, value: nil) ⇒ Object

Describes a permission the user has to accept upon installing the plugin.

Parameters:

  • description (String) (defaults to: nil)
  • name (String) (defaults to: nil)
  • value (Array<String>) (defaults to: nil)


# File 'lib/docker_engine_ruby/models/privilege.rb', line 21


Instance Attribute Details

#descriptionString?

Returns:

  • (String, nil)


9
# File 'lib/docker_engine_ruby/models/privilege.rb', line 9

optional :description, String, api_name: :Description

#nameString?

Returns:

  • (String, nil)


14
# File 'lib/docker_engine_ruby/models/privilege.rb', line 14

optional :name, String, api_name: :Name

#valueArray<String>?

Returns:

  • (Array<String>, nil)


19
# File 'lib/docker_engine_ruby/models/privilege.rb', line 19

optional :value, DockerEngineRuby::Internal::Type::ArrayOf[String], api_name: :Value