@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
71 lines (70 loc) • 2.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get a list of datasets in a GCP project. For more information see
* the [official documentation](https://cloud.google.com/bigquery/docs)
* and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/list).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const datasets = gcp.bigquery.getDatasets({
* project: "my-project",
* });
* ```
*/
export declare function getDatasets(args?: GetDatasetsArgs, opts?: pulumi.InvokeOptions): Promise<GetDatasetsResult>;
/**
* A collection of arguments for invoking getDatasets.
*/
export interface GetDatasetsArgs {
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getDatasets.
*/
export interface GetDatasetsResult {
/**
* A list of all retrieved BigQuery datasets. Structure is defined below.
*/
readonly datasets: outputs.bigquery.GetDatasetsDataset[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly project?: string;
}
/**
* Get a list of datasets in a GCP project. For more information see
* the [official documentation](https://cloud.google.com/bigquery/docs)
* and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets/list).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const datasets = gcp.bigquery.getDatasets({
* project: "my-project",
* });
* ```
*/
export declare function getDatasetsOutput(args?: GetDatasetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatasetsResult>;
/**
* A collection of arguments for invoking getDatasets.
*/
export interface GetDatasetsOutputArgs {
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}