Struct gapi_grpc::google::cloud::osconfig::v1beta::GuestPolicy[][src]

pub struct GuestPolicy {
    pub name: String,
    pub description: String,
    pub create_time: Option<Timestamp>,
    pub update_time: Option<Timestamp>,
    pub assignment: Option<Assignment>,
    pub packages: Vec<Package>,
    pub package_repositories: Vec<PackageRepository>,
    pub recipes: Vec<SoftwareRecipe>,
    pub etag: String,
}

An OS Config resource representing a guest configuration policy. These policies represent the desired state for VM instance guest environments including packages to install or remove, package repository configurations, and software to install.

Fields

name: String

Required. Unique name of the resource in this project using one of the following forms: projects/{project_number}/guestPolicies/{guest_policy_id}.

description: String

Description of the guest policy. Length of the description is limited to 1024 characters.

create_time: Option<Timestamp>

Output only. Time this guest policy was created.

update_time: Option<Timestamp>

Output only. Last time this guest policy was updated.

assignment: Option<Assignment>

Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones.

If left empty, all VM instances underneath this policy are targeted.

At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service handles assignment conflicts.

packages: Vec<Package>

The software packages to be managed by this policy.

package_repositories: Vec<PackageRepository>

A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.

recipes: Vec<SoftwareRecipe>

A list of Recipes to install on the VM instance.

etag: String

The etag for this guest policy. If this is provided on update, it must match the server’s etag.

Trait Implementations

impl Clone for GuestPolicy[src]

impl Debug for GuestPolicy[src]

impl Default for GuestPolicy[src]

impl Message for GuestPolicy[src]

impl PartialEq<GuestPolicy> for GuestPolicy[src]

impl StructuralPartialEq for GuestPolicy[src]

Auto Trait Implementations

impl RefUnwindSafe for GuestPolicy

impl Send for GuestPolicy

impl Sync for GuestPolicy

impl Unpin for GuestPolicy

impl UnwindSafe for GuestPolicy

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]