UNPKG

@port-labs/port

Version:

A Pulumi package for creating and managing Port resources.

82 lines 4.19 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.Entity = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Entity resource */ class Entity extends pulumi.CustomResource { /** * Get an existing Entity 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 Entity(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Entity. 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'] === Entity.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["blueprint"] = state ? state.blueprint : undefined; resourceInputs["createMissingRelatedEntities"] = state ? state.createMissingRelatedEntities : undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["createdBy"] = state ? state.createdBy : undefined; resourceInputs["icon"] = state ? state.icon : undefined; resourceInputs["identifier"] = state ? state.identifier : undefined; resourceInputs["properties"] = state ? state.properties : undefined; resourceInputs["relations"] = state ? state.relations : undefined; resourceInputs["runId"] = state ? state.runId : undefined; resourceInputs["teams"] = state ? state.teams : undefined; resourceInputs["title"] = state ? state.title : undefined; resourceInputs["updatedAt"] = state ? state.updatedAt : undefined; resourceInputs["updatedBy"] = state ? state.updatedBy : undefined; } else { const args = argsOrState; if ((!args || args.blueprint === undefined) && !opts.urn) { throw new Error("Missing required property 'blueprint'"); } if ((!args || args.title === undefined) && !opts.urn) { throw new Error("Missing required property 'title'"); } resourceInputs["blueprint"] = args ? args.blueprint : undefined; resourceInputs["createMissingRelatedEntities"] = args ? args.createMissingRelatedEntities : undefined; resourceInputs["icon"] = args ? args.icon : undefined; resourceInputs["identifier"] = args ? args.identifier : undefined; resourceInputs["properties"] = args ? args.properties : undefined; resourceInputs["relations"] = args ? args.relations : undefined; resourceInputs["runId"] = args ? args.runId : undefined; resourceInputs["teams"] = args ? args.teams : undefined; resourceInputs["title"] = args ? args.title : undefined; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["createdBy"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; resourceInputs["updatedBy"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Entity.__pulumiType, name, resourceInputs, opts); } } exports.Entity = Entity; /** @internal */ Entity.__pulumiType = 'port:index/entity:Entity'; //# sourceMappingURL=entity.js.map