#[non_exhaustive]pub struct NodeGroupNode {Show 14 fields
pub accelerators: Vec<AcceleratorConfig>,
pub consumed_resources: Option<InstanceConsumptionInfo>,
pub cpu_overcommit_type: Option<CpuOvercommitType>,
pub disks: Vec<LocalDisk>,
pub instance_consumption_data: Vec<InstanceConsumptionData>,
pub instances: Vec<String>,
pub name: Option<String>,
pub node_type: Option<String>,
pub satisfies_pzs: Option<bool>,
pub server_binding: Option<ServerBinding>,
pub server_id: Option<String>,
pub status: Option<Status>,
pub total_resources: Option<InstanceConsumptionInfo>,
pub upcoming_maintenance: Option<UpcomingMaintenance>,
/* private fields */
}node-groups only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accelerators: Vec<AcceleratorConfig>Accelerators for this node.
consumed_resources: Option<InstanceConsumptionInfo>Output only. Node resources that are reserved by all instances.
cpu_overcommit_type: Option<CpuOvercommitType>CPU overcommit.
disks: Vec<LocalDisk>Local disk configurations.
instance_consumption_data: Vec<InstanceConsumptionData>Output only. Instance data that shows consumed resources on the node.
instances: Vec<String>Instances scheduled on this node.
name: Option<String>The name of the node.
node_type: Option<String>The type of this node.
satisfies_pzs: Option<bool>Output only. [Output Only] Reserved for future use.
server_binding: Option<ServerBinding>Binding properties for the physical server.
server_id: Option<String>Server ID associated with this node.
status: Option<Status>§total_resources: Option<InstanceConsumptionInfo>Output only. Total amount of available resources on the node.
upcoming_maintenance: Option<UpcomingMaintenance>Output only. [Output Only] The information about an upcoming maintenance event.
Implementations§
Source§impl NodeGroupNode
impl NodeGroupNode
pub fn new() -> Self
Sourcepub fn set_accelerators<T, V>(self, v: T) -> Self
pub fn set_accelerators<T, V>(self, v: T) -> Self
Sets the value of accelerators.
§Example
use google_cloud_compute_v1::model::AcceleratorConfig;
let x = NodeGroupNode::new()
.set_accelerators([
AcceleratorConfig::default()/* use setters */,
AcceleratorConfig::default()/* use (different) setters */,
]);Sourcepub fn set_consumed_resources<T>(self, v: T) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
pub fn set_consumed_resources<T>(self, v: T) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
Sets the value of consumed_resources.
§Example
use google_cloud_compute_v1::model::InstanceConsumptionInfo;
let x = NodeGroupNode::new().set_consumed_resources(InstanceConsumptionInfo::default()/* use setters */);Sourcepub fn set_or_clear_consumed_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
pub fn set_or_clear_consumed_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
Sets or clears the value of consumed_resources.
§Example
use google_cloud_compute_v1::model::InstanceConsumptionInfo;
let x = NodeGroupNode::new().set_or_clear_consumed_resources(Some(InstanceConsumptionInfo::default()/* use setters */));
let x = NodeGroupNode::new().set_or_clear_consumed_resources(None::<InstanceConsumptionInfo>);Sourcepub fn set_cpu_overcommit_type<T>(self, v: T) -> Selfwhere
T: Into<CpuOvercommitType>,
pub fn set_cpu_overcommit_type<T>(self, v: T) -> Selfwhere
T: Into<CpuOvercommitType>,
Sets the value of cpu_overcommit_type.
§Example
use google_cloud_compute_v1::model::node_group_node::CpuOvercommitType;
let x0 = NodeGroupNode::new().set_cpu_overcommit_type(CpuOvercommitType::Enabled);
let x1 = NodeGroupNode::new().set_cpu_overcommit_type(CpuOvercommitType::None);Sourcepub fn set_or_clear_cpu_overcommit_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<CpuOvercommitType>,
pub fn set_or_clear_cpu_overcommit_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<CpuOvercommitType>,
Sets or clears the value of cpu_overcommit_type.
§Example
use google_cloud_compute_v1::model::node_group_node::CpuOvercommitType;
let x0 = NodeGroupNode::new().set_or_clear_cpu_overcommit_type(Some(CpuOvercommitType::Enabled));
let x1 = NodeGroupNode::new().set_or_clear_cpu_overcommit_type(Some(CpuOvercommitType::None));
let x_none = NodeGroupNode::new().set_or_clear_cpu_overcommit_type(None::<CpuOvercommitType>);Sourcepub fn set_instance_consumption_data<T, V>(self, v: T) -> Self
pub fn set_instance_consumption_data<T, V>(self, v: T) -> Self
Sets the value of instance_consumption_data.
§Example
use google_cloud_compute_v1::model::InstanceConsumptionData;
let x = NodeGroupNode::new()
.set_instance_consumption_data([
InstanceConsumptionData::default()/* use setters */,
InstanceConsumptionData::default()/* use (different) setters */,
]);Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_node_type<T>(self, v: T) -> Self
pub fn set_node_type<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_node_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_node_type<T>(self, v: Option<T>) -> Self
Sourcepub fn set_satisfies_pzs<T>(self, v: T) -> Self
pub fn set_satisfies_pzs<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzs.
§Example
let x = NodeGroupNode::new().set_or_clear_satisfies_pzs(Some(false));
let x = NodeGroupNode::new().set_or_clear_satisfies_pzs(None::<bool>);Sourcepub fn set_server_binding<T>(self, v: T) -> Selfwhere
T: Into<ServerBinding>,
pub fn set_server_binding<T>(self, v: T) -> Selfwhere
T: Into<ServerBinding>,
Sets the value of server_binding.
§Example
use google_cloud_compute_v1::model::ServerBinding;
let x = NodeGroupNode::new().set_server_binding(ServerBinding::default()/* use setters */);Sourcepub fn set_or_clear_server_binding<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServerBinding>,
pub fn set_or_clear_server_binding<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServerBinding>,
Sets or clears the value of server_binding.
§Example
use google_cloud_compute_v1::model::ServerBinding;
let x = NodeGroupNode::new().set_or_clear_server_binding(Some(ServerBinding::default()/* use setters */));
let x = NodeGroupNode::new().set_or_clear_server_binding(None::<ServerBinding>);Sourcepub fn set_server_id<T>(self, v: T) -> Self
pub fn set_server_id<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_server_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_server_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sets or clears the value of status.
§Example
use google_cloud_compute_v1::model::node_group_node::Status;
let x0 = NodeGroupNode::new().set_or_clear_status(Some(Status::Deleting));
let x1 = NodeGroupNode::new().set_or_clear_status(Some(Status::Invalid));
let x2 = NodeGroupNode::new().set_or_clear_status(Some(Status::Ready));
let x_none = NodeGroupNode::new().set_or_clear_status(None::<Status>);Sourcepub fn set_total_resources<T>(self, v: T) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
pub fn set_total_resources<T>(self, v: T) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
Sets the value of total_resources.
§Example
use google_cloud_compute_v1::model::InstanceConsumptionInfo;
let x = NodeGroupNode::new().set_total_resources(InstanceConsumptionInfo::default()/* use setters */);Sourcepub fn set_or_clear_total_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
pub fn set_or_clear_total_resources<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstanceConsumptionInfo>,
Sets or clears the value of total_resources.
§Example
use google_cloud_compute_v1::model::InstanceConsumptionInfo;
let x = NodeGroupNode::new().set_or_clear_total_resources(Some(InstanceConsumptionInfo::default()/* use setters */));
let x = NodeGroupNode::new().set_or_clear_total_resources(None::<InstanceConsumptionInfo>);Sourcepub fn set_upcoming_maintenance<T>(self, v: T) -> Selfwhere
T: Into<UpcomingMaintenance>,
pub fn set_upcoming_maintenance<T>(self, v: T) -> Selfwhere
T: Into<UpcomingMaintenance>,
Sets the value of upcoming_maintenance.
§Example
use google_cloud_compute_v1::model::UpcomingMaintenance;
let x = NodeGroupNode::new().set_upcoming_maintenance(UpcomingMaintenance::default()/* use setters */);Sourcepub fn set_or_clear_upcoming_maintenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpcomingMaintenance>,
pub fn set_or_clear_upcoming_maintenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpcomingMaintenance>,
Sets or clears the value of upcoming_maintenance.
§Example
use google_cloud_compute_v1::model::UpcomingMaintenance;
let x = NodeGroupNode::new().set_or_clear_upcoming_maintenance(Some(UpcomingMaintenance::default()/* use setters */));
let x = NodeGroupNode::new().set_or_clear_upcoming_maintenance(None::<UpcomingMaintenance>);Trait Implementations§
Source§impl Clone for NodeGroupNode
impl Clone for NodeGroupNode
Source§fn clone(&self) -> NodeGroupNode
fn clone(&self) -> NodeGroupNode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more