Skip to main content

Gcp/artifactregistry

@swamp/gcp/artifactregistryv2026.04.23.1· 8d agoMODELS
01README

Google Cloud artifactregistry infrastructure models

02Models12
@swamp/gcp/artifactregistry/locationsv2026.04.23.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 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.04.23.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 export_artifact(gcsPath?: any, sourceTag?: any, sourceVersion?: any)
export artifact
ArgumentTypeDescription
gcsPath?any
sourceTag?any
sourceVersion?any

Resources

state(infinite)— A Repository for storing artifacts with a specific format.
@swamp/gcp/artifactregistry/repositories-attachmentsv2026.04.23.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

Resources

state(infinite)— An Attachment refers to additional metadata that can be attached to artifacts...
@swamp/gcp/artifactregistry/repositories-dockerimagesv2026.04.23.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

Resources

state(infinite)— DockerImage represents a docker artifact. The following fields are returned a...
@swamp/gcp/artifactregistry/repositories-filesv2026.04.23.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 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.04.23.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

Resources

state(infinite)— MavenArtifact represents a maven artifact.
@swamp/gcp/artifactregistry/repositories-npmpackagesv2026.04.23.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

Resources

state(infinite)— NpmPackage represents an npm artifact.
@swamp/gcp/artifactregistry/repositories-packagesv2026.04.23.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

Resources

state(infinite)— Packages are named collections of versions.
@swamp/gcp/artifactregistry/repositories-packages-tagsv2026.04.23.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

Resources

state(infinite)— Tags point to a version and represent an alternative name that can be used to...
@swamp/gcp/artifactregistry/repositories-packages-versionsv2026.04.23.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 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-pythonpackagesv2026.04.23.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

Resources

state(infinite)— PythonPackage represents a python artifact.
@swamp/gcp/artifactregistry/repositories-rulesv2026.04.23.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

Resources

state(infinite)— A rule defines the deny or allow action of the operation it applies to and th...
03Previous Versions4
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
04Stats
A
100 / 100
Downloads
0
Archive size
45.2 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
  • Has description1/1earned
  • At least one platform tag (or universal)1/1earned
  • Two or more platform tags (or universal)1/1earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels