Update
This commit is contained in:
27
sdk/go/incus/getProject.go
generated
27
sdk/go/incus/getProject.go
generated
@@ -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
|
||||
@@ -29,20 +29,13 @@ import (
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// _default, err := incus.LookupProject(ctx, &incus.LookupProjectArgs{
|
||||
// this, err := incus.LookupProject(ctx, &incus.LookupProjectArgs{
|
||||
// Name: "default",
|
||||
// }, nil)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// _, err = incus.NewInstance(ctx, "d1", &incus.InstanceArgs{
|
||||
// Project: pulumi.String(_default.Name),
|
||||
// Image: pulumi.String("images:debian/12"),
|
||||
// Name: pulumi.String("d1"),
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("projectName", this.Name)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
@@ -60,9 +53,6 @@ func LookupProject(ctx *pulumi.Context, args *LookupProjectArgs, opts ...pulumi.
|
||||
|
||||
// A collection of arguments for invoking getProject.
|
||||
type LookupProjectArgs 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 of the project.
|
||||
Description *string `pulumi:"description"`
|
||||
// **Required** - Name of the project.
|
||||
@@ -74,8 +64,8 @@ type LookupProjectArgs struct {
|
||||
|
||||
// A collection of values returned by getProject.
|
||||
type LookupProjectResult struct {
|
||||
// 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/)
|
||||
Config map[string]string `pulumi:"config"`
|
||||
// Description of the project.
|
||||
Description string `pulumi:"description"`
|
||||
@@ -96,9 +86,6 @@ func LookupProjectOutput(ctx *pulumi.Context, args LookupProjectOutputArgs, opts
|
||||
|
||||
// A collection of arguments for invoking getProject.
|
||||
type LookupProjectOutputArgs struct {
|
||||
// Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapInput `pulumi:"config"`
|
||||
// Description of the project.
|
||||
Description pulumi.StringPtrInput `pulumi:"description"`
|
||||
// **Required** - Name of the project.
|
||||
@@ -127,8 +114,8 @@ func (o LookupProjectResultOutput) ToLookupProjectResultOutputWithContext(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 LookupProjectResultOutput) Config() pulumi.StringMapOutput {
|
||||
return o.ApplyT(func(v LookupProjectResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user