# Assured Workloads for Government V1 API - Class Google::Cloud::AssuredWorkloads::V1::AcknowledgeViolationRequest (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 Reference documentation and code samples for the Assured Workloads for Government V1 API class Google::Cloud::AssuredWorkloads::V1::AcknowledgeViolationRequest.

Request for acknowledging the violation
Next Id: 4

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #comment

    def comment() -> ::String

**Returns**

- (::String) --- Required. Business justification explaining the need for violation acknowledgement

### #comment=

    def comment=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Business justification explaining the need for violation acknowledgement
**Returns**

- (::String) --- Required. Business justification explaining the need for violation acknowledgement

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}
**Returns**

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

### #non_compliant_org_policy

    def non_compliant_org_policy() -> ::String

**Returns**

- (::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}

### #non_compliant_org_policy=

    def non_compliant_org_policy=(value) -> ::String

**Parameter**

- **value** (::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}
**Returns**

- (::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}