[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Artifact Registry V1 Client - Class VersionPolicy (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-artifact-registry/latest/V1.Repository.MavenRepositoryConfig.VersionPolicy)\n- [1.2.0](/php/docs/reference/cloud-artifact-registry/1.2.0/V1.Repository.MavenRepositoryConfig.VersionPolicy)\n- [1.1.3](/php/docs/reference/cloud-artifact-registry/1.1.3/V1.Repository.MavenRepositoryConfig.VersionPolicy)\n- [1.0.0](/php/docs/reference/cloud-artifact-registry/1.0.0/V1.Repository.MavenRepositoryConfig.VersionPolicy)\n- [0.6.5](/php/docs/reference/cloud-artifact-registry/0.6.5/V1.Repository.MavenRepositoryConfig.VersionPolicy)\n- [0.5.1](/php/docs/reference/cloud-artifact-registry/0.5.1/V1.Repository.MavenRepositoryConfig.VersionPolicy)\n- [0.4.4](/php/docs/reference/cloud-artifact-registry/0.4.4/V1.Repository.MavenRepositoryConfig.VersionPolicy)\n- [0.3.13](/php/docs/reference/cloud-artifact-registry/0.3.13/V1.Repository.MavenRepositoryConfig.VersionPolicy) \nReference documentation and code samples for the Google Cloud Artifact Registry V1 Client class VersionPolicy.\n\nVersionPolicy is the version policy for the repository.\n\nProtobuf type `google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ArtifactRegistry \\\\ V1 \\\\ Repository \\\\ MavenRepositoryConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### VERSION_POLICY_UNSPECIFIED\n\n Value: 0\n\nVERSION_POLICY_UNSPECIFIED - the version policy is not defined.\n\nWhen the version policy is not defined, no validation is performed\nfor the versions.\n\nGenerated from protobuf enum `VERSION_POLICY_UNSPECIFIED = 0;`\n\n### RELEASE\n\n Value: 1\n\nRELEASE - repository will accept only Release versions.\n\nGenerated from protobuf enum `RELEASE = 1;`\n\n### SNAPSHOT\n\n Value: 2\n\nSNAPSHOT - repository will accept only Snapshot versions.\n\nGenerated from protobuf enum `SNAPSHOT = 2;`"]]