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
@@ -14,6 +14,7 @@ import (
// ## # Profile
//
// Provides information about an Incus profile.
// See Incus profile [configuration reference](https://linuxcontainers.org/incus/docs/main/profiles/) for more details.
//
// ## Example Usage
//
@@ -29,22 +30,13 @@ import (
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _default, err := incus.LookupProfile(ctx, &incus.LookupProfileArgs{
// this, err := incus.LookupProfile(ctx, &incus.LookupProfileArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// _, err = incus.NewInstance(ctx, "d1", &incus.InstanceArgs{
// Profiles: pulumi.StringArray{
// pulumi.String(_default.Name),
// },
// Image: pulumi.String("images:debian/12"),
// Name: pulumi.String("d1"),
// })
// if err != nil {
// return err
// }
// ctx.Export("profileName", this.Name)
// return nil
// })
// }
@@ -62,11 +54,13 @@ func LookupProfile(ctx *pulumi.Context, args *LookupProfileArgs, opts ...pulumi.
// A collection of arguments for invoking getProfile.
type LookupProfileArgs struct {
// Device definition. See reference below.
// Description of the profile.
Description *string `pulumi:"description"`
// Device definitions. See reference below.
Devices []GetProfileDevice `pulumi:"devices"`
// **Required** - Name of the profile.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the profile will be stored.
// *Optional* - Name of the project where the profile is be stored.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource was created. If
// not provided, the provider's default remote will be used.
@@ -75,11 +69,12 @@ type LookupProfileArgs struct {
// A collection of values returned by getProfile.
type LookupProfileResult struct {
// Map of key/value pairs of
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
Config map[string]string `pulumi:"config"`
Description string `pulumi:"description"`
// Device definition. See reference below.
// Map of key/value pairs of config settings.
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
Config map[string]string `pulumi:"config"`
// Description of the profile.
Description string `pulumi:"description"`
// Device definitions. See reference below.
Devices []GetProfileDevice `pulumi:"devices"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
@@ -100,11 +95,13 @@ func LookupProfileOutput(ctx *pulumi.Context, args LookupProfileOutputArgs, opts
// A collection of arguments for invoking getProfile.
type LookupProfileOutputArgs struct {
// Device definition. See reference below.
// Description of the profile.
Description pulumi.StringPtrInput `pulumi:"description"`
// Device definitions. See reference below.
Devices GetProfileDeviceArrayInput `pulumi:"devices"`
// **Required** - Name of the profile.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - Name of the project where the profile will be stored.
// *Optional* - Name of the project where the profile is be stored.
Project pulumi.StringPtrInput `pulumi:"project"`
// *Optional* - The remote in which the resource was created. If
// not provided, the provider's default remote will be used.
@@ -130,17 +127,18 @@ func (o LookupProfileResultOutput) ToLookupProfileResultOutputWithContext(ctx co
return o
}
// Map of key/value pairs of
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
// Map of key/value pairs of config settings.
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
func (o LookupProfileResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupProfileResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the profile.
func (o LookupProfileResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupProfileResult) string { return v.Description }).(pulumi.StringOutput)
}
// Device definition. See reference below.
// Device definitions. See reference below.
func (o LookupProfileResultOutput) Devices() GetProfileDeviceArrayOutput {
return o.ApplyT(func(v LookupProfileResult) []GetProfileDevice { return v.Devices }).(GetProfileDeviceArrayOutput)
}