Google Cloud Assured Workloads V1 Client - Class AcknowledgeViolationRequest (0.10.2)

Reference documentation and code samples for the Google Cloud Assured Workloads V1 Client class AcknowledgeViolationRequest.

Request for acknowledging the violation Next Id: 4

Generated from protobuf message google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest

Namespace

Google \ Cloud \ AssuredWorkloads \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

↳ comment string

Required. Business justification explaining the need for violation acknowledgement

↳ non_compliant_org_policy string

Optional. This field is deprecated and will be removed in future version of the API. Name of the OrgPolicy which was modified with non-compliant change and resulted in this violation. Format: projects/{project_number}/policies/{constraint_name} folders/{folder_id}/policies/{constraint_name} organizations/{organization_id}/policies/{constraint_name}

getName

Required. The resource name of the Violation to acknowledge.

Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

Returns
TypeDescription
string

setName

Required. The resource name of the Violation to acknowledge.

Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getComment

Required. Business justification explaining the need for violation acknowledgement

Returns
TypeDescription
string

setComment

Required. Business justification explaining the need for violation acknowledgement

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNonCompliantOrgPolicy

Optional. This field is deprecated and will be removed in future version of the API.

Name of the OrgPolicy which was modified with non-compliant change and resulted in 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

Optional. This field is deprecated and will be removed in future version of the API.

Name of the OrgPolicy which was modified with non-compliant change and resulted in 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