@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
91 lines • 4.58 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.Rftemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = 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
*
* ## Import
*
* Using `pulumi import`, import `mist_org_rftemplate` with:
*
* Org RF Template can be imported by specifying the org_id and the rftemplate_id
*
* ```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, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* 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 ? state.antGain24 : undefined;
resourceInputs["antGain5"] = state ? state.antGain5 : undefined;
resourceInputs["antGain6"] = state ? state.antGain6 : undefined;
resourceInputs["band24"] = state ? state.band24 : undefined;
resourceInputs["band24Usage"] = state ? state.band24Usage : undefined;
resourceInputs["band5"] = state ? state.band5 : undefined;
resourceInputs["band5On24Radio"] = state ? state.band5On24Radio : undefined;
resourceInputs["band6"] = state ? state.band6 : undefined;
resourceInputs["countryCode"] = state ? state.countryCode : undefined;
resourceInputs["modelSpecific"] = state ? state.modelSpecific : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["orgId"] = state ? state.orgId : undefined;
resourceInputs["scanningEnabled"] = state ? state.scanningEnabled : undefined;
}
else {
const args = argsOrState;
if ((!args || args.orgId === undefined) && !opts.urn) {
throw new Error("Missing required property 'orgId'");
}
resourceInputs["antGain24"] = args ? args.antGain24 : undefined;
resourceInputs["antGain5"] = args ? args.antGain5 : undefined;
resourceInputs["antGain6"] = args ? args.antGain6 : undefined;
resourceInputs["band24"] = args ? args.band24 : undefined;
resourceInputs["band24Usage"] = args ? args.band24Usage : undefined;
resourceInputs["band5"] = args ? args.band5 : undefined;
resourceInputs["band5On24Radio"] = args ? args.band5On24Radio : undefined;
resourceInputs["band6"] = args ? args.band6 : undefined;
resourceInputs["countryCode"] = args ? args.countryCode : undefined;
resourceInputs["modelSpecific"] = args ? args.modelSpecific : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["orgId"] = args ? args.orgId : undefined;
resourceInputs["scanningEnabled"] = args ? args.scanningEnabled : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Rftemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.Rftemplate = Rftemplate;
/** @internal */
Rftemplate.__pulumiType = 'junipermist:org/rftemplate:Rftemplate';
//# sourceMappingURL=rftemplate.js.map