# Google Cloud Security Command Center V1 Client - Class AccessReview (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class AccessReview.

Conveys information about a Kubernetes access review (such as one returned
by a [`kubectl auth
can-i`](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#checking-api-access)
command) that was involved in a finding.

Generated from protobuf message `google.cloud.securitycenter.v1.Kubernetes.AccessReview`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1 \\ Kubernetes

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ group` | `string` The API group of the resource. "\*" means all. |
| `↳ ns` | `string` Namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces. Both are represented by "" (empty). |
| `↳ name` | `string` The name of the resource being requested. Empty means all. |
| `↳ resource` | `string` The optional resource type requested. "\*" means all. |
| `↳ subresource` | `string` The optional subresource type. |
| `↳ verb` | `string` A Kubernetes resource API verb, like get, list, watch, create, update, delete, proxy. "\*" means all. |
| `↳ version` | `string` The API version of the resource. "\*" means all. |

### getGroup

The API group of the resource. "\*" means all.

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

### setGroup

The API group of the resource. "\*" means all.

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

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

### getNs

Namespace of the action being requested. Currently, there is no
distinction between no namespace and all namespaces. Both
are represented by "" (empty).

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

### setNs

Namespace of the action being requested. Currently, there is no
distinction between no namespace and all namespaces. Both
are represented by "" (empty).

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

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

### getName

The name of the resource being requested. Empty means all.

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

### setName

The name of the resource being requested. Empty means all.

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

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

### getResource

The optional resource type requested. "\*" means all.

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

### setResource

The optional resource type requested. "\*" means all.

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

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

### getSubresource

The optional subresource type.

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

### setSubresource

The optional subresource type.

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

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

### getVerb

A Kubernetes resource API verb, like get, list, watch, create, update,
delete, proxy. "\*" means all.

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

### setVerb

A Kubernetes resource API verb, like get, list, watch, create, update,
delete, proxy. "\*" means all.

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

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

### getVersion

The API version of the resource. "\*" means all.

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

### setVersion

The API version of the resource. "\*" means all.

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

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