# Google Cloud Policy Troubleshooter Iam V3 Client - Class ExplainedDenyResource (0.4.4)

0.4.4 (latest) 0.4.3 0.3.1 0.2.9 0.1.2 Reference documentation and code samples for the Google Cloud Policy Troubleshooter Iam V3 Client class ExplainedDenyResource.

Details about how a specific resource contributed to the deny policy
evaluation.

Generated from protobuf message `google.cloud.policytroubleshooter.iam.v3.ExplainedDenyResource`

## Namespace

Google \\ Cloud \\ PolicyTroubleshooter \\ Iam \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ deny_access_state` | `int` Required. Indicates whether any policies attached to *this resource* deny the specific permission to the specified principal for the specified resource. This field does *not* indicate whether the principal actually has the permission for the resource. There might be another policy that overrides this policy. To determine whether the principal actually has the permission, use the `overall_access_state` field in the [TroubleshootIamPolicyResponse](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.TroubleshootIamPolicyResponse). |
| `↳ full_resource_name` | `string` The full resource name that identifies the resource. For example, `//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`. If the sender of the request does not have access to the policy, this field is omitted. For examples of full resource names for Google Cloud services, see <https://cloud.google.com/iam/help/troubleshooter/full-resource-names>. |
| `↳ explained_policies` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ExplainedDenyPolicy>` List of IAM deny policies that were evaluated to check the principal's denied permissions, with annotations to indicate how each policy contributed to the final result. |
| `↳ relevance` | `int` The relevance of this policy to the overall access state in the [TroubleshootIamPolicyResponse](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.TroubleshootIamPolicyResponse). If the sender of the request does not have access to the policy, this field is omitted. |

### getDenyAccessState

Required. Indicates whether any policies attached to *this resource* deny
the specific permission to the specified principal for the specified
resource.

This field does *not* indicate whether the principal actually has the
permission for the resource. There might be another policy that overrides
this policy. To determine whether the principal actually has the
permission, use the `overall_access_state` field in the
[TroubleshootIamPolicyResponse](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.TroubleshootIamPolicyResponse).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DenyAccessState](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.DenyAccessState). |

### setDenyAccessState

Required. Indicates whether any policies attached to *this resource* deny
the specific permission to the specified principal for the specified
resource.

This field does *not* indicate whether the principal actually has the
permission for the resource. There might be another policy that overrides
this policy. To determine whether the principal actually has the
permission, use the `overall_access_state` field in the
[TroubleshootIamPolicyResponse](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.TroubleshootIamPolicyResponse).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DenyAccessState](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.DenyAccessState). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFullResourceName

The full resource name that identifies the resource. For example,
`//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.

If the sender of the request does not have access to the policy, this field
is omitted.
For examples of full resource names for Google Cloud services, see
<https://cloud.google.com/iam/help/troubleshooter/full-resource-names>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFullResourceName

The full resource name that identifies the resource. For example,
`//compute.googleapis.com/projects/my-project/zones/us-central1-a/instances/my-instance`.

If the sender of the request does not have access to the policy, this field
is omitted.
For examples of full resource names for Google Cloud services, see
<https://cloud.google.com/iam/help/troubleshooter/full-resource-names>.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getExplainedPolicies

List of IAM deny policies that were evaluated to check the principal's
denied permissions, with annotations to indicate how each policy
contributed to the final result.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ExplainedDenyPolicy>` |   |

### setExplainedPolicies

List of IAM deny policies that were evaluated to check the principal's
denied permissions, with annotations to indicate how each policy
contributed to the final result.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.ExplainedDenyPolicy>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRelevance

The relevance of this policy to the overall access state in the
[TroubleshootIamPolicyResponse](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.TroubleshootIamPolicyResponse).

If the sender of the request does not have access to the policy, this field
is omitted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [HeuristicRelevance](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.HeuristicRelevance). |

### setRelevance

The relevance of this policy to the overall access state in the
[TroubleshootIamPolicyResponse](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.TroubleshootIamPolicyResponse).

If the sender of the request does not have access to the policy, this field
is omitted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [HeuristicRelevance](https://docs.cloud.google.com/php/docs/reference/cloud-policytroubleshooter-iam/latest/V3.HeuristicRelevance). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |