1.7.2 (latest) 1.7.1 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class VersionPolicy.

VersionPolicy is the version policy for the repository.

Protobuf type `google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1 \\ Repository \\ MavenRepositoryConfig

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### VERSION_POLICY_UNSPECIFIED

    Value: 0

VERSION_POLICY_UNSPECIFIED - the version policy is not defined.

When the version policy is not defined, no validation is performed
for the versions.

Generated from protobuf enum `VERSION_POLICY_UNSPECIFIED = 0;`

### RELEASE

    Value: 1

RELEASE - repository will accept only Release versions.

Generated from protobuf enum `RELEASE = 1;`

### SNAPSHOT

    Value: 2

SNAPSHOT - repository will accept only Snapshot versions.

Generated from protobuf enum `SNAPSHOT = 2;`