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.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eRepository\u003c/code\u003e class within the Artifact Registry v1beta2 API for storing artifacts.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRepository\u003c/code\u003e class is a sealed class that 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.\u003c/p\u003e\n"],["\u003cp\u003eIt allows users to define properties such as \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eFormat\u003c/code\u003e, \u003ccode\u003eKmsKeyName\u003c/code\u003e, and \u003ccode\u003eLabels\u003c/code\u003e to describe and manage the repository.\u003c/p\u003e\n"],["\u003cp\u003eThe repository supports various package formats and provides configuration options through \u003ccode\u003eMavenConfig\u003c/code\u003e and manages format configuration through \u003ccode\u003eFormatConfigCase\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class also has properties for \u003ccode\u003eUpdateTime\u003c/code\u003e, and \u003ccode\u003eRepositoryName\u003c/code\u003e which provides details about the repositories data.\u003c/p\u003e\n"]]],[],null,["# Artifact Registry v1beta2 API - Class Repository (2.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository)\n- [2.0.0-beta04](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/2.0.0-beta04/Google.Cloud.ArtifactRegistry.V1Beta2.Repository)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/1.0.0-beta06/Google.Cloud.ArtifactRegistry.V1Beta2.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 v1beta2 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.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Repository](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.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.V1Beta2](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2)\n\nAssembly\n--------\n\nGoogle.Cloud.ArtifactRegistry.V1Beta2.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### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nThe 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### Format\n\n public Repository.Types.Format Format { get; set; }\n\nThe 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### Name\n\n public string Name { get; set; }\n\nThe name of the repository, for example:\n\"projects/p1/locations/us-central1/repositories/repo1\".\n\n### RepositoryName\n\n public RepositoryName RepositoryName { get; set; }\n\n[RepositoryName](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.RepositoryName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1Beta2/latest/Google.Cloud.ArtifactRegistry.V1Beta2.Repository#Google_Cloud_ArtifactRegistry_V1Beta2_Repository_Name) resource name property.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nThe time when the repository was last updated."]]