Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ArtifactRegistry

import { ArtifactRegistry } from "https://googleapis.deno.dev/v1/artifactregistry:v1.ts";

Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.

class ArtifactRegistry {
constructor(client?: CredentialsClient, baseUrl?: string);
async mediaDownload(name: string): Promise<DownloadFileResponse>;
async projectsGetProjectSettings(name: string): Promise<ProjectSettings>;
async projectsLocationsGet(name: string): Promise<Location>;
async projectsLocationsGetVpcscConfig(name: string): Promise<VPCSCConfig>;
async projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>;
async projectsLocationsOperationsGet(name: string): Promise<Operation>;
async projectsLocationsRepositoriesAptArtifactsImport(parent: string, req: ImportAptArtifactsRequest): Promise<Operation>;
async projectsLocationsRepositoriesAptArtifactsUpload(parent: string, req: UploadAptArtifactRequest): Promise<UploadAptArtifactMediaResponse>;
async projectsLocationsRepositoriesCreate(
parent: string,
): Promise<Operation>;
async projectsLocationsRepositoriesDelete(name: string): Promise<Operation>;
async projectsLocationsRepositoriesDockerImagesGet(name: string): Promise<DockerImage>;
async projectsLocationsRepositoriesDockerImagesList(parent: string, opts?: ProjectsLocationsRepositoriesDockerImagesListOptions): Promise<ListDockerImagesResponse>;
async projectsLocationsRepositoriesFilesGet(name: string): Promise<GoogleDevtoolsArtifactregistryV1File>;
async projectsLocationsRepositoriesFilesList(parent: string, opts?: ProjectsLocationsRepositoriesFilesListOptions): Promise<ListFilesResponse>;
async projectsLocationsRepositoriesGet(name: string): Promise<Repository>;
async projectsLocationsRepositoriesGetIamPolicy(resource: string, opts?: ProjectsLocationsRepositoriesGetIamPolicyOptions): Promise<Policy>;
async projectsLocationsRepositoriesGoModulesUpload(parent: string, req: UploadGoModuleRequest): Promise<UploadGoModuleMediaResponse>;
async projectsLocationsRepositoriesGoogetArtifactsImport(parent: string, req: ImportGoogetArtifactsRequest): Promise<Operation>;
async projectsLocationsRepositoriesGoogetArtifactsUpload(parent: string, req: UploadGoogetArtifactRequest): Promise<UploadGoogetArtifactMediaResponse>;
async projectsLocationsRepositoriesKfpArtifactsUpload(parent: string, req: UploadKfpArtifactRequest): Promise<UploadKfpArtifactMediaResponse>;
async projectsLocationsRepositoriesList(parent: string, opts?: ProjectsLocationsRepositoriesListOptions): Promise<ListRepositoriesResponse>;
async projectsLocationsRepositoriesMavenArtifactsGet(name: string): Promise<MavenArtifact>;
async projectsLocationsRepositoriesMavenArtifactsList(parent: string, opts?: ProjectsLocationsRepositoriesMavenArtifactsListOptions): Promise<ListMavenArtifactsResponse>;
async projectsLocationsRepositoriesNpmPackagesGet(name: string): Promise<NpmPackage>;
async projectsLocationsRepositoriesNpmPackagesList(parent: string, opts?: ProjectsLocationsRepositoriesNpmPackagesListOptions): Promise<ListNpmPackagesResponse>;
async projectsLocationsRepositoriesPackagesDelete(name: string): Promise<Operation>;
async projectsLocationsRepositoriesPackagesGet(name: string): Promise<Package>;
async projectsLocationsRepositoriesPackagesList(parent: string, opts?: ProjectsLocationsRepositoriesPackagesListOptions): Promise<ListPackagesResponse>;
async projectsLocationsRepositoriesPackagesPatch(
name: string,
req: Package,
): Promise<Package>;
async projectsLocationsRepositoriesPackagesTagsCreate(
parent: string,
req: Tag,
): Promise<Tag>;
async projectsLocationsRepositoriesPackagesTagsDelete(name: string): Promise<Empty>;
async projectsLocationsRepositoriesPackagesTagsGet(name: string): Promise<Tag>;
async projectsLocationsRepositoriesPackagesTagsList(parent: string, opts?: ProjectsLocationsRepositoriesPackagesTagsListOptions): Promise<ListTagsResponse>;
async projectsLocationsRepositoriesPackagesTagsPatch(
name: string,
req: Tag,
): Promise<Tag>;
async projectsLocationsRepositoriesPackagesVersionsBatchDelete(parent: string, req: BatchDeleteVersionsRequest): Promise<Operation>;
async projectsLocationsRepositoriesPackagesVersionsDelete(name: string, opts?: ProjectsLocationsRepositoriesPackagesVersionsDeleteOptions): Promise<Operation>;
async projectsLocationsRepositoriesPackagesVersionsGet(name: string, opts?: ProjectsLocationsRepositoriesPackagesVersionsGetOptions): Promise<Version>;
async projectsLocationsRepositoriesPackagesVersionsList(parent: string, opts?: ProjectsLocationsRepositoriesPackagesVersionsListOptions): Promise<ListVersionsResponse>;
async projectsLocationsRepositoriesPatch(
name: string,
): Promise<Repository>;
async projectsLocationsRepositoriesPythonPackagesGet(name: string): Promise<PythonPackage>;
async projectsLocationsRepositoriesPythonPackagesList(parent: string, opts?: ProjectsLocationsRepositoriesPythonPackagesListOptions): Promise<ListPythonPackagesResponse>;
async projectsLocationsRepositoriesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>;
async projectsLocationsRepositoriesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>;
async projectsLocationsRepositoriesYumArtifactsImport(parent: string, req: ImportYumArtifactsRequest): Promise<Operation>;
async projectsLocationsRepositoriesYumArtifactsUpload(parent: string, req: UploadYumArtifactRequest): Promise<UploadYumArtifactMediaResponse>;
async projectsLocationsUpdateVpcscConfig(
name: string,
): Promise<VPCSCConfig>;
async projectsUpdateProjectSettings(
name: string,
): Promise<ProjectSettings>;
}

§Constructors

§
new ArtifactRegistry(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
mediaDownload(name: string): Promise<DownloadFileResponse>
[src]

Download a file.

@param name

Required. The name of the file to download.

§
projectsGetProjectSettings(name: string): Promise<ProjectSettings>
[src]

Retrieves the Settings for the Project.

@param name

Required. The name of the projectSettings resource.

§
projectsLocationsGet(name: string): Promise<Location>
[src]

Gets information about a location.

@param name

Resource name for the location.

§
projectsLocationsGetVpcscConfig(name: string): Promise<VPCSCConfig>
[src]

Retrieves the VPCSC Config for the Project.

@param name

Required. The name of the VPCSCConfig resource.

§
projectsLocationsList(name: string, opts?: ProjectsLocationsListOptions): Promise<ListLocationsResponse>
[src]

Lists information about the supported locations for this service.

@param name

The resource that owns the locations collection, if applicable.

§
projectsLocationsOperationsGet(name: string): Promise<Operation>
[src]

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

@param name

The name of the operation resource.

§
projectsLocationsRepositoriesAptArtifactsImport(parent: string, req: ImportAptArtifactsRequest): Promise<Operation>
[src]

Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.

@param parent

The name of the parent resource where the artifacts will be imported.

§
projectsLocationsRepositoriesAptArtifactsUpload(parent: string, req: UploadAptArtifactRequest): Promise<UploadAptArtifactMediaResponse>
[src]

Directly uploads an Apt artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.

@param parent

The name of the parent resource where the artifacts will be uploaded.

§
projectsLocationsRepositoriesCreate(parent: string, req: Repository, opts?: ProjectsLocationsRepositoriesCreateOptions): Promise<Operation>
[src]

Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.

@param parent

Required. The name of the parent resource where the repository will be created.

§
projectsLocationsRepositoriesDelete(name: string): Promise<Operation>
[src]

Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.

@param name

Required. The name of the repository to delete.

§
projectsLocationsRepositoriesDockerImagesGet(name: string): Promise<DockerImage>
[src]

Gets a docker image.

@param name

Required. The name of the docker images.

§
projectsLocationsRepositoriesDockerImagesList(parent: string, opts?: ProjectsLocationsRepositoriesDockerImagesListOptions): Promise<ListDockerImagesResponse>
[src]

Lists docker images.

@param parent

Required. The name of the parent resource whose docker images will be listed.

§
projectsLocationsRepositoriesFilesGet(name: string): Promise<GoogleDevtoolsArtifactregistryV1File>
[src]

Gets a file.

@param name

Required. The name of the file to retrieve.

§
projectsLocationsRepositoriesFilesList(parent: string, opts?: ProjectsLocationsRepositoriesFilesListOptions): Promise<ListFilesResponse>
[src]

Lists files.

@param parent

Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1

§
projectsLocationsRepositoriesGet(name: string): Promise<Repository>
[src]

Gets a repository.

@param name

Required. The name of the repository to retrieve.

§
projectsLocationsRepositoriesGetIamPolicy(resource: string, opts?: ProjectsLocationsRepositoriesGetIamPolicyOptions): Promise<Policy>
[src]

Gets the IAM policy for a given resource.

@param resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsRepositoriesGoModulesUpload(parent: string, req: UploadGoModuleRequest): Promise<UploadGoModuleMediaResponse>
[src]

Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.

@param parent

The resource name of the repository where the Go module will be uploaded.

§
projectsLocationsRepositoriesGoogetArtifactsImport(parent: string, req: ImportGoogetArtifactsRequest): Promise<Operation>
[src]

Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.

@param parent

The name of the parent resource where the artifacts will be imported.

§
projectsLocationsRepositoriesGoogetArtifactsUpload(parent: string, req: UploadGoogetArtifactRequest): Promise<UploadGoogetArtifactMediaResponse>
[src]

Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.

@param parent

The name of the parent resource where the artifacts will be uploaded.

§
projectsLocationsRepositoriesKfpArtifactsUpload(parent: string, req: UploadKfpArtifactRequest): Promise<UploadKfpArtifactMediaResponse>
[src]

Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten.

@param parent

The resource name of the repository where the KFP artifact will be uploaded.

§
projectsLocationsRepositoriesList(parent: string, opts?: ProjectsLocationsRepositoriesListOptions): Promise<ListRepositoriesResponse>
[src]

Lists repositories.

@param parent

Required. The name of the parent resource whose repositories will be listed.

§
projectsLocationsRepositoriesMavenArtifactsGet(name: string): Promise<MavenArtifact>
[src]

Gets a maven artifact.

@param name

Required. The name of the maven artifact.

§
projectsLocationsRepositoriesMavenArtifactsList(parent: string, opts?: ProjectsLocationsRepositoriesMavenArtifactsListOptions): Promise<ListMavenArtifactsResponse>
[src]

Lists maven artifacts.

@param parent

Required. The name of the parent resource whose maven artifacts will be listed.

§
projectsLocationsRepositoriesNpmPackagesGet(name: string): Promise<NpmPackage>
[src]

Gets a npm package.

@param name

Required. The name of the npm package.

§
projectsLocationsRepositoriesNpmPackagesList(parent: string, opts?: ProjectsLocationsRepositoriesNpmPackagesListOptions): Promise<ListNpmPackagesResponse>
[src]

Lists npm packages.

@param parent

Required. The name of the parent resource whose npm packages will be listed.

§
projectsLocationsRepositoriesPackagesDelete(name: string): Promise<Operation>
[src]

Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.

@param name

Required. The name of the package to delete.

§
projectsLocationsRepositoriesPackagesGet(name: string): Promise<Package>
[src]

Gets a package.

@param name

Required. The name of the package to retrieve.

§
projectsLocationsRepositoriesPackagesList(parent: string, opts?: ProjectsLocationsRepositoriesPackagesListOptions): Promise<ListPackagesResponse>
[src]

Lists packages.

@param parent

Required. The name of the parent resource whose packages will be listed.

§
projectsLocationsRepositoriesPackagesPatch(name: string, req: Package, opts?: ProjectsLocationsRepositoriesPackagesPatchOptions): Promise<Package>
[src]

Updates a package.

@param name

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.

§
projectsLocationsRepositoriesPackagesTagsCreate(parent: string, req: Tag, opts?: ProjectsLocationsRepositoriesPackagesTagsCreateOptions): Promise<Tag>
[src]

Creates a tag.

@param parent

The name of the parent resource where the tag will be created.

§
projectsLocationsRepositoriesPackagesTagsDelete(name: string): Promise<Empty>
[src]

Deletes a tag.

@param name

The name of the tag to delete.

§
projectsLocationsRepositoriesPackagesTagsGet(name: string): Promise<Tag>
[src]

Gets a tag.

@param name

The name of the tag to retrieve.

§
projectsLocationsRepositoriesPackagesTagsList(parent: string, opts?: ProjectsLocationsRepositoriesPackagesTagsListOptions): Promise<ListTagsResponse>
[src]

Lists tags.

@param parent

The name of the parent package whose tags will be listed. For example: projects/p1/locations/us-central1/repositories/repo1/packages/pkg1.

§
projectsLocationsRepositoriesPackagesTagsPatch(name: string, req: Tag, opts?: ProjectsLocationsRepositoriesPackagesTagsPatchOptions): Promise<Tag>
[src]

Updates a tag.

@param name

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.

§
projectsLocationsRepositoriesPackagesVersionsBatchDelete(parent: string, req: BatchDeleteVersionsRequest): Promise<Operation>
[src]

Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.

@param parent

The name of the repository holding all requested versions.

§
projectsLocationsRepositoriesPackagesVersionsDelete(name: string, opts?: ProjectsLocationsRepositoriesPackagesVersionsDeleteOptions): Promise<Operation>
[src]

Deletes a version and all of its content. The returned operation will complete once the version has been deleted.

@param name

The name of the version to delete.

§
projectsLocationsRepositoriesPackagesVersionsGet(name: string, opts?: ProjectsLocationsRepositoriesPackagesVersionsGetOptions): Promise<Version>
[src]

Gets a version

@param name

The name of the version to retrieve.

§
projectsLocationsRepositoriesPackagesVersionsList(parent: string, opts?: ProjectsLocationsRepositoriesPackagesVersionsListOptions): Promise<ListVersionsResponse>
[src]

Lists versions.

@param parent

The name of the parent resource whose versions will be listed.

§
projectsLocationsRepositoriesPatch(name: string, req: Repository, opts?: ProjectsLocationsRepositoriesPatchOptions): Promise<Repository>
[src]

Updates a repository.

@param name

The name of the repository, for example: projects/p1/locations/us-central1/repositories/repo1.

§
projectsLocationsRepositoriesPythonPackagesGet(name: string): Promise<PythonPackage>
[src]

Gets a python package.

@param name

Required. The name of the python package.

§
projectsLocationsRepositoriesPythonPackagesList(parent: string, opts?: ProjectsLocationsRepositoriesPythonPackagesListOptions): Promise<ListPythonPackagesResponse>
[src]

Lists python packages.

@param parent

Required. The name of the parent resource whose python packages will be listed.

§
projectsLocationsRepositoriesSetIamPolicy(resource: string, req: SetIamPolicyRequest): Promise<Policy>
[src]

Updates the IAM policy for a given resource.

@param resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

§
projectsLocationsRepositoriesTestIamPermissions(resource: string, req: TestIamPermissionsRequest): Promise<TestIamPermissionsResponse>
[src]

Tests if the caller has a list of permissions on a resource.

@param resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

§
projectsLocationsRepositoriesYumArtifactsImport(parent: string, req: ImportYumArtifactsRequest): Promise<Operation>
[src]

Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.

@param parent

The name of the parent resource where the artifacts will be imported.

§
projectsLocationsRepositoriesYumArtifactsUpload(parent: string, req: UploadYumArtifactRequest): Promise<UploadYumArtifactMediaResponse>
[src]

Directly uploads a Yum artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.

@param parent

The name of the parent resource where the artifacts will be uploaded.

§
projectsLocationsUpdateVpcscConfig(name: string, req: VPCSCConfig, opts?: ProjectsLocationsUpdateVpcscConfigOptions): Promise<VPCSCConfig>
[src]

Updates the VPCSC Config for the Project.

@param name

The name of the project's VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set

§
projectsUpdateProjectSettings(name: string, req: ProjectSettings, opts?: ProjectsUpdateProjectSettingsOptions): Promise<ProjectSettings>
[src]

Updates the Settings for the Project.

@param name

The name of the project's settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set