Class OSPolicyAssignment
OS policy assignment is an API resource that is used to apply a set of OS policies to a dynamically targeted group of Compute Engine VM instances. An OS policy is used to define the desired state configuration for a Compute Engine VM instance through a set of configuration resources that provide capabilities such as installing or removing software packages, or executing a script. For more information about the OS policy resource definitions and examples, see OS policy and OS policy assignment.
Implements
Inherited Members
Namespace: Google.Apis.OSConfig.v2beta.Data
Assembly: Google.Apis.OSConfig.v2beta.dll
Syntax
public class OSPolicyAssignment : IDirectResponseSchema
Properties
Baseline
Output only. Indicates that this revision has been successfully rolled out in this zone and new VMs will be
assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a
value of true
for this field.
Declaration
[JsonProperty("baseline")]
public virtual bool? Baseline { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Deleted
Output only. Indicates that this revision deletes the OS policy assignment.
Declaration
[JsonProperty("deleted")]
public virtual bool? Deleted { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Description
OS policy assignment description. Length of the description is limited to 1024 characters.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The etag for this OS policy assignment. 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 |
---|---|
string |
InstanceFilter
Required. Filter to select VMs.
Declaration
[JsonProperty("instanceFilter")]
public virtual OSPolicyAssignmentInstanceFilter InstanceFilter { get; set; }
Property Value
Type | Description |
---|---|
OSPolicyAssignmentInstanceFilter |
Name
Resource name. Format:
projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}
This field is
ignored when you create an OS policy assignment.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OsPolicies
Required. List of OS policies to be applied to the VMs.
Declaration
[JsonProperty("osPolicies")]
public virtual IList<OSPolicy> OsPolicies { get; set; }
Property Value
Type | Description |
---|---|
IList<OSPolicy> |
Reconciling
Output only. Indicates that reconciliation is in progress for the revision. This value is true
when the
rollout_state
is one of: * IN_PROGRESS * CANCELLING
Declaration
[JsonProperty("reconciling")]
public virtual bool? Reconciling { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RevisionCreateTime
object representation of RevisionCreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use RevisionCreateTimeDateTimeOffset instead.")]
public virtual object RevisionCreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
RevisionCreateTimeDateTimeOffset
DateTimeOffset representation of RevisionCreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? RevisionCreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
RevisionCreateTimeRaw
Output only. The timestamp that the revision was created.
Declaration
[JsonProperty("revisionCreateTime")]
public virtual string RevisionCreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
RevisionId
Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment
Declaration
[JsonProperty("revisionId")]
public virtual string RevisionId { get; set; }
Property Value
Type | Description |
---|---|
string |
Rollout
Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted.
Declaration
[JsonProperty("rollout")]
public virtual OSPolicyAssignmentRollout Rollout { get; set; }
Property Value
Type | Description |
---|---|
OSPolicyAssignmentRollout |
RolloutState
Output only. OS policy assignment rollout state
Declaration
[JsonProperty("rolloutState")]
public virtual string RolloutState { get; set; }
Property Value
Type | Description |
---|---|
string |
Uid
Output only. Server generated unique id for the OS policy assignment resource.
Declaration
[JsonProperty("uid")]
public virtual string Uid { get; set; }
Property Value
Type | Description |
---|---|
string |