pub struct InstanceSettings {
pub fingerprint: Option<Vec<u8>>,
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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get instance settings (response)
- patch instance settings (request)
Fields§
§fingerprint: Option<Vec<u8>>
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.
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§fn default() -> InstanceSettings
fn default() -> InstanceSettings
Source§impl<'de> Deserialize<'de> for InstanceSettings
impl<'de> Deserialize<'de> for InstanceSettings
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>,
Source§impl Serialize for InstanceSettings
impl Serialize for InstanceSettings
impl RequestValue for InstanceSettings
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more