UNPKG

@natzka-oss/pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox cloud resources.

155 lines (154 loc) 6.06 kB
import * as pulumi from "@pulumi/pulumi"; /** * From the [official documentation](https://netboxlabs.com/docs/netbox/en/stable/models/dcim/racktype/): * * > A rack type defines the physical characteristics of a particular model of rack. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@natzka-oss/pulumi-netbox"; * * const test = new netbox.dcim.Manufacturer("test", {name: "my-manufacturer"}); * const testRackType = new netbox.dcim.RackType("test", { * model: "mymodel", * manufacturerId: test.id, * width: 19, * uHeight: 48, * startingUnit: 1, * formFactor: "2-post-frame", * description: "My description", * outerWidth: 10, * outerDepth: 15, * outerUnit: "mm", * weight: 15, * maxWeight: 20, * weightUnit: "kg", * mountingDepthMm: 21, * comments: "My comments", * }); * ``` */ export declare class RackType extends pulumi.CustomResource { /** * Get an existing RackType 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: string, id: pulumi.Input<pulumi.ID>, state?: RackTypeState, opts?: pulumi.CustomResourceOptions): RackType; /** * Returns true if the given object is an instance of RackType. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is RackType; readonly comments: pulumi.Output<string | undefined>; readonly description: pulumi.Output<string | undefined>; /** * Valid values are `2-post-frame`, `4-post-frame`, `4-post-cabinet`, `wall-frame`, `wall-frame-vertical`, `wall-cabinet` and `wall-cabinet-vertical`. */ readonly formFactor: pulumi.Output<string>; readonly manufacturerId: pulumi.Output<number | undefined>; readonly maxWeight: pulumi.Output<number | undefined>; readonly model: pulumi.Output<string>; readonly mountingDepthMm: pulumi.Output<number | undefined>; readonly outerDepth: pulumi.Output<number | undefined>; /** * Valid values are `mm` and `in`. Required when `outerWidth` and `outerDepth` is set. */ readonly outerUnit: pulumi.Output<string | undefined>; readonly outerWidth: pulumi.Output<number | undefined>; readonly slug: pulumi.Output<string>; readonly startingUnit: pulumi.Output<number>; readonly tags: pulumi.Output<string[] | undefined>; readonly uHeight: pulumi.Output<number>; readonly weight: pulumi.Output<number | undefined>; /** * Valid values are `kg`, `g`, `lb` and `oz`. Required when `weight` and `maxWeight` is set. */ readonly weightUnit: pulumi.Output<string | undefined>; /** * Valid values are `10`, `19`, `21` and `23`. */ readonly width: pulumi.Output<number>; /** * Create a RackType resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RackTypeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering RackType resources. */ export interface RackTypeState { comments?: pulumi.Input<string>; description?: pulumi.Input<string>; /** * Valid values are `2-post-frame`, `4-post-frame`, `4-post-cabinet`, `wall-frame`, `wall-frame-vertical`, `wall-cabinet` and `wall-cabinet-vertical`. */ formFactor?: pulumi.Input<string>; manufacturerId?: pulumi.Input<number>; maxWeight?: pulumi.Input<number>; model?: pulumi.Input<string>; mountingDepthMm?: pulumi.Input<number>; outerDepth?: pulumi.Input<number>; /** * Valid values are `mm` and `in`. Required when `outerWidth` and `outerDepth` is set. */ outerUnit?: pulumi.Input<string>; outerWidth?: pulumi.Input<number>; slug?: pulumi.Input<string>; startingUnit?: pulumi.Input<number>; tags?: pulumi.Input<pulumi.Input<string>[]>; uHeight?: pulumi.Input<number>; weight?: pulumi.Input<number>; /** * Valid values are `kg`, `g`, `lb` and `oz`. Required when `weight` and `maxWeight` is set. */ weightUnit?: pulumi.Input<string>; /** * Valid values are `10`, `19`, `21` and `23`. */ width?: pulumi.Input<number>; } /** * The set of arguments for constructing a RackType resource. */ export interface RackTypeArgs { comments?: pulumi.Input<string>; description?: pulumi.Input<string>; /** * Valid values are `2-post-frame`, `4-post-frame`, `4-post-cabinet`, `wall-frame`, `wall-frame-vertical`, `wall-cabinet` and `wall-cabinet-vertical`. */ formFactor: pulumi.Input<string>; manufacturerId?: pulumi.Input<number>; maxWeight?: pulumi.Input<number>; model: pulumi.Input<string>; mountingDepthMm?: pulumi.Input<number>; outerDepth?: pulumi.Input<number>; /** * Valid values are `mm` and `in`. Required when `outerWidth` and `outerDepth` is set. */ outerUnit?: pulumi.Input<string>; outerWidth?: pulumi.Input<number>; slug?: pulumi.Input<string>; startingUnit: pulumi.Input<number>; tags?: pulumi.Input<pulumi.Input<string>[]>; uHeight: pulumi.Input<number>; weight?: pulumi.Input<number>; /** * Valid values are `kg`, `g`, `lb` and `oz`. Required when `weight` and `maxWeight` is set. */ weightUnit?: pulumi.Input<string>; /** * Valid values are `10`, `19`, `21` and `23`. */ width: pulumi.Input<number>; }