# Policy Troubleshooter V3 API - Class Google::Iam::V2::PolicyRule (v0.12.0)

0.12.0 (latest) 0.11.1 0.10.0 0.9.1 0.8.0 0.7.0 0.6.1 0.5.0 0.4.1 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Policy Troubleshooter V3 API class Google::Iam::V2::PolicyRule.

A single rule in a `Policy`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #deny_rule

    def deny_rule() -> ::Google::Iam::V2::DenyRule

**Returns**

- ([::Google::Iam::V2::DenyRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_troubleshooter-iam-v3/latest/Google-Iam-V2-DenyRule)) --- A rule for a deny policy.

### #deny_rule=

    def deny_rule=(value) -> ::Google::Iam::V2::DenyRule

**Parameter**

- **value** ([::Google::Iam::V2::DenyRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_troubleshooter-iam-v3/latest/Google-Iam-V2-DenyRule)) --- A rule for a deny policy.
**Returns**

- ([::Google::Iam::V2::DenyRule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_troubleshooter-iam-v3/latest/Google-Iam-V2-DenyRule)) --- A rule for a deny policy.

### #description

    def description() -> ::String

**Returns**

- (::String) --- A user-specified description of the rule. This value can be up to 256 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- A user-specified description of the rule. This value can be up to 256 characters.
**Returns**

- (::String) --- A user-specified description of the rule. This value can be up to 256 characters.