@pulumi/juniper-mist
Version:
A Pulumi package for creating and managing Juniper Mist resources.
159 lines • 10.4 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.Setting = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* This resource manages the Site Settings.
*
* The Site Settings can be used to customize the Site configuration and assign Site Variables (Sites Variables can be reused in configuration templates)
*
* > When using the Mist APIs, all the switch settings defined at the site level are stored under the site settings with all the rest of the site configuration (`/api/v1/sites/{site_id}/setting` Mist API Endpoint). To simplify this resource, all the site level switches related settings are moved into the `junipermist.site.Networktemplate` resource
*
* !> Only ONE `junipermist.site.Setting` resource can be configured per site. If multiple ones are configured, only the last one defined we be successfully deployed to Mist
*
* ## Import
*
* Using `pulumi import`, import `mist_site_setting` with:
*
* Site Setting can be imported by specifying the site_id
*
* ```sh
* $ pulumi import junipermist:site/setting:Setting site_setting_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a
* ```
*/
class Setting extends pulumi.CustomResource {
/**
* Get an existing Setting 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 Setting(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Setting. 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'] === Setting.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["analytic"] = state ? state.analytic : undefined;
resourceInputs["apUpdownThreshold"] = state ? state.apUpdownThreshold : undefined;
resourceInputs["autoUpgrade"] = state ? state.autoUpgrade : undefined;
resourceInputs["blacklistUrl"] = state ? state.blacklistUrl : undefined;
resourceInputs["bleConfig"] = state ? state.bleConfig : undefined;
resourceInputs["configAutoRevert"] = state ? state.configAutoRevert : undefined;
resourceInputs["configPushPolicy"] = state ? state.configPushPolicy : undefined;
resourceInputs["criticalUrlMonitoring"] = state ? state.criticalUrlMonitoring : undefined;
resourceInputs["defaultPortUsage"] = state ? state.defaultPortUsage : undefined;
resourceInputs["deviceUpdownThreshold"] = state ? state.deviceUpdownThreshold : undefined;
resourceInputs["enableUnii4"] = state ? state.enableUnii4 : undefined;
resourceInputs["engagement"] = state ? state.engagement : undefined;
resourceInputs["gatewayMgmt"] = state ? state.gatewayMgmt : undefined;
resourceInputs["gatewayUpdownThreshold"] = state ? state.gatewayUpdownThreshold : undefined;
resourceInputs["juniperSrx"] = state ? state.juniperSrx : undefined;
resourceInputs["led"] = state ? state.led : undefined;
resourceInputs["marvis"] = state ? state.marvis : undefined;
resourceInputs["occupancy"] = state ? state.occupancy : undefined;
resourceInputs["persistConfigOnDevice"] = state ? state.persistConfigOnDevice : undefined;
resourceInputs["proxy"] = state ? state.proxy : undefined;
resourceInputs["removeExistingConfigs"] = state ? state.removeExistingConfigs : undefined;
resourceInputs["reportGatt"] = state ? state.reportGatt : undefined;
resourceInputs["rogue"] = state ? state.rogue : undefined;
resourceInputs["rtsa"] = state ? state.rtsa : undefined;
resourceInputs["simpleAlert"] = state ? state.simpleAlert : undefined;
resourceInputs["siteId"] = state ? state.siteId : undefined;
resourceInputs["skyatp"] = state ? state.skyatp : undefined;
resourceInputs["sleThresholds"] = state ? state.sleThresholds : undefined;
resourceInputs["srxApp"] = state ? state.srxApp : undefined;
resourceInputs["sshKeys"] = state ? state.sshKeys : undefined;
resourceInputs["ssr"] = state ? state.ssr : undefined;
resourceInputs["switchUpdownThreshold"] = state ? state.switchUpdownThreshold : undefined;
resourceInputs["syntheticTest"] = state ? state.syntheticTest : undefined;
resourceInputs["trackAnonymousDevices"] = state ? state.trackAnonymousDevices : undefined;
resourceInputs["uplinkPortConfig"] = state ? state.uplinkPortConfig : undefined;
resourceInputs["vars"] = state ? state.vars : undefined;
resourceInputs["vna"] = state ? state.vna : undefined;
resourceInputs["vsInstance"] = state ? state.vsInstance : undefined;
resourceInputs["wanVna"] = state ? state.wanVna : undefined;
resourceInputs["watchedStationUrl"] = state ? state.watchedStationUrl : undefined;
resourceInputs["whitelistUrl"] = state ? state.whitelistUrl : undefined;
resourceInputs["wids"] = state ? state.wids : undefined;
resourceInputs["wifi"] = state ? state.wifi : undefined;
resourceInputs["wiredVna"] = state ? state.wiredVna : undefined;
resourceInputs["zoneOccupancyAlert"] = state ? state.zoneOccupancyAlert : undefined;
}
else {
const args = argsOrState;
if ((!args || args.siteId === undefined) && !opts.urn) {
throw new Error("Missing required property 'siteId'");
}
resourceInputs["analytic"] = args ? args.analytic : undefined;
resourceInputs["apUpdownThreshold"] = args ? args.apUpdownThreshold : undefined;
resourceInputs["autoUpgrade"] = args ? args.autoUpgrade : undefined;
resourceInputs["bleConfig"] = args ? args.bleConfig : undefined;
resourceInputs["configAutoRevert"] = args ? args.configAutoRevert : undefined;
resourceInputs["configPushPolicy"] = args ? args.configPushPolicy : undefined;
resourceInputs["criticalUrlMonitoring"] = args ? args.criticalUrlMonitoring : undefined;
resourceInputs["defaultPortUsage"] = args ? args.defaultPortUsage : undefined;
resourceInputs["deviceUpdownThreshold"] = args ? args.deviceUpdownThreshold : undefined;
resourceInputs["enableUnii4"] = args ? args.enableUnii4 : undefined;
resourceInputs["engagement"] = args ? args.engagement : undefined;
resourceInputs["gatewayMgmt"] = args ? args.gatewayMgmt : undefined;
resourceInputs["gatewayUpdownThreshold"] = args ? args.gatewayUpdownThreshold : undefined;
resourceInputs["juniperSrx"] = args ? args.juniperSrx : undefined;
resourceInputs["led"] = args ? args.led : undefined;
resourceInputs["marvis"] = args ? args.marvis : undefined;
resourceInputs["occupancy"] = args ? args.occupancy : undefined;
resourceInputs["persistConfigOnDevice"] = args ? args.persistConfigOnDevice : undefined;
resourceInputs["proxy"] = args ? args.proxy : undefined;
resourceInputs["removeExistingConfigs"] = args ? args.removeExistingConfigs : undefined;
resourceInputs["reportGatt"] = args ? args.reportGatt : undefined;
resourceInputs["rogue"] = args ? args.rogue : undefined;
resourceInputs["rtsa"] = args ? args.rtsa : undefined;
resourceInputs["simpleAlert"] = args ? args.simpleAlert : undefined;
resourceInputs["siteId"] = args ? args.siteId : undefined;
resourceInputs["skyatp"] = args ? args.skyatp : undefined;
resourceInputs["sleThresholds"] = args ? args.sleThresholds : undefined;
resourceInputs["srxApp"] = args ? args.srxApp : undefined;
resourceInputs["sshKeys"] = args ? args.sshKeys : undefined;
resourceInputs["ssr"] = args ? args.ssr : undefined;
resourceInputs["switchUpdownThreshold"] = args ? args.switchUpdownThreshold : undefined;
resourceInputs["syntheticTest"] = args ? args.syntheticTest : undefined;
resourceInputs["trackAnonymousDevices"] = args ? args.trackAnonymousDevices : undefined;
resourceInputs["uplinkPortConfig"] = args ? args.uplinkPortConfig : undefined;
resourceInputs["vars"] = args ? args.vars : undefined;
resourceInputs["vna"] = args ? args.vna : undefined;
resourceInputs["vsInstance"] = args ? args.vsInstance : undefined;
resourceInputs["wanVna"] = args ? args.wanVna : undefined;
resourceInputs["wids"] = args ? args.wids : undefined;
resourceInputs["wifi"] = args ? args.wifi : undefined;
resourceInputs["wiredVna"] = args ? args.wiredVna : undefined;
resourceInputs["zoneOccupancyAlert"] = args ? args.zoneOccupancyAlert : undefined;
resourceInputs["blacklistUrl"] = undefined /*out*/;
resourceInputs["watchedStationUrl"] = undefined /*out*/;
resourceInputs["whitelistUrl"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Setting.__pulumiType, name, resourceInputs, opts);
}
}
exports.Setting = Setting;
/** @internal */
Setting.__pulumiType = 'junipermist:site/setting:Setting';
//# sourceMappingURL=setting.js.map