import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get information about Artifact Registry packages. * See [the official documentation](https://cloud.google.com/artifact-registry/docs/overview) * and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myImages = gcp.artifactregistry.getPackages({ * location: "us-central1", * repositoryId: "example-repo", * }); * ``` */ export declare function getPackages(args: GetPackagesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPackages. */ export interface GetPackagesArgs { /** * An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are `name` and `annotations`. Further information can be found in the [REST API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages/list#query-parameters). */ filter?: string; /** * 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 getPackages. */ export interface GetPackagesResult { readonly filter?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly location: string; /** * A list of all retrieved Artifact Registry packages. Structure is defined below. */ readonly packages: outputs.artifactregistry.GetPackagesPackage[]; readonly project?: string; readonly repositoryId: string; } /** * Get information about Artifact Registry packages. * See [the official documentation](https://cloud.google.com/artifact-registry/docs/overview) * and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages/list). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myImages = gcp.artifactregistry.getPackages({ * location: "us-central1", * repositoryId: "example-repo", * }); * ``` */ export declare function getPackagesOutput(args: GetPackagesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPackages. */ export interface GetPackagesOutputArgs { /** * An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are `name` and `annotations`. Further information can be found in the [REST API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.packages/list#query-parameters). */ filter?: pulumi.Input; /** * 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; }