This commit is contained in:
2025-12-08 10:47:09 -05:00
parent 136b88ccdc
commit c4445aa92f
109 changed files with 9007 additions and 1219 deletions

47
sdk/nodejs/project.ts generated
View File

@@ -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,20 +35,24 @@ export class Project extends pulumi.CustomResource {
/**
* *Optional* - Map of key/value pairs of [project config settings](https://linuxcontainers.org/incus/docs/main/reference/projects/).
*/
public readonly config!: pulumi.Output<{[key: string]: string}>;
declare public readonly config: pulumi.Output<{[key: string]: string}>;
/**
* *Optional* - Description of the project.
*/
public readonly description!: pulumi.Output<string>;
declare public readonly description: pulumi.Output<string>;
/**
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
*/
declare public readonly forceDestroy: pulumi.Output<boolean>;
/**
* **Required** - Name of the project.
*/
public readonly name!: pulumi.Output<string>;
declare public readonly name: 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>;
/**
* Create a Project resource with the given unique name, arguments, and options.
@@ -57,22 +61,27 @@ export class Project 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?: ProjectArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, args: ProjectArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: ProjectArgs | ProjectState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState as ProjectState | undefined;
resourceInputs["config"] = state ? state.config : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["remote"] = state ? state.remote : undefined;
resourceInputs["config"] = state?.config;
resourceInputs["description"] = state?.description;
resourceInputs["forceDestroy"] = state?.forceDestroy;
resourceInputs["name"] = state?.name;
resourceInputs["remote"] = state?.remote;
} else {
const args = argsOrState as ProjectArgs | undefined;
resourceInputs["config"] = args ? args.config : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["remote"] = args ? args.remote : undefined;
if (args?.name === undefined && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["config"] = args?.config;
resourceInputs["description"] = args?.description;
resourceInputs["forceDestroy"] = args?.forceDestroy;
resourceInputs["name"] = args?.name;
resourceInputs["remote"] = args?.remote;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Project.__pulumiType, name, resourceInputs, opts);
@@ -91,6 +100,10 @@ export interface ProjectState {
* *Optional* - Description of the project.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
*/
forceDestroy?: pulumi.Input<boolean>;
/**
* **Required** - Name of the project.
*/
@@ -114,10 +127,14 @@ export interface ProjectArgs {
* *Optional* - Description of the project.
*/
description?: pulumi.Input<string>;
/**
* *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
*/
forceDestroy?: pulumi.Input<boolean>;
/**
* **Required** - Name of the project.
*/
name?: pulumi.Input<string>;
name: pulumi.Input<string>;
/**
* *Optional* - The remote in which the resource will be created. If
* not provided, the provider's default remote will be used.