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

View File

@@ -1,4 +1,4 @@
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package incus
@@ -7,6 +7,7 @@ import (
"context"
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -18,6 +19,8 @@ type Project struct {
Config pulumi.StringMapOutput `pulumi:"config"`
// *Optional* - Description of the project.
Description pulumi.StringOutput `pulumi:"description"`
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
ForceDestroy pulumi.BoolOutput `pulumi:"forceDestroy"`
// **Required** - Name of the project.
Name pulumi.StringOutput `pulumi:"name"`
// *Optional* - The remote in which the resource will be created. If
@@ -29,9 +32,12 @@ type Project struct {
func NewProject(ctx *pulumi.Context,
name string, args *ProjectArgs, opts ...pulumi.ResourceOption) (*Project, error) {
if args == nil {
args = &ProjectArgs{}
return nil, errors.New("missing one or more required arguments")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Project
err := ctx.RegisterResource("incus:index/project:Project", name, args, &resource, opts...)
@@ -59,6 +65,8 @@ type projectState struct {
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the project.
Description *string `pulumi:"description"`
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
ForceDestroy *bool `pulumi:"forceDestroy"`
// **Required** - Name of the project.
Name *string `pulumi:"name"`
// *Optional* - The remote in which the resource will be created. If
@@ -71,6 +79,8 @@ type ProjectState struct {
Config pulumi.StringMapInput
// *Optional* - Description of the project.
Description pulumi.StringPtrInput
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
ForceDestroy pulumi.BoolPtrInput
// **Required** - Name of the project.
Name pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
@@ -87,8 +97,10 @@ type projectArgs struct {
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the project.
Description *string `pulumi:"description"`
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
ForceDestroy *bool `pulumi:"forceDestroy"`
// **Required** - Name of the project.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote *string `pulumi:"remote"`
@@ -100,8 +112,10 @@ type ProjectArgs struct {
Config pulumi.StringMapInput
// *Optional* - Description of the project.
Description pulumi.StringPtrInput
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
ForceDestroy pulumi.BoolPtrInput
// **Required** - Name of the project.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput
@@ -204,6 +218,11 @@ func (o ProjectOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *Project) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// *Optional* - Whether to delete everything the project contains on destroy so that it can be destroyed without any error.
func (o ProjectOutput) ForceDestroy() pulumi.BoolOutput {
return o.ApplyT(func(v *Project) pulumi.BoolOutput { return v.ForceDestroy }).(pulumi.BoolOutput)
}
// **Required** - Name of the project.
func (o ProjectOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Project) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)