Class: Google::Apis::ContainerV1::HugepagesConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HugepagesConfig

Returns a new instance of HugepagesConfig.



2926
2927
2928
# File 'lib/google/apis/container_v1/classes.rb', line 2926

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#hugepage_size1gFixnum

Optional. Amount of 1G hugepages Corresponds to the JSON property hugepageSize1g

Returns:

  • (Fixnum)


2919
2920
2921
# File 'lib/google/apis/container_v1/classes.rb', line 2919

def hugepage_size1g
  @hugepage_size1g
end

#hugepage_size2mFixnum

Optional. Amount of 2M hugepages Corresponds to the JSON property hugepageSize2m

Returns:

  • (Fixnum)


2924
2925
2926
# File 'lib/google/apis/container_v1/classes.rb', line 2924

def hugepage_size2m
  @hugepage_size2m
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2931
2932
2933
2934
# File 'lib/google/apis/container_v1/classes.rb', line 2931

def update!(**args)
  @hugepage_size1g = args[:hugepage_size1g] if args.key?(:hugepage_size1g)
  @hugepage_size2m = args[:hugepage_size2m] if args.key?(:hugepage_size2m)
end