# Artifact Registry V1 API - Class Google::Cloud::ArtifactRegistry::V1::Repository (v1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Artifact Registry V1 API class Google::Cloud::ArtifactRegistry::V1::Repository.

A Repository for storing artifacts with a specific format.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cleanup_policies

    def cleanup_policies() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy}) --- 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.

### #cleanup_policies=

    def cleanup_policies=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy}) --- 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.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ArtifactRegistry::V1::CleanupPolicy}) --- 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.

### #cleanup_policy_dry_run

    def cleanup_policy_dry_run() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.

### #cleanup_policy_dry_run=

    def cleanup_policy_dry_run=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
**Returns**

- (::Boolean) --- Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the repository was created.

### #description

    def description() -> ::String

**Returns**

- (::String) --- The user-provided description of the repository.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- The user-provided description of the repository.
**Returns**

- (::String) --- The user-provided description of the repository.

### #disallow_unspecified_mode

    def disallow_unspecified_mode() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.

### #disallow_unspecified_mode=

    def disallow_unspecified_mode=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
**Returns**

- (::Boolean) --- Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.

### #docker_config

    def docker_config() -> ::Google::Cloud::ArtifactRegistry::V1::Repository::DockerRepositoryConfig

**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::DockerRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-DockerRepositoryConfig)) --- Docker repository config contains repository level configuration for the repositories of docker type.


  Note: The following fields are mutually exclusive: `docker_config`, `maven_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #docker_config=

    def docker_config=(value) -> ::Google::Cloud::ArtifactRegistry::V1::Repository::DockerRepositoryConfig

**Parameter**

- **value** ([::Google::Cloud::ArtifactRegistry::V1::Repository::DockerRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-DockerRepositoryConfig)) --- Docker repository config contains repository level configuration for the repositories of docker type.


  Note: The following fields are mutually exclusive: `docker_config`, `maven_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::DockerRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-DockerRepositoryConfig)) --- Docker repository config contains repository level configuration for the repositories of docker type.


  Note: The following fields are mutually exclusive: `docker_config`, `maven_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #format

    def format() -> ::Google::Cloud::ArtifactRegistry::V1::Repository::Format

**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::Format](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-Format)) --- Optional. The format of packages that are stored in the repository.

### #format=

    def format=(value) -> ::Google::Cloud::ArtifactRegistry::V1::Repository::Format

**Parameter**

- **value** ([::Google::Cloud::ArtifactRegistry::V1::Repository::Format](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-Format)) --- Optional. The format of packages that are stored in the repository.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::Format](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-Format)) --- Optional. The format of packages that are stored in the repository.

### #kms_key_name

    def kms_key_name() -> ::String

**Returns**

- (::String) --- 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.

### #kms_key_name=

    def kms_key_name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- 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.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- 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.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- 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.

### #maven_config

    def maven_config() -> ::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig

**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-MavenRepositoryConfig)) --- Maven repository config contains repository level configuration for the repositories of maven type.


  Note: The following fields are mutually exclusive: `maven_config`, `docker_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #maven_config=

    def maven_config=(value) -> ::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig

**Parameter**

- **value** ([::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-MavenRepositoryConfig)) --- Maven repository config contains repository level configuration for the repositories of maven type.


  Note: The following fields are mutually exclusive: `maven_config`, `docker_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-MavenRepositoryConfig)) --- Maven repository config contains repository level configuration for the repositories of maven type.


  Note: The following fields are mutually exclusive: `maven_config`, `docker_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #mode

    def mode() -> ::Google::Cloud::ArtifactRegistry::V1::Repository::Mode

**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::Mode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-Mode)) --- Optional. The mode of the repository.

### #mode=

    def mode=(value) -> ::Google::Cloud::ArtifactRegistry::V1::Repository::Mode

**Parameter**

- **value** ([::Google::Cloud::ArtifactRegistry::V1::Repository::Mode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-Mode)) --- Optional. The mode of the repository.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::Mode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-Mode)) --- Optional. The mode of the repository.

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #registry_uri

    def registry_uri() -> ::String

**Returns**

- (::String) --- Output only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.

### #remote_repository_config

    def remote_repository_config() -> ::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig

**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-RemoteRepositoryConfig)) --- Configuration specific for a Remote Repository.


  Note: The following fields are mutually exclusive: `remote_repository_config`, `virtual_repository_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #remote_repository_config=

    def remote_repository_config=(value) -> ::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig

**Parameter**

- **value** ([::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-RemoteRepositoryConfig)) --- Configuration specific for a Remote Repository.


  Note: The following fields are mutually exclusive: `remote_repository_config`, `virtual_repository_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::RemoteRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-RemoteRepositoryConfig)) --- Configuration specific for a Remote Repository.


  Note: The following fields are mutually exclusive: `remote_repository_config`, `virtual_repository_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #satisfies_pzi

    def satisfies_pzi() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Whether or not this repository satisfies PZI.

### #satisfies_pzs

    def satisfies_pzs() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Whether or not this repository satisfies PZS.

### #size_bytes

    def size_bytes() -> ::Integer

**Returns**

- (::Integer) --- 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.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the repository was last updated.

### #virtual_repository_config

    def virtual_repository_config() -> ::Google::Cloud::ArtifactRegistry::V1::VirtualRepositoryConfig

**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::VirtualRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VirtualRepositoryConfig)) --- Configuration specific for a Virtual Repository.


  Note: The following fields are mutually exclusive: `virtual_repository_config`, `remote_repository_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #virtual_repository_config=

    def virtual_repository_config=(value) -> ::Google::Cloud::ArtifactRegistry::V1::VirtualRepositoryConfig

**Parameter**

- **value** ([::Google::Cloud::ArtifactRegistry::V1::VirtualRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VirtualRepositoryConfig)) --- Configuration specific for a Virtual Repository.


  Note: The following fields are mutually exclusive: `virtual_repository_config`, `remote_repository_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::VirtualRepositoryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-VirtualRepositoryConfig)) --- Configuration specific for a Virtual Repository.


  Note: The following fields are mutually exclusive: `virtual_repository_config`, `remote_repository_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #vulnerability_scanning_config

    def vulnerability_scanning_config() -> ::Google::Cloud::ArtifactRegistry::V1::Repository::VulnerabilityScanningConfig

**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::VulnerabilityScanningConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-VulnerabilityScanningConfig)) --- Optional. Config and state for vulnerability scanning of resources within this Repository.

### #vulnerability_scanning_config=

    def vulnerability_scanning_config=(value) -> ::Google::Cloud::ArtifactRegistry::V1::Repository::VulnerabilityScanningConfig

**Parameter**

- **value** ([::Google::Cloud::ArtifactRegistry::V1::Repository::VulnerabilityScanningConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-VulnerabilityScanningConfig)) --- Optional. Config and state for vulnerability scanning of resources within this Repository.
**Returns**

- ([::Google::Cloud::ArtifactRegistry::V1::Repository::VulnerabilityScanningConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-artifact_registry-v1/latest/Google-Cloud-ArtifactRegistry-V1-Repository-VulnerabilityScanningConfig)) --- Optional. Config and state for vulnerability scanning of resources within this Repository.