Class: Google::Apis::ContainerV1::HugepagesConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::HugepagesConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
Hugepages amount in both 2m and 1g size
Instance Attribute Summary collapse
-
#hugepage_size1g ⇒ Fixnum
Optional.
-
#hugepage_size2m ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HugepagesConfig
constructor
A new instance of HugepagesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HugepagesConfig
Returns a new instance of HugepagesConfig.
3062 3063 3064 |
# File 'lib/google/apis/container_v1/classes.rb', line 3062 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hugepage_size1g ⇒ Fixnum
Optional. Amount of 1G hugepages
Corresponds to the JSON property hugepageSize1g
3055 3056 3057 |
# File 'lib/google/apis/container_v1/classes.rb', line 3055 def hugepage_size1g @hugepage_size1g end |
#hugepage_size2m ⇒ Fixnum
Optional. Amount of 2M hugepages
Corresponds to the JSON property hugepageSize2m
3060 3061 3062 |
# File 'lib/google/apis/container_v1/classes.rb', line 3060 def hugepage_size2m @hugepage_size2m end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3067 3068 3069 3070 |
# File 'lib/google/apis/container_v1/classes.rb', line 3067 def update!(**args) @hugepage_size1g = args[:hugepage_size1g] if args.key?(:hugepage_size1g) @hugepage_size2m = args[:hugepage_size2m] if args.key?(:hugepage_size2m) end |