# Binary Authorization v1beta1 API - Class AdmissionWhitelistPattern (2.0.0-beta09)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta09 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/latest/Google.Cloud.BinaryAuthorization.V1Beta1.AdmissionWhitelistPattern)
- [2.0.0-beta08](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/2.0.0-beta08/Google.Cloud.BinaryAuthorization.V1Beta1.AdmissionWhitelistPattern)
- [1.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/1.0.0-beta05/Google.Cloud.BinaryAuthorization.V1Beta1.AdmissionWhitelistPattern)

    public sealed class AdmissionWhitelistPattern : IMessage<AdmissionWhitelistPattern>, IEquatable<AdmissionWhitelistPattern>, IDeepCloneable<AdmissionWhitelistPattern>, IBufferMessage, IMessage

Reference documentation and code samples for the Binary Authorization v1beta1 API class AdmissionWhitelistPattern.

An \[admission allowlist pattern\]\[google.cloud.binaryauthorization.v1beta1.AdmissionWhitelistPattern\] exempts images
from checks by \[admission rules\]\[google.cloud.binaryauthorization.v1beta1.AdmissionRule\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AdmissionWhitelistPattern

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AdmissionWhitelistPattern](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/latest/Google.Cloud.BinaryAuthorization.V1Beta1.AdmissionWhitelistPattern), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AdmissionWhitelistPattern](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/latest/Google.Cloud.BinaryAuthorization.V1Beta1.AdmissionWhitelistPattern), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AdmissionWhitelistPattern](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/latest/Google.Cloud.BinaryAuthorization.V1Beta1.AdmissionWhitelistPattern), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BinaryAuthorization.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/latest/Google.Cloud.BinaryAuthorization.V1Beta1)

## Assembly

Google.Cloud.BinaryAuthorization.V1Beta1.dll

## Constructors

### AdmissionWhitelistPattern()

    public AdmissionWhitelistPattern()

### AdmissionWhitelistPattern(AdmissionWhitelistPattern)

    public AdmissionWhitelistPattern(AdmissionWhitelistPattern other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BinaryAuthorization.V1Beta1/latest/Google.Cloud.BinaryAuthorization.V1Beta1.AdmissionWhitelistPattern` |

## Properties

### NamePattern

    public string NamePattern { get; set; }

An image name pattern to allowlist, in the form `registry/path/to/image`.
This supports a trailing `*` as a wildcard, but this is allowed only in
text after the `registry/` part. `*` wildcard does not match `/`, i.e.,
`gcr.io/nginx*` matches `gcr.io/nginx@latest`, but it does not match
`gcr.io/nginx/image`. This also supports a trailing `**` wildcard which
matches subdirectories, i.e., `gcr.io/nginx**` matches
`gcr.io/nginx/image`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |