Struct google_api_proto::google::cloud::compute::v1::ResourcePolicyGroupPlacementPolicy
source · pub struct ResourcePolicyGroupPlacementPolicy {
pub availability_domain_count: Option<i32>,
pub collocation: Option<String>,
pub vm_count: Option<i32>,
}
Expand description
A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation
Fields§
§availability_domain_count: Option<i32>
The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
collocation: Option<String>
Specifies network collocation Check the Collocation enum for the list of possible values.
vm_count: Option<i32>
Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
Implementations§
source§impl ResourcePolicyGroupPlacementPolicy
impl ResourcePolicyGroupPlacementPolicy
sourcepub fn availability_domain_count(&self) -> i32
pub fn availability_domain_count(&self) -> i32
Returns the value of availability_domain_count
, or the default value if availability_domain_count
is unset.
sourcepub fn vm_count(&self) -> i32
pub fn vm_count(&self) -> i32
Returns the value of vm_count
, or the default value if vm_count
is unset.
sourcepub fn collocation(&self) -> &str
pub fn collocation(&self) -> &str
Returns the value of collocation
, or the default value if collocation
is unset.
Trait Implementations§
source§impl Clone for ResourcePolicyGroupPlacementPolicy
impl Clone for ResourcePolicyGroupPlacementPolicy
source§fn clone(&self) -> ResourcePolicyGroupPlacementPolicy
fn clone(&self) -> ResourcePolicyGroupPlacementPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for ResourcePolicyGroupPlacementPolicy
impl Message for ResourcePolicyGroupPlacementPolicy
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 ResourcePolicyGroupPlacementPolicy
impl PartialEq for ResourcePolicyGroupPlacementPolicy
source§fn eq(&self, other: &ResourcePolicyGroupPlacementPolicy) -> bool
fn eq(&self, other: &ResourcePolicyGroupPlacementPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourcePolicyGroupPlacementPolicy
Auto Trait Implementations§
impl Freeze for ResourcePolicyGroupPlacementPolicy
impl RefUnwindSafe for ResourcePolicyGroupPlacementPolicy
impl Send for ResourcePolicyGroupPlacementPolicy
impl Sync for ResourcePolicyGroupPlacementPolicy
impl Unpin for ResourcePolicyGroupPlacementPolicy
impl UnwindSafe for ResourcePolicyGroupPlacementPolicy
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