Struct google_api_proto::google::cloud::compute::v1::InstanceSettings
source · pub struct InstanceSettings {
pub fingerprint: Option<String>,
pub kind: Option<String>,
pub metadata: Option<InstanceSettingsMetadata>,
pub zone: Option<String>,
}
Expand description
Represents a Instance Settings resource. You can use instance settings to configure default settings for Compute Engine VM instances. For example, you can use it to configure default machine type of Compute Engine VM instances.
Fields§
§fingerprint: Option<String>
Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource’s contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
kind: Option<String>
[Output Only] Type of the resource. Always compute#instance_settings for instance settings.
metadata: Option<InstanceSettingsMetadata>
The metadata key/value pairs assigned to all the instances in the corresponding scope.
zone: Option<String>
[Output Only] URL of the zone where the resource resides You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
Implementations§
source§impl InstanceSettings
impl InstanceSettings
sourcepub fn fingerprint(&self) -> &str
pub fn fingerprint(&self) -> &str
Returns the value of fingerprint
, or the default value if fingerprint
is unset.
Trait Implementations§
source§impl Clone for InstanceSettings
impl Clone for InstanceSettings
source§fn clone(&self) -> InstanceSettings
fn clone(&self) -> InstanceSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceSettings
impl Debug for InstanceSettings
source§impl Default for InstanceSettings
impl Default for InstanceSettings
source§impl Message for InstanceSettings
impl Message for InstanceSettings
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 InstanceSettings
impl PartialEq for InstanceSettings
source§fn eq(&self, other: &InstanceSettings) -> bool
fn eq(&self, other: &InstanceSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceSettings
Auto Trait Implementations§
impl Freeze for InstanceSettings
impl RefUnwindSafe for InstanceSettings
impl Send for InstanceSettings
impl Sync for InstanceSettings
impl Unpin for InstanceSettings
impl UnwindSafe for InstanceSettings
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