@pulumi/meraki
Version:
A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0
81 lines • 4.13 kB
JavaScript
;
// *** 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.SwitchRoutingInterfaces = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* ## Example Usage
*
* ## Import
*
* ```sh
* $ pulumi import meraki:devices/switchRoutingInterfaces:SwitchRoutingInterfaces example "interface_id,serial"
* ```
*/
class SwitchRoutingInterfaces extends pulumi.CustomResource {
/**
* Get an existing SwitchRoutingInterfaces 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 SwitchRoutingInterfaces(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of SwitchRoutingInterfaces. 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'] === SwitchRoutingInterfaces.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["defaultGateway"] = state ? state.defaultGateway : undefined;
resourceInputs["interfaceId"] = state ? state.interfaceId : undefined;
resourceInputs["interfaceIp"] = state ? state.interfaceIp : undefined;
resourceInputs["ipv6"] = state ? state.ipv6 : undefined;
resourceInputs["multicastRouting"] = state ? state.multicastRouting : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["ospfSettings"] = state ? state.ospfSettings : undefined;
resourceInputs["ospfV3"] = state ? state.ospfV3 : undefined;
resourceInputs["serial"] = state ? state.serial : undefined;
resourceInputs["subnet"] = state ? state.subnet : undefined;
resourceInputs["vlanId"] = state ? state.vlanId : undefined;
}
else {
const args = argsOrState;
if ((!args || args.serial === undefined) && !opts.urn) {
throw new Error("Missing required property 'serial'");
}
resourceInputs["defaultGateway"] = args ? args.defaultGateway : undefined;
resourceInputs["interfaceId"] = args ? args.interfaceId : undefined;
resourceInputs["interfaceIp"] = args ? args.interfaceIp : undefined;
resourceInputs["ipv6"] = args ? args.ipv6 : undefined;
resourceInputs["multicastRouting"] = args ? args.multicastRouting : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["ospfSettings"] = args ? args.ospfSettings : undefined;
resourceInputs["ospfV3"] = args ? args.ospfV3 : undefined;
resourceInputs["serial"] = args ? args.serial : undefined;
resourceInputs["subnet"] = args ? args.subnet : undefined;
resourceInputs["vlanId"] = args ? args.vlanId : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SwitchRoutingInterfaces.__pulumiType, name, resourceInputs, opts);
}
}
exports.SwitchRoutingInterfaces = SwitchRoutingInterfaces;
/** @internal */
SwitchRoutingInterfaces.__pulumiType = 'meraki:devices/switchRoutingInterfaces:SwitchRoutingInterfaces';
//# sourceMappingURL=switchRoutingInterfaces.js.map