"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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExadataInfrastructureStorage = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
class ExadataInfrastructureStorage extends pulumi.CustomResource {
    /**
     * Get an existing ExadataInfrastructureStorage 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 ExadataInfrastructureStorage(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:Database/exadataInfrastructureStorage:ExadataInfrastructureStorage';
    /**
     * Returns true if the given object is an instance of ExadataInfrastructureStorage.  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'] === ExadataInfrastructureStorage.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["activatedStorageCount"] = state?.activatedStorageCount;
            resourceInputs["activationFile"] = state?.activationFile;
            resourceInputs["additionalStorageCount"] = state?.additionalStorageCount;
            resourceInputs["adminNetworkCidr"] = state?.adminNetworkCidr;
            resourceInputs["cloudControlPlaneServer1"] = state?.cloudControlPlaneServer1;
            resourceInputs["cloudControlPlaneServer2"] = state?.cloudControlPlaneServer2;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["computeCount"] = state?.computeCount;
            resourceInputs["contacts"] = state?.contacts;
            resourceInputs["corporateProxy"] = state?.corporateProxy;
            resourceInputs["cpusEnabled"] = state?.cpusEnabled;
            resourceInputs["csiNumber"] = state?.csiNumber;
            resourceInputs["dataStorageSizeInTbs"] = state?.dataStorageSizeInTbs;
            resourceInputs["dbNodeStorageSizeInGbs"] = state?.dbNodeStorageSizeInGbs;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["dnsServers"] = state?.dnsServers;
            resourceInputs["exadataInfrastructureId"] = state?.exadataInfrastructureId;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["gateway"] = state?.gateway;
            resourceInputs["infiniBandNetworkCidr"] = state?.infiniBandNetworkCidr;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["maintenanceSloStatus"] = state?.maintenanceSloStatus;
            resourceInputs["maintenanceWindow"] = state?.maintenanceWindow;
            resourceInputs["maxCpuCount"] = state?.maxCpuCount;
            resourceInputs["maxDataStorageInTbs"] = state?.maxDataStorageInTbs;
            resourceInputs["maxDbNodeStorageInGbs"] = state?.maxDbNodeStorageInGbs;
            resourceInputs["maxMemoryInGbs"] = state?.maxMemoryInGbs;
            resourceInputs["memorySizeInGbs"] = state?.memorySizeInGbs;
            resourceInputs["netmask"] = state?.netmask;
            resourceInputs["ntpServers"] = state?.ntpServers;
            resourceInputs["shape"] = state?.shape;
            resourceInputs["state"] = state?.state;
            resourceInputs["storageCount"] = state?.storageCount;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["timeZone"] = state?.timeZone;
        }
        else {
            const args = argsOrState;
            if (args?.adminNetworkCidr === undefined && !opts.urn) {
                throw new Error("Missing required property 'adminNetworkCidr'");
            }
            if (args?.cloudControlPlaneServer1 === undefined && !opts.urn) {
                throw new Error("Missing required property 'cloudControlPlaneServer1'");
            }
            if (args?.cloudControlPlaneServer2 === undefined && !opts.urn) {
                throw new Error("Missing required property 'cloudControlPlaneServer2'");
            }
            if (args?.compartmentId === undefined && !opts.urn) {
                throw new Error("Missing required property 'compartmentId'");
            }
            if (args?.displayName === undefined && !opts.urn) {
                throw new Error("Missing required property 'displayName'");
            }
            if (args?.dnsServers === undefined && !opts.urn) {
                throw new Error("Missing required property 'dnsServers'");
            }
            if (args?.gateway === undefined && !opts.urn) {
                throw new Error("Missing required property 'gateway'");
            }
            if (args?.infiniBandNetworkCidr === undefined && !opts.urn) {
                throw new Error("Missing required property 'infiniBandNetworkCidr'");
            }
            if (args?.netmask === undefined && !opts.urn) {
                throw new Error("Missing required property 'netmask'");
            }
            if (args?.ntpServers === undefined && !opts.urn) {
                throw new Error("Missing required property 'ntpServers'");
            }
            if (args?.shape === undefined && !opts.urn) {
                throw new Error("Missing required property 'shape'");
            }
            if (args?.timeZone === undefined && !opts.urn) {
                throw new Error("Missing required property 'timeZone'");
            }
            resourceInputs["activationFile"] = args?.activationFile;
            resourceInputs["adminNetworkCidr"] = args?.adminNetworkCidr;
            resourceInputs["cloudControlPlaneServer1"] = args?.cloudControlPlaneServer1;
            resourceInputs["cloudControlPlaneServer2"] = args?.cloudControlPlaneServer2;
            resourceInputs["compartmentId"] = args?.compartmentId;
            resourceInputs["computeCount"] = args?.computeCount;
            resourceInputs["contacts"] = args?.contacts;
            resourceInputs["corporateProxy"] = args?.corporateProxy;
            resourceInputs["definedTags"] = args?.definedTags;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["dnsServers"] = args?.dnsServers;
            resourceInputs["exadataInfrastructureId"] = args?.exadataInfrastructureId;
            resourceInputs["freeformTags"] = args?.freeformTags;
            resourceInputs["gateway"] = args?.gateway;
            resourceInputs["infiniBandNetworkCidr"] = args?.infiniBandNetworkCidr;
            resourceInputs["maintenanceWindow"] = args?.maintenanceWindow;
            resourceInputs["netmask"] = args?.netmask;
            resourceInputs["ntpServers"] = args?.ntpServers;
            resourceInputs["shape"] = args?.shape;
            resourceInputs["storageCount"] = args?.storageCount;
            resourceInputs["timeZone"] = args?.timeZone;
            resourceInputs["activatedStorageCount"] = undefined /*out*/;
            resourceInputs["additionalStorageCount"] = undefined /*out*/;
            resourceInputs["cpusEnabled"] = undefined /*out*/;
            resourceInputs["csiNumber"] = undefined /*out*/;
            resourceInputs["dataStorageSizeInTbs"] = undefined /*out*/;
            resourceInputs["dbNodeStorageSizeInGbs"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["maintenanceSloStatus"] = undefined /*out*/;
            resourceInputs["maxCpuCount"] = undefined /*out*/;
            resourceInputs["maxDataStorageInTbs"] = undefined /*out*/;
            resourceInputs["maxDbNodeStorageInGbs"] = undefined /*out*/;
            resourceInputs["maxMemoryInGbs"] = undefined /*out*/;
            resourceInputs["memorySizeInGbs"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(ExadataInfrastructureStorage.__pulumiType, name, resourceInputs, opts);
    }
}
exports.ExadataInfrastructureStorage = ExadataInfrastructureStorage;
//# sourceMappingURL=exadataInfrastructureStorage.js.map