Update
This commit is contained in:
61
sdk/nodejs/storageBucket.ts
generated
61
sdk/nodejs/storageBucket.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,40 +37,40 @@ export class StorageBucket extends pulumi.CustomResource {
|
||||
* [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/#configure-storage-bucket-settings).
|
||||
* Config settings vary depending on the Storage Pool used.
|
||||
*/
|
||||
public readonly config!: pulumi.Output<{[key: string]: string}>;
|
||||
declare public readonly config: pulumi.Output<{[key: string]: string}>;
|
||||
/**
|
||||
* *Optional* - Description of the storage bucket.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* Name of the node where storage bucket was created. It could be useful with Incus in cluster mode.
|
||||
*/
|
||||
public /*out*/ readonly location!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly location: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket.
|
||||
*/
|
||||
public readonly pool!: pulumi.Output<string>;
|
||||
declare public readonly pool: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket 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* - Path to a backup file from which the bucket will be created.
|
||||
*/
|
||||
public readonly sourceFile!: pulumi.Output<string | undefined>;
|
||||
declare public readonly sourceFile: pulumi.Output<string | undefined>;
|
||||
/**
|
||||
* *Optional* - Specify a target node in a cluster.
|
||||
*/
|
||||
public readonly target!: pulumi.Output<string>;
|
||||
declare public readonly target: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a StorageBucket resource with the given unique name, arguments, and options.
|
||||
@@ -85,28 +85,31 @@ export class StorageBucket extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as StorageBucketState | undefined;
|
||||
resourceInputs["config"] = state ? state.config : undefined;
|
||||
resourceInputs["description"] = state ? state.description : undefined;
|
||||
resourceInputs["location"] = state ? state.location : undefined;
|
||||
resourceInputs["name"] = state ? state.name : undefined;
|
||||
resourceInputs["pool"] = state ? state.pool : undefined;
|
||||
resourceInputs["project"] = state ? state.project : undefined;
|
||||
resourceInputs["remote"] = state ? state.remote : undefined;
|
||||
resourceInputs["sourceFile"] = state ? state.sourceFile : undefined;
|
||||
resourceInputs["target"] = state ? state.target : undefined;
|
||||
resourceInputs["config"] = state?.config;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["location"] = state?.location;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["pool"] = state?.pool;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["sourceFile"] = state?.sourceFile;
|
||||
resourceInputs["target"] = state?.target;
|
||||
} else {
|
||||
const args = argsOrState as StorageBucketArgs | undefined;
|
||||
if ((!args || args.pool === undefined) && !opts.urn) {
|
||||
if (args?.name === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'name'");
|
||||
}
|
||||
if (args?.pool === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'pool'");
|
||||
}
|
||||
resourceInputs["config"] = args ? args.config : undefined;
|
||||
resourceInputs["description"] = args ? args.description : undefined;
|
||||
resourceInputs["name"] = args ? args.name : undefined;
|
||||
resourceInputs["pool"] = args ? args.pool : undefined;
|
||||
resourceInputs["project"] = (args ? args.project : undefined) ?? "default";
|
||||
resourceInputs["remote"] = args ? args.remote : undefined;
|
||||
resourceInputs["sourceFile"] = args ? args.sourceFile : undefined;
|
||||
resourceInputs["target"] = args ? args.target : undefined;
|
||||
resourceInputs["config"] = args?.config;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["pool"] = args?.pool;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["sourceFile"] = args?.sourceFile;
|
||||
resourceInputs["target"] = args?.target;
|
||||
resourceInputs["location"] = undefined /*out*/;
|
||||
}
|
||||
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
||||
@@ -176,7 +179,7 @@ export interface StorageBucketArgs {
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user