@natzka-oss/pulumi-netbox
Version:
A Pulumi package for creating and managing Netbox cloud resources.
86 lines (85 loc) • 3.38 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* From the [official documentation](https://docs.netbox.dev/en/stable/features/device-types/#device-types_1):
*
* > A device type represents a particular make and model of hardware that exists in the real world. Device types define the physical attributes of a device (rack height and depth) and its individual components (console, power, network interfaces, and so on).
*
* ## 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: "test"});
* const testDeviceType = new netbox.dcim.DeviceType("test", {
* model: "test",
* partNumber: "123",
* manufacturerId: test.id,
* });
* ```
*/
export declare class DeviceType extends pulumi.CustomResource {
/**
* Get an existing DeviceType 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?: DeviceTypeState, opts?: pulumi.CustomResourceOptions): DeviceType;
/**
* Returns true if the given object is an instance of DeviceType. 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 DeviceType;
readonly isFullDepth: pulumi.Output<boolean | undefined>;
readonly manufacturerId: pulumi.Output<number>;
readonly model: pulumi.Output<string>;
readonly partNumber: pulumi.Output<string | undefined>;
readonly slug: pulumi.Output<string>;
readonly tags: pulumi.Output<string[] | undefined>;
/**
* Defaults to `1.0`.
*/
readonly uHeight: pulumi.Output<number | undefined>;
/**
* Create a DeviceType 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: DeviceTypeArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DeviceType resources.
*/
export interface DeviceTypeState {
isFullDepth?: pulumi.Input<boolean>;
manufacturerId?: pulumi.Input<number>;
model?: pulumi.Input<string>;
partNumber?: pulumi.Input<string>;
slug?: pulumi.Input<string>;
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Defaults to `1.0`.
*/
uHeight?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a DeviceType resource.
*/
export interface DeviceTypeArgs {
isFullDepth?: pulumi.Input<boolean>;
manufacturerId: pulumi.Input<number>;
model: pulumi.Input<string>;
partNumber?: pulumi.Input<string>;
slug?: pulumi.Input<string>;
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Defaults to `1.0`.
*/
uHeight?: pulumi.Input<number>;
}