@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
150 lines • 7.32 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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ap = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource manages the Wireless Access Point configuration.
*
* It can be used to define specific configuration at the device level or to override AP Device Profile (`junipermist.org.DeviceprofileAp`).
*
* ## Import
*
* Using `pulumi import`, import `mist_device_ap` with:
*
* AP Configuration can be imported by specifying the site_id and the device_id
*
* ```sh
* $ pulumi import junipermist:device/ap:Ap ap_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
* ```
*/
class Ap extends pulumi.CustomResource {
/**
* Get an existing Ap 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 Ap(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of Ap. 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'] === Ap.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["aeroscout"] = state?.aeroscout;
resourceInputs["airista"] = state?.airista;
resourceInputs["bleConfig"] = state?.bleConfig;
resourceInputs["centrak"] = state?.centrak;
resourceInputs["clientBridge"] = state?.clientBridge;
resourceInputs["deviceId"] = state?.deviceId;
resourceInputs["disableEth1"] = state?.disableEth1;
resourceInputs["disableEth2"] = state?.disableEth2;
resourceInputs["disableEth3"] = state?.disableEth3;
resourceInputs["disableModule"] = state?.disableModule;
resourceInputs["eslConfig"] = state?.eslConfig;
resourceInputs["flowControl"] = state?.flowControl;
resourceInputs["height"] = state?.height;
resourceInputs["image1Url"] = state?.image1Url;
resourceInputs["image2Url"] = state?.image2Url;
resourceInputs["image3Url"] = state?.image3Url;
resourceInputs["ipConfig"] = state?.ipConfig;
resourceInputs["lacpConfig"] = state?.lacpConfig;
resourceInputs["led"] = state?.led;
resourceInputs["locked"] = state?.locked;
resourceInputs["mac"] = state?.mac;
resourceInputs["mapId"] = state?.mapId;
resourceInputs["mesh"] = state?.mesh;
resourceInputs["model"] = state?.model;
resourceInputs["name"] = state?.name;
resourceInputs["notes"] = state?.notes;
resourceInputs["ntpServers"] = state?.ntpServers;
resourceInputs["orgId"] = state?.orgId;
resourceInputs["orientation"] = state?.orientation;
resourceInputs["poePassthrough"] = state?.poePassthrough;
resourceInputs["portConfig"] = state?.portConfig;
resourceInputs["pwrConfig"] = state?.pwrConfig;
resourceInputs["radioConfig"] = state?.radioConfig;
resourceInputs["serial"] = state?.serial;
resourceInputs["siteId"] = state?.siteId;
resourceInputs["type"] = state?.type;
resourceInputs["uplinkPortConfig"] = state?.uplinkPortConfig;
resourceInputs["usbConfig"] = state?.usbConfig;
resourceInputs["vars"] = state?.vars;
resourceInputs["x"] = state?.x;
resourceInputs["y"] = state?.y;
}
else {
const args = argsOrState;
if (args?.deviceId === undefined && !opts.urn) {
throw new Error("Missing required property 'deviceId'");
}
if (args?.siteId === undefined && !opts.urn) {
throw new Error("Missing required property 'siteId'");
}
resourceInputs["aeroscout"] = args?.aeroscout;
resourceInputs["airista"] = args?.airista;
resourceInputs["bleConfig"] = args?.bleConfig;
resourceInputs["centrak"] = args?.centrak;
resourceInputs["clientBridge"] = args?.clientBridge;
resourceInputs["deviceId"] = args?.deviceId;
resourceInputs["disableEth1"] = args?.disableEth1;
resourceInputs["disableEth2"] = args?.disableEth2;
resourceInputs["disableEth3"] = args?.disableEth3;
resourceInputs["disableModule"] = args?.disableModule;
resourceInputs["eslConfig"] = args?.eslConfig;
resourceInputs["flowControl"] = args?.flowControl;
resourceInputs["height"] = args?.height;
resourceInputs["ipConfig"] = args?.ipConfig;
resourceInputs["lacpConfig"] = args?.lacpConfig;
resourceInputs["led"] = args?.led;
resourceInputs["locked"] = args?.locked;
resourceInputs["mapId"] = args?.mapId;
resourceInputs["mesh"] = args?.mesh;
resourceInputs["name"] = args?.name;
resourceInputs["notes"] = args?.notes;
resourceInputs["ntpServers"] = args?.ntpServers;
resourceInputs["orientation"] = args?.orientation;
resourceInputs["poePassthrough"] = args?.poePassthrough;
resourceInputs["portConfig"] = args?.portConfig;
resourceInputs["pwrConfig"] = args?.pwrConfig;
resourceInputs["radioConfig"] = args?.radioConfig;
resourceInputs["siteId"] = args?.siteId;
resourceInputs["uplinkPortConfig"] = args?.uplinkPortConfig;
resourceInputs["usbConfig"] = args?.usbConfig;
resourceInputs["vars"] = args?.vars;
resourceInputs["x"] = args?.x;
resourceInputs["y"] = args?.y;
resourceInputs["image1Url"] = undefined /*out*/;
resourceInputs["image2Url"] = undefined /*out*/;
resourceInputs["image3Url"] = undefined /*out*/;
resourceInputs["mac"] = undefined /*out*/;
resourceInputs["model"] = undefined /*out*/;
resourceInputs["orgId"] = undefined /*out*/;
resourceInputs["serial"] = undefined /*out*/;
resourceInputs["type"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Ap.__pulumiType, name, resourceInputs, opts);
}
}
exports.Ap = Ap;
/** @internal */
Ap.__pulumiType = 'junipermist:device/ap:Ap';
//# sourceMappingURL=ap.js.map