@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
151 lines • 5.96 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.Rftemplate = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
* This resource manages the RF Templates.
*
* The RF Templates can be used to define Wireless Access Points radio configuration, and can be assigned to the sites
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as junipermist from "@pulumi/juniper-mist";
*
* const rftemplateOne = new junipermist.org.Rftemplate("rftemplate_one", {
* name: "rftemplate_one",
* orgId: terraformTest.id,
* band24Usage: "auto",
* band5: {
* antGain: 2,
* power: 8,
* channels: [
* 60,
* 104,
* 132,
* ],
* bandwidth: 20,
* },
* band6: {
* antGain: 2,
* power: 8,
* },
* band24: {
* antGain: 1,
* allowRrmDisable: true,
* powerMin: 18,
* powerMax: 18,
* bandwidth: 20,
* },
* antGain5: 2,
* antGain6: 2,
* antGain24: 1,
* countryCode: "FR",
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import `junipermist.org.Rftemplate` with:
* Org RF Template can be imported by specifying the orgId and the rftemplateId
*
* ```sh
* $ pulumi import junipermist:org/rftemplate:Rftemplate rftemplate_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
* ```
*/
class Rftemplate extends pulumi.CustomResource {
/**
* Get an existing Rftemplate 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 Rftemplate(name, state, { ...opts, id: id });
}
/** @internal */
static __pulumiType = 'junipermist:org/rftemplate:Rftemplate';
/**
* Returns true if the given object is an instance of Rftemplate. 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'] === Rftemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["antGain24"] = state?.antGain24;
resourceInputs["antGain5"] = state?.antGain5;
resourceInputs["antGain6"] = state?.antGain6;
resourceInputs["band24"] = state?.band24;
resourceInputs["band24Usage"] = state?.band24Usage;
resourceInputs["band5"] = state?.band5;
resourceInputs["band5On24Radio"] = state?.band5On24Radio;
resourceInputs["band6"] = state?.band6;
resourceInputs["countryCode"] = state?.countryCode;
resourceInputs["modelSpecific"] = state?.modelSpecific;
resourceInputs["name"] = state?.name;
resourceInputs["orgId"] = state?.orgId;
resourceInputs["scanningEnabled"] = state?.scanningEnabled;
}
else {
const args = argsOrState;
if (args?.orgId === undefined && !opts.urn) {
throw new Error("Missing required property 'orgId'");
}
resourceInputs["antGain24"] = args?.antGain24;
resourceInputs["antGain5"] = args?.antGain5;
resourceInputs["antGain6"] = args?.antGain6;
resourceInputs["band24"] = args?.band24;
resourceInputs["band24Usage"] = args?.band24Usage;
resourceInputs["band5"] = args?.band5;
resourceInputs["band5On24Radio"] = args?.band5On24Radio;
resourceInputs["band6"] = args?.band6;
resourceInputs["countryCode"] = args?.countryCode;
resourceInputs["modelSpecific"] = args?.modelSpecific;
resourceInputs["name"] = args?.name;
resourceInputs["orgId"] = args?.orgId;
resourceInputs["scanningEnabled"] = args?.scanningEnabled;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Rftemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.Rftemplate = Rftemplate;
//# sourceMappingURL=rftemplate.js.map