Class: Google::Apis::ContainerV1beta1::SwapConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SwapConfig

Returns a new instance of SwapConfig.



9818
9819
9820
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9818

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

Instance Attribute Details

#boot_disk_profileGoogle::Apis::ContainerV1beta1::BootDiskProfile

Swap on the node's boot disk. Corresponds to the JSON property bootDiskProfile



9795
9796
9797
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9795

def boot_disk_profile
  @boot_disk_profile
end

#dedicated_local_ssd_profileGoogle::Apis::ContainerV1beta1::DedicatedLocalSsdProfile

Provisions a new, separate local NVMe SSD exclusively for swap. Corresponds to the JSON property dedicatedLocalSsdProfile



9800
9801
9802
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9800

def dedicated_local_ssd_profile
  @dedicated_local_ssd_profile
end

#enabledBoolean Also known as: enabled?

Optional. Enables or disables swap for the node pool. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


9805
9806
9807
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9805

def enabled
  @enabled
end

#encryption_configGoogle::Apis::ContainerV1beta1::EncryptionConfig

Defines encryption settings for the swap space. Corresponds to the JSON property encryptionConfig



9811
9812
9813
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9811

def encryption_config
  @encryption_config
end

#ephemeral_local_ssd_profileGoogle::Apis::ContainerV1beta1::EphemeralLocalSsdProfile

Swap on the local SSD shared with pod ephemeral storage. Corresponds to the JSON property ephemeralLocalSsdProfile



9816
9817
9818
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9816

def ephemeral_local_ssd_profile
  @ephemeral_local_ssd_profile
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9823
9824
9825
9826
9827
9828
9829
# File 'lib/google/apis/container_v1beta1/classes.rb', line 9823

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