UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

117 lines 6.74 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! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Service = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages WAN Assurance Services (Applications). * * A Service is used to define a Custom Application that can be used in the `servicePolicies`. These Services can be referenced by their name in * * the Service Policies (`mist_org_servicepolicy.services`) * * the Gateway configuration (`mist_device_gateway.service_policies.services`) * * the Gateway Templates (`mist_org_gatewaytemplate.service_policies.services`) * * the HUB Profiles (`mist_org_deviceprofile_gateway.service_policies.services`) * * ## Import * * Using `pulumi import`, import `mist_org_service` with: * * Org Service can be imported by specifying the org_id and the service_id * * ```sh * $ pulumi import junipermist:org/service:Service service_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Service extends pulumi.CustomResource { /** * Get an existing Service 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 Service(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Service. 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'] === Service.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["addresses"] = state ? state.addresses : undefined; resourceInputs["appCategories"] = state ? state.appCategories : undefined; resourceInputs["appSubcategories"] = state ? state.appSubcategories : undefined; resourceInputs["apps"] = state ? state.apps : undefined; resourceInputs["clientLimitDown"] = state ? state.clientLimitDown : undefined; resourceInputs["clientLimitUp"] = state ? state.clientLimitUp : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["dscp"] = state ? state.dscp : undefined; resourceInputs["failoverPolicy"] = state ? state.failoverPolicy : undefined; resourceInputs["hostnames"] = state ? state.hostnames : undefined; resourceInputs["maxJitter"] = state ? state.maxJitter : undefined; resourceInputs["maxLatency"] = state ? state.maxLatency : undefined; resourceInputs["maxLoss"] = state ? state.maxLoss : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["serviceLimitDown"] = state ? state.serviceLimitDown : undefined; resourceInputs["serviceLimitUp"] = state ? state.serviceLimitUp : undefined; resourceInputs["sleEnabled"] = state ? state.sleEnabled : undefined; resourceInputs["specs"] = state ? state.specs : undefined; resourceInputs["ssrRelaxedTcpStateEnforcement"] = state ? state.ssrRelaxedTcpStateEnforcement : undefined; resourceInputs["trafficClass"] = state ? state.trafficClass : undefined; resourceInputs["trafficType"] = state ? state.trafficType : undefined; resourceInputs["type"] = state ? state.type : undefined; resourceInputs["urls"] = state ? state.urls : undefined; } else { const args = argsOrState; if ((!args || args.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["addresses"] = args ? args.addresses : undefined; resourceInputs["appCategories"] = args ? args.appCategories : undefined; resourceInputs["appSubcategories"] = args ? args.appSubcategories : undefined; resourceInputs["apps"] = args ? args.apps : undefined; resourceInputs["clientLimitDown"] = args ? args.clientLimitDown : undefined; resourceInputs["clientLimitUp"] = args ? args.clientLimitUp : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["dscp"] = args ? args.dscp : undefined; resourceInputs["failoverPolicy"] = args ? args.failoverPolicy : undefined; resourceInputs["hostnames"] = args ? args.hostnames : undefined; resourceInputs["maxJitter"] = args ? args.maxJitter : undefined; resourceInputs["maxLatency"] = args ? args.maxLatency : undefined; resourceInputs["maxLoss"] = args ? args.maxLoss : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["serviceLimitDown"] = args ? args.serviceLimitDown : undefined; resourceInputs["serviceLimitUp"] = args ? args.serviceLimitUp : undefined; resourceInputs["sleEnabled"] = args ? args.sleEnabled : undefined; resourceInputs["specs"] = args ? args.specs : undefined; resourceInputs["ssrRelaxedTcpStateEnforcement"] = args ? args.ssrRelaxedTcpStateEnforcement : undefined; resourceInputs["trafficClass"] = args ? args.trafficClass : undefined; resourceInputs["trafficType"] = args ? args.trafficType : undefined; resourceInputs["type"] = args ? args.type : undefined; resourceInputs["urls"] = args ? args.urls : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Service.__pulumiType, name, resourceInputs, opts); } } exports.Service = Service; /** @internal */ Service.__pulumiType = 'junipermist:org/service:Service'; //# sourceMappingURL=service.js.map