@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
104 lines • 5.1 kB
JavaScript
;
// *** 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.Guest = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.vcmp.Guest` Manages a vCMP guest configuration
*
* Resource does not wait for vCMP guest to reach the desired state, it only ensures that a desired configuration is set on the target device.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const vcmp_test = new f5bigip.vcmp.Guest("vcmp-test", {
* name: "tf_guest",
* initialImage: "12.1.2.iso",
* mgmtNetwork: "bridged",
* mgmtAddress: "10.1.1.1/24",
* mgmtRoute: "none",
* state: "provisioned",
* coresPerSlot: 2,
* numberOfSlots: 1,
* minNumberOfSlots: 1,
* });
* ```
*/
class Guest extends pulumi.CustomResource {
/**
* Get an existing Guest 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 Guest(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Guest. 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'] === Guest.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["allowedSlots"] = state ? state.allowedSlots : undefined;
resourceInputs["coresPerSlot"] = state ? state.coresPerSlot : undefined;
resourceInputs["deleteVirtualDisk"] = state ? state.deleteVirtualDisk : undefined;
resourceInputs["fullPath"] = state ? state.fullPath : undefined;
resourceInputs["initialHotfix"] = state ? state.initialHotfix : undefined;
resourceInputs["initialImage"] = state ? state.initialImage : undefined;
resourceInputs["mgmtAddress"] = state ? state.mgmtAddress : undefined;
resourceInputs["mgmtNetwork"] = state ? state.mgmtNetwork : undefined;
resourceInputs["mgmtRoute"] = state ? state.mgmtRoute : undefined;
resourceInputs["minNumberOfSlots"] = state ? state.minNumberOfSlots : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["numberOfSlots"] = state ? state.numberOfSlots : undefined;
resourceInputs["state"] = state ? state.state : undefined;
resourceInputs["virtualDisk"] = state ? state.virtualDisk : undefined;
resourceInputs["vlans"] = state ? state.vlans : undefined;
}
else {
const args = argsOrState;
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["allowedSlots"] = args ? args.allowedSlots : undefined;
resourceInputs["coresPerSlot"] = args ? args.coresPerSlot : undefined;
resourceInputs["deleteVirtualDisk"] = args ? args.deleteVirtualDisk : undefined;
resourceInputs["initialHotfix"] = args ? args.initialHotfix : undefined;
resourceInputs["initialImage"] = args ? args.initialImage : undefined;
resourceInputs["mgmtAddress"] = args ? args.mgmtAddress : undefined;
resourceInputs["mgmtNetwork"] = args ? args.mgmtNetwork : undefined;
resourceInputs["mgmtRoute"] = args ? args.mgmtRoute : undefined;
resourceInputs["minNumberOfSlots"] = args ? args.minNumberOfSlots : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["numberOfSlots"] = args ? args.numberOfSlots : undefined;
resourceInputs["state"] = args ? args.state : undefined;
resourceInputs["vlans"] = args ? args.vlans : undefined;
resourceInputs["fullPath"] = undefined /*out*/;
resourceInputs["virtualDisk"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Guest.__pulumiType, name, resourceInputs, opts);
}
}
exports.Guest = Guest;
/** @internal */
Guest.__pulumiType = 'f5bigip:vcmp/guest:Guest';
//# sourceMappingURL=guest.js.map