UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

82 lines (81 loc) 2.38 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a list of tables in a BigQuery dataset. For more information see * the [official documentation](https://cloud.google.com/bigquery/docs) * and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const tables = gcp.bigquery.getTables({ * datasetId: "my-bq-dataset", * project: "my-project", * }); * ``` */ export declare function getTables(args: GetTablesArgs, opts?: pulumi.InvokeOptions): Promise<GetTablesResult>; /** * A collection of arguments for invoking getTables. */ export interface GetTablesArgs { /** * The dataset ID. */ datasetId: string; /** * 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 getTables. */ export interface GetTablesResult { readonly datasetId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly project?: string; /** * A list of all retrieved BigQuery tables. Structure is defined below. */ readonly tables: outputs.bigquery.GetTablesTable[]; } /** * Get a list of tables in a BigQuery dataset. For more information see * the [official documentation](https://cloud.google.com/bigquery/docs) * and [API](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const tables = gcp.bigquery.getTables({ * datasetId: "my-bq-dataset", * project: "my-project", * }); * ``` */ export declare function getTablesOutput(args: GetTablesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTablesResult>; /** * A collection of arguments for invoking getTables. */ export interface GetTablesOutputArgs { /** * The dataset ID. */ datasetId: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; }