NAME
Google::Devtools::Artifactregistry::V1::Repository - Compiled Protocol Buffers messages for google/devtools/artifactregistry/v1/repository.proto
SYNOPSIS
use Google::Devtools::Artifactregistry::V1::Repository;
my $msg = Google::Devtools::Artifactregistry::V1::Repository::UpstreamPolicy->new({
id => $id,
repository => $repository,
priority => $priority,
});
# Read or update a field
my $val = $msg->id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devtools::Artifactregistry::V1::Repository::UpstreamPolicy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devtools/artifactregistry/v1/repository.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Devtools::Artifactregistry::V1::Repository::UpstreamPolicy
Artifact policy configuration for the repository contents.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringThe user-provided ID of the upstream policy.
$msg->repository()/$msg->repository($value)Type:
StringA reference to the repository resource, for example: `projects/p1/locations/us-central1/repositories/repo1`.
$msg->priority()/$msg->priority($value)Type:
Int32Entries with a greater priority value take precedence in the pull order.
Google::Devtools::Artifactregistry::V1::Repository::CleanupPolicyCondition
CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied.
Inherits from Protobuf::Message.
Accessors
$msg->tag_state()/$msg->tag_state($value)Type:
Enum(Google::Devtools::Artifactregistry::V1::CleanupPolicyCondition::TagState)Match versions by tag status.
$msg->tag_prefixes()/$msg->tag_prefixes($value)Type:
StringMatch versions by tag prefix. Applied on any prefix match.
$msg->version_name_prefixes()/$msg->version_name_prefixes($value)Type:
StringMatch versions by version name prefix. Applied on any prefix match.
$msg->package_name_prefixes()/$msg->package_name_prefixes($value)Type:
StringMatch versions by package prefix. Applied on any prefix match.
$msg->older_than()/$msg->older_than($value)Type:
Message(Google::Protobuf::Duration::Duration)Match versions older than a duration.
$msg->newer_than()/$msg->newer_than($value)Type:
Message(Google::Protobuf::Duration::Duration)Match versions newer than a duration.
Enum: CleanupPolicyCondition::TagState
TAG_STATE_UNSPECIFIED=>0TAGGED=>1UNTAGGED=>2ANY=>3
Google::Devtools::Artifactregistry::V1::Repository::CleanupPolicyMostRecentVersions
CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy for retaining a minimum number of versions.
Inherits from Protobuf::Message.
Accessors
$msg->package_name_prefixes()/$msg->package_name_prefixes($value)Type:
StringList of package name prefixes that will apply this rule.
$msg->keep_count()/$msg->keep_count($value)Type:
Int32Minimum number of versions to keep.
Google::Devtools::Artifactregistry::V1::Repository::CleanupPolicy
Artifact policy configuration for repository cleanup policies.
Inherits from Protobuf::Message.
Accessors
$msg->condition()/$msg->condition($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::CleanupPolicyCondition)Policy condition for matching versions.
$msg->most_recent_versions()/$msg->most_recent_versions($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::CleanupPolicyMostRecentVersions)Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.
$msg->id()/$msg->id($value)Type:
StringThe user-provided ID of the cleanup policy.
$msg->action()/$msg->action($value)Type:
Enum(Google::Devtools::Artifactregistry::V1::CleanupPolicy::Action)Policy action.
Enum: CleanupPolicy::Action
ACTION_UNSPECIFIED=>0DELETE=>1KEEP=>2
Google::Devtools::Artifactregistry::V1::Repository::VirtualRepositoryConfig
Virtual repository configuration.
Inherits from Protobuf::Message.
Accessors
$msg->upstream_policies()/$msg->upstream_policies($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::UpstreamPolicy)Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.
Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig
Remote repository configuration.
Inherits from Protobuf::Message.
Accessors
$msg->docker_repository()/$msg->docker_repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::DockerRepository)Specific settings for a Docker remote repository.
$msg->maven_repository()/$msg->maven_repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::MavenRepository)Specific settings for a Maven remote repository.
$msg->npm_repository()/$msg->npm_repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::NpmRepository)Specific settings for an Npm remote repository.
$msg->python_repository()/$msg->python_repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::PythonRepository)Specific settings for a Python remote repository.
$msg->apt_repository()/$msg->apt_repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::AptRepository)Specific settings for an Apt remote repository.
$msg->yum_repository()/$msg->yum_repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::YumRepository)Specific settings for a Yum remote repository.
$msg->common_repository()/$msg->common_repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::CommonRemoteRepository)Common remote repository settings. Used as the remote repository upstream URL.
$msg->description()/$msg->description($value)Type:
StringThe description of the remote source.
$msg->upstream_credentials()/$msg->upstream_credentials($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig::UpstreamCredentials)Optional. The credentials used to access the remote repository.
$msg->disable_upstream_validation()/$msg->disable_upstream_validation($value)Type:
BoolInput only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials.
Google::Devtools::Artifactregistry::V1::Repository::Repository
A Repository for storing artifacts with a specific format.
Inherits from Protobuf::Message.
Accessors
$msg->maven_config()/$msg->maven_config($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository::MavenRepositoryConfig)Maven repository config contains repository level configuration for the repositories of maven type.
$msg->docker_config()/$msg->docker_config($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository::DockerRepositoryConfig)Docker repository config contains repository level configuration for the repositories of docker type.
$msg->virtual_repository_config()/$msg->virtual_repository_config($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::VirtualRepositoryConfig)Configuration specific for a Virtual Repository.
$msg->remote_repository_config()/$msg->remote_repository_config($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::RemoteRepositoryConfig)Configuration specific for a Remote Repository.
$msg->name()/$msg->name($value)Type:
StringThe name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For each location in a project, repository names must be unique.
$msg->format()/$msg->format($value)Type:
Enum(Google::Devtools::Artifactregistry::V1::Repository::Format)Optional. The format of packages that are stored in the repository.
$msg->description()/$msg->description($value)Type:
StringThe user-provided description of the repository.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository::LabelsEntry)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.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the repository was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the repository was last updated.
$msg->kms_key_name()/$msg->kms_key_name($value)Type:
StringThe 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.
$msg->mode()/$msg->mode($value)Type:
Enum(Google::Devtools::Artifactregistry::V1::Repository::Mode)Optional. The mode of the repository.
$msg->cleanup_policies()/$msg->cleanup_policies($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository::CleanupPoliciesEntry)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.
$msg->size_bytes()/$msg->size_bytes($value)Type:
Int64Output 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.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOutput only. Whether or not this repository satisfies PZS.
$msg->cleanup_policy_dry_run()/$msg->cleanup_policy_dry_run($value)Type:
BoolOptional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
$msg->vulnerability_scanning_config()/$msg->vulnerability_scanning_config($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository::VulnerabilityScanningConfig)Optional. Config and state for vulnerability scanning of resources within this Repository.
$msg->disallow_unspecified_mode()/$msg->disallow_unspecified_mode($value)Type:
BoolOptional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
$msg->satisfies_pzi()/$msg->satisfies_pzi($value)Type:
BoolOutput only. Whether or not this repository satisfies PZI.
$msg->registry_uri()/$msg->registry_uri($value)Type:
StringOutput only. The repository endpoint, for example: `us-docker.pkg.dev/my-proj/my-repo`.
Enum: Repository::Format
FORMAT_UNSPECIFIED=>0DOCKER=>1MAVEN=>2NPM=>3APT=>5YUM=>6PYTHON=>8KFP=>9GO=>10GENERIC=>11RUBY=>12
Enum: Repository::Mode
MODE_UNSPECIFIED=>0STANDARD_REPOSITORY=>1VIRTUAL_REPOSITORY=>2REMOTE_REPOSITORY=>3
Google::Devtools::Artifactregistry::V1::Repository::ListRepositoriesRequest
The request to list repositories.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent resource whose repositories will be listed.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of repositories to return. Maximum page size is 1,000.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request, if any.
$msg->filter()/$msg->filter($value)Type:
StringOptional. An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are:
* `name` Examples of using a filter:To filter the results of your request to repositories with the name `my-repo` in project `my-project` in the `us-central` region, append the following filter expression to your request:
* `name="projects/my-project/locations/us-central1/repositories/my-repo"` You can also use wildcards to match any number of characters before or after the value: * `name="projects/my-project/locations/us-central1/repositories/my-*"` * `name="projects/my-project/locations/us-central1/repositories/*repo"` * `name="projects/my-project/locations/us-central1/repositories/*repo*"`$msg->order_by()/$msg->order_by($value)Type:
StringOptional. The field to order the results by.
Google::Devtools::Artifactregistry::V1::Repository::ListRepositoriesResponse
The response from listing repositories.
Inherits from Protobuf::Message.
Accessors
$msg->repositories()/$msg->repositories($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository)The repositories returned.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe token to retrieve the next page of repositories, or empty if there are no more repositories to return.
Google::Devtools::Artifactregistry::V1::Repository::GetRepositoryRequest
The request to retrieve a repository.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the repository to retrieve.
Google::Devtools::Artifactregistry::V1::Repository::CreateRepositoryRequest
The request to create a new repository.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent resource where the repository will be created.
$msg->repository_id()/$msg->repository_id($value)Type:
StringRequired. The repository id to use for this repository.
$msg->repository()/$msg->repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository)Required. The repository to be created.
Google::Devtools::Artifactregistry::V1::Repository::UpdateRepositoryRequest
The request to update a repository.
Inherits from Protobuf::Message.
Accessors
$msg->repository()/$msg->repository($value)Type:
Message(Google::Devtools::Artifactregistry::V1::Repository::Repository)The repository that replaces the resource on the server.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
Google::Devtools::Artifactregistry::V1::Repository::DeleteRepositoryRequest
The request to delete a repository.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the repository to delete.
SEE ALSO
Protobuf, Protobuf::Message, Google::Devtools::Artifactregistry::V1::Repository::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.