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
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.
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}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Assured Workloads V1 Client - Class AcknowledgeViolationRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-assured-workloads/latest/V1.AcknowledgeViolationRequest)\n- [1.0.4](/php/docs/reference/cloud-assured-workloads/1.0.4/V1.AcknowledgeViolationRequest)\n- [0.11.5](/php/docs/reference/cloud-assured-workloads/0.11.5/V1.AcknowledgeViolationRequest)\n- [0.10.2](/php/docs/reference/cloud-assured-workloads/0.10.2/V1.AcknowledgeViolationRequest)\n- [0.9.1](/php/docs/reference/cloud-assured-workloads/0.9.1/V1.AcknowledgeViolationRequest)\n- [0.8.3](/php/docs/reference/cloud-assured-workloads/0.8.3/V1.AcknowledgeViolationRequest)\n- [0.7.3](/php/docs/reference/cloud-assured-workloads/0.7.3/V1.AcknowledgeViolationRequest) \nReference documentation and code samples for the Google Cloud Assured Workloads V1 Client class AcknowledgeViolationRequest.\n\nRequest for acknowledging the violation\nNext Id: 4\n\nGenerated from protobuf message `google.cloud.assuredworkloads.v1.AcknowledgeViolationRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AssuredWorkloads \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the Violation to acknowledge.\n\nFormat:\norganizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}\n\n### setName\n\nRequired. The resource name of the Violation to acknowledge.\n\nFormat:\norganizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}\n\n### getComment\n\nRequired. Business justification explaining the need for violation acknowledgement\n\n### setComment\n\nRequired. Business justification explaining the need for violation acknowledgement\n\n### getNonCompliantOrgPolicy\n\nOptional. This field is deprecated and will be removed in future version of the API.\n\nName of the OrgPolicy which was modified with non-compliant change and\nresulted in this violation.\nFormat:\nprojects/{project_number}/policies/{constraint_name}\nfolders/{folder_id}/policies/{constraint_name}\norganizations/{organization_id}/policies/{constraint_name}\n\n### setNonCompliantOrgPolicy\n\nOptional. This field is deprecated and will be removed in future version of the API.\n\nName of the OrgPolicy which was modified with non-compliant change and\nresulted in this violation.\nFormat:\nprojects/{project_number}/policies/{constraint_name}\nfolders/{folder_id}/policies/{constraint_name}\norganizations/{organization_id}/policies/{constraint_name}"]]