Update
This commit is contained in:
61
sdk/nodejs/storageBucketKey.ts
generated
61
sdk/nodejs/storageBucketKey.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";
|
||||
@@ -35,41 +35,41 @@ export class StorageBucketKey extends pulumi.CustomResource {
|
||||
/**
|
||||
* Access key of the storage bucket key.
|
||||
*/
|
||||
public /*out*/ readonly accessKey!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly accessKey: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Description of the storage bucket key.
|
||||
*/
|
||||
public readonly description!: pulumi.Output<string>;
|
||||
declare public readonly description: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket key.
|
||||
*/
|
||||
public readonly name!: pulumi.Output<string>;
|
||||
declare public readonly name: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket key.
|
||||
*/
|
||||
public readonly pool!: pulumi.Output<string>;
|
||||
declare public readonly pool: pulumi.Output<string>;
|
||||
/**
|
||||
* *Optional* - Name of the project where the storage bucket key 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* - Name of the role that controls the access rights for the
|
||||
* key. If not specified, the default role is used, as described in the [official documentation](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/#manage-storage-bucket-keys).
|
||||
*/
|
||||
public readonly role!: pulumi.Output<string>;
|
||||
declare public readonly role: pulumi.Output<string>;
|
||||
/**
|
||||
* Secret key of the storage bucket key.
|
||||
*/
|
||||
public /*out*/ readonly secretKey!: pulumi.Output<string>;
|
||||
declare public /*out*/ readonly secretKey: pulumi.Output<string>;
|
||||
/**
|
||||
* **Required** - Name of the storage bucket.
|
||||
*/
|
||||
public readonly storageBucket!: pulumi.Output<string>;
|
||||
declare public readonly storageBucket: pulumi.Output<string>;
|
||||
|
||||
/**
|
||||
* Create a StorageBucketKey resource with the given unique name, arguments, and options.
|
||||
@@ -84,30 +84,33 @@ export class StorageBucketKey extends pulumi.CustomResource {
|
||||
opts = opts || {};
|
||||
if (opts.id) {
|
||||
const state = argsOrState as StorageBucketKeyState | undefined;
|
||||
resourceInputs["accessKey"] = state ? state.accessKey : undefined;
|
||||
resourceInputs["description"] = state ? state.description : 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["role"] = state ? state.role : undefined;
|
||||
resourceInputs["secretKey"] = state ? state.secretKey : undefined;
|
||||
resourceInputs["storageBucket"] = state ? state.storageBucket : undefined;
|
||||
resourceInputs["accessKey"] = state?.accessKey;
|
||||
resourceInputs["description"] = state?.description;
|
||||
resourceInputs["name"] = state?.name;
|
||||
resourceInputs["pool"] = state?.pool;
|
||||
resourceInputs["project"] = state?.project;
|
||||
resourceInputs["remote"] = state?.remote;
|
||||
resourceInputs["role"] = state?.role;
|
||||
resourceInputs["secretKey"] = state?.secretKey;
|
||||
resourceInputs["storageBucket"] = state?.storageBucket;
|
||||
} else {
|
||||
const args = argsOrState as StorageBucketKeyArgs | 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'");
|
||||
}
|
||||
if ((!args || args.storageBucket === undefined) && !opts.urn) {
|
||||
if (args?.storageBucket === undefined && !opts.urn) {
|
||||
throw new Error("Missing required property 'storageBucket'");
|
||||
}
|
||||
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["role"] = args ? args.role : undefined;
|
||||
resourceInputs["storageBucket"] = args ? args.storageBucket : undefined;
|
||||
resourceInputs["description"] = args?.description;
|
||||
resourceInputs["name"] = args?.name;
|
||||
resourceInputs["pool"] = args?.pool;
|
||||
resourceInputs["project"] = (args?.project) ?? "default";
|
||||
resourceInputs["remote"] = args?.remote;
|
||||
resourceInputs["role"] = args?.role;
|
||||
resourceInputs["storageBucket"] = args?.storageBucket;
|
||||
resourceInputs["accessKey"] = undefined /*out*/;
|
||||
resourceInputs["secretKey"] = undefined /*out*/;
|
||||
}
|
||||
@@ -173,7 +176,7 @@ export interface StorageBucketKeyArgs {
|
||||
/**
|
||||
* **Required** - Name of the storage bucket key.
|
||||
*/
|
||||
name?: pulumi.Input<string>;
|
||||
name: pulumi.Input<string>;
|
||||
/**
|
||||
* **Required** - Name of storage pool to host the storage bucket key.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user