import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Retrieve the details of a single RestorePlan. */ export declare function getRestorePlan(args: GetRestorePlanArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetRestorePlanArgs { location: string; project?: string; restorePlanId: string; } export interface GetRestorePlanResult { /** * Immutable. A reference to the BackupPlan from which Backups may be used as the source for Restores created via this RestorePlan. Format: `projects/*/locations/*/backupPlans/*`. */ readonly backupPlan: string; /** * Immutable. The target cluster into which Restores created via this RestorePlan will restore data. NOTE: the cluster's region must be the same as the RestorePlan. Valid formats: - `projects/*/locations/*/clusters/*` - `projects/*/zones/*/clusters/*` */ readonly cluster: string; /** * The timestamp when this RestorePlan resource was created. */ readonly createTime: string; /** * Optional. User specified descriptive string for this RestorePlan. */ readonly description: string; /** * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a restore from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform restore updates in order to avoid race conditions: An `etag` is returned in the response to `GetRestorePlan`, and systems are expected to put that etag in the request to `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change will be applied to the same version of the resource. */ readonly etag: string; /** * Optional. A set of custom labels supplied by user. */ readonly labels: { [key: string]: string; }; /** * The full name of the RestorePlan resource. Format: `projects/*/locations/*/restorePlans/*`. */ readonly name: string; /** * Configuration of Restores created via this RestorePlan. */ readonly restoreConfig: outputs.gkebackup.v1.RestoreConfigResponse; /** * State of the RestorePlan. This State field reflects the various stages a RestorePlan can be in during the Create operation. */ readonly state: string; /** * Human-readable description of why RestorePlan is in the current `state` */ readonly stateReason: string; /** * Server generated global unique identifier of [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format. */ readonly uid: string; /** * The timestamp when this RestorePlan resource was last updated. */ readonly updateTime: string; } /** * Retrieve the details of a single RestorePlan. */ export declare function getRestorePlanOutput(args: GetRestorePlanOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetRestorePlanOutputArgs { location: pulumi.Input; project?: pulumi.Input; restorePlanId: pulumi.Input; }