"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.CloudVmCluster = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages a Cloud VM Cluster.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * import * as std from "@pulumi/std";
 *
 * const exampleResourceGroup = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleExadataInfrastructure = new azure.oracle.ExadataInfrastructure("example", {
 *     name: "example-exadata-infrastructure",
 *     displayName: "example-exadata-infrastructure",
 *     location: exampleResourceGroup.location,
 *     resourceGroupName: exampleResourceGroup.name,
 *     shape: "Exadata.X9M",
 *     storageCount: 3,
 *     computeCount: 2,
 *     zones: ["3"],
 * });
 * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
 *     name: "example-virtual-network",
 *     addressSpaces: ["10.0.0.0/16"],
 *     location: exampleResourceGroup.location,
 *     resourceGroupName: exampleResourceGroup.name,
 * });
 * const exampleSubnet = new azure.network.Subnet("example", {
 *     name: "example-subnet",
 *     resourceGroupName: exampleResourceGroup.name,
 *     virtualNetworkName: exampleVirtualNetwork.name,
 *     addressPrefixes: ["10.0.1.0/24"],
 *     delegations: [{
 *         name: "delegation",
 *         serviceDelegation: {
 *             actions: [
 *                 "Microsoft.Network/networkinterfaces/*",
 *                 "Microsoft.Network/virtualNetworks/subnets/join/action",
 *             ],
 *             name: "Oracle.Database/networkAttachments",
 *         },
 *     }],
 * });
 * const example = azure.oracle.getDbServersOutput({
 *     resourceGroupName: exampleResourceGroup.name,
 *     cloudExadataInfrastructureName: exampleExadataInfrastructure.name,
 * });
 * const exampleCloudVmCluster = new azure.oracle.CloudVmCluster("example", {
 *     name: "example-cloud-vm-cluster",
 *     resourceGroupName: exampleResourceGroup.name,
 *     location: exampleResourceGroup.location,
 *     giVersion: "23.0.0.0",
 *     virtualNetworkId: exampleVirtualNetwork.id,
 *     licenseModel: "BringYourOwnLicense",
 *     dbServers: example.apply(example => .map(obj => (obj.ocid))),
 *     sshPublicKeys: [std.file({
 *         input: "~/.ssh/id_rsa.pub",
 *     }).then(invoke => invoke.result)],
 *     displayName: "example-cloud-vm-cluster",
 *     cloudExadataInfrastructureId: exampleExadataInfrastructure.id,
 *     cpuCoreCount: 2,
 *     hostname: "hostname",
 *     subnetId: exampleSubnet.id,
 *     systemVersion: "23.1.19.0.0.241015",
 *     fileSystemConfigurations: [{
 *         mountPoint: "/var",
 *         sizeInGb: 32,
 *     }],
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Oracle.Database` - 2025-09-01
 *
 * ## Import
 *
 * Cloud VM Clusters can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:oracle/cloudVmCluster:CloudVmCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup/providers/Oracle.Database/cloudVmClusters/cloudVmClusters1
 * ```
 */
class CloudVmCluster extends pulumi.CustomResource {
    /**
     * Get an existing CloudVmCluster 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 CloudVmCluster(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:oracle/cloudVmCluster:CloudVmCluster';
    /**
     * Returns true if the given object is an instance of CloudVmCluster.  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'] === CloudVmCluster.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["backupSubnetCidr"] = state?.backupSubnetCidr;
            resourceInputs["cloudExadataInfrastructureId"] = state?.cloudExadataInfrastructureId;
            resourceInputs["clusterName"] = state?.clusterName;
            resourceInputs["cpuCoreCount"] = state?.cpuCoreCount;
            resourceInputs["dataCollectionOptions"] = state?.dataCollectionOptions;
            resourceInputs["dataStoragePercentage"] = state?.dataStoragePercentage;
            resourceInputs["dataStorageSizeInTbs"] = state?.dataStorageSizeInTbs;
            resourceInputs["dbNodeStorageSizeInGbs"] = state?.dbNodeStorageSizeInGbs;
            resourceInputs["dbServers"] = state?.dbServers;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["domain"] = state?.domain;
            resourceInputs["fileSystemConfigurations"] = state?.fileSystemConfigurations;
            resourceInputs["giVersion"] = state?.giVersion;
            resourceInputs["hostname"] = state?.hostname;
            resourceInputs["hostnameActual"] = state?.hostnameActual;
            resourceInputs["licenseModel"] = state?.licenseModel;
            resourceInputs["localBackupEnabled"] = state?.localBackupEnabled;
            resourceInputs["location"] = state?.location;
            resourceInputs["memorySizeInGbs"] = state?.memorySizeInGbs;
            resourceInputs["name"] = state?.name;
            resourceInputs["ocid"] = state?.ocid;
            resourceInputs["resourceGroupName"] = state?.resourceGroupName;
            resourceInputs["scanListenerPortTcp"] = state?.scanListenerPortTcp;
            resourceInputs["scanListenerPortTcpSsl"] = state?.scanListenerPortTcpSsl;
            resourceInputs["sparseDiskgroupEnabled"] = state?.sparseDiskgroupEnabled;
            resourceInputs["sshPublicKeys"] = state?.sshPublicKeys;
            resourceInputs["subnetId"] = state?.subnetId;
            resourceInputs["systemVersion"] = state?.systemVersion;
            resourceInputs["tags"] = state?.tags;
            resourceInputs["timeZone"] = state?.timeZone;
            resourceInputs["virtualNetworkId"] = state?.virtualNetworkId;
            resourceInputs["zoneId"] = state?.zoneId;
        }
        else {
            const args = argsOrState;
            if (args?.cloudExadataInfrastructureId === undefined && !opts.urn) {
                throw new Error("Missing required property 'cloudExadataInfrastructureId'");
            }
            if (args?.cpuCoreCount === undefined && !opts.urn) {
                throw new Error("Missing required property 'cpuCoreCount'");
            }
            if (args?.dbServers === undefined && !opts.urn) {
                throw new Error("Missing required property 'dbServers'");
            }
            if (args?.displayName === undefined && !opts.urn) {
                throw new Error("Missing required property 'displayName'");
            }
            if (args?.giVersion === undefined && !opts.urn) {
                throw new Error("Missing required property 'giVersion'");
            }
            if (args?.hostname === undefined && !opts.urn) {
                throw new Error("Missing required property 'hostname'");
            }
            if (args?.licenseModel === undefined && !opts.urn) {
                throw new Error("Missing required property 'licenseModel'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            if (args?.sshPublicKeys === undefined && !opts.urn) {
                throw new Error("Missing required property 'sshPublicKeys'");
            }
            if (args?.subnetId === undefined && !opts.urn) {
                throw new Error("Missing required property 'subnetId'");
            }
            if (args?.virtualNetworkId === undefined && !opts.urn) {
                throw new Error("Missing required property 'virtualNetworkId'");
            }
            resourceInputs["backupSubnetCidr"] = args?.backupSubnetCidr;
            resourceInputs["cloudExadataInfrastructureId"] = args?.cloudExadataInfrastructureId;
            resourceInputs["clusterName"] = args?.clusterName;
            resourceInputs["cpuCoreCount"] = args?.cpuCoreCount;
            resourceInputs["dataCollectionOptions"] = args?.dataCollectionOptions;
            resourceInputs["dataStoragePercentage"] = args?.dataStoragePercentage;
            resourceInputs["dataStorageSizeInTbs"] = args?.dataStorageSizeInTbs;
            resourceInputs["dbNodeStorageSizeInGbs"] = args?.dbNodeStorageSizeInGbs;
            resourceInputs["dbServers"] = args?.dbServers;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["domain"] = args?.domain;
            resourceInputs["fileSystemConfigurations"] = args?.fileSystemConfigurations;
            resourceInputs["giVersion"] = args?.giVersion;
            resourceInputs["hostname"] = args?.hostname;
            resourceInputs["licenseModel"] = args?.licenseModel;
            resourceInputs["localBackupEnabled"] = args?.localBackupEnabled;
            resourceInputs["location"] = args?.location;
            resourceInputs["memorySizeInGbs"] = args?.memorySizeInGbs;
            resourceInputs["name"] = args?.name;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["scanListenerPortTcp"] = args?.scanListenerPortTcp;
            resourceInputs["scanListenerPortTcpSsl"] = args?.scanListenerPortTcpSsl;
            resourceInputs["sparseDiskgroupEnabled"] = args?.sparseDiskgroupEnabled;
            resourceInputs["sshPublicKeys"] = args?.sshPublicKeys;
            resourceInputs["subnetId"] = args?.subnetId;
            resourceInputs["systemVersion"] = args?.systemVersion;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["timeZone"] = args?.timeZone;
            resourceInputs["virtualNetworkId"] = args?.virtualNetworkId;
            resourceInputs["zoneId"] = args?.zoneId;
            resourceInputs["hostnameActual"] = undefined /*out*/;
            resourceInputs["ocid"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(CloudVmCluster.__pulumiType, name, resourceInputs, opts);
    }
}
exports.CloudVmCluster = CloudVmCluster;
//# sourceMappingURL=cloudVmCluster.js.map