UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

165 lines 8.51 kB
"use strict"; // *** 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.DeviceprofileSwitch = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * This resource manages the Switch Device Profiles. * * A Switch Device Profile is a configuration profile that defines the attributes of a switch device in a network. It includes settings for port configurations, VLANs, routing, and other switch-specific options. Switch Device Profiles are used to create consistent configurations across switch devices. * * The Switch Device Profile can be assigned to a switch with the `junipermist.org.DeviceprofileAssign` resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const deviceprofileSwitchOne = new junipermist.org.DeviceprofileSwitch("deviceprofile_switch_one", { * name: "deviceprofile_switch_one", * orgId: terraformTest.id, * }); * ``` */ class DeviceprofileSwitch extends pulumi.CustomResource { /** * Get an existing DeviceprofileSwitch 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 DeviceprofileSwitch(name, state, { ...opts, id: id }); } /** @internal */ static __pulumiType = 'junipermist:org/deviceprofileSwitch:DeviceprofileSwitch'; /** * Returns true if the given object is an instance of DeviceprofileSwitch. 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'] === DeviceprofileSwitch.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["aclPolicies"] = state?.aclPolicies; resourceInputs["aclTags"] = state?.aclTags; resourceInputs["additionalConfigCmds"] = state?.additionalConfigCmds; resourceInputs["dhcpSnooping"] = state?.dhcpSnooping; resourceInputs["dhcpdConfig"] = state?.dhcpdConfig; resourceInputs["dnsServers"] = state?.dnsServers; resourceInputs["dnsSuffixes"] = state?.dnsSuffixes; resourceInputs["evpnConfig"] = state?.evpnConfig; resourceInputs["extraRoutes"] = state?.extraRoutes; resourceInputs["extraRoutes6"] = state?.extraRoutes6; resourceInputs["iotConfig"] = state?.iotConfig; resourceInputs["ipConfig"] = state?.ipConfig; resourceInputs["mistNac"] = state?.mistNac; resourceInputs["name"] = state?.name; resourceInputs["networks"] = state?.networks; resourceInputs["ntpServers"] = state?.ntpServers; resourceInputs["oobIpConfig"] = state?.oobIpConfig; resourceInputs["orgId"] = state?.orgId; resourceInputs["ospfAreas"] = state?.ospfAreas; resourceInputs["otherIpConfigs"] = state?.otherIpConfigs; resourceInputs["portConfig"] = state?.portConfig; resourceInputs["portMirroring"] = state?.portMirroring; resourceInputs["portUsages"] = state?.portUsages; resourceInputs["radiusConfig"] = state?.radiusConfig; resourceInputs["remoteSyslog"] = state?.remoteSyslog; resourceInputs["routingPolicies"] = state?.routingPolicies; resourceInputs["siteId"] = state?.siteId; resourceInputs["snmpConfig"] = state?.snmpConfig; resourceInputs["stpConfig"] = state?.stpConfig; resourceInputs["switchMgmt"] = state?.switchMgmt; resourceInputs["type"] = state?.type; resourceInputs["useRouterIdAsSourceIp"] = state?.useRouterIdAsSourceIp; resourceInputs["vrfConfig"] = state?.vrfConfig; resourceInputs["vrfInstances"] = state?.vrfInstances; resourceInputs["vrrpConfig"] = state?.vrrpConfig; } else { const args = argsOrState; if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } if (args?.type === undefined && !opts.urn) { throw new Error("Missing required property 'type'"); } resourceInputs["aclPolicies"] = args?.aclPolicies; resourceInputs["aclTags"] = args?.aclTags; resourceInputs["additionalConfigCmds"] = args?.additionalConfigCmds; resourceInputs["dhcpSnooping"] = args?.dhcpSnooping; resourceInputs["dhcpdConfig"] = args?.dhcpdConfig; resourceInputs["dnsServers"] = args?.dnsServers; resourceInputs["dnsSuffixes"] = args?.dnsSuffixes; resourceInputs["evpnConfig"] = args?.evpnConfig; resourceInputs["extraRoutes"] = args?.extraRoutes; resourceInputs["extraRoutes6"] = args?.extraRoutes6; resourceInputs["iotConfig"] = args?.iotConfig; resourceInputs["ipConfig"] = args?.ipConfig; resourceInputs["mistNac"] = args?.mistNac; resourceInputs["name"] = args?.name; resourceInputs["networks"] = args?.networks; resourceInputs["ntpServers"] = args?.ntpServers; resourceInputs["oobIpConfig"] = args?.oobIpConfig; resourceInputs["orgId"] = args?.orgId; resourceInputs["ospfAreas"] = args?.ospfAreas; resourceInputs["otherIpConfigs"] = args?.otherIpConfigs; resourceInputs["portConfig"] = args?.portConfig; resourceInputs["portMirroring"] = args?.portMirroring; resourceInputs["portUsages"] = args?.portUsages; resourceInputs["radiusConfig"] = args?.radiusConfig; resourceInputs["remoteSyslog"] = args?.remoteSyslog; resourceInputs["routingPolicies"] = args?.routingPolicies; resourceInputs["siteId"] = args?.siteId; resourceInputs["snmpConfig"] = args?.snmpConfig; resourceInputs["stpConfig"] = args?.stpConfig; resourceInputs["switchMgmt"] = args?.switchMgmt; resourceInputs["type"] = args?.type; resourceInputs["useRouterIdAsSourceIp"] = args?.useRouterIdAsSourceIp; resourceInputs["vrfConfig"] = args?.vrfConfig; resourceInputs["vrfInstances"] = args?.vrfInstances; resourceInputs["vrrpConfig"] = args?.vrrpConfig; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DeviceprofileSwitch.__pulumiType, name, resourceInputs, opts); } } exports.DeviceprofileSwitch = DeviceprofileSwitch; //# sourceMappingURL=deviceprofileSwitch.js.map