Class: Google::Apis::ContainerV1beta1::SwapConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::SwapConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
Configuration for swap memory on a node pool.
Instance Attribute Summary collapse
-
#boot_disk_profile ⇒ Google::Apis::ContainerV1beta1::BootDiskProfile
Swap on the node's boot disk.
-
#dedicated_local_ssd_profile ⇒ Google::Apis::ContainerV1beta1::DedicatedLocalSsdProfile
Provisions a new, separate local NVMe SSD exclusively for swap.
-
#enabled ⇒ Boolean
(also: #enabled?)
Optional.
-
#encryption_config ⇒ Google::Apis::ContainerV1beta1::EncryptionConfig
Defines encryption settings for the swap space.
-
#ephemeral_local_ssd_profile ⇒ Google::Apis::ContainerV1beta1::EphemeralLocalSsdProfile
Swap on the local SSD shared with pod ephemeral storage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SwapConfig
constructor
A new instance of SwapConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SwapConfig
Returns a new instance of SwapConfig.
10036 10037 10038 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10036 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_disk_profile ⇒ Google::Apis::ContainerV1beta1::BootDiskProfile
Swap on the node's boot disk.
Corresponds to the JSON property bootDiskProfile
10013 10014 10015 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10013 def boot_disk_profile @boot_disk_profile end |
#dedicated_local_ssd_profile ⇒ Google::Apis::ContainerV1beta1::DedicatedLocalSsdProfile
Provisions a new, separate local NVMe SSD exclusively for swap.
Corresponds to the JSON property dedicatedLocalSsdProfile
10018 10019 10020 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10018 def dedicated_local_ssd_profile @dedicated_local_ssd_profile end |
#enabled ⇒ Boolean Also known as: enabled?
Optional. Enables or disables swap for the node pool.
Corresponds to the JSON property enabled
10023 10024 10025 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10023 def enabled @enabled end |
#encryption_config ⇒ Google::Apis::ContainerV1beta1::EncryptionConfig
Defines encryption settings for the swap space.
Corresponds to the JSON property encryptionConfig
10029 10030 10031 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10029 def encryption_config @encryption_config end |
#ephemeral_local_ssd_profile ⇒ Google::Apis::ContainerV1beta1::EphemeralLocalSsdProfile
Swap on the local SSD shared with pod ephemeral storage.
Corresponds to the JSON property ephemeralLocalSsdProfile
10034 10035 10036 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10034 def ephemeral_local_ssd_profile @ephemeral_local_ssd_profile end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10041 10042 10043 10044 10045 10046 10047 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 10041 def update!(**args) @boot_disk_profile = args[:boot_disk_profile] if args.key?(:boot_disk_profile) @dedicated_local_ssd_profile = args[:dedicated_local_ssd_profile] if args.key?(:dedicated_local_ssd_profile) @enabled = args[:enabled] if args.key?(:enabled) @encryption_config = args[:encryption_config] if args.key?(:encryption_config) @ephemeral_local_ssd_profile = args[:ephemeral_local_ssd_profile] if args.key?(:ephemeral_local_ssd_profile) end |