Show / Hide Table of Contents

Class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview

OrgPolicyViolationsPreview is a resource providing a preview of the violations that will exist if an OrgPolicy change is made. The list of violations are modeled as child resources and retrieved via a ListOrgPolicyViolations API call. There are potentially more OrgPolicyViolations than could fit in an embedded field. Thus, the use of a child resource instead of a field.

Inheritance
object
GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.PolicySimulator.v1.Data
Assembly: Google.Apis.PolicySimulator.v1.dll
Syntax
public class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview : IDirectResponseSchema

Properties

CreateTime

object representation of CreateTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type Description
object

CreateTimeDateTimeOffset

DateTimeOffset representation of CreateTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

CreateTimeRaw

Output only. Time when this OrgPolicyViolationsPreview was created.

Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type Description
string

CustomConstraints

Output only. The names of the constraints against which all OrgPolicyViolations were evaluated. If OrgPolicyOverlay only contains PolicyOverlay then it contains the name of the configured custom constraint, applicable to the specified policies. Otherwise it contains the name of the constraint specified in CustomConstraintOverlay. Format: organizations/{organization_id}/customConstraints/{custom_constraint_id} Example: organizations/123/customConstraints/custom.createOnlyE2TypeVms

Declaration
[JsonProperty("customConstraints")]
public virtual IList<string> CustomConstraints { get; set; }
Property Value
Type Description
IList<string>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Name

Output only. The resource name of the OrgPolicyViolationsPreview. It has the following format: organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview} Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
string

Overlay

Required. The proposed changes we are previewing violations for.

Declaration
[JsonProperty("overlay")]
public virtual GoogleCloudPolicysimulatorV1OrgPolicyOverlay Overlay { get; set; }
Property Value
Type Description
GoogleCloudPolicysimulatorV1OrgPolicyOverlay

ResourceCounts

Output only. A summary of the state of all resources scanned for compliance with the changed OrgPolicy.

Declaration
[JsonProperty("resourceCounts")]
public virtual GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts ResourceCounts { get; set; }
Property Value
Type Description
GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts

State

Output only. The state of the OrgPolicyViolationsPreview.

Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
Type Description
string

ViolationsCount

Output only. The number of OrgPolicyViolations in this OrgPolicyViolationsPreview. This count may differ from resource_summary.noncompliant_count because each OrgPolicyViolation is specific to a resource and constraint. If there are multiple constraints being evaluated (i.e. multiple policies in the overlay), a single resource may violate multiple constraints.

Declaration
[JsonProperty("violationsCount")]
public virtual int? ViolationsCount { get; set; }
Property Value
Type Description
int?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX