Class GuestPolicy
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.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.SystemsManagement.v1beta.Data
Assembly: Google.Apis.SystemsManagement.v1beta.dll
Syntax
public class GuestPolicy : IDirectResponseSchema
Properties
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](/compute/docs/os-config-management /create-guest-policy#handle-conflicts).
Declaration
[JsonProperty("assignment")]
public virtual Assignment Assignment { get; set; }
Property Value
Type | Description |
---|---|
Assignment |
CreateTime
Output only. Time this guest policy was created.
Declaration
[JsonProperty("createTime")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Description
Description of the guest policy. Length of the description is limited to 1024 characters.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ETag
The etag for this guest policy. If this is provided on update, it must match the server's etag.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Required. Unique name of the resource in this project using one of the following forms:
projects/{project_number}/guestPolicies/{guest_policy_id}
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PackageRepositories
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.
Declaration
[JsonProperty("packageRepositories")]
public virtual IList<PackageRepository> PackageRepositories { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<PackageRepository> |
Packages
The software packages to be managed by this policy.
Declaration
[JsonProperty("packages")]
public virtual IList<Package> Packages { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Package> |
Recipes
A list of Recipes to install on the VM instance.
Declaration
[JsonProperty("recipes")]
public virtual IList<SoftwareRecipe> Recipes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<SoftwareRecipe> |
UpdateTime
Output only. Last time this guest policy was updated.
Declaration
[JsonProperty("updateTime")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
System.Object |