Class: DockerEngineRuby::Models::Image::RootFs

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

Overview

See Also:

  • DockerEngineRuby::Models::Image#root_fs

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(type:, layers: nil) ⇒ RootFs

Information about the image's RootFS, including the layer IDs.

Parameters:

  • type (String)
  • layers (Array<String>) (defaults to: nil)
  • type: (String)
  • layers: (::Array[String]) (defaults to: nil)


# File 'lib/docker_engine_ruby/models/image.rb', line 1352

Instance Attribute Details

#layers ⇒ Array<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


1350
# File 'lib/docker_engine_ruby/models/image.rb', line 1350

optional :layers, DockerEngineRuby::Internal::Type::ArrayOf[String], api_name: :Layers

#type ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


1345
# File 'lib/docker_engine_ruby/models/image.rb', line 1345

required :type, String, api_name: :Type

Instance Method Details

#to_hash ⇒ { type: String, layers: ::Array[String] }

Returns:

  • ({ type: String, layers: ::Array[String] })


1036
# File 'sig/docker_engine_ruby/models/image.rbs', line 1036

def to_hash: -> { type: String, layers: ::Array[String] }