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 as well as network locality
This type is not used in any activity, and only used as part of another schema.
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
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.
Trait Implementations§
source§impl Clone for ResourcePolicyGroupPlacementPolicy
impl Clone for ResourcePolicyGroupPlacementPolicy
source§fn clone(&self) -> ResourcePolicyGroupPlacementPolicy
fn clone(&self) -> ResourcePolicyGroupPlacementPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ResourcePolicyGroupPlacementPolicy
impl Default for ResourcePolicyGroupPlacementPolicy
source§fn default() -> ResourcePolicyGroupPlacementPolicy
fn default() -> ResourcePolicyGroupPlacementPolicy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourcePolicyGroupPlacementPolicy
impl<'de> Deserialize<'de> for ResourcePolicyGroupPlacementPolicy
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for ResourcePolicyGroupPlacementPolicy
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more