Reference documentation and code samples for the Google Cloud Container V1 Client class EphemeralLocalSsdProfile.
Swap on the local SSD shared with pod ephemeral storage.
Generated from protobuf message google.container.v1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile
Namespace
Google \ Cloud \ Container \ V1 \ LinuxNodeConfig \ SwapConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ swap_size_gib |
int|string
Specifies the size of the swap space in gibibytes (GiB). |
↳ swap_size_percent |
int
Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity. |
getSwapSizeGib
Specifies the size of the swap space in gibibytes (GiB).
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasSwapSizeGib
setSwapSizeGib
Specifies the size of the swap space in gibibytes (GiB).
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSwapSizePercent
Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasSwapSizePercent
setSwapSizePercent
Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSwapSize
| Returns | |
|---|---|
| Type | Description |
string |
|