"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.DbSystemsUpgrade = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This resource provides the Db Systems Upgrade resource in Oracle Cloud Infrastructure Database service.
 *
 * Upgrades the operating system and grid infrastructure of the DB system.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testDbSystemsUpgrade = new oci.database.DbSystemsUpgrade("test_db_systems_upgrade", {
 *     action: dbSystemsUpgradeAction,
 *     dbSystemId: testDbSystem.id,
 *     isSnapshotRetentionDaysForceUpdated: dbSystemsUpgradeIsSnapshotRetentionDaysForceUpdated === "true",
 *     newGiVersion: dbSystemsUpgradeNewGiVersion,
 *     snapshotRetentionPeriodInDays: Number(dbSystemsUpgradeSnapshotRetentionPeriodInDays),
 * });
 * ```
 *
 * ## Import
 *
 * Import is not supported for this resource.
 */
class DbSystemsUpgrade extends pulumi.CustomResource {
    /**
     * Get an existing DbSystemsUpgrade 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 DbSystemsUpgrade(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'oci:Database/dbSystemsUpgrade:DbSystemsUpgrade';
    /**
     * Returns true if the given object is an instance of DbSystemsUpgrade.  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'] === DbSystemsUpgrade.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["action"] = state?.action;
            resourceInputs["availabilityDomain"] = state?.availabilityDomain;
            resourceInputs["backupNetworkNsgIds"] = state?.backupNetworkNsgIds;
            resourceInputs["backupSubnetId"] = state?.backupSubnetId;
            resourceInputs["clusterName"] = state?.clusterName;
            resourceInputs["compartmentId"] = state?.compartmentId;
            resourceInputs["cpuCoreCount"] = state?.cpuCoreCount;
            resourceInputs["dataStoragePercentage"] = state?.dataStoragePercentage;
            resourceInputs["dataStorageSizeInGb"] = state?.dataStorageSizeInGb;
            resourceInputs["databaseEdition"] = state?.databaseEdition;
            resourceInputs["dbSystemId"] = state?.dbSystemId;
            resourceInputs["dbSystemOptions"] = state?.dbSystemOptions;
            resourceInputs["definedTags"] = state?.definedTags;
            resourceInputs["diskRedundancy"] = state?.diskRedundancy;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["domain"] = state?.domain;
            resourceInputs["faultDomains"] = state?.faultDomains;
            resourceInputs["freeformTags"] = state?.freeformTags;
            resourceInputs["hostname"] = state?.hostname;
            resourceInputs["iormConfigCaches"] = state?.iormConfigCaches;
            resourceInputs["isSnapshotRetentionDaysForceUpdated"] = state?.isSnapshotRetentionDaysForceUpdated;
            resourceInputs["kmsKeyId"] = state?.kmsKeyId;
            resourceInputs["lastMaintenanceRunId"] = state?.lastMaintenanceRunId;
            resourceInputs["lastPatchHistoryEntryId"] = state?.lastPatchHistoryEntryId;
            resourceInputs["licenseModel"] = state?.licenseModel;
            resourceInputs["lifecycleDetails"] = state?.lifecycleDetails;
            resourceInputs["listenerPort"] = state?.listenerPort;
            resourceInputs["maintenanceWindows"] = state?.maintenanceWindows;
            resourceInputs["newGiVersion"] = state?.newGiVersion;
            resourceInputs["newOsVersion"] = state?.newOsVersion;
            resourceInputs["nextMaintenanceRunId"] = state?.nextMaintenanceRunId;
            resourceInputs["nodeCount"] = state?.nodeCount;
            resourceInputs["nsgIds"] = state?.nsgIds;
            resourceInputs["pointInTimeDataDiskCloneTimestamp"] = state?.pointInTimeDataDiskCloneTimestamp;
            resourceInputs["recoStorageSizeInGb"] = state?.recoStorageSizeInGb;
            resourceInputs["scanDnsName"] = state?.scanDnsName;
            resourceInputs["scanDnsRecordId"] = state?.scanDnsRecordId;
            resourceInputs["scanIpIds"] = state?.scanIpIds;
            resourceInputs["shape"] = state?.shape;
            resourceInputs["snapshotRetentionPeriodInDays"] = state?.snapshotRetentionPeriodInDays;
            resourceInputs["sourceDbSystemId"] = state?.sourceDbSystemId;
            resourceInputs["sparseDiskgroup"] = state?.sparseDiskgroup;
            resourceInputs["sshPublicKeys"] = state?.sshPublicKeys;
            resourceInputs["state"] = state?.state;
            resourceInputs["subnetId"] = state?.subnetId;
            resourceInputs["timeCreated"] = state?.timeCreated;
            resourceInputs["timeZone"] = state?.timeZone;
            resourceInputs["version"] = state?.version;
            resourceInputs["vipIds"] = state?.vipIds;
            resourceInputs["zoneId"] = state?.zoneId;
        }
        else {
            const args = argsOrState;
            if (args?.action === undefined && !opts.urn) {
                throw new Error("Missing required property 'action'");
            }
            if (args?.dbSystemId === undefined && !opts.urn) {
                throw new Error("Missing required property 'dbSystemId'");
            }
            resourceInputs["action"] = args?.action;
            resourceInputs["dbSystemId"] = args?.dbSystemId;
            resourceInputs["isSnapshotRetentionDaysForceUpdated"] = args?.isSnapshotRetentionDaysForceUpdated;
            resourceInputs["newGiVersion"] = args?.newGiVersion;
            resourceInputs["newOsVersion"] = args?.newOsVersion;
            resourceInputs["snapshotRetentionPeriodInDays"] = args?.snapshotRetentionPeriodInDays;
            resourceInputs["availabilityDomain"] = undefined /*out*/;
            resourceInputs["backupNetworkNsgIds"] = undefined /*out*/;
            resourceInputs["backupSubnetId"] = undefined /*out*/;
            resourceInputs["clusterName"] = undefined /*out*/;
            resourceInputs["compartmentId"] = undefined /*out*/;
            resourceInputs["cpuCoreCount"] = undefined /*out*/;
            resourceInputs["dataStoragePercentage"] = undefined /*out*/;
            resourceInputs["dataStorageSizeInGb"] = undefined /*out*/;
            resourceInputs["databaseEdition"] = undefined /*out*/;
            resourceInputs["dbSystemOptions"] = undefined /*out*/;
            resourceInputs["definedTags"] = undefined /*out*/;
            resourceInputs["diskRedundancy"] = undefined /*out*/;
            resourceInputs["displayName"] = undefined /*out*/;
            resourceInputs["domain"] = undefined /*out*/;
            resourceInputs["faultDomains"] = undefined /*out*/;
            resourceInputs["freeformTags"] = undefined /*out*/;
            resourceInputs["hostname"] = undefined /*out*/;
            resourceInputs["iormConfigCaches"] = undefined /*out*/;
            resourceInputs["kmsKeyId"] = undefined /*out*/;
            resourceInputs["lastMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["lastPatchHistoryEntryId"] = undefined /*out*/;
            resourceInputs["licenseModel"] = undefined /*out*/;
            resourceInputs["lifecycleDetails"] = undefined /*out*/;
            resourceInputs["listenerPort"] = undefined /*out*/;
            resourceInputs["maintenanceWindows"] = undefined /*out*/;
            resourceInputs["nextMaintenanceRunId"] = undefined /*out*/;
            resourceInputs["nodeCount"] = undefined /*out*/;
            resourceInputs["nsgIds"] = undefined /*out*/;
            resourceInputs["pointInTimeDataDiskCloneTimestamp"] = undefined /*out*/;
            resourceInputs["recoStorageSizeInGb"] = undefined /*out*/;
            resourceInputs["scanDnsName"] = undefined /*out*/;
            resourceInputs["scanDnsRecordId"] = undefined /*out*/;
            resourceInputs["scanIpIds"] = undefined /*out*/;
            resourceInputs["shape"] = undefined /*out*/;
            resourceInputs["sourceDbSystemId"] = undefined /*out*/;
            resourceInputs["sparseDiskgroup"] = undefined /*out*/;
            resourceInputs["sshPublicKeys"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["subnetId"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["timeZone"] = undefined /*out*/;
            resourceInputs["version"] = undefined /*out*/;
            resourceInputs["vipIds"] = undefined /*out*/;
            resourceInputs["zoneId"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(DbSystemsUpgrade.__pulumiType, name, resourceInputs, opts);
    }
}
exports.DbSystemsUpgrade = DbSystemsUpgrade;
//# sourceMappingURL=dbSystemsUpgrade.js.map