Update
This commit is contained in:
135
sdk/nodejs/instance.ts
generated
135
sdk/nodejs/instance.ts
generated
@@ -1,4 +1,4 @@
|
||||
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
||||
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
@@ -34,95 +34,99 @@ export class Instance extends pulumi.CustomResource {
|
||||
return obj['__pulumiType'] === Instance.__pulumiType;
|
||||
}
|
||||
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
declare public readonly architecture: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the instance.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Device definition. See reference below.
|
||||
*/
|
||||
public readonly devices!: pulumi.Output<outputs.InstanceDevice[] | undefined>;
|
||||
declare public readonly devices: pulumi.Output<outputs.InstanceDevice[] | undefined>;
|
||||
/**
|
||||
* *Optional* - Boolean indicating if this instance is ephemeral. Defaults to `false`.
|
||||
*/
|
||||
public readonly ephemeral!: pulumi.Output<boolean>;
|
||||
declare public readonly ephemeral: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - File to upload to the instance. See reference below.
|
||||
*/
|
||||
public readonly files!: pulumi.Output<outputs.InstanceFile[] | undefined>;
|
||||
declare public readonly files: pulumi.Output<outputs.InstanceFile[] | undefined>;
|
||||
/**
|
||||
* *Optional* - Base image from which the instance will be created. Must
|
||||
* specify [an image accessible from the provider remote](https://linuxcontainers.org/incus/docs/main/reference/image_servers/).
|
||||
*/
|
||||
public readonly image!: pulumi.Output<string | undefined>;
|
||||
declare public readonly image: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* The IPv4 Address of the instance. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly ipv4Address!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly ipv4Address: pulumi.Output<string>;
|
||||
/**
|
||||
* The IPv6 Address of the instance. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly ipv6Address!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly ipv6Address: pulumi.Output<string>;
|
||||
/**
|
||||
* The MAC address of the detected NIC. See Instance Network
|
||||
* Access for more details.
|
||||
*/
|
||||
public /*out*/ readonly macAddress!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly macAddress: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - List of Incus config profiles to apply to the new
|
||||
* instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
* However, if an empty array (`[]`) is set as a value, no profiles will be applied.
|
||||
*/
|
||||
public readonly profiles!: pulumi.Output<string[]>;
|
||||
declare public readonly profiles: pulumi.Output<string[]>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the instance will be spawned.
|
||||
*/
|
||||
public readonly project!: pulumi.Output<string>;
|
||||
declare public readonly project: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - The remote in which the resource will be created. If
|
||||
* not provided, the provider's default remote will be used.
|
||||
*/
|
||||
public readonly remote!: pulumi.Output<string | undefined>;
|
||||
declare public readonly remote: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Boolean indicating whether the instance should be started (running). Defaults to `true`.
|
||||
*/
|
||||
public readonly running!: pulumi.Output<boolean>;
|
||||
declare public readonly running: pulumi.Output<boolean>;
|
||||
/**
|
||||
* *Optional* - The souce backup file from which the instance should be restored. For handling of storage pool, see examples.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<string | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - The source instance from which the instance will be created. See reference below.
|
||||
*/
|
||||
public readonly sourceInstance!: pulumi.Output<outputs.InstanceSourceInstance | undefined>;
|
||||
declare public readonly sourceInstance: pulumi.Output<outputs.InstanceSourceInstance | undefined>;
|
||||
/**
|
||||
* The status of the instance.
|
||||
*/
|
||||
public /*out*/ readonly status!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly status: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string>;
|
||||
declare public readonly target: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Instance type. Can be `container`, or `virtual-machine`. Defaults to `container`.
|
||||
*/
|
||||
public readonly type!: pulumi.Output<string>;
|
||||
declare public readonly type: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - WaitFor definition. See reference below.
|
||||
* If `running` is set to false or instance is already running (on update), this value has no effect.
|
||||
*/
|
||||
public readonly waitFors!: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
|
||||
declare public readonly waitFors: pulumi.Output<outputs.InstanceWaitFor[] | undefined>;
|
||||
|
||||
/**
|
||||
* Create a Instance resource with the given unique name, arguments, and options.
|
||||
@@ -131,50 +135,55 @@ export class Instance extends pulumi.CustomResource {
|
||||
* @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?: InstanceArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions)
|
||||
constructor(name: string, argsOrState?: InstanceArgs | InstanceState, opts?: pulumi.CustomResourceOptions) {
|
||||
let resourceInputs: pulumi.Inputs = {};
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as InstanceState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["devices"] = state ? state.devices : undefined;
|
||||
resourceInputs["ephemeral"] = state ? state.ephemeral : undefined;
|
||||
resourceInputs["files"] = state ? state.files : undefined;
|
||||
resourceInputs["image"] = state ? state.image : undefined;
|
||||
resourceInputs["ipv4Address"] = state ? state.ipv4Address : undefined;
|
||||
resourceInputs["ipv6Address"] = state ? state.ipv6Address : undefined;
|
||||
resourceInputs["macAddress"] = state ? state.macAddress : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["profiles"] = state ? state.profiles : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["running"] = state ? state.running : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["sourceInstance"] = state ? state.sourceInstance : undefined;
|
||||
resourceInputs["status"] = state ? state.status : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["type"] = state ? state.type : undefined;
|
||||
resourceInputs["waitFors"] = state ? state.waitFors : undefined;
|
||||
resourceInputs["architecture"] = state?.architecture;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["devices"] = state?.devices;
|
||||
resourceInputs["ephemeral"] = state?.ephemeral;
|
||||
resourceInputs["files"] = state?.files;
|
||||
resourceInputs["image"] = state?.image;
|
||||
resourceInputs["ipv4Address"] = state?.ipv4Address;
|
||||
resourceInputs["ipv6Address"] = state?.ipv6Address;
|
||||
resourceInputs["macAddress"] = state?.macAddress;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["profiles"] = state?.profiles;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["running"] = state?.running;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["sourceInstance"] = state?.sourceInstance;
|
||||
resourceInputs["status"] = state?.status;
|
||||
resourceInputs["target"] = state?.target;
|
||||
resourceInputs["type"] = state?.type;
|
||||
resourceInputs["waitFors"] = state?.waitFors;
|
||||
} else {
|
||||
const args = argsOrState as InstanceArgs | undefined;
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["devices"] = args ? args.devices : undefined;
|
||||
resourceInputs["ephemeral"] = args ? args.ephemeral : undefined;
|
||||
resourceInputs["files"] = args ? args.files : undefined;
|
||||
resourceInputs["image"] = args ? args.image : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["profiles"] = args ? args.profiles : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["running"] = args ? args.running : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["sourceInstance"] = args ? args.sourceInstance : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["type"] = args ? args.type : undefined;
|
||||
resourceInputs["waitFors"] = args ? args.waitFors : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["architecture"] = args?.architecture;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["devices"] = args?.devices;
|
||||
resourceInputs["ephemeral"] = args?.ephemeral;
|
||||
resourceInputs["files"] = args?.files;
|
||||
resourceInputs["image"] = args?.image;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["profiles"] = args?.profiles;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["running"] = args?.running;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["sourceInstance"] = args?.sourceInstance;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["type"] = args?.type;
|
||||
resourceInputs["waitFors"] = args?.waitFors;
|
||||
resourceInputs["ipv4Address"] = undefined /*out*/;
|
||||
resourceInputs["ipv6Address"] = undefined /*out*/;
|
||||
resourceInputs["macAddress"] = undefined /*out*/;
|
||||
@@ -189,6 +198,10 @@ export class Instance extends pulumi.CustomResource {
|
||||
* Input properties used for looking up and filtering Instance resources.
|
||||
*/
|
||||
export interface InstanceState {
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
@@ -284,6 +297,10 @@ export interface InstanceState {
|
||||
* The set of arguments for constructing a Instance resource.
|
||||
*/
|
||||
export interface InstanceArgs {
|
||||
/**
|
||||
* *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
*/
|
||||
architecture?: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Map of key/value pairs of
|
||||
* [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
@@ -313,7 +330,7 @@ export interface InstanceArgs {
|
||||
/**
|
||||
* **Required** - Name of the instance.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - List of Incus config profiles to apply to the new
|
||||
* instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
|
||||
Reference in New Issue
Block a user