"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.DbSystem = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * A DbSystem Resource
 *
 * ## Example Usage
 *
 * ### Oracledatabase Db System Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const myDbSystem = new gcp.oracledatabase.DbSystem("my_db_system", {
 *     dbSystemId: "my-instance",
 *     displayName: "my-instance displayname",
 *     location: "europe-west2",
 *     project: "my-project",
 *     odbNetwork: "projects/my-project/locations/europe-west2/odbNetworks/my-odbnetwork",
 *     odbSubnet: "projects/my-project/locations/europe-west2/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet",
 *     properties: {
 *         sshPublicKeys: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCz1X2744t+6vRLmE5u6nHi6/QWh8bQDgHmd+OIxRQIGA/IWUtCs2FnaCNZcqvZkaeyjk5v0lTA/n+9jvO42Ipib53athrfVG8gRt8fzPL66C6ZqHq+6zZophhrCdfJh/0G4x9xJh5gdMprlaCR1P8yAaVvhBQSKGc4SiIkyMNBcHJ5YTtMQMTfxaB4G1sHZ6SDAY9a6Cq/zNjDwfPapWLsiP4mRhE5SSjJX6l6EYbkm0JeLQg+AbJiNEPvrvDp1wtTxzlPJtIivthmLMThFxK7+DkrYFuLvN5AHUdo9KTDLvHtDCvV70r8v0gafsrKkM/OE9Jtzoo0e1N/5K/ZdyFRbAkFT4QSF3nwpbmBWLf2Evg//YyEuxnz4CwPqFST2mucnrCCGCVWp1vnHZ0y30nM35njLOmWdRDFy5l27pKUTwLp02y3UYiiZyP7d3/u5pKiN4vC27VuvzprSdJxWoAvluOiDeRh+/oeQDowxoT/Oop8DzB9uJmjktXw8jyMW2+Rpg+ENQqeNgF1OGlEzypaWiRskEFlkpLb4v/s3ZDYkL1oW0Nv/J8LTjTOTEaYt2Udjoe9x2xWiGnQixhdChWuG+MaoWffzUgx1tsVj/DBXijR5DjkPkrA1GA98zd3q8GKEaAdcDenJjHhNYSd4+rE9pIsnYn7fo5X/tFfcQH1XQ== nobody@google.com"],
 *         computeCount: 4,
 *         hostnamePrefix: "hostname1",
 *         shape: "VM.Standard.x86",
 *         initialDataStorageSizeGb: 256,
 *         databaseEdition: "STANDARD_EDITION",
 *         licenseModel: "LICENSE_INCLUDED",
 *         timeZone: {
 *             id: "UTC",
 *         },
 *         dbHome: {
 *             dbVersion: "19.0.0.0",
 *             database: {
 *                 adminPassword: "ABcde_1#234",
 *                 databaseId: "mydb",
 *                 dbName: "db",
 *             },
 *         },
 *     },
 *     deletionProtection: true,
 * });
 * ```
 * ### Oracledatabase Db System Full
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const myDbSystem = new gcp.oracledatabase.DbSystem("my_db_system", {
 *     dbSystemId: "my-instance",
 *     displayName: "my-instance displayname",
 *     location: "europe-west2",
 *     project: "my-project",
 *     odbNetwork: "projects/my-project/locations/europe-west2/odbNetworks/my-odbnetwork",
 *     odbSubnet: "projects/my-project/locations/europe-west2/odbNetworks/my-odbnetwork/odbSubnets/my-odbsubnet",
 *     properties: {
 *         sshPublicKeys: ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCz1X2744t+6vRLmE5u6nHi6/QWh8bQDgHmd+OIxRQIGA/IWUtCs2FnaCNZcqvZkaeyjk5v0lTA/n+9jvO42Ipib53athrfVG8gRt8fzPL66C6ZqHq+6zZophhrCdfJh/0G4x9xJh5gdMprlaCR1P8yAaVvhBQSKGc4SiIkyMNBcHJ5YTtMQMTfxaB4G1sHZ6SDAY9a6Cq/zNjDwfPapWLsiP4mRhE5SSjJX6l6EYbkm0JeLQg+AbJiNEPvrvDp1wtTxzlPJtIivthmLMThFxK7+DkrYFuLvN5AHUdo9KTDLvHtDCvV70r8v0gafsrKkM/OE9Jtzoo0e1N/5K/ZdyFRbAkFT4QSF3nwpbmBWLf2Evg//YyEuxnz4CwPqFST2mucnrCCGCVWp1vnHZ0y30nM35njLOmWdRDFy5l27pKUTwLp02y3UYiiZyP7d3/u5pKiN4vC27VuvzprSdJxWoAvluOiDeRh+/oeQDowxoT/Oop8DzB9uJmjktXw8jyMW2+Rpg+ENQqeNgF1OGlEzypaWiRskEFlkpLb4v/s3ZDYkL1oW0Nv/J8LTjTOTEaYt2Udjoe9x2xWiGnQixhdChWuG+MaoWffzUgx1tsVj/DBXijR5DjkPkrA1GA98zd3q8GKEaAdcDenJjHhNYSd4+rE9pIsnYn7fo5X/tFfcQH1XQ== nobody@google.com"],
 *         computeCount: 4,
 *         hostnamePrefix: "hostname3",
 *         computeModel: "ECPU",
 *         dataStorageSizeGb: 256,
 *         memorySizeGb: 8,
 *         shape: "VM.Standard.x86",
 *         initialDataStorageSizeGb: 256,
 *         databaseEdition: "STANDARD_EDITION",
 *         licenseModel: "LICENSE_INCLUDED",
 *         privateIp: "10.1.2.127",
 *         dbHome: {
 *             dbVersion: "19.0.0.0",
 *             database: {
 *                 dbName: "db",
 *                 dbUniqueName: "dbunique",
 *                 adminPassword: "ABcde_1#2345",
 *                 tdeWalletPassword: "ABcde_1#2345",
 *                 databaseId: "mydb",
 *             },
 *             isUnifiedAuditingEnabled: true,
 *         },
 *     },
 *     deletionProtection: true,
 * });
 * ```
 *
 * ## Import
 *
 * DbSystem can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/locations/{{location}}/dbSystems/{{db_system_id}}`
 *
 * * `{{project}}/{{location}}/{{db_system_id}}`
 *
 * * `{{location}}/{{db_system_id}}`
 *
 * When using the `pulumi import` command, DbSystem can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:oracledatabase/dbSystem:DbSystem default projects/{{project}}/locations/{{location}}/dbSystems/{{db_system_id}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:oracledatabase/dbSystem:DbSystem default {{project}}/{{location}}/{{db_system_id}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:oracledatabase/dbSystem:DbSystem default {{location}}/{{db_system_id}}
 * ```
 */
class DbSystem extends pulumi.CustomResource {
    /**
     * Get an existing DbSystem 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 DbSystem(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of DbSystem.  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'] === DbSystem.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["createTime"] = state?.createTime;
            resourceInputs["dbSystemId"] = state?.dbSystemId;
            resourceInputs["deletionProtection"] = state?.deletionProtection;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["effectiveLabels"] = state?.effectiveLabels;
            resourceInputs["entitlementId"] = state?.entitlementId;
            resourceInputs["gcpOracleZone"] = state?.gcpOracleZone;
            resourceInputs["labels"] = state?.labels;
            resourceInputs["location"] = state?.location;
            resourceInputs["name"] = state?.name;
            resourceInputs["ociUrl"] = state?.ociUrl;
            resourceInputs["odbNetwork"] = state?.odbNetwork;
            resourceInputs["odbSubnet"] = state?.odbSubnet;
            resourceInputs["project"] = state?.project;
            resourceInputs["properties"] = state?.properties;
            resourceInputs["pulumiLabels"] = state?.pulumiLabels;
        }
        else {
            const args = argsOrState;
            if (args?.dbSystemId === undefined && !opts.urn) {
                throw new Error("Missing required property 'dbSystemId'");
            }
            if (args?.displayName === undefined && !opts.urn) {
                throw new Error("Missing required property 'displayName'");
            }
            if (args?.location === undefined && !opts.urn) {
                throw new Error("Missing required property 'location'");
            }
            if (args?.odbSubnet === undefined && !opts.urn) {
                throw new Error("Missing required property 'odbSubnet'");
            }
            resourceInputs["dbSystemId"] = args?.dbSystemId;
            resourceInputs["deletionProtection"] = args?.deletionProtection;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["gcpOracleZone"] = args?.gcpOracleZone;
            resourceInputs["labels"] = args?.labels;
            resourceInputs["location"] = args?.location;
            resourceInputs["odbNetwork"] = args?.odbNetwork;
            resourceInputs["odbSubnet"] = args?.odbSubnet;
            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["ociUrl"] = undefined /*out*/;
            resourceInputs["pulumiLabels"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const secretOpts = { additionalSecretOutputs: ["effectiveLabels", "pulumiLabels"] };
        opts = pulumi.mergeOptions(opts, secretOpts);
        super(DbSystem.__pulumiType, name, resourceInputs, opts);
    }
}
exports.DbSystem = DbSystem;
/** @internal */
DbSystem.__pulumiType = 'gcp:oracledatabase/dbSystem:DbSystem';
//# sourceMappingURL=dbSystem.js.map