pub enum ComputePoolSelection {
Fixed {
data_disk_gib: Option<i32>,
failure_domains: Option<FailureDomainSelection>,
machine: Option<String>,
machines: i32,
},
Autoscale {
data_disk_gib: Option<i32>,
failure_domains: Option<FailureDomainSelection>,
machine: Option<String>,
max: i32,
min: i32,
},
}Expand description
User-selected deployment settings for one compute pool.
JSON schema
{
"description": "User-selected deployment settings for one compute pool.",
"oneOf": [
{
"description": "Fixed number of machines.",
"type": "object",
"required": [
"machines",
"mode"
],
"properties": {
"dataDiskGib": {
"description": "Data disk size per machine, in whole GiB, within the pool's declared\nrange. Omitted uses the release default; 0 runs the pool without one.",
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"failure_domains": {
"description": "Optional failure-domain policy. Absence preserves the existing aggregate layout.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/FailureDomainSelection"
}
]
}
]
},
"machine": {
"description": "Provider machine type selected for this deployment.",
"type": [
"string",
"null"
]
},
"machines": {
"description": "Number of machines to run.",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"mode": {
"type": "string",
"enum": [
"fixed"
]
}
}
},
{
"description": "Autoscaling machine pool.",
"type": "object",
"required": [
"max",
"min",
"mode"
],
"properties": {
"dataDiskGib": {
"description": "Data disk size per machine, in whole GiB, within the pool's declared\nrange. Omitted uses the release default; 0 runs the pool without one.",
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"failure_domains": {
"description": "Optional failure-domain policy. Absence preserves the existing aggregate layout.",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/FailureDomainSelection"
}
]
}
]
},
"machine": {
"description": "Provider machine type selected for this deployment.",
"type": [
"string",
"null"
]
},
"max": {
"description": "Maximum machine count.",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"min": {
"description": "Minimum machine count.",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"mode": {
"type": "string",
"enum": [
"autoscale"
]
}
}
}
]
}Variants§
Fixed
Fixed number of machines.
Fields
§
data_disk_gib: Option<i32>Data disk size per machine, in whole GiB, within the pool’s declared range. Omitted uses the release default; 0 runs the pool without one.
§
failure_domains: Option<FailureDomainSelection>Optional failure-domain policy. Absence preserves the existing aggregate layout.
Autoscale
Autoscaling machine pool.
Fields
§
data_disk_gib: Option<i32>Data disk size per machine, in whole GiB, within the pool’s declared range. Omitted uses the release default; 0 runs the pool without one.
§
failure_domains: Option<FailureDomainSelection>Optional failure-domain policy. Absence preserves the existing aggregate layout.
Trait Implementations§
Source§impl Clone for ComputePoolSelection
impl Clone for ComputePoolSelection
Source§impl Debug for ComputePoolSelection
impl Debug for ComputePoolSelection
Source§impl<'de> Deserialize<'de> for ComputePoolSelection
impl<'de> Deserialize<'de> for ComputePoolSelection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ComputePoolSelection> for ComputePoolSelection
impl From<&ComputePoolSelection> for ComputePoolSelection
Source§fn from(value: &ComputePoolSelection) -> Self
fn from(value: &ComputePoolSelection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComputePoolSelection
impl RefUnwindSafe for ComputePoolSelection
impl Send for ComputePoolSelection
impl Sync for ComputePoolSelection
impl Unpin for ComputePoolSelection
impl UnsafeUnpin for ComputePoolSelection
impl UnwindSafe for ComputePoolSelection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more