UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

84 lines 4.2 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.FloatingIp = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Import * * Floating IPs can be imported using the `id`, e.g. * * ```sh * $ pulumi import openstack:networking/floatingIp:FloatingIp floatip_1 2c7f39f3-702b-48d1-940c-b50384177ee1 * ``` */ class FloatingIp extends pulumi.CustomResource { /** * Get an existing FloatingIp 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 FloatingIp(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of FloatingIp. 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'] === FloatingIp.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["address"] = state ? state.address : undefined; resourceInputs["allTags"] = state ? state.allTags : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["dnsDomain"] = state ? state.dnsDomain : undefined; resourceInputs["dnsName"] = state ? state.dnsName : undefined; resourceInputs["fixedIp"] = state ? state.fixedIp : undefined; resourceInputs["pool"] = state ? state.pool : undefined; resourceInputs["portId"] = state ? state.portId : undefined; resourceInputs["region"] = state ? state.region : undefined; resourceInputs["subnetId"] = state ? state.subnetId : undefined; resourceInputs["subnetIds"] = state ? state.subnetIds : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tenantId"] = state ? state.tenantId : undefined; resourceInputs["valueSpecs"] = state ? state.valueSpecs : undefined; } else { const args = argsOrState; resourceInputs["address"] = args ? args.address : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["dnsDomain"] = args ? args.dnsDomain : undefined; resourceInputs["dnsName"] = args ? args.dnsName : undefined; resourceInputs["fixedIp"] = args ? args.fixedIp : undefined; resourceInputs["pool"] = args ? args.pool : undefined; resourceInputs["portId"] = args ? args.portId : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["subnetId"] = args ? args.subnetId : undefined; resourceInputs["subnetIds"] = args ? args.subnetIds : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["tenantId"] = args ? args.tenantId : undefined; resourceInputs["valueSpecs"] = args ? args.valueSpecs : undefined; resourceInputs["allTags"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FloatingIp.__pulumiType, name, resourceInputs, opts); } } exports.FloatingIp = FloatingIp; /** @internal */ FloatingIp.__pulumiType = 'openstack:networking/floatingIp:FloatingIp'; //# sourceMappingURL=floatingIp.js.map