View Source GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview (google_api_policy_simulator v0.5.0)
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.
Attributes
-
createTime
(type:DateTime.t
, default:nil
) - Output only. Time when thisOrgPolicyViolationsPreview
was created. -
customConstraints
(type:list(String.t)
, default:nil
) - Output only. The names of the constraints against which allOrgPolicyViolations
were evaluated. IfOrgPolicyOverlay
only containsPolicyOverlay
then it contains the name of the configured custom constraint, applicable to the specified policies. Otherwise it contains the name of the constraint specified inCustomConstraintOverlay
. Format:organizations/{organization_id}/customConstraints/{custom_constraint_id}
Example:organizations/123/customConstraints/custom.createOnlyE2TypeVms
-
name
(type:String.t
, default:nil
) - Output only. The resource name of theOrgPolicyViolationsPreview
. It has the following format:organizations/{organization}/locations/{location}/orgPolicyViolationsPreviews/{orgPolicyViolationsPreview}
Example:organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f
-
overlay
(type:GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay.t
, default:nil
) - Required. The proposed changes we are previewing violations for. -
resourceCounts
(type:GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts.t
, default:nil
) - Output only. A summary of the state of all resources scanned for compliance with the changed OrgPolicy. -
state
(type:String.t
, default:nil
) - Output only. The state of theOrgPolicyViolationsPreview
. -
violationsCount
(type:integer()
, default:nil
) - Output only. The number of OrgPolicyViolations in thisOrgPolicyViolationsPreview
. This count may differ fromresource_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.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview{ createTime: DateTime.t() | nil, customConstraints: [String.t()] | nil, name: String.t() | nil, overlay: GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1betaOrgPolicyOverlay.t() | nil, resourceCounts: GoogleApi.PolicySimulator.V1.Model.GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreviewResourceCounts.t() | nil, state: String.t() | nil, violationsCount: integer() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.