Struct google_api_proto::google::cloud::baremetalsolution::v2::Instance
source · pub struct Instance {Show 19 fields
pub name: String,
pub id: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub machine_type: String,
pub state: i32,
pub hyperthreading_enabled: bool,
pub labels: BTreeMap<String, String>,
pub luns: Vec<Lun>,
pub volumes: Vec<Volume>,
pub networks: Vec<Network>,
pub interactive_serial_console_enabled: bool,
pub os_image: String,
pub pod: String,
pub network_template: String,
pub logical_interfaces: Vec<LogicalInterface>,
pub login_info: String,
pub workload_profile: i32,
pub firmware_version: String,
}Expand description
A server.
Fields§
§name: StringImmutable. The resource name of this Instance.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
Format:
projects/{project}/locations/{location}/instances/{instance}
id: StringOutput only. An identifier for the Instance, generated by the backend.
create_time: Option<Timestamp>Output only. Create a time stamp.
update_time: Option<Timestamp>Output only. Update a time stamp.
machine_type: StringImmutable. The server type. Available server types
state: i32Output only. The state of the server.
hyperthreading_enabled: boolTrue if you enable hyperthreading for the server, otherwise false. The default value is false.
labels: BTreeMap<String, String>Labels as key value pairs.
luns: Vec<Lun>Immutable. List of LUNs associated with this server.
volumes: Vec<Volume>Input only. List of Volumes to attach to this Instance on creation. This field won’t be populated in Get/List responses.
networks: Vec<Network>Output only. List of networks associated with this server.
interactive_serial_console_enabled: boolOutput only. True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
os_image: StringThe OS image currently installed on the server.
pod: StringImmutable. Pod name. Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.
network_template: StringInstance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of “bond<bond_mode>” or “nic”.
logical_interfaces: Vec<LogicalInterface>List of logical interfaces for the instance. The number of logical interfaces will be the same as number of hardware bond/nic on the chosen network template. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.
login_info: StringOutput only. Text field about info for logging in.
workload_profile: i32The workload profile for the instance.
firmware_version: StringOutput only. The firmware version for the instance.
Implementations§
source§impl Instance
impl Instance
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state, or the default if the field is set to an invalid enum value.
sourcepub fn workload_profile(&self) -> WorkloadProfile
pub fn workload_profile(&self) -> WorkloadProfile
Returns the enum value of workload_profile, or the default if the field is set to an invalid enum value.
sourcepub fn set_workload_profile(&mut self, value: WorkloadProfile)
pub fn set_workload_profile(&mut self, value: WorkloadProfile)
Sets workload_profile to the provided enum value.
Trait Implementations§
source§impl Message for Instance
impl Message for Instance
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.source§impl PartialEq for Instance
impl PartialEq for Instance
impl StructuralPartialEq for Instance
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request