@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
162 lines • 7.59 kB
JavaScript
;
// *** 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.Options = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
* Manages Proxmox VE Cluster Datacenter options.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const options = new proxmoxve.cluster.Options("options", {
* language: "en",
* keyboard: "pl",
* emailFrom: "ged@gont.earthsea",
* bandwidthLimitMigration: 555555,
* bandwidthLimitDefault: 666666,
* maxWorkers: 5,
* migrationCidr: "10.0.0.0/8",
* migrationType: "secure",
* nextId: {
* lower: 100,
* upper: 999999999,
* },
* notify: {
* haFencingMode: "never",
* haFencingTarget: "default-matcher",
* packageUpdates: "always",
* packageUpdatesTarget: "default-matcher",
* packageReplication: "always",
* packageReplicationTarget: "default-matcher",
* },
* });
* ```
*
* ## Import
*
* !/usr/bin/env sh
* Cluster options are global and can be imported using e.g.:
*
* ```sh
* $ pulumi import proxmoxve:cluster/options:Options options cluster
* ```
*/
class Options extends pulumi.CustomResource {
/**
* Get an existing Options 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 Options(name, state, { ...opts, id: id });
}
/** @internal */
static __pulumiType = 'proxmoxve:cluster/options:Options';
/**
* Returns true if the given object is an instance of Options. 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'] === Options.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["bandwidthLimitClone"] = state?.bandwidthLimitClone;
resourceInputs["bandwidthLimitDefault"] = state?.bandwidthLimitDefault;
resourceInputs["bandwidthLimitMigration"] = state?.bandwidthLimitMigration;
resourceInputs["bandwidthLimitMove"] = state?.bandwidthLimitMove;
resourceInputs["bandwidthLimitRestore"] = state?.bandwidthLimitRestore;
resourceInputs["console"] = state?.console;
resourceInputs["crsHa"] = state?.crsHa;
resourceInputs["crsHaAutoRebalance"] = state?.crsHaAutoRebalance;
resourceInputs["crsHaAutoRebalanceHoldDuration"] = state?.crsHaAutoRebalanceHoldDuration;
resourceInputs["crsHaAutoRebalanceMargin"] = state?.crsHaAutoRebalanceMargin;
resourceInputs["crsHaAutoRebalanceMethod"] = state?.crsHaAutoRebalanceMethod;
resourceInputs["crsHaAutoRebalanceThreshold"] = state?.crsHaAutoRebalanceThreshold;
resourceInputs["crsHaRebalanceOnStart"] = state?.crsHaRebalanceOnStart;
resourceInputs["description"] = state?.description;
resourceInputs["emailFrom"] = state?.emailFrom;
resourceInputs["haShutdownPolicy"] = state?.haShutdownPolicy;
resourceInputs["httpProxy"] = state?.httpProxy;
resourceInputs["keyboard"] = state?.keyboard;
resourceInputs["language"] = state?.language;
resourceInputs["macPrefix"] = state?.macPrefix;
resourceInputs["maxWorkers"] = state?.maxWorkers;
resourceInputs["migrationCidr"] = state?.migrationCidr;
resourceInputs["migrationType"] = state?.migrationType;
resourceInputs["nextId"] = state?.nextId;
resourceInputs["notify"] = state?.notify;
}
else {
const args = argsOrState;
resourceInputs["bandwidthLimitClone"] = args?.bandwidthLimitClone;
resourceInputs["bandwidthLimitDefault"] = args?.bandwidthLimitDefault;
resourceInputs["bandwidthLimitMigration"] = args?.bandwidthLimitMigration;
resourceInputs["bandwidthLimitMove"] = args?.bandwidthLimitMove;
resourceInputs["bandwidthLimitRestore"] = args?.bandwidthLimitRestore;
resourceInputs["console"] = args?.console;
resourceInputs["crsHa"] = args?.crsHa;
resourceInputs["crsHaAutoRebalance"] = args?.crsHaAutoRebalance;
resourceInputs["crsHaAutoRebalanceHoldDuration"] = args?.crsHaAutoRebalanceHoldDuration;
resourceInputs["crsHaAutoRebalanceMargin"] = args?.crsHaAutoRebalanceMargin;
resourceInputs["crsHaAutoRebalanceMethod"] = args?.crsHaAutoRebalanceMethod;
resourceInputs["crsHaAutoRebalanceThreshold"] = args?.crsHaAutoRebalanceThreshold;
resourceInputs["crsHaRebalanceOnStart"] = args?.crsHaRebalanceOnStart;
resourceInputs["description"] = args?.description;
resourceInputs["emailFrom"] = args?.emailFrom;
resourceInputs["haShutdownPolicy"] = args?.haShutdownPolicy;
resourceInputs["httpProxy"] = args?.httpProxy;
resourceInputs["keyboard"] = args?.keyboard;
resourceInputs["language"] = args?.language;
resourceInputs["macPrefix"] = args?.macPrefix;
resourceInputs["maxWorkers"] = args?.maxWorkers;
resourceInputs["migrationCidr"] = args?.migrationCidr;
resourceInputs["migrationType"] = args?.migrationType;
resourceInputs["nextId"] = args?.nextId;
resourceInputs["notify"] = args?.notify;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Options.__pulumiType, name, resourceInputs, opts);
}
}
exports.Options = Options;
//# sourceMappingURL=options.js.map