UNPKG

@lubyou/pulumi-fortios

Version:

A Pulumi package for creating and managing fortios cloud resources.

86 lines 5.18 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.SystemPppoeInterface = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class SystemPppoeInterface extends pulumi.CustomResource { /** * Get an existing SystemPppoeInterface 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 SystemPppoeInterface(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SystemPppoeInterface. 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'] === SystemPppoeInterface.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["acName"] = state ? state.acName : undefined; resourceInputs["authType"] = state ? state.authType : undefined; resourceInputs["device"] = state ? state.device : undefined; resourceInputs["dialOnDemand"] = state ? state.dialOnDemand : undefined; resourceInputs["discRetryTimeout"] = state ? state.discRetryTimeout : undefined; resourceInputs["idleTimeout"] = state ? state.idleTimeout : undefined; resourceInputs["ipunnumbered"] = state ? state.ipunnumbered : undefined; resourceInputs["ipv6"] = state ? state.ipv6 : undefined; resourceInputs["lcpEchoInterval"] = state ? state.lcpEchoInterval : undefined; resourceInputs["lcpMaxEchoFails"] = state ? state.lcpMaxEchoFails : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["padtRetryTimeout"] = state ? state.padtRetryTimeout : undefined; resourceInputs["password"] = state ? state.password : undefined; resourceInputs["pppoeUnnumberedNegotiate"] = state ? state.pppoeUnnumberedNegotiate : undefined; resourceInputs["serviceName"] = state ? state.serviceName : undefined; resourceInputs["username"] = state ? state.username : undefined; resourceInputs["vdomparam"] = state ? state.vdomparam : undefined; } else { const args = argsOrState; if ((!args || args.device === undefined) && !opts.urn) { throw new Error("Missing required property 'device'"); } resourceInputs["acName"] = args ? args.acName : undefined; resourceInputs["authType"] = args ? args.authType : undefined; resourceInputs["device"] = args ? args.device : undefined; resourceInputs["dialOnDemand"] = args ? args.dialOnDemand : undefined; resourceInputs["discRetryTimeout"] = args ? args.discRetryTimeout : undefined; resourceInputs["idleTimeout"] = args ? args.idleTimeout : undefined; resourceInputs["ipunnumbered"] = args ? args.ipunnumbered : undefined; resourceInputs["ipv6"] = args ? args.ipv6 : undefined; resourceInputs["lcpEchoInterval"] = args ? args.lcpEchoInterval : undefined; resourceInputs["lcpMaxEchoFails"] = args ? args.lcpMaxEchoFails : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["padtRetryTimeout"] = args ? args.padtRetryTimeout : undefined; resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined; resourceInputs["pppoeUnnumberedNegotiate"] = args ? args.pppoeUnnumberedNegotiate : undefined; resourceInputs["serviceName"] = args ? args.serviceName : undefined; resourceInputs["username"] = args ? args.username : undefined; resourceInputs["vdomparam"] = args ? args.vdomparam : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["password"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(SystemPppoeInterface.__pulumiType, name, resourceInputs, opts); } } exports.SystemPppoeInterface = SystemPppoeInterface; /** @internal */ SystemPppoeInterface.__pulumiType = 'fortios:index/systemPppoeInterface:SystemPppoeInterface'; //# sourceMappingURL=systemPppoeInterface.js.map