Google Cloud Assured Workloads V1 Client - Class Violation (0.9.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Protobuf\Timestamp

Output only. Time of the event which triggered the Violation.

↳ update_time Google\Protobuf\Timestamp

Output only. The last time when the Violation record was updated.

↳ 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 Google\Cloud\AssuredWorkloads\V1\Violation\Remediation

Output only. Compliance violation 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}

Returns
TypeDescription
string

setName

Output only. Immutable. Name of the Violation.

Format: organizations/{organization}/locations/{location}/workloads/{workload_id}/violations/{violations_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Output only. Description for the Violation.

e.g. OrgPolicy gcp.resourceLocations has non compliant value.

Returns
TypeDescription
string

setDescription

Output only. Description for the Violation.

e.g. OrgPolicy gcp.resourceLocations has non compliant value.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBeginTime

Output only. Time of the event which triggered the Violation.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasBeginTime

clearBeginTime

setBeginTime

Output only. Time of the event which triggered the Violation.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The last time when the Violation record was updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last time when the Violation record was updated.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getResolveTime

Output only. Time of the event which fixed the Violation.

If the violation is ACTIVE this will be empty.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasResolveTime

clearResolveTime

setResolveTime

Output only. Time of the event which fixed the Violation.

If the violation is ACTIVE this will be empty.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCategory

Output only. Category under which this violation is mapped.

e.g. Location, Service Usage, Access, Encryption, etc.

Returns
TypeDescription
string

setCategory

Output only. Category under which this violation is mapped.

e.g. Location, Service Usage, Access, Encryption, etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. State of the violation

Returns
TypeDescription
int

setState

Output only. State of the violation

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getOrgPolicyConstraint

Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.

Returns
TypeDescription
string

setOrgPolicyConstraint

Output only. Immutable. The org-policy-constraint that was incorrectly changed, which resulted in this violation.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}

Returns
TypeDescription
string

Output only. Immutable. Audit Log Link for violated resource Format: https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}

Parameter
NameDescription
var string
Returns
TypeDescription
$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}

Returns
TypeDescription
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}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRemediation

Output only. Compliance violation remediation

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1\Violation\Remediation|null

hasRemediation

clearRemediation

setRemediation

Output only. Compliance violation remediation

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1\Violation\Remediation
Returns
TypeDescription
$this

getAcknowledged

Output only. A boolean that indicates if the violation is acknowledged

Returns
TypeDescription
bool

setAcknowledged

Output only. A boolean that indicates if the violation is acknowledged

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getAcknowledgementTime

Optional. Timestamp when this violation was acknowledged last.

This will be absent when acknowledged field is marked as false.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasAcknowledgementTime

clearAcknowledgementTime

setAcknowledgementTime

Optional. Timestamp when this violation was acknowledged last.

This will be absent when acknowledged field is marked as false.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

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}

Returns
TypeDescription
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}

Parameter
NameDescription
var string
Returns
TypeDescription
$this