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

pub struct PatchInstanceFilter {
    pub all: bool,
    pub group_labels: Vec<GroupLabel>,
    pub zones: Vec<String>,
    pub instances: Vec<String>,
    pub instance_name_prefixes: Vec<String>,
}

A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones.

Fields

all: bool

Target all VM instances in the project. If true, no other criteria is permitted.

group_labels: Vec<GroupLabel>

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

zones: Vec<String>

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

instances: Vec<String>

Targets any of the VM instances specified. Instances are specified by their URI in the form zones/[ZONE]/instances/[INSTANCE_NAME], projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME], or https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`

instance_name_prefixes: Vec<String>

Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".

Trait Implementations

impl Clone for PatchInstanceFilter[src]

impl Debug for PatchInstanceFilter[src]

impl Default for PatchInstanceFilter[src]

impl Message for PatchInstanceFilter[src]

impl PartialEq<PatchInstanceFilter> for PatchInstanceFilter[src]

impl StructuralPartialEq for PatchInstanceFilter[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]