Struct google_api_proto::google::cloud::osconfig::v1beta::GuestPolicy
source · 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,
}
Expand description
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§
source§impl Clone for GuestPolicy
impl Clone for GuestPolicy
source§fn clone(&self) -> GuestPolicy
fn clone(&self) -> GuestPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GuestPolicy
impl Debug for GuestPolicy
source§impl Default for GuestPolicy
impl Default for GuestPolicy
source§impl Message for GuestPolicy
impl Message for GuestPolicy
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 GuestPolicy
impl PartialEq for GuestPolicy
source§fn eq(&self, other: &GuestPolicy) -> bool
fn eq(&self, other: &GuestPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GuestPolicy
Auto Trait Implementations§
impl Freeze for GuestPolicy
impl RefUnwindSafe for GuestPolicy
impl Send for GuestPolicy
impl Sync for GuestPolicy
impl Unpin for GuestPolicy
impl UnwindSafe for GuestPolicy
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