public MapField<string, CleanupPolicy> CleanupPolicies { get; }
Optional. Cleanup policies for this repository. Cleanup policies indicate
when certain package versions can be automatically deleted. Map keys are
policy IDs supplied by users during policy creation. They must unique
within a repository and be under 128 characters in length.
The Cloud KMS resource name of the customer managed encryption key that's
used to encrypt the contents of the Repository. Has the form:
projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key.
This value may not be changed after the Repository has been created.
Labels with user-defined metadata.
This field may contain up to 64 entries. Label keys and values may be no
longer than 63 characters. Label keys must begin with a lowercase letter
and may only contain lowercase letters, numeric characters, underscores,
and dashes.
The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1. For each location
in a project, repository names must be unique.
Output only. The size, in bytes, of all artifact storage in this
repository. Repositories that are generally available or in public preview
use this to calculate storage costs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRepository\u003c/code\u003e class in the Google Cloud Artifact Registry v1 API is used for storing artifacts in a specified format, with the latest version being 2.9.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes properties such as \u003ccode\u003eCleanupPolicies\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eFormat\u003c/code\u003e, \u003ccode\u003eLabels\u003c/code\u003e, and \u003ccode\u003eSizeBytes\u003c/code\u003e, which allow users to manage repository settings, metadata, and storage details.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRepository\u003c/code\u003e class supports different types of repository configurations such as \u003ccode\u003eDockerConfig\u003c/code\u003e, \u003ccode\u003eMavenConfig\u003c/code\u003e, \u003ccode\u003eRemoteRepositoryConfig\u003c/code\u003e, and \u003ccode\u003eVirtualRepositoryConfig\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e from the object class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRepository\u003c/code\u003e class also includes properties for managing vulnerability scanning, \u003ccode\u003eVulnerabilityScanningConfig\u003c/code\u003e, and data compliance with \u003ccode\u003eSatisfiesPzi\u003c/code\u003e and \u003ccode\u003eSatisfiesPzs\u003c/code\u003e properties.\u003c/p\u003e\n"]]],[],null,["# Artifact Registry v1 API - Class Repository (2.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.9.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.8.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.7.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.6.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.5.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.4.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.3.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.2.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.1.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/2.0.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/1.1.0/Google.Cloud.ArtifactRegistry.V1.Repository)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/1.0.0/Google.Cloud.ArtifactRegistry.V1.Repository) \n\n public sealed class Repository : IMessage\u003cRepository\u003e, IEquatable\u003cRepository\u003e, IDeepCloneable\u003cRepository\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Artifact Registry v1 API class Repository.\n\nA Repository for storing artifacts with a specific format. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Repository \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.Repository), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.Repository), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.Repository), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ArtifactRegistry.V1](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ArtifactRegistry.V1.dll\n\nConstructors\n------------\n\n### Repository()\n\n public Repository()\n\n### Repository(Repository)\n\n public Repository(Repository other)\n\nProperties\n----------\n\n### CleanupPolicies\n\n public MapField\u003cstring, CleanupPolicy\u003e CleanupPolicies { get; }\n\nOptional. Cleanup policies for this repository. Cleanup policies indicate\nwhen certain package versions can be automatically deleted. Map keys are\npolicy IDs supplied by users during policy creation. They must unique\nwithin a repository and be under 128 characters in length.\n\n### CleanupPolicyDryRun\n\n public bool CleanupPolicyDryRun { get; set; }\n\nOptional. If true, the cleanup pipeline is prevented from deleting versions\nin this repository.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time when the repository was created.\n\n### Description\n\n public string Description { get; set; }\n\nThe user-provided description of the repository.\n\n### DisallowUnspecifiedMode\n\n public bool DisallowUnspecifiedMode { get; set; }\n\nOptional. If this is true, an unspecified repo type will be treated as\nerror rather than defaulting to standard.\n\n### DockerConfig\n\n public Repository.Types.DockerRepositoryConfig DockerConfig { get; set; }\n\nDocker repository config contains repository level configuration\nfor the repositories of docker type.\n\n### Format\n\n public Repository.Types.Format Format { get; set; }\n\nOptional. The format of packages that are stored in the repository.\n\n### FormatConfigCase\n\n public Repository.FormatConfigOneofCase FormatConfigCase { get; }\n\n### KmsKeyName\n\n public string KmsKeyName { get; set; }\n\nThe Cloud KMS resource name of the customer managed encryption key that's\nused to encrypt the contents of the Repository. Has the form:\n`projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.\nThis value may not be changed after the Repository has been created.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nLabels with user-defined metadata.\nThis field may contain up to 64 entries. Label keys and values may be no\nlonger than 63 characters. Label keys must begin with a lowercase letter\nand may only contain lowercase letters, numeric characters, underscores,\nand dashes.\n\n### MavenConfig\n\n public Repository.Types.MavenRepositoryConfig MavenConfig { get; set; }\n\nMaven repository config contains repository level configuration\nfor the repositories of maven type.\n\n### Mode\n\n public Repository.Types.Mode Mode { get; set; }\n\nOptional. The mode of the repository.\n\n### ModeConfigCase\n\n public Repository.ModeConfigOneofCase ModeConfigCase { get; }\n\n### Name\n\n public string Name { get; set; }\n\nThe name of the repository, for example:\n`projects/p1/locations/us-central1/repositories/repo1`. For each location\nin a project, repository names must be unique.\n\n### RegistryUri\n\n public string RegistryUri { get; set; }\n\nOutput only. The repository endpoint, for example:\n`us-docker.pkg.dev/my-proj/my-repo`.\n\n### RemoteRepositoryConfig\n\n public RemoteRepositoryConfig RemoteRepositoryConfig { get; set; }\n\nConfiguration specific for a Remote Repository.\n\n### RepositoryName\n\n public RepositoryName RepositoryName { get; set; }\n\n[RepositoryName](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RepositoryName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.Repository#Google_Cloud_ArtifactRegistry_V1_Repository_Name) resource name property.\n\n### SatisfiesPzi\n\n public bool SatisfiesPzi { get; set; }\n\nOutput only. If set, the repository satisfies physical zone isolation.\n\n### SatisfiesPzs\n\n public bool SatisfiesPzs { get; set; }\n\nOutput only. If set, the repository satisfies physical zone separation.\n\n### SizeBytes\n\n public long SizeBytes { get; set; }\n\nOutput only. The size, in bytes, of all artifact storage in this\nrepository. Repositories that are generally available or in public preview\nuse this to calculate storage costs.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The time when the repository was last updated.\n\n### VirtualRepositoryConfig\n\n public VirtualRepositoryConfig VirtualRepositoryConfig { get; set; }\n\nConfiguration specific for a Virtual Repository.\n\n### VulnerabilityScanningConfig\n\n public Repository.Types.VulnerabilityScanningConfig VulnerabilityScanningConfig { get; set; }\n\nOptional. Config and state for vulnerability scanning of resources within\nthis Repository."]]