@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
139 lines • 6.95 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.Mxedge = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
* This resource manages MxEdge devices in the Mist Organization.
*
* MxEdge is a multi-service edge platform that provides tunneling, switching, and other network services.
*
* ## Import
*
* Using `pulumi import`, import `junipermist.org.Mxedge` with:
* Mist Org MxEdge can be imported by specifying the orgId and the mxedgeId
*
* ```sh
* $ pulumi import junipermist:org/mxedge:Mxedge edge_one 17f90707-aebe-4274-af42-f42952a665a3.387804a7-3474-85ce-15a2-f9a9684c9c90
* ```
*/
class Mxedge extends pulumi.CustomResource {
/**
* Get an existing Mxedge 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 Mxedge(name, state, { ...opts, id: id });
}
/** @internal */
static __pulumiType = 'junipermist:org/mxedge:Mxedge';
/**
* Returns true if the given object is an instance of Mxedge. 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'] === Mxedge.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["claimCode"] = state?.claimCode;
resourceInputs["forSite"] = state?.forSite;
resourceInputs["mac"] = state?.mac;
resourceInputs["model"] = state?.model;
resourceInputs["mxagentRegistered"] = state?.mxagentRegistered;
resourceInputs["mxclusterId"] = state?.mxclusterId;
resourceInputs["mxedgeMgmt"] = state?.mxedgeMgmt;
resourceInputs["name"] = state?.name;
resourceInputs["notes"] = state?.notes;
resourceInputs["ntpServers"] = state?.ntpServers;
resourceInputs["oobIpConfig"] = state?.oobIpConfig;
resourceInputs["orgId"] = state?.orgId;
resourceInputs["proxy"] = state?.proxy;
resourceInputs["services"] = state?.services;
resourceInputs["siteId"] = state?.siteId;
resourceInputs["tuntermDhcpdConfig"] = state?.tuntermDhcpdConfig;
resourceInputs["tuntermExtraRoutes"] = state?.tuntermExtraRoutes;
resourceInputs["tuntermIgmpSnoopingConfig"] = state?.tuntermIgmpSnoopingConfig;
resourceInputs["tuntermIpConfig"] = state?.tuntermIpConfig;
resourceInputs["tuntermMonitorings"] = state?.tuntermMonitorings;
resourceInputs["tuntermMulticastConfig"] = state?.tuntermMulticastConfig;
resourceInputs["tuntermOtherIpConfigs"] = state?.tuntermOtherIpConfigs;
resourceInputs["tuntermPortConfig"] = state?.tuntermPortConfig;
resourceInputs["tuntermRegistered"] = state?.tuntermRegistered;
resourceInputs["tuntermSwitchConfig"] = state?.tuntermSwitchConfig;
resourceInputs["versions"] = state?.versions;
}
else {
const args = argsOrState;
if (args?.orgId === undefined && !opts.urn) {
throw new Error("Missing required property 'orgId'");
}
resourceInputs["claimCode"] = args?.claimCode;
resourceInputs["model"] = args?.model;
resourceInputs["mxclusterId"] = args?.mxclusterId;
resourceInputs["mxedgeMgmt"] = args?.mxedgeMgmt;
resourceInputs["name"] = args?.name;
resourceInputs["notes"] = args?.notes;
resourceInputs["ntpServers"] = args?.ntpServers;
resourceInputs["oobIpConfig"] = args?.oobIpConfig;
resourceInputs["orgId"] = args?.orgId;
resourceInputs["proxy"] = args?.proxy;
resourceInputs["siteId"] = args?.siteId;
resourceInputs["tuntermDhcpdConfig"] = args?.tuntermDhcpdConfig;
resourceInputs["tuntermExtraRoutes"] = args?.tuntermExtraRoutes;
resourceInputs["tuntermIgmpSnoopingConfig"] = args?.tuntermIgmpSnoopingConfig;
resourceInputs["tuntermIpConfig"] = args?.tuntermIpConfig;
resourceInputs["tuntermMonitorings"] = args?.tuntermMonitorings;
resourceInputs["tuntermMulticastConfig"] = args?.tuntermMulticastConfig;
resourceInputs["tuntermOtherIpConfigs"] = args?.tuntermOtherIpConfigs;
resourceInputs["tuntermPortConfig"] = args?.tuntermPortConfig;
resourceInputs["tuntermSwitchConfig"] = args?.tuntermSwitchConfig;
resourceInputs["versions"] = args?.versions;
resourceInputs["forSite"] = undefined /*out*/;
resourceInputs["mac"] = undefined /*out*/;
resourceInputs["mxagentRegistered"] = undefined /*out*/;
resourceInputs["services"] = undefined /*out*/;
resourceInputs["tuntermRegistered"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Mxedge.__pulumiType, name, resourceInputs, opts);
}
}
exports.Mxedge = Mxedge;
//# sourceMappingURL=mxedge.js.map