01README
Google Cloud artifactregistry infrastructure models
02Models
@swamp/gcp/artifactregistry/locationsv2026.04.23.1locations.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
fn get(identifier: string)
Get a locations
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| name? | any | |
| platformLogsConfig? | any |
fn update_vpcsc_config(name?: any, vpcscPolicy?: any)
update vpcsc config
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| cleanupPolicies? | record | 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. |
| cleanupPolicyDryRun? | boolean | Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository. |
| description? | string | The user-provided description of the repository. |
| disallowUnspecifiedMode? | boolean | Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard. |
| dockerConfig? | object | DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. |
| format? | enum | Optional. The format of packages that are stored in the repository. |
| kmsKeyName? | 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? | record | 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. |
| mavenConfig? | object | MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. |
| mode? | enum | Optional. The mode of the repository. |
| name? | 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. |
| platformLogsConfig? | object | The platform logs config for a project or a repository. |
| remoteRepositoryConfig? | object | Remote repository configuration. |
| virtualRepositoryConfig? | object | Virtual repository configuration. |
| vulnerabilityScanningConfig? | object | Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state. |
| repositoryId? | string | Required. The repository id to use for this repository. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a repositories
fn get(identifier: string)
Get a repositories
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the repositories |
fn update()
Update repositories attributes
fn delete(identifier: string)
Delete the repositories
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the repositories |
fn sync()
Sync repositories state from GCP
fn export_artifact(gcsPath?: any, sourceTag?: any, sourceVersion?: any)
export artifact
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| annotations? | record | Optional. 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? | string | The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`. |
| files? | array | Required. 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? | string | The name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`. |
| target? | string | Required. 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? | string | Type of attachment. E.g. `application/vnd.spdx+json` |
| attachmentId? | string | Required. The attachment id to use for this attachment. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a attachments
fn get(identifier: string)
Get a attachments
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the attachments |
fn delete(identifier: string)
Delete the attachments
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a dockerImages
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| annotations? | record | Optional. Client specified annotations. |
| createTime? | string | Output only. The time when the File was created. |
| fetchTime? | string | Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote. |
| hashes? | array | The hashes of the file content. |
| name? | string | The 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? | string | The name of the Package or Version that owns this file, if any. |
| sizeBytes? | string | The size of the File in bytes. |
| updateTime? | string | Output only. The time when the File was last updated. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a files
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the files |
fn update()
Update files attributes
fn delete(identifier: string)
Delete the files
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the files |
fn sync()
Sync files state from GCP
fn download()
download
fn upload(fileId?: any)
upload
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a mavenArtifacts
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a npmPackages
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| annotations? | record | Optional. Client specified annotations. |
| createTime? | string | The time when the package was created. |
| displayName? | string | The display name of the package. |
| name? | string | The 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? | string | The time when the package was last updated. This includes publishing a new version of the package. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a packages
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the packages |
fn update()
Update packages attributes
fn delete(identifier: string)
Delete the packages
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| name? | string | The 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? | string | The 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? | string | The tag id to use for this repository. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a tags
fn get(identifier: string)
Get a tags
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the tags |
fn update()
Update tags attributes
fn delete(identifier: string)
Delete the tags
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| annotations? | record | Optional. Client specified annotations. |
| createTime? | string | The time when the version was created. |
| description? | string | Optional. Description of the version, as specified in its metadata. |
| fingerprints? | array | Output 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? | record | Output 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? | string | The 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? | array | Output only. A list of related tags. Will contain up to 100 tags that reference this version. |
| updateTime? | string | The time when the version was last updated. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a versions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the versions |
fn update()
Update versions attributes
fn delete(identifier: string)
Delete the versions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the versions |
fn sync()
Sync versions state from GCP
fn batch_delete(names?: any, validateOnly?: any)
batch delete
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a pythonPackages
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| action? | enum | The action this rule takes. |
| condition? | object | Represents 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? | string | The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`. |
| operation? | enum | |
| packageId? | string | The package ID the rule applies to. If empty, this rule applies to all packages inside the repository. |
| ruleId? | string | The rule id to use for this repository. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a rules
fn get(identifier: string)
Get a rules
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the rules |
fn update()
Update rules attributes
fn delete(identifier: string)
Delete the rules
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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 Versions
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