# Artifact Registry v1beta2 API - Enum Repository.Types.MavenRepositoryConfig.Types.VersionPolicy (2.0.0-beta06)

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

- [2.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig.Types.VersionPolicy)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/2.0.0-beta05/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig.Types.VersionPolicy)
- [1.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/1.0.0-beta06/Google.Cloud.ArtifactRegistry.V1Beta2.Repository.Types.MavenRepositoryConfig.Types.VersionPolicy)

    public enum Repository.Types.MavenRepositoryConfig.Types.VersionPolicy

Reference documentation and code samples for the Artifact Registry v1beta2 API enum Repository.Types.MavenRepositoryConfig.Types.VersionPolicy.

VersionPolicy is the version policy for the repository.

## Namespace

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

## Assembly

Google.Cloud.ArtifactRegistry.V1Beta2.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `Release` | RELEASE - repository will accept only Release versions. |
| `Snapshot` | SNAPSHOT - repository will accept only Snapshot versions. |
| `Unspecified` | VERSION_POLICY_UNSPECIFIED - the version policy is not defined. When the version policy is not defined, no validation is performed for the versions. |