[][src]Struct gcp_client::google::cloud::osconfig::v1beta::Assignment

pub struct Assignment {
    pub group_labels: Vec<GroupLabel>,
    pub zones: Vec<String>,
    pub instances: Vec<String>,
    pub instance_name_prefixes: Vec<String>,
    pub os_types: Vec<OsType>,
}

An assignment represents the group or groups of VM instances that the policy applies to.

If an assignment is empty, it applies to all VM instances. Otherwise, the targeted VM instances must meet all the criteria specified. So if both labels and zones are specified, the policy applies to VM instances with those labels and in those zones.

Fields

group_labels: Vec<GroupLabel>

Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups, for example "env=prod or env=staging".

zones: Vec<String>

Targets instances in any of these zones. Leave empty to target instances in any zone.

Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.

instances: Vec<String>

Targets any of the instances specified. Instances are specified by their URI in the form zones/[ZONE]/instances/[INSTANCE_NAME].

Instance targeting is uncommon and is supported to facilitate the management of changes by the instance or to target specific VM instances for development and testing.

Only supported for project-level policies and must reference instances within this project.

instance_name_prefixes: Vec<String>

Targets VM instances whose name starts with one of these prefixes.

Like labels, this is another way to group VM instances when targeting configs, for example prefix="prod-".

Only supported for project-level policies.

os_types: Vec<OsType>

Targets VM instances matching at least one of the following OS types.

VM instances must match all supplied criteria for a given OsType to be included.

Trait Implementations

impl Clone for Assignment[src]

impl Debug for Assignment[src]

impl Default for Assignment[src]

impl Message for Assignment[src]

impl PartialEq<Assignment> for Assignment[src]

impl StructuralPartialEq for Assignment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]