Reference documentation and code samples for the Google Cloud Assured Workloads V1 Client class Violation.
Workload monitoring Violation.
Generated from protobuf message google.cloud.assuredworkloads.v1.Violation
Namespace
Google \ Cloud \ AssuredWorkloads \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Immutable. Name of the Violation. Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
↳ description
string
Output only. Description for the Violation. e.g. OrgPolicy gcp.resourceLocations has non compliant value.
↳ begin_time
↳ update_time
↳ resolve_time
Google\Protobuf\Timestamp
Output only. Time of the event which fixed the Violation. If the violation is ACTIVE this will be empty.
↳ category
string
Output only. Category under which this violation is mapped. e.g. Location, Service Usage, Access, Encryption, etc.
↳ state
int
Output only. State of the violation
↳ org_policy_constraint
string
Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
↳ audit_log_link
string
Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
↳ non_compliant_org_policy
string
Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
↳ remediation
↳ acknowledged
bool
Output only. A boolean that indicates if the violation is acknowledged
↳ acknowledgement_time
Google\Protobuf\Timestamp
Optional. Timestamp when this violation was acknowledged last. This will be absent when acknowledged field is marked as false.
↳ exception_audit_log_link
string
Output only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
getName
Output only. Immutable. Name of the Violation.
Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
string
setName
Output only. Immutable. Name of the Violation.
Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}
var
string
$this
getDescription
Output only. Description for the Violation.
e.g. OrgPolicy gcp.resourceLocations has non compliant value.
string
setDescription
Output only. Description for the Violation.
e.g. OrgPolicy gcp.resourceLocations has non compliant value.
var
string
$this
getBeginTime
Output only. Time of the event which triggered the Violation.
hasBeginTime
clearBeginTime
setBeginTime
Output only. Time of the event which triggered the Violation.
$this
getUpdateTime
Output only. The last time when the Violation record was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The last time when the Violation record was updated.
$this
getResolveTime
Output only. Time of the event which fixed the Violation.
If the violation is ACTIVE this will be empty.
hasResolveTime
clearResolveTime
setResolveTime
Output only. Time of the event which fixed the Violation.
If the violation is ACTIVE this will be empty.
$this
getCategory
Output only. Category under which this violation is mapped.
e.g. Location, Service Usage, Access, Encryption, etc.
string
setCategory
Output only. Category under which this violation is mapped.
e.g. Location, Service Usage, Access, Encryption, etc.
var
string
$this
getState
Output only. State of the violation
int
setState
Output only. State of the violation
var
int
$this
getOrgPolicyConstraint
Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
string
setOrgPolicyConstraint
Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.
var
string
$this
getAuditLogLink
Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
string
setAuditLogLink
Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}
var
string
$this
getNonCompliantOrgPolicy
Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation.
Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
string
setNonCompliantOrgPolicy
Output only. Immutable. Name of the OrgPolicy which was modified with non-compliant change and resulted this violation.
Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}
var
string
$this
getRemediation
Output only. Compliance violation remediation
hasRemediation
clearRemediation
setRemediation
Output only. Compliance violation remediation
$this
getAcknowledged
Output only. A boolean that indicates if the violation is acknowledged
bool
setAcknowledged
Output only. A boolean that indicates if the violation is acknowledged
var
bool
$this
getAcknowledgementTime
Optional. Timestamp when this violation was acknowledged last.
This will be absent when acknowledged field is marked as false.
hasAcknowledgementTime
clearAcknowledgementTime
setAcknowledgementTime
Optional. Timestamp when this violation was acknowledged last.
This will be absent when acknowledged field is marked as false.
$this
getExceptionAuditLogLink
Output only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
string
setExceptionAuditLogLink
Output only. Immutable. Audit Log link to find business justification provided for violation exception. Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}
var
string
$this