import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get information about Artifact Registry Npm packages. * See [the official documentation](https://cloud.google.com/artifact-registry/docs/nodejs) * and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.npmPackages/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myPackages = gcp.artifactregistry.getNpmPackages({ * location: "us-central1", * repositoryId: "example-repo", * }); * ``` */ export declare function getNpmPackages(args: GetNpmPackagesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getNpmPackages. */ export interface GetNpmPackagesArgs { /** * The location of the Artifact Registry repository. */ location: string; /** * The project ID in which the resource belongs. If it is not provided, the provider project is used. */ project?: string; /** * The last part of the repository name to fetch from. */ repositoryId: string; } /** * A collection of values returned by getNpmPackages. */ export interface GetNpmPackagesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly location: string; /** * A list of all retrieved Artifact Registry Npm packages. Structure is defined below. */ readonly npmPackages: outputs.artifactregistry.GetNpmPackagesNpmPackage[]; readonly project?: string; readonly repositoryId: string; } /** * Get information about Artifact Registry Npm packages. * See [the official documentation](https://cloud.google.com/artifact-registry/docs/nodejs) * and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.npmPackages/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myPackages = gcp.artifactregistry.getNpmPackages({ * location: "us-central1", * repositoryId: "example-repo", * }); * ``` */ export declare function getNpmPackagesOutput(args: GetNpmPackagesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getNpmPackages. */ export interface GetNpmPackagesOutputArgs { /** * The location of the Artifact Registry repository. */ location: pulumi.Input; /** * The project ID in which the resource belongs. If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The last part of the repository name to fetch from. */ repositoryId: pulumi.Input; }