# Package types (1.22.0)

1.22.0 (latest) 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.1 1.15.2 1.14.0 1.13.1 1.12.0 1.11.5 1.10.0 1.9.0 1.8.4 1.7.0 1.6.1 1.5.0 1.4.1 1.3.3 1.2.1 1.1.2 1.0.2 0.5.0 0.4.1 0.3.3 0.2.2 0.1.0 API documentation for `artifactregistry_v1.types` package.

## Classes

### [AptArtifact](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.AptArtifact)

A detailed representation of an Apt artifact. Information in
the record is derived from the archive's control file. See
<https://www.debian.org/doc/debian-policy/ch-controlfields.html>

### [Attachment](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.Attachment)

An Attachment refers to additional metadata that can be
attached to artifacts in Artifact Registry. An attachment
consists of one or more files.

### [BatchDeleteVersionsMetadata](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.BatchDeleteVersionsMetadata)

The metadata of an LRO from deleting multiple versions.

### [BatchDeleteVersionsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.BatchDeleteVersionsRequest)

The request to delete multiple versions across a repository.

### [CleanupPolicy](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.CleanupPolicy)

Artifact policy configuration for repository cleanup
policies.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [CleanupPolicyCondition](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.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.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [CleanupPolicyMostRecentVersions](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.CleanupPolicyMostRecentVersions)

CleanupPolicyMostRecentVersions is an alternate condition of
a CleanupPolicy for retaining a minimum number of versions.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [CreateAttachmentRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.CreateAttachmentRequest)

The request to create a new attachment.

### [CreateRepositoryRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.CreateRepositoryRequest)

The request to create a new repository.

### [CreateRuleRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.CreateRuleRequest)

The request to create a new rule.

### [CreateTagRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.CreateTagRequest)

The request to create a new tag.

### [DeleteAttachmentRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DeleteAttachmentRequest)

The request to delete an attachment.

### [DeleteFileRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DeleteFileRequest)

The request to delete a file.

### [DeletePackageRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DeletePackageRequest)

The request to delete a package.

### [DeleteRepositoryRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DeleteRepositoryRequest)

The request to delete a repository.

### [DeleteRuleRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DeleteRuleRequest)

The request to delete a rule.

### [DeleteTagRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DeleteTagRequest)

The request to delete a tag.

### [DeleteVersionRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DeleteVersionRequest)

The request to delete a version.

### [DockerImage](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.DockerImage)

DockerImage represents a docker artifact. The following fields are
returned as untyped metadata in the Version resource, using
camelcase keys (i.e. metadata.imageSizeBytes):

- imageSizeBytes
- mediaType
- buildTime

### [ExportArtifactMetadata](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ExportArtifactMetadata)

The LRO metadata for exporting an artifact.

### [ExportArtifactRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ExportArtifactRequest)

The request for exporting an artifact to a destination.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [ExportArtifactResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ExportArtifactResponse)

The response for exporting an artifact to a destination.

### [File](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.File)

Files store content that is potentially associated with
Packages or Versions.

### [GenericArtifact](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GenericArtifact)

GenericArtifact represents a generic artifact

### [GetAttachmentRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetAttachmentRequest)

The request to retrieve an attachment.

### [GetDockerImageRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetDockerImageRequest)

The request to get docker images.

### [GetFileRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetFileRequest)

The request to retrieve a file.

### [GetMavenArtifactRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetMavenArtifactRequest)

The request to get maven artifacts.

### [GetNpmPackageRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetNpmPackageRequest)

The request to get npm packages.

### [GetPackageRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetPackageRequest)

The request to retrieve a package.

### [GetProjectSettingsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetProjectSettingsRequest)

Gets the redirection status for a project.

### [GetPythonPackageRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetPythonPackageRequest)

The request to get python packages.

### [GetRepositoryRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetRepositoryRequest)

The request to retrieve a repository.

### [GetRuleRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetRuleRequest)

The request to retrieve a rule.

### [GetTagRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetTagRequest)

The request to retrieve a tag.

### [GetVPCSCConfigRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetVPCSCConfigRequest)

Gets the VPC SC config for a project.

### [GetVersionRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GetVersionRequest)

The request to retrieve a version.

### [GoModule](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.GoModule)

GoModule represents a Go module.

### [Hash](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.Hash)

A hash of file content.

### [ImageManifest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImageManifest)

Details of a single image manifest within a multi-arch image.

### [ImportAptArtifactsErrorInfo](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportAptArtifactsErrorInfo)

Error information explaining why a package was not imported.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [ImportAptArtifactsGcsSource](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportAptArtifactsGcsSource)

Google Cloud Storage location where the artifacts currently
reside.

### [ImportAptArtifactsMetadata](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportAptArtifactsMetadata)

The operation metadata for importing artifacts.

### [ImportAptArtifactsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportAptArtifactsRequest)

The request to import new apt artifacts.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [ImportAptArtifactsResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportAptArtifactsResponse)

The response message from importing APT artifacts.

### [ImportYumArtifactsErrorInfo](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportYumArtifactsErrorInfo)

Error information explaining why a package was not imported.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [ImportYumArtifactsGcsSource](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportYumArtifactsGcsSource)

Google Cloud Storage location where the artifacts currently
reside.

### [ImportYumArtifactsMetadata](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportYumArtifactsMetadata)

The operation metadata for importing artifacts.

### [ImportYumArtifactsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportYumArtifactsRequest)

The request to import new yum artifacts.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [ImportYumArtifactsResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ImportYumArtifactsResponse)

The response message from importing YUM artifacts.

### [KfpArtifact](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.KfpArtifact)

A detailed representation of a KFP artifact.

### [ListAttachmentsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListAttachmentsRequest)

The request to list attachments.

### [ListAttachmentsResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListAttachmentsResponse)

The response from listing attachments.

### [ListDockerImagesRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListDockerImagesRequest)

The request to list docker images.

### [ListDockerImagesResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListDockerImagesResponse)

The response from listing docker images.

### [ListFilesRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListFilesRequest)

The request to list files.

### [ListFilesResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListFilesResponse)

The response from listing files.

### [ListMavenArtifactsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListMavenArtifactsRequest)

The request to list maven artifacts.

### [ListMavenArtifactsResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListMavenArtifactsResponse)

The response from listing maven artifacts.

### [ListNpmPackagesRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListNpmPackagesRequest)

The request to list npm packages.

### [ListNpmPackagesResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListNpmPackagesResponse)

The response from listing npm packages.

### [ListPackagesRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListPackagesRequest)

The request to list packages.

### [ListPackagesResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListPackagesResponse)

The response from listing packages.

### [ListPythonPackagesRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListPythonPackagesRequest)

The request to list python packages.

### [ListPythonPackagesResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListPythonPackagesResponse)

The response from listing python packages.

### [ListRepositoriesRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListRepositoriesRequest)

The request to list repositories.

### [ListRepositoriesResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListRepositoriesResponse)

The response from listing repositories.

### [ListRulesRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListRulesRequest)

The request to list rules.

### [ListRulesResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListRulesResponse)

The response from listing rules.

### [ListTagsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListTagsRequest)

The request to list tags.

### [ListTagsResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListTagsResponse)

The response from listing tags.

### [ListVersionsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListVersionsRequest)

The request to list versions.

### [ListVersionsResponse](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ListVersionsResponse)

The response from listing versions.

### [MavenArtifact](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.MavenArtifact)

MavenArtifact represents a maven artifact.

### [NpmPackage](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.NpmPackage)

NpmPackage represents an npm artifact.

### [OperationMetadata](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.OperationMetadata)

Metadata type for longrunning-operations, currently empty.

### [Package](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.Package)

Packages are named collections of versions.

### [ProjectSettings](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.ProjectSettings)

The Artifact Registry settings that apply to a Project.

### [PythonPackage](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.PythonPackage)

PythonPackage represents a python artifact.

### [RemoteRepositoryConfig](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.RemoteRepositoryConfig)

Remote repository configuration.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [Repository](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.Repository)

A Repository for storing artifacts with a specific format.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [Rule](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.Rule)

A rule defines the deny or allow action of the operation it
applies to and the conditions required for the rule to apply.
You can set one rule for an entire repository and one rule for
each package within.

### [Tag](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.Tag)

Tags point to a version and represent an alternative name
that can be used to access the version.

### [UpdateFileRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdateFileRequest)

The request to update a file.

### [UpdatePackageRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdatePackageRequest)

The request to update a package.

### [UpdateProjectSettingsRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdateProjectSettingsRequest)

Sets the settings of the project.

### [UpdateRepositoryRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdateRepositoryRequest)

The request to update a repository.

### [UpdateRuleRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdateRuleRequest)

The request to update a rule.

### [UpdateTagRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdateTagRequest)

The request to create or update a tag.

### [UpdateVPCSCConfigRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdateVPCSCConfigRequest)

Sets the VPCSC config of the project.

### [UpdateVersionRequest](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpdateVersionRequest)

The request to update a version.

### [UpstreamPolicy](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.UpstreamPolicy)

Artifact policy configuration for the repository contents.

### [VPCSCConfig](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.VPCSCConfig)

The Artifact Registry VPC SC config that apply to a Project.

### [Version](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.Version)

The body of a version resource. A version resource represents
a collection of components, such as files and other data. This
may correspond to a version in many package management schemes.

### [VersionView](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.VersionView)

The view, which determines what version information is
returned in a response.

### [VirtualRepositoryConfig](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.VirtualRepositoryConfig)

Virtual repository configuration.

### [YumArtifact](https://docs.cloud.google.com/python/docs/reference/artifactregistry/latest/google.cloud.artifactregistry_v1.types.YumArtifact)

A detailed representation of a Yum artifact.