Update
This commit is contained in:
63
sdk/nodejs/storagePool.ts
generated
63
sdk/nodejs/storagePool.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";
|
||||
@@ -37,32 +37,32 @@ export class StoragePool extends pulumi.CustomResource {
|
||||
* [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
|
||||
* Config settings vary from driver to driver.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage pool.
|
||||
* *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
*/
|
||||
public readonly driver!: pulumi.Output<string>;
|
||||
declare public readonly driver: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage pool will be stored.
|
||||
*/
|
||||
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* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string | undefined>;
|
||||
declare public readonly target: pulumi.Output<string | undefined>;
|
||||
|
||||
/**
|
||||
* Create a StoragePool resource with the given unique name, arguments, and options.
|
||||
@@ -77,25 +77,28 @@ export class StoragePool extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as StoragePoolState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["driver"] = state ? state.driver : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["driver"] = state?.driver;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["target"] = state?.target;
|
||||
} else {
|
||||
const args = argsOrState as StoragePoolArgs | undefined;
|
||||
if ((!args || args.driver === undefined) && !opts.urn) {
|
||||
if (args?.driver === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'driver'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["driver"] = args ? args.driver : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["driver"] = args?.driver;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["target"] = args?.target;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
super(StoragePool.__pulumiType, name, resourceInputs, opts);
|
||||
@@ -113,11 +116,11 @@ export interface StoragePoolState {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage pool.
|
||||
* *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
*/
|
||||
driver?: pulumi.Input<string>;
|
||||
/**
|
||||
@@ -150,17 +153,17 @@ export interface StoragePoolArgs {
|
||||
*/
|
||||
config?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage pool.
|
||||
* *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
|
||||
*/
|
||||
description?: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
|
||||
* **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
|
||||
*/
|
||||
driver: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage pool.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage pool will be stored.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user