@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
77 lines • 2.83 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to list upgrades for a Private Cloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const ds = gcp.vmwareengine.getUpgrades({
* parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
*/
export declare function getUpgrades(args: GetUpgradesArgs, opts?: pulumi.InvokeOptions): Promise<GetUpgradesResult>;
/**
* A collection of arguments for invoking getUpgrades.
*/
export interface GetUpgradesArgs {
/**
* The resource name of the specific Upgrade to retrieve. If provided, the 'upgrades' list will contain only this upgrade.
*/
name?: string;
/**
* The resource name of the private cloud for which upgrades will be listed. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
*/
parent: string;
}
/**
* A collection of values returned by getUpgrades.
*/
export interface GetUpgradesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The resource name of the private cloud Upgrade.
*/
readonly name?: string;
readonly parent: string;
/**
* A list of VMware Engine upgrades. Contains one element if 'name' is specified in the arguments, otherwise all upgrades for the private cloud.
*/
readonly upgrades: outputs.vmwareengine.GetUpgradesUpgrade[];
}
/**
* Use this data source to list upgrades for a Private Cloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const ds = gcp.vmwareengine.getUpgrades({
* parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
*/
export declare function getUpgradesOutput(args: GetUpgradesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUpgradesResult>;
/**
* A collection of arguments for invoking getUpgrades.
*/
export interface GetUpgradesOutputArgs {
/**
* The resource name of the specific Upgrade to retrieve. If provided, the 'upgrades' list will contain only this upgrade.
*/
name?: pulumi.Input<string | undefined>;
/**
* The resource name of the private cloud for which upgrades will be listed. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
*/
parent: pulumi.Input<string>;
}
//# sourceMappingURL=getUpgrades.d.ts.map