"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExascaleDbStorageVault = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * An Exascale Storage Vault Resource
 *
 * ## Example Usage
 *
 * ### Oracledatabase Exascale Db Storage Vault Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const myStorageVault = new gcp.oracledatabase.ExascaleDbStorageVault("my_storage_vault", {
 *     exascaleDbStorageVaultId: "my-instance",
 *     displayName: "my-instance displayname",
 *     location: "us-east4",
 *     project: "my-project",
 *     properties: {
 *         exascaleDbStorageDetails: {
 *             totalSizeGbs: 512,
 *         },
 *     },
 *     deletionProtection: true,
 * });
 * ```
 * ### Oracledatabase Exascale Db Storage Vault Full
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const myStorageVault = new gcp.oracledatabase.ExascaleDbStorageVault("my_storage_vault", {
 *     exascaleDbStorageVaultId: "my-instance",
 *     displayName: "my-instance displayname",
 *     location: "us-east4",
 *     gcpOracleZone: "us-east4-b-r1",
 *     project: "my-project",
 *     labels: {
 *         "label-one": "value-one",
 *     },
 *     properties: {
 *         timeZone: {
 *             id: "UTC",
 *         },
 *         additionalFlashCachePercent: 100,
 *         exascaleDbStorageDetails: {
 *             totalSizeGbs: 300,
 *         },
 *     },
 *     deletionProtection: true,
 * });
 * ```
 *
 * ## Import
 *
 * ExascaleDbStorageVault can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/locations/{{location}}/exascaleDbStorageVaults/{{exascale_db_storage_vault_id}}`
 *
 * * `{{project}}/{{location}}/{{exascale_db_storage_vault_id}}`
 *
 * * `{{location}}/{{exascale_db_storage_vault_id}}`
 *
 * When using the `pulumi import` command, ExascaleDbStorageVault can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:oracledatabase/exascaleDbStorageVault:ExascaleDbStorageVault default projects/{{project}}/locations/{{location}}/exascaleDbStorageVaults/{{exascale_db_storage_vault_id}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:oracledatabase/exascaleDbStorageVault:ExascaleDbStorageVault default {{project}}/{{location}}/{{exascale_db_storage_vault_id}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:oracledatabase/exascaleDbStorageVault:ExascaleDbStorageVault default {{location}}/{{exascale_db_storage_vault_id}}
 * ```
 */
class ExascaleDbStorageVault extends pulumi.CustomResource {
    /**
     * Get an existing ExascaleDbStorageVault resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new ExascaleDbStorageVault(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of ExascaleDbStorageVault.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === ExascaleDbStorageVault.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["createTime"] = state?.createTime;
            resourceInputs["deletionProtection"] = state?.deletionProtection;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["effectiveLabels"] = state?.effectiveLabels;
            resourceInputs["entitlementId"] = state?.entitlementId;
            resourceInputs["exascaleDbStorageVaultId"] = state?.exascaleDbStorageVaultId;
            resourceInputs["gcpOracleZone"] = state?.gcpOracleZone;
            resourceInputs["labels"] = state?.labels;
            resourceInputs["location"] = state?.location;
            resourceInputs["name"] = state?.name;
            resourceInputs["project"] = state?.project;
            resourceInputs["properties"] = state?.properties;
            resourceInputs["pulumiLabels"] = state?.pulumiLabels;
        }
        else {
            const args = argsOrState;
            if (args?.displayName === undefined && !opts.urn) {
                throw new Error("Missing required property 'displayName'");
            }
            if (args?.exascaleDbStorageVaultId === undefined && !opts.urn) {
                throw new Error("Missing required property 'exascaleDbStorageVaultId'");
            }
            if (args?.location === undefined && !opts.urn) {
                throw new Error("Missing required property 'location'");
            }
            if (args?.properties === undefined && !opts.urn) {
                throw new Error("Missing required property 'properties'");
            }
            resourceInputs["deletionProtection"] = args?.deletionProtection;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["exascaleDbStorageVaultId"] = args?.exascaleDbStorageVaultId;
            resourceInputs["gcpOracleZone"] = args?.gcpOracleZone;
            resourceInputs["labels"] = args?.labels;
            resourceInputs["location"] = args?.location;
            resourceInputs["project"] = args?.project;
            resourceInputs["properties"] = args?.properties;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["effectiveLabels"] = undefined /*out*/;
            resourceInputs["entitlementId"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["pulumiLabels"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const secretOpts = { additionalSecretOutputs: ["effectiveLabels", "pulumiLabels"] };
        opts = pulumi.mergeOptions(opts, secretOpts);
        super(ExascaleDbStorageVault.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ExascaleDbStorageVault = ExascaleDbStorageVault;
/** @internal */
ExascaleDbStorageVault.__pulumiType = 'gcp:oracledatabase/exascaleDbStorageVault:ExascaleDbStorageVault';
//# sourceMappingURL=exascaleDbStorageVault.js.map