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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Type | Description |
string |
|
setName
Required. The resource name of the Violation to acknowledge.
Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getComment
Required. Business justification explaining the need for violation acknowledgement
| Returns | |
|---|---|
| Type | Description |
string |
|
setComment
Required. Business justification explaining the need for violation acknowledgement
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|