Skip to main content

Gcp/artifactregistry

@swamp/gcp/artifactregistryv2026.05.31.1· 2d agoMODELS
01README

Google Cloud artifactregistry infrastructure models

02Release Notes
  • Added: repositories_prewarmedartifacts
  • Updated: locations, repositories
03Models13
@swamp/gcp/artifactregistry/locationsv2026.05.31.1locations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
fn get(identifier: string)
Get a locations
ArgumentTypeDescription
identifierstringThe name of the locations
fn sync()
Sync locations state from GCP
fn list(extraLocationTypes?: string, filter?: string, pageSize?: number, maxPages?: number)
List locations resources
ArgumentTypeDescription
extraLocationTypes?stringOptional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
filter?stringA filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
pageSize?numberThe maximum number of results to return. If not set, the service selects a default.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn get_project_config()
get project config
fn get_vpcsc_config()
get vpcsc config
fn update_project_config(name?: any, platformLogsConfig?: any)
update project config
ArgumentTypeDescription
name?any
platformLogsConfig?any
fn update_vpcsc_config(name?: any, vpcscPolicy?: any)
update vpcsc config
ArgumentTypeDescription
name?any
vpcscPolicy?any

Resources

state(infinite)— A resource that represents a Google Cloud location.
@swamp/gcp/artifactregistry/repositoriesv2026.05.31.1repositories.ts

Global Arguments

ArgumentTypeDescription
cleanupPolicies?recordOptional. 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.
cleanupPolicyDryRun?booleanOptional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
description?stringThe user-provided description of the repository.
disallowUnspecifiedMode?booleanOptional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
dockerConfig?objectDockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type.
format?enumOptional. The format of packages that are stored in the repository.
kmsKeyName?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.
labels?recordLabels 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.
mavenConfig?objectMavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.
mode?enumOptional. The mode of the repository.
name?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.
platformLogsConfig?objectThe platform logs config for a project or a repository.
remoteRepositoryConfig?objectRemote repository configuration.
virtualRepositoryConfig?objectVirtual repository configuration.
vulnerabilityScanningConfig?objectConfig on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.
repositoryId?stringRequired. The repository id to use for this repository.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create()
Create a repositories
fn get(identifier: string)
Get a repositories
ArgumentTypeDescription
identifierstringThe name of the repositories
fn update()
Update repositories attributes
fn delete(identifier: string)
Delete the repositories
ArgumentTypeDescription
identifierstringThe name of the repositories
fn sync()
Sync repositories state from GCP
fn list(filter?: string, orderBy?: string, pageSize?: number, maxPages?: number)
List repositories resources
ArgumentTypeDescription
filter?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 be
orderBy?stringOptional. The field to order the results by.
pageSize?numberThe maximum number of repositories to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn check_prewarmed_artifact(streamLocation?: any, tag?: any, version?: any)
check prewarmed artifact
ArgumentTypeDescription
streamLocation?any
tag?any
version?any
fn export_artifact(gcsPath?: any, sourceTag?: any, sourceVersion?: any)
export artifact
ArgumentTypeDescription
gcsPath?any
sourceTag?any
sourceVersion?any
fn get_iam_policy()
get iam policy
fn prewarm_artifact(force?: any, retentionDays?: any, streamLocation?: any, tag?: any, version?: any)
prewarm artifact
ArgumentTypeDescription
force?any
retentionDays?any
streamLocation?any
tag?any
version?any
fn set_iam_policy(policy?: any)
set iam policy
ArgumentTypeDescription
policy?any
fn test_iam_permissions(permissions?: any)
test iam permissions
ArgumentTypeDescription
permissions?any

Resources

state(infinite)— A Repository for storing artifacts with a specific format.
@swamp/gcp/artifactregistry/repositories-attachmentsv2026.05.25.1repositories_attachments.ts

Global Arguments

ArgumentTypeDescription
annotations?recordOptional. User annotations. These attributes can only be set and used by the user, and not by Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
attachmentNamespace?stringThe namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`.
files?arrayRequired. The files that belong to this attachment. If the file ID part contains slashes, they are escaped. E.g. `projects/p1/locations/us-central1/repositories/repo1/files/sha:`.
name?stringThe name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`.
target?stringRequired. The target the attachment is for, can be a Version, Package or Repository. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`.
type?stringType of attachment. E.g. `application/vnd.spdx+json`
attachmentId?stringRequired. The attachment id to use for this attachment.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create()
Create a attachments
fn get(identifier: string)
Get a attachments
ArgumentTypeDescription
identifierstringThe name of the attachments
fn delete(identifier: string)
Delete the attachments
ArgumentTypeDescription
identifierstringThe name of the attachments
fn sync()
Sync attachments state from GCP
fn list(filter?: string, pageSize?: number, maxPages?: number)
List attachments resources
ArgumentTypeDescription
filter?stringOptional. An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `target` * `type` * `attachment_namespace`
pageSize?numberThe maximum number of attachments to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— An Attachment refers to additional metadata that can be attached to artifacts...
@swamp/gcp/artifactregistry/repositories-dockerimagesv2026.05.25.1repositories_dockerimages.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a dockerImages
ArgumentTypeDescription
identifierstringThe name of the dockerImages
fn sync()
Sync dockerImages state from GCP
fn list(orderBy?: string, pageSize?: number, maxPages?: number)
List dockerImages resources
ArgumentTypeDescription
orderBy?stringThe field to order the results by.
pageSize?numberThe maximum number of artifacts to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— DockerImage represents a docker artifact. The following fields are returned a...
@swamp/gcp/artifactregistry/repositories-filesv2026.05.25.1repositories_files.ts

Global Arguments

ArgumentTypeDescription
annotations?recordOptional. Client specified annotations.
createTime?stringOutput only. The time when the File was created.
fetchTime?stringOutput only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
hashes?arrayThe hashes of the file content.
name?stringThe name of the file, for example: `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes, they are escaped.
owner?stringThe name of the Package or Version that owns this file, if any.
sizeBytes?stringThe size of the File in bytes.
updateTime?stringOutput only. The time when the File was last updated.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a files
ArgumentTypeDescription
identifierstringThe name of the files
fn update()
Update files attributes
fn delete(identifier: string)
Delete the files
ArgumentTypeDescription
identifierstringThe name of the files
fn sync()
Sync files state from GCP
fn list(filter?: string, orderBy?: string, pageSize?: number, maxPages?: number)
List files resources
ArgumentTypeDescription
filter?stringAn expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `owner` * `annotations` Examples of using a filter: To filter the results of your request to files with the name `my_file.txt` in project `my-project` in the `us-central` region, in repository `my-repo`, append the following filter expression to your request: * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` You can
orderBy?stringThe field to order the results by.
pageSize?numberThe maximum number of files to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn download()
download
fn upload(fileId?: any)
upload
ArgumentTypeDescription
fileId?any

Resources

state(infinite)— Files store content that is potentially associated with Packages or Versions.
@swamp/gcp/artifactregistry/repositories-mavenartifactsv2026.05.25.1repositories_mavenartifacts.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a mavenArtifacts
ArgumentTypeDescription
identifierstringThe name of the mavenArtifacts
fn sync()
Sync mavenArtifacts state from GCP
fn list(pageSize?: number, maxPages?: number)
List mavenArtifacts resources
ArgumentTypeDescription
pageSize?numberThe maximum number of artifacts to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— MavenArtifact represents a maven artifact.
@swamp/gcp/artifactregistry/repositories-npmpackagesv2026.05.25.1repositories_npmpackages.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a npmPackages
ArgumentTypeDescription
identifierstringThe name of the npmPackages
fn sync()
Sync npmPackages state from GCP
fn list(pageSize?: number, maxPages?: number)
List npmPackages resources
ArgumentTypeDescription
pageSize?numberThe maximum number of artifacts to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— NpmPackage represents an npm artifact.
@swamp/gcp/artifactregistry/repositories-packagesv2026.05.25.1repositories_packages.ts

Global Arguments

ArgumentTypeDescription
annotations?recordOptional. Client specified annotations.
createTime?stringThe time when the package was created.
displayName?stringThe display name of the package.
name?stringThe name of the package, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. If the package ID part contains slashes, the slashes are escaped.
updateTime?stringThe time when the package was last updated. This includes publishing a new version of the package.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a packages
ArgumentTypeDescription
identifierstringThe name of the packages
fn update()
Update packages attributes
fn delete(identifier: string)
Delete the packages
ArgumentTypeDescription
identifierstringThe name of the packages
fn sync()
Sync packages state from GCP
fn list(filter?: string, orderBy?: string, pageSize?: number, maxPages?: number)
List packages resources
ArgumentTypeDescription
filter?stringOptional. An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `annotations` Examples of using a filter: To filter the results of your request to packages with the name `my-package` in project `my-project` in the `us-central` region, in repository `my-repo`, append the following filter expression to your request: * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"` You
orderBy?stringOptional. The field to order the results by.
pageSize?numberThe maximum number of packages to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Packages are named collections of versions.
@swamp/gcp/artifactregistry/repositories-packages-tagsv2026.05.25.1repositories_packages_tags.ts

Global Arguments

ArgumentTypeDescription
name?stringThe name of the tag, for example: "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9\\-._~:@], anything else must be URL encoded.
version?stringThe name of the version the tag refers to, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` If the package or version ID parts contain slashes, the slashes are escaped.
tagId?stringThe tag id to use for this repository.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create()
Create a tags
fn get(identifier: string)
Get a tags
ArgumentTypeDescription
identifierstringThe name of the tags
fn update()
Update tags attributes
fn delete(identifier: string)
Delete the tags
ArgumentTypeDescription
identifierstringThe name of the tags
fn sync()
Sync tags state from GCP
fn list(filter?: string, pageSize?: number, maxPages?: number)
List tags resources
ArgumentTypeDescription
filter?stringAn expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `version` Examples of using a filter: To filter the results of your request to tags with the name `my-tag` in package `my-package` in repository `my-repo` in project "`y-project` in the us-central region, append the following filter expression to your request: * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/m
pageSize?numberThe maximum number of tags to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— Tags point to a version and represent an alternative name that can be used to...
@swamp/gcp/artifactregistry/repositories-packages-versionsv2026.05.25.1repositories_packages_versions.ts

Global Arguments

ArgumentTypeDescription
annotations?recordOptional. Client specified annotations.
createTime?stringThe time when the version was created.
description?stringOptional. Description of the version, as specified in its metadata.
fingerprints?arrayOutput only. Immutable reference for the version, calculated based on the version's content. Currently we only support dirsum_sha256 hash algorithm. Additional hash algorithms may be added in the future.
metadata?recordOutput only. Repository-specific Metadata stored against this version. The fields returned are defined by the underlying repository-specific resource. Currently, the resources could be: DockerImage MavenArtifact
name?stringThe name of the version, for example: `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`. If the package or version ID parts contain slashes, the slashes are escaped.
relatedTags?arrayOutput only. A list of related tags. Will contain up to 100 tags that reference this version.
updateTime?stringThe time when the version was last updated.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a versions
ArgumentTypeDescription
identifierstringThe name of the versions
fn update()
Update versions attributes
fn delete(identifier: string)
Delete the versions
ArgumentTypeDescription
identifierstringThe name of the versions
fn sync()
Sync versions state from GCP
fn list(filter?: string, orderBy?: string, pageSize?: number, view?: string, maxPages?: number)
List versions resources
ArgumentTypeDescription
filter?stringOptional. An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `annotations` Examples of using a filter: To filter the results of your request to versions with the name `my-version` in project `my-project` in the `us-central` region, in repository `my-repo`, append the following filter expression to your request: * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versi
orderBy?stringOptional. The field to order the results by.
pageSize?numberThe maximum number of versions to return. Maximum page size is 1,000.
view?stringThe view that should be returned in the response.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn batch_delete(names?: any, validateOnly?: any)
batch delete
ArgumentTypeDescription
names?any
validateOnly?any

Resources

state(infinite)— The body of a version resource. A version resource represents a collection of...
@swamp/gcp/artifactregistry/repositories-prewarmedartifactsv2026.05.31.1repositories_prewarmedartifacts.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a prewarmedArtifacts
ArgumentTypeDescription
identifierstringThe name of the prewarmedArtifacts
fn sync()
Sync prewarmedArtifacts state from GCP
fn list(filter?: string, pageSize?: number, maxPages?: number)
List prewarmedArtifacts resources
ArgumentTypeDescription
filter?stringOptional. Filter should only support The location of the prewarmed artifacts. multi-region is not supported for this field.
pageSize?numberOptional. The maximum number of prewarmed artifacts to return. Maximum page size is 1,000. Default page size is 100.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— PrewarmedArtifact represents a streamed artifact.
@swamp/gcp/artifactregistry/repositories-pythonpackagesv2026.05.25.1repositories_pythonpackages.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn get(identifier: string)
Get a pythonPackages
ArgumentTypeDescription
identifierstringThe name of the pythonPackages
fn sync()
Sync pythonPackages state from GCP
fn list(pageSize?: number, maxPages?: number)
List pythonPackages resources
ArgumentTypeDescription
pageSize?numberThe maximum number of artifacts to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— PythonPackage represents a python artifact.
@swamp/gcp/artifactregistry/repositories-rulesv2026.05.25.1repositories_rules.ts

Global Arguments

ArgumentTypeDescription
action?enumThe action this rule takes.
condition?objectRepresents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == r
name?stringThe name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
operation?enum
packageId?stringThe package ID the rule applies to. If empty, this rule applies to all packages inside the repository.
ruleId?stringThe rule id to use for this repository.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create()
Create a rules
fn get(identifier: string)
Get a rules
ArgumentTypeDescription
identifierstringThe name of the rules
fn update()
Update rules attributes
fn delete(identifier: string)
Delete the rules
ArgumentTypeDescription
identifierstringThe name of the rules
fn sync()
Sync rules state from GCP
fn list(pageSize?: number, maxPages?: number)
List rules resources
ArgumentTypeDescription
pageSize?numberThe maximum number of rules to return. Maximum page size is 1,000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— A rule defines the deny or allow action of the operation it applies to and th...
04Previous Versions12
2026.05.25.1May 25, 2026
  • Updated: locations, repositories, repositories_attachments, repositories_dockerimages, repositories_files, repositories_mavenartifacts, repositories_npmpackages, repositories_packages, repositories_packages_tags, repositories_packages_versions, repositories_pythonpackages, repositories_rules

Modified 12 models

2026.05.24.1May 24, 2026
  • Updated: locations, repositories, repositories_attachments, repositories_dockerimages, repositories_files, repositories_mavenartifacts, repositories_npmpackages, repositories_packages, repositories_packages_tags, repositories_packages_versions, repositories_pythonpackages, repositories_rules
2026.05.21.2May 21, 2026
  • Updated: locations, repositories, repositories_attachments, repositories_dockerimages, repositories_files, repositories_mavenartifacts, repositories_npmpackages, repositories_packages, repositories_packages_tags, repositories_packages_versions, repositories_pythonpackages, repositories_rules
2026.05.21.1May 21, 2026

Modified 1 models

2026.05.19.2May 19, 2026
2026.05.19.1May 19, 2026
2026.05.18.1May 18, 2026
2026.04.23.1Apr 23, 2026
2026.04.03.3Apr 3, 2026
  • Updated: locations, repositories, repositories_attachments, repositories_dockerimages, repositories_files, repositories_mavenartifacts, repositories_npmpackages, repositories_packages, repositories_packages_tags, repositories_packages_versions, repositories_pythonpackages, repositories_rules
2026.04.03.1Apr 3, 2026
  • Updated: locations, repositories, repositories_attachments, repositories_dockerimages, repositories_files, repositories_mavenartifacts, repositories_npmpackages, repositories_packages, repositories_packages_tags, repositories_packages_versions, repositories_pythonpackages, repositories_rules
2026.04.02.2Apr 2, 2026
2026.03.27.1Mar 27, 2026
  • Added: locations, repositories, repositories_attachments, repositories_dockerimages, repositories_files, repositories_mavenartifacts, repositories_npmpackages, repositories_packages, repositories_packages_tags, repositories_packages_versions, repositories_pythonpackages, repositories_rules
05Stats
A
100 / 100
Downloads
8
Archive size
102.5 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels