@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
89 lines • 3.04 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get information about Artifact Registry Python packages.
* See [the official documentation](https://cloud.google.com/artifact-registry/docs/python)
* and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.pythonPackages/list).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myPackages = gcp.artifactregistry.getPythonPackages({
* location: "us-central1",
* repositoryId: "example-repo",
* });
* ```
*/
export declare function getPythonPackages(args: GetPythonPackagesArgs, opts?: pulumi.InvokeOptions): Promise<GetPythonPackagesResult>;
/**
* A collection of arguments for invoking getPythonPackages.
*/
export interface GetPythonPackagesArgs {
/**
* 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 getPythonPackages.
*/
export interface GetPythonPackagesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
readonly project?: string;
/**
* A list of all retrieved Artifact Registry Python packages. Structure is defined below.
*/
readonly pythonPackages: outputs.artifactregistry.GetPythonPackagesPythonPackage[];
readonly repositoryId: string;
}
/**
* Get information about Artifact Registry Python packages.
* See [the official documentation](https://cloud.google.com/artifact-registry/docs/python)
* and [API](https://cloud.google.com/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.pythonPackages/list).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myPackages = gcp.artifactregistry.getPythonPackages({
* location: "us-central1",
* repositoryId: "example-repo",
* });
* ```
*/
export declare function getPythonPackagesOutput(args: GetPythonPackagesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPythonPackagesResult>;
/**
* A collection of arguments for invoking getPythonPackages.
*/
export interface GetPythonPackagesOutputArgs {
/**
* The location of the Artifact Registry repository.
*/
location: pulumi.Input<string>;
/**
* The project ID in which the resource belongs. If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* The last part of the repository name to fetch from.
*/
repositoryId: pulumi.Input<string>;
}
//# sourceMappingURL=getPythonPackages.d.ts.map