Update
This commit is contained in:
27
sdk/go/incus/instance.go
generated
27
sdk/go/incus/instance.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"
|
||||
)
|
||||
@@ -14,6 +15,8 @@ import (
|
||||
type Instance struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture pulumi.StringOutput `pulumi:"architecture"`
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapOutput `pulumi:"config"`
|
||||
@@ -69,9 +72,12 @@ type Instance struct {
|
||||
func NewInstance(ctx *pulumi.Context,
|
||||
name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error) {
|
||||
if args == nil {
|
||||
args = &InstanceArgs{}
|
||||
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")
|
||||
}
|
||||
@@ -98,6 +104,8 @@ func GetInstance(ctx *pulumi.Context,
|
||||
|
||||
// Input properties used for looking up and filtering Instance resources.
|
||||
type instanceState struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture *string `pulumi:"architecture"`
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
@@ -150,6 +158,8 @@ type instanceState struct {
|
||||
}
|
||||
|
||||
type InstanceState struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture pulumi.StringPtrInput
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapInput
|
||||
@@ -206,6 +216,8 @@ func (InstanceState) ElementType() reflect.Type {
|
||||
}
|
||||
|
||||
type instanceArgs struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture *string `pulumi:"architecture"`
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config map[string]string `pulumi:"config"`
|
||||
@@ -221,7 +233,7 @@ type instanceArgs struct {
|
||||
// specify [an image accessible from the provider remote](https://linuxcontainers.org/incus/docs/main/reference/image_servers/).
|
||||
Image *string `pulumi:"image"`
|
||||
// **Required** - Name of the instance.
|
||||
Name *string `pulumi:"name"`
|
||||
Name string `pulumi:"name"`
|
||||
// *Optional* - List of Incus config profiles to apply to the new
|
||||
// instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
// However, if an empty array (`[]`) is set as a value, no profiles will be applied.
|
||||
@@ -248,6 +260,8 @@ type instanceArgs struct {
|
||||
|
||||
// The set of arguments for constructing a Instance resource.
|
||||
type InstanceArgs struct {
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
Architecture pulumi.StringPtrInput
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
Config pulumi.StringMapInput
|
||||
@@ -263,7 +277,7 @@ type InstanceArgs struct {
|
||||
// specify [an image accessible from the provider remote](https://linuxcontainers.org/incus/docs/main/reference/image_servers/).
|
||||
Image pulumi.StringPtrInput
|
||||
// **Required** - Name of the instance.
|
||||
Name pulumi.StringPtrInput
|
||||
Name pulumi.StringInput
|
||||
// *Optional* - List of Incus config profiles to apply to the new
|
||||
// instance. Profile `default` will be applied if profiles are not set (are `null`).
|
||||
// However, if an empty array (`[]`) is set as a value, no profiles will be applied.
|
||||
@@ -375,6 +389,11 @@ func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) Instanc
|
||||
return o
|
||||
}
|
||||
|
||||
// *Optional* - The instance architecture (e.g. x86_64, aarch64). See [Architectures](https://linuxcontainers.org/incus/docs/main/architectures/) for all possible values.
|
||||
func (o InstanceOutput) Architecture() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.Architecture }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// *Optional* - Map of key/value pairs of
|
||||
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/).
|
||||
func (o InstanceOutput) Config() pulumi.StringMapOutput {
|
||||
|
||||
Reference in New Issue
Block a user