UNPKG

@pulumi/meraki

Version:

A Pulumi package for creating and managing Cisco Meraki resources. Based on terraform-provider-meraki: version v0.2.0

123 lines 5.61 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.FloorPlans = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as meraki from "@pulumi/meraki"; * * const example = new meraki.networks.FloorPlans("example", { * bottomLeftCorner: { * lat: 37.770040510499996, * lng: -122.38714009525, * }, * bottomRightCorner: { * lat: 37.770040510499996, * lng: -122.38714009525, * }, * center: { * lat: 37.770040510499996, * lng: -122.38714009525, * }, * imageContents: "2a9edd3f4ffd80130c647d13eacb59f3", * name: "HQ Floor Plan", * networkId: "string", * topLeftCorner: { * lat: 37.770040510499996, * lng: -122.38714009525, * }, * topRightCorner: { * lat: 37.770040510499996, * lng: -122.38714009525, * }, * }); * export const merakiNetworksFloorPlansExample = example; * ``` * * ## Import * * ```sh * $ pulumi import meraki:networks/floorPlans:FloorPlans example "floor_plan_id,network_id" * ``` */ class FloorPlans extends pulumi.CustomResource { /** * Get an existing FloorPlans 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 FloorPlans(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of FloorPlans. 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'] === FloorPlans.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["bottomLeftCorner"] = state ? state.bottomLeftCorner : undefined; resourceInputs["bottomRightCorner"] = state ? state.bottomRightCorner : undefined; resourceInputs["center"] = state ? state.center : undefined; resourceInputs["devices"] = state ? state.devices : undefined; resourceInputs["floorPlanId"] = state ? state.floorPlanId : undefined; resourceInputs["height"] = state ? state.height : undefined; resourceInputs["imageContents"] = state ? state.imageContents : undefined; resourceInputs["imageExtension"] = state ? state.imageExtension : undefined; resourceInputs["imageMd5"] = state ? state.imageMd5 : undefined; resourceInputs["imageUrl"] = state ? state.imageUrl : undefined; resourceInputs["imageUrlExpiresAt"] = state ? state.imageUrlExpiresAt : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["networkId"] = state ? state.networkId : undefined; resourceInputs["topLeftCorner"] = state ? state.topLeftCorner : undefined; resourceInputs["topRightCorner"] = state ? state.topRightCorner : undefined; resourceInputs["width"] = state ? state.width : undefined; } else { const args = argsOrState; if ((!args || args.networkId === undefined) && !opts.urn) { throw new Error("Missing required property 'networkId'"); } resourceInputs["bottomLeftCorner"] = args ? args.bottomLeftCorner : undefined; resourceInputs["bottomRightCorner"] = args ? args.bottomRightCorner : undefined; resourceInputs["center"] = args ? args.center : undefined; resourceInputs["floorPlanId"] = args ? args.floorPlanId : undefined; resourceInputs["imageContents"] = args ? args.imageContents : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networkId"] = args ? args.networkId : undefined; resourceInputs["topLeftCorner"] = args ? args.topLeftCorner : undefined; resourceInputs["topRightCorner"] = args ? args.topRightCorner : undefined; resourceInputs["devices"] = undefined /*out*/; resourceInputs["height"] = undefined /*out*/; resourceInputs["imageExtension"] = undefined /*out*/; resourceInputs["imageMd5"] = undefined /*out*/; resourceInputs["imageUrl"] = undefined /*out*/; resourceInputs["imageUrlExpiresAt"] = undefined /*out*/; resourceInputs["width"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FloorPlans.__pulumiType, name, resourceInputs, opts); } } exports.FloorPlans = FloorPlans; /** @internal */ FloorPlans.__pulumiType = 'meraki:networks/floorPlans:FloorPlans'; //# sourceMappingURL=floorPlans.js.map