# Google Cloud Deploy V1 API - Class Google::Cloud::Deploy::V1::PolicyViolationDetails (v2.5.0)

2.5.0 (latest) 2.4.1 2.3.0 2.2.0 2.1.1 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.0 1.0.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Deploy V1 API class Google::Cloud::Deploy::V1::PolicyViolationDetails.

Policy violation details.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #failure_message

    def failure_message() -> ::String

**Returns**

- (::String) --- User readable message about why the request violated a policy. This is not intended for machine parsing.

### #failure_message=

    def failure_message=(value) -> ::String

**Parameter**

- **value** (::String) --- User readable message about why the request violated a policy. This is not intended for machine parsing.
**Returns**

- (::String) --- User readable message about why the request violated a policy. This is not intended for machine parsing.

### #policy

    def policy() -> ::String

**Returns**

- (::String) --- Name of the policy that was violated. Policy resource will be in the format of `projects/{project}/locations/{location}/policies/{policy}`.

### #policy=

    def policy=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of the policy that was violated. Policy resource will be in the format of `projects/{project}/locations/{location}/policies/{policy}`.
**Returns**

- (::String) --- Name of the policy that was violated. Policy resource will be in the format of `projects/{project}/locations/{location}/policies/{policy}`.

### #rule_id

    def rule_id() -> ::String

**Returns**

- (::String) --- Id of the rule that triggered the policy violation.

### #rule_id=

    def rule_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Id of the rule that triggered the policy violation.
**Returns**

- (::String) --- Id of the rule that triggered the policy violation.