# Google Cloud Binary Authorization V1 Client - Class AdmissionWhitelistPattern (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.8.7 0.7.0 0.6.1 0.5.13 Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class AdmissionWhitelistPattern.

An [admission allowlist pattern](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.AdmissionWhitelistPattern) exempts images
from checks by [admission rules](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.AdmissionRule).

Generated from protobuf message `google.cloud.binaryauthorization.v1.AdmissionWhitelistPattern`

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name_pattern` | `string` An image name pattern to allowlist, in the form `registry/path/to/image`. This supports a trailing `*` wildcard, but this is allowed only in text after the `registry/` part. This also supports a trailing `**` wildcard which matches subdirectories of a given entry. |

### getNamePattern

An image name pattern to allowlist, in the form `registry/path/to/image`.

This supports a trailing `*` wildcard, but this is allowed only in
text after the `registry/` part. This also supports a trailing `**`
wildcard which matches subdirectories of a given entry.

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

### setNamePattern

An image name pattern to allowlist, in the form `registry/path/to/image`.

This supports a trailing `*` wildcard, but this is allowed only in
text after the `registry/` part. This also supports a trailing `**`
wildcard which matches subdirectories of a given entry.

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

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