Class: DockerEngineRuby::Models::ContainerUpdateParams::Ulimit

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

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(hard: nil, name: nil, soft: nil) ⇒ Ulimit

Returns a new instance of Ulimit.

Parameters:

  • hard (Integer) (defaults to: nil)
  • name (String) (defaults to: nil)
  • soft (Integer) (defaults to: nil)
  • hard: (Integer) (defaults to: nil)
  • name: (String) (defaults to: nil)
  • soft: (Integer) (defaults to: nil)


# File 'lib/docker_engine_ruby/models/container_update_params.rb', line 530

Instance Attribute Details

#hard ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


518
# File 'lib/docker_engine_ruby/models/container_update_params.rb', line 518

optional :hard, Integer, api_name: :Hard

#name ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


523
# File 'lib/docker_engine_ruby/models/container_update_params.rb', line 523

optional :name, String, api_name: :Name

#soft ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


528
# File 'lib/docker_engine_ruby/models/container_update_params.rb', line 528

optional :soft, Integer, api_name: :Soft

Instance Method Details

#to_hash ⇒ { hard: Integer, name: String, soft: Integer }

Returns:

  • ({ hard: Integer, name: String, soft: Integer })


426
# File 'sig/docker_engine_ruby/models/container_update_params.rbs', line 426

def to_hash: -> { hard: Integer, name: String, soft: Integer }