Update
This commit is contained in:
12
sdk/go/incus/profile.go
generated
12
sdk/go/incus/profile.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
|
||||
@@ -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"
|
||||
)
|
||||
@@ -34,9 +35,12 @@ type Profile struct {
|
||||
func NewProfile(ctx *pulumi.Context,
|
||||
name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, error) {
|
||||
if args == nil {
|
||||
args = &ProfileArgs{}
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Name == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Name'")
|
||||
}
|
||||
if args.Project == nil {
|
||||
args.Project = pulumi.StringPtr("default")
|
||||
}
|
||||
@@ -109,7 +113,7 @@ type profileArgs struct {
|
||||
// *Optional* - Device definition. See reference below.
|
||||
Devices []ProfileDevice `pulumi:"devices"`
|
||||
// **Required** - Name of the profile.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - Name of the project where the profile will be stored.
|
||||
Project *string `pulumi:"project"`
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
@@ -127,7 +131,7 @@ type ProfileArgs struct {
|
||||
// *Optional* - Device definition. See reference below.
|
||||
Devices ProfileDeviceArrayInput
|
||||
// **Required** - Name of the profile.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - Name of the project where the profile will be stored.
|
||||
Project pulumi.StringPtrInput
|
||||
// *Optional* - The remote in which the resource will be created. If
|
||||
|
||||
Reference in New Issue
Block a user