public sealed class Repository : IMessage<Repository>, IEquatable<Repository>, IDeepCloneable<Repository>, IBufferMessage, IMessage
Reference documentation and code samples for the Artifact Registry v1 API class Repository.
A Repository for storing artifacts with a specific format.
Implements
IMessageRepository, IEquatableRepository, IDeepCloneableRepository, IBufferMessage, IMessageNamespace
Google.Cloud.ArtifactRegistry.V1Assembly
Google.Cloud.ArtifactRegistry.V1.dll
Constructors
Repository()
public Repository()
Repository(Repository)
public Repository(Repository other)
Parameter | |
---|---|
Name | Description |
other |
Repository |
Properties
CleanupPolicies
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.
Property Value | |
---|---|
Type | Description |
MapFieldstringCleanupPolicy |
CleanupPolicyDryRun
public bool CleanupPolicyDryRun { get; set; }
Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
Property Value | |
---|---|
Type | Description |
bool |
CreateTime
public Timestamp CreateTime { get; set; }
Output only. The time when the repository was created.
Property Value | |
---|---|
Type | Description |
Timestamp |
Description
public string Description { get; set; }
The user-provided description of the repository.
Property Value | |
---|---|
Type | Description |
string |
DockerConfig
public Repository.Types.DockerRepositoryConfig DockerConfig { get; set; }
Docker repository config contains repository level configuration for the repositories of docker type.
Property Value | |
---|---|
Type | Description |
RepositoryTypesDockerRepositoryConfig |
Format
public Repository.Types.Format Format { get; set; }
Optional. The format of packages that are stored in the repository.
Property Value | |
---|---|
Type | Description |
RepositoryTypesFormat |
FormatConfigCase
public Repository.FormatConfigOneofCase FormatConfigCase { get; }
Property Value | |
---|---|
Type | Description |
RepositoryFormatConfigOneofCase |
KmsKeyName
public string KmsKeyName { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
Labels
public MapField<string, string> Labels { get; }
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.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
MavenConfig
public Repository.Types.MavenRepositoryConfig MavenConfig { get; set; }
Maven repository config contains repository level configuration for the repositories of maven type.
Property Value | |
---|---|
Type | Description |
RepositoryTypesMavenRepositoryConfig |
Mode
public Repository.Types.Mode Mode { get; set; }
Optional. The mode of the repository.
Property Value | |
---|---|
Type | Description |
RepositoryTypesMode |
ModeConfigCase
public Repository.ModeConfigOneofCase ModeConfigCase { get; }
Property Value | |
---|---|
Type | Description |
RepositoryModeConfigOneofCase |
Name
public string Name { get; set; }
The name of the repository, for example:
projects/p1/locations/us-central1/repositories/repo1
.
Property Value | |
---|---|
Type | Description |
string |
RemoteRepositoryConfig
public RemoteRepositoryConfig RemoteRepositoryConfig { get; set; }
Configuration specific for a Remote Repository.
Property Value | |
---|---|
Type | Description |
RemoteRepositoryConfig |
RepositoryName
public RepositoryName RepositoryName { get; set; }
RepositoryName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
RepositoryName |
SatisfiesPzs
public bool SatisfiesPzs { get; set; }
Output only. If set, the repository satisfies physical zone separation.
Property Value | |
---|---|
Type | Description |
bool |
SizeBytes
public long SizeBytes { get; set; }
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.
Property Value | |
---|---|
Type | Description |
long |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The time when the repository was last updated.
Property Value | |
---|---|
Type | Description |
Timestamp |
VirtualRepositoryConfig
public VirtualRepositoryConfig VirtualRepositoryConfig { get; set; }
Configuration specific for a Virtual Repository.
Property Value | |
---|---|
Type | Description |
VirtualRepositoryConfig |