Skip to main content

generic_artifacts

Creates, updates, deletes, gets or lists a generic_artifacts resource.

Overview

Namegeneric_artifacts
TypeResource
Idgoogle.artifactregistry.generic_artifacts

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
uploadexecprojectsId, locationsId, repositoriesIdDirectly uploads a Generic artifact. The returned operation will complete once the resources are uploaded. Package, version, and file resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
repositoriesIdstring

Lifecycle Methods

Directly uploads a Generic artifact. The returned operation will complete once the resources are uploaded. Package, version, and file resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.

EXEC google.artifactregistry.generic_artifacts.upload 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@repositoriesId='{{ repositoriesId }}' --required
@@json=
'{
"packageId": "{{ packageId }}",
"versionId": "{{ versionId }}",
"filename": "{{ filename }}"
}';