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 \ MavenRepositoryConfigMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
VERSION_POLICY_UNSPECIFIED
Value: 0VERSION_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: 1RELEASE - repository will accept only Release versions.
Generated from protobuf enum RELEASE = 1;
SNAPSHOT
Value: 2SNAPSHOT - repository will accept only Snapshot versions.
Generated from protobuf enum SNAPSHOT = 2;