Class GoogleCloudAssuredworkloadsV1beta1Violation
A compliance violation that's detected by Assured Workloads monitoring. A violation is created when an organization policy or a resource in a workload (or a Data Boundary scope) changes in a way that doesn't comply with the controls of the applicable compliance regime or framework.
Implements
Inherited Members
Namespace: Google.Apis.Assuredworkloads.v1beta1.Data
Assembly: Google.Apis.Assuredworkloads.v1beta1.dll
Syntax
public class GoogleCloudAssuredworkloadsV1beta1Violation : IDirectResponseSchema
Properties
Acknowledged
Whether the violation has been acknowledged.
Declaration
[JsonProperty("acknowledged")]
public virtual bool? Acknowledged { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
AcknowledgementTime
object representation of AcknowledgementTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use AcknowledgementTimeDateTimeOffset instead.")]
public virtual object AcknowledgementTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
AcknowledgementTimeDateTimeOffset
DateTimeOffset representation of AcknowledgementTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? AcknowledgementTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
AcknowledgementTimeRaw
Optional. The time when the violation was first acknowledged. To find the most recent time that the
violation was acknowledged, check exception_contexts. This field is absent when acknowledged is false.
Declaration
[JsonProperty("acknowledgementTime")]
public virtual string AcknowledgementTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
AffectedFrameworks
Output only. The IDs of the compliance frameworks that are affected by this violation. For example,
builtin-fedramp-high. This field is only populated when using VIOLATION_VIEW_DATA_BOUNDARY.
Declaration
[JsonProperty("affectedFrameworks")]
public virtual IList<string> AffectedFrameworks { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
AssociatedOrgPolicyViolationId
Optional. Output only. For resource violations, the ID of the organization policy violation that caused this resource violation. This field is empty for organization policy violations.
Declaration
[JsonProperty("associatedOrgPolicyViolationId")]
public virtual string AssociatedOrgPolicyViolationId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
AuditLogLink
Output only. Immutable. A link to the Cloud Audit Logs entries for the violated resource. Format:
https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
Declaration
[JsonProperty("auditLogLink")]
public virtual string AuditLogLink { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
BeginTime
object representation of BeginTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use BeginTimeDateTimeOffset instead.")]
public virtual object BeginTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
BeginTimeDateTimeOffset
DateTimeOffset representation of BeginTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? BeginTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
BeginTimeRaw
Output only. The time of the event that triggered the violation.
Declaration
[JsonProperty("beginTime")]
public virtual string BeginTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Category
Output only. The category that the violation is mapped to. For example, Location, Service Usage,
Access, or Encryption.
Declaration
[JsonProperty("category")]
public virtual string Category { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ChildResourceViolationCount
Optional. Output only. For organization policy violations, the number of resource violations that are
associated with this violation. This field is 0 for resource violations.
Declaration
[JsonProperty("childResourceViolationCount")]
public virtual int? ChildResourceViolationCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Description
Output only. A description of the violation. For example, OrgPolicy gcp.resourceLocations has non compliant value.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExceptionAuditLogLink
Output only. Immutable. A link to the Cloud Audit Logs entries that contain the business justification that
was provided when the violation was acknowledged. Format:
https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
Declaration
[JsonProperty("exceptionAuditLogLink")]
public virtual string ExceptionAuditLogLink { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExceptionContexts
Output only. The details of all of the acknowledgements (exceptions) for the violation.
Declaration
[JsonProperty("exceptionContexts")]
public virtual IList<GoogleCloudAssuredworkloadsV1beta1ViolationExceptionContext> ExceptionContexts { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<GoogleCloudAssuredworkloadsV1beta1ViolationExceptionContext> |
Name
Output only. Immutable. The resource name of the violation. Format:
organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NonCompliantOrgPolicy
Output only. Immutable. The name of the organization policy that was modified with a non-compliant change
and resulted in this violation. Formats: * projects/{project_number}/policies/{constraint_name} *
folders/{folder_id}/policies/{constraint_name} *
organizations/{organization_id}/policies/{constraint_name}
Declaration
[JsonProperty("nonCompliantOrgPolicy")]
public virtual string NonCompliantOrgPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OrgPolicyConstraint
Output only. Immutable. Deprecated: This field is deprecated and might be removed in a future version of the
API. Use non_compliant_org_policy instead, which contains the full resource name of the organization
policy, including the constraint name. The organization policy constraint that was changed in a
non-compliant way, which resulted in this violation.
Declaration
[JsonProperty("orgPolicyConstraint")]
public virtual string OrgPolicyConstraint { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ParentProjectNumber
Optional. Output only. For resource violations, the number of the project that contains the non-compliant resource. This field is empty for organization policy violations.
Declaration
[JsonProperty("parentProjectNumber")]
public virtual string ParentProjectNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remediation
Output only. The remediation guidance for the violation.
Declaration
[JsonProperty("remediation")]
public virtual GoogleCloudAssuredworkloadsV1beta1ViolationRemediation Remediation { get; set; }
Property Value
| Type | Description |
|---|---|
| GoogleCloudAssuredworkloadsV1beta1ViolationRemediation |
RemediationMarkdown
Output only. The remediation instructions for the violation, in Markdown format. This field is only
populated by GetViolation when using VIOLATION_VIEW_DATA_BOUNDARY. When this field isn't populated, see
remediation instead.
Declaration
[JsonProperty("remediationMarkdown")]
public virtual string RemediationMarkdown { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResolveTime
object representation of ResolveTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ResolveTimeDateTimeOffset instead.")]
public virtual object ResolveTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
ResolveTimeDateTimeOffset
DateTimeOffset representation of ResolveTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? ResolveTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
ResolveTimeRaw
Output only. The time of the event that resolved the violation. This field is empty if the violation is unresolved.
Declaration
[JsonProperty("resolveTime")]
public virtual string ResolveTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResourceName
Optional. Output only. For resource violations, the full resource name of the non-compliant resource. For
example, //storage.googleapis.com/myprojectxyz-testbucket. This field is empty for organization policy
violations.
Declaration
[JsonProperty("resourceName")]
public virtual string ResourceName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ResourceType
Optional. Output only. For resource violations, the type of the non-compliant resource. For example,
compute.googleapis.com/Disk. This field is empty for organization policy violations.
Declaration
[JsonProperty("resourceType")]
public virtual string ResourceType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
State
Output only. The state of the violation.
Declaration
[JsonProperty("state")]
public virtual string State { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
UpdateTimeRaw
Output only. The time when the violation record was last updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ViolationType
Output only. The type of the violation.
Declaration
[JsonProperty("violationType")]
public virtual string ViolationType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |