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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -49,6 +48,9 @@ func NewCertificate(ctx *pulumi.Context,
if args.Certificate == nil {
return nil, errors.New("invalid value for required argument 'Certificate'")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Certificate
err := ctx.RegisterResource("incus:index/certificate:Certificate", name, args, &resource, opts...)
@@ -123,7 +125,7 @@ type certificateArgs struct {
// *Optional* - Description of the certificate.
Description *string `pulumi:"description"`
// **Required** - Name of the certificate.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - List of projects to restrict the certificate to.
Projects []string `pulumi:"projects"`
// *Optional* - The remote in which the resource will be created. If
@@ -143,7 +145,7 @@ type CertificateArgs struct {
// *Optional* - Description of the certificate.
Description pulumi.StringPtrInput
// **Required** - Name of the certificate.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - List of projects to restrict the certificate to.
Projects pulumi.StringArrayInput
// *Optional* - The remote in which the resource will be created. If

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"
)
@@ -16,8 +17,9 @@ type ClusterGroup struct {
// *Optional* - Map of key/value pairs of
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
Config pulumi.StringMapOutput `pulumi:"config"`
Description pulumi.StringOutput `pulumi:"description"`
Config pulumi.StringMapOutput `pulumi:"config"`
// *Optional* - Description of the cluster group.
Description pulumi.StringOutput `pulumi:"description"`
// **Required** - Name of the cluster group.
Name pulumi.StringOutput `pulumi:"name"`
// *Optional* - The remote in which the resource will be created. If
@@ -29,9 +31,12 @@ type ClusterGroup struct {
func NewClusterGroup(ctx *pulumi.Context,
name string, args *ClusterGroupArgs, opts ...pulumi.ResourceOption) (*ClusterGroup, error) {
if args == nil {
args = &ClusterGroupArgs{}
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 ClusterGroup
err := ctx.RegisterResource("incus:index/clusterGroup:ClusterGroup", name, args, &resource, opts...)
@@ -57,8 +62,9 @@ func GetClusterGroup(ctx *pulumi.Context,
type clusterGroupState struct {
// *Optional* - Map of key/value pairs of
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
Config map[string]string `pulumi:"config"`
Description *string `pulumi:"description"`
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the cluster group.
Description *string `pulumi:"description"`
// **Required** - Name of the cluster group.
Name *string `pulumi:"name"`
// *Optional* - The remote in which the resource will be created. If
@@ -69,7 +75,8 @@ type clusterGroupState struct {
type ClusterGroupState struct {
// *Optional* - Map of key/value pairs of
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
Config pulumi.StringMapInput
Config pulumi.StringMapInput
// *Optional* - Description of the cluster group.
Description pulumi.StringPtrInput
// **Required** - Name of the cluster group.
Name pulumi.StringPtrInput
@@ -85,10 +92,11 @@ func (ClusterGroupState) ElementType() reflect.Type {
type clusterGroupArgs struct {
// *Optional* - Map of key/value pairs of
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
Config map[string]string `pulumi:"config"`
Description *string `pulumi:"description"`
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the cluster group.
Description *string `pulumi:"description"`
// **Required** - Name of the cluster group.
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"`
@@ -98,10 +106,11 @@ type clusterGroupArgs struct {
type ClusterGroupArgs struct {
// *Optional* - Map of key/value pairs of
// [cluster group config settings](https://linuxcontainers.org/incus/docs/main/howto/cluster_groups/#configuration-options).
Config pulumi.StringMapInput
Config pulumi.StringMapInput
// *Optional* - Description of the cluster group.
Description pulumi.StringPtrInput
// **Required** - Name of the cluster group.
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
@@ -200,6 +209,7 @@ func (o ClusterGroupOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v *ClusterGroup) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
}
// *Optional* - Description of the cluster group.
func (o ClusterGroupOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *ClusterGroup) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}

View File

@@ -1,258 +0,0 @@
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package incus
import (
"context"
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ClusterGroupAssignment struct {
pulumi.CustomResourceState
// **Required** - Name of the cluster group.
ClusterGroup pulumi.StringOutput `pulumi:"clusterGroup"`
// **Required** - Name of the cluster group member.
Member pulumi.StringOutput `pulumi:"member"`
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrOutput `pulumi:"remote"`
}
// NewClusterGroupAssignment registers a new resource with the given unique name, arguments, and options.
func NewClusterGroupAssignment(ctx *pulumi.Context,
name string, args *ClusterGroupAssignmentArgs, opts ...pulumi.ResourceOption) (*ClusterGroupAssignment, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ClusterGroup == nil {
return nil, errors.New("invalid value for required argument 'ClusterGroup'")
}
if args.Member == nil {
return nil, errors.New("invalid value for required argument 'Member'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource ClusterGroupAssignment
err := ctx.RegisterResource("incus:index/clusterGroupAssignment:ClusterGroupAssignment", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetClusterGroupAssignment gets an existing ClusterGroupAssignment resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetClusterGroupAssignment(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ClusterGroupAssignmentState, opts ...pulumi.ResourceOption) (*ClusterGroupAssignment, error) {
var resource ClusterGroupAssignment
err := ctx.ReadResource("incus:index/clusterGroupAssignment:ClusterGroupAssignment", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ClusterGroupAssignment resources.
type clusterGroupAssignmentState struct {
// **Required** - Name of the cluster group.
ClusterGroup *string `pulumi:"clusterGroup"`
// **Required** - Name of the cluster group member.
Member *string `pulumi:"member"`
// *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"`
}
type ClusterGroupAssignmentState struct {
// **Required** - Name of the cluster group.
ClusterGroup pulumi.StringPtrInput
// **Required** - Name of the cluster group member.
Member pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput
}
func (ClusterGroupAssignmentState) ElementType() reflect.Type {
return reflect.TypeOf((*clusterGroupAssignmentState)(nil)).Elem()
}
type clusterGroupAssignmentArgs struct {
// **Required** - Name of the cluster group.
ClusterGroup string `pulumi:"clusterGroup"`
// **Required** - Name of the cluster group member.
Member string `pulumi:"member"`
// *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"`
}
// The set of arguments for constructing a ClusterGroupAssignment resource.
type ClusterGroupAssignmentArgs struct {
// **Required** - Name of the cluster group.
ClusterGroup pulumi.StringInput
// **Required** - Name of the cluster group member.
Member 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
}
func (ClusterGroupAssignmentArgs) ElementType() reflect.Type {
return reflect.TypeOf((*clusterGroupAssignmentArgs)(nil)).Elem()
}
type ClusterGroupAssignmentInput interface {
pulumi.Input
ToClusterGroupAssignmentOutput() ClusterGroupAssignmentOutput
ToClusterGroupAssignmentOutputWithContext(ctx context.Context) ClusterGroupAssignmentOutput
}
func (*ClusterGroupAssignment) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterGroupAssignment)(nil)).Elem()
}
func (i *ClusterGroupAssignment) ToClusterGroupAssignmentOutput() ClusterGroupAssignmentOutput {
return i.ToClusterGroupAssignmentOutputWithContext(context.Background())
}
func (i *ClusterGroupAssignment) ToClusterGroupAssignmentOutputWithContext(ctx context.Context) ClusterGroupAssignmentOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupAssignmentOutput)
}
// ClusterGroupAssignmentArrayInput is an input type that accepts ClusterGroupAssignmentArray and ClusterGroupAssignmentArrayOutput values.
// You can construct a concrete instance of `ClusterGroupAssignmentArrayInput` via:
//
// ClusterGroupAssignmentArray{ ClusterGroupAssignmentArgs{...} }
type ClusterGroupAssignmentArrayInput interface {
pulumi.Input
ToClusterGroupAssignmentArrayOutput() ClusterGroupAssignmentArrayOutput
ToClusterGroupAssignmentArrayOutputWithContext(context.Context) ClusterGroupAssignmentArrayOutput
}
type ClusterGroupAssignmentArray []ClusterGroupAssignmentInput
func (ClusterGroupAssignmentArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ClusterGroupAssignment)(nil)).Elem()
}
func (i ClusterGroupAssignmentArray) ToClusterGroupAssignmentArrayOutput() ClusterGroupAssignmentArrayOutput {
return i.ToClusterGroupAssignmentArrayOutputWithContext(context.Background())
}
func (i ClusterGroupAssignmentArray) ToClusterGroupAssignmentArrayOutputWithContext(ctx context.Context) ClusterGroupAssignmentArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupAssignmentArrayOutput)
}
// ClusterGroupAssignmentMapInput is an input type that accepts ClusterGroupAssignmentMap and ClusterGroupAssignmentMapOutput values.
// You can construct a concrete instance of `ClusterGroupAssignmentMapInput` via:
//
// ClusterGroupAssignmentMap{ "key": ClusterGroupAssignmentArgs{...} }
type ClusterGroupAssignmentMapInput interface {
pulumi.Input
ToClusterGroupAssignmentMapOutput() ClusterGroupAssignmentMapOutput
ToClusterGroupAssignmentMapOutputWithContext(context.Context) ClusterGroupAssignmentMapOutput
}
type ClusterGroupAssignmentMap map[string]ClusterGroupAssignmentInput
func (ClusterGroupAssignmentMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ClusterGroupAssignment)(nil)).Elem()
}
func (i ClusterGroupAssignmentMap) ToClusterGroupAssignmentMapOutput() ClusterGroupAssignmentMapOutput {
return i.ToClusterGroupAssignmentMapOutputWithContext(context.Background())
}
func (i ClusterGroupAssignmentMap) ToClusterGroupAssignmentMapOutputWithContext(ctx context.Context) ClusterGroupAssignmentMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupAssignmentMapOutput)
}
type ClusterGroupAssignmentOutput struct{ *pulumi.OutputState }
func (ClusterGroupAssignmentOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterGroupAssignment)(nil)).Elem()
}
func (o ClusterGroupAssignmentOutput) ToClusterGroupAssignmentOutput() ClusterGroupAssignmentOutput {
return o
}
func (o ClusterGroupAssignmentOutput) ToClusterGroupAssignmentOutputWithContext(ctx context.Context) ClusterGroupAssignmentOutput {
return o
}
// **Required** - Name of the cluster group.
func (o ClusterGroupAssignmentOutput) ClusterGroup() pulumi.StringOutput {
return o.ApplyT(func(v *ClusterGroupAssignment) pulumi.StringOutput { return v.ClusterGroup }).(pulumi.StringOutput)
}
// **Required** - Name of the cluster group member.
func (o ClusterGroupAssignmentOutput) Member() pulumi.StringOutput {
return o.ApplyT(func(v *ClusterGroupAssignment) pulumi.StringOutput { return v.Member }).(pulumi.StringOutput)
}
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
func (o ClusterGroupAssignmentOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterGroupAssignment) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
}
type ClusterGroupAssignmentArrayOutput struct{ *pulumi.OutputState }
func (ClusterGroupAssignmentArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ClusterGroupAssignment)(nil)).Elem()
}
func (o ClusterGroupAssignmentArrayOutput) ToClusterGroupAssignmentArrayOutput() ClusterGroupAssignmentArrayOutput {
return o
}
func (o ClusterGroupAssignmentArrayOutput) ToClusterGroupAssignmentArrayOutputWithContext(ctx context.Context) ClusterGroupAssignmentArrayOutput {
return o
}
func (o ClusterGroupAssignmentArrayOutput) Index(i pulumi.IntInput) ClusterGroupAssignmentOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterGroupAssignment {
return vs[0].([]*ClusterGroupAssignment)[vs[1].(int)]
}).(ClusterGroupAssignmentOutput)
}
type ClusterGroupAssignmentMapOutput struct{ *pulumi.OutputState }
func (ClusterGroupAssignmentMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ClusterGroupAssignment)(nil)).Elem()
}
func (o ClusterGroupAssignmentMapOutput) ToClusterGroupAssignmentMapOutput() ClusterGroupAssignmentMapOutput {
return o
}
func (o ClusterGroupAssignmentMapOutput) ToClusterGroupAssignmentMapOutputWithContext(ctx context.Context) ClusterGroupAssignmentMapOutput {
return o
}
func (o ClusterGroupAssignmentMapOutput) MapIndex(k pulumi.StringInput) ClusterGroupAssignmentOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterGroupAssignment {
return vs[0].(map[string]*ClusterGroupAssignment)[vs[1].(string)]
}).(ClusterGroupAssignmentOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupAssignmentInput)(nil)).Elem(), &ClusterGroupAssignment{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupAssignmentArrayInput)(nil)).Elem(), ClusterGroupAssignmentArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupAssignmentMapInput)(nil)).Elem(), ClusterGroupAssignmentMap{})
pulumi.RegisterOutputType(ClusterGroupAssignmentOutput{})
pulumi.RegisterOutputType(ClusterGroupAssignmentArrayOutput{})
pulumi.RegisterOutputType(ClusterGroupAssignmentMapOutput{})
}

257
sdk/go/incus/clusterGroupMember.go generated Normal file
View File

@@ -0,0 +1,257 @@
// 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
import (
"context"
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ClusterGroupMember struct {
pulumi.CustomResourceState
// **Required** - Name of the cluster group.
ClusterGroup pulumi.StringOutput `pulumi:"clusterGroup"`
// **Required** - Name of the cluster group member.
Member pulumi.StringOutput `pulumi:"member"`
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrOutput `pulumi:"remote"`
}
// NewClusterGroupMember registers a new resource with the given unique name, arguments, and options.
func NewClusterGroupMember(ctx *pulumi.Context,
name string, args *ClusterGroupMemberArgs, opts ...pulumi.ResourceOption) (*ClusterGroupMember, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ClusterGroup == nil {
return nil, errors.New("invalid value for required argument 'ClusterGroup'")
}
if args.Member == nil {
return nil, errors.New("invalid value for required argument 'Member'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource ClusterGroupMember
err := ctx.RegisterResource("incus:index/clusterGroupMember:ClusterGroupMember", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetClusterGroupMember gets an existing ClusterGroupMember resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetClusterGroupMember(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ClusterGroupMemberState, opts ...pulumi.ResourceOption) (*ClusterGroupMember, error) {
var resource ClusterGroupMember
err := ctx.ReadResource("incus:index/clusterGroupMember:ClusterGroupMember", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ClusterGroupMember resources.
type clusterGroupMemberState struct {
// **Required** - Name of the cluster group.
ClusterGroup *string `pulumi:"clusterGroup"`
// **Required** - Name of the cluster group member.
Member *string `pulumi:"member"`
// *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"`
}
type ClusterGroupMemberState struct {
// **Required** - Name of the cluster group.
ClusterGroup pulumi.StringPtrInput
// **Required** - Name of the cluster group member.
Member pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput
}
func (ClusterGroupMemberState) ElementType() reflect.Type {
return reflect.TypeOf((*clusterGroupMemberState)(nil)).Elem()
}
type clusterGroupMemberArgs struct {
// **Required** - Name of the cluster group.
ClusterGroup string `pulumi:"clusterGroup"`
// **Required** - Name of the cluster group member.
Member string `pulumi:"member"`
// *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"`
}
// The set of arguments for constructing a ClusterGroupMember resource.
type ClusterGroupMemberArgs struct {
// **Required** - Name of the cluster group.
ClusterGroup pulumi.StringInput
// **Required** - Name of the cluster group member.
Member 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
}
func (ClusterGroupMemberArgs) ElementType() reflect.Type {
return reflect.TypeOf((*clusterGroupMemberArgs)(nil)).Elem()
}
type ClusterGroupMemberInput interface {
pulumi.Input
ToClusterGroupMemberOutput() ClusterGroupMemberOutput
ToClusterGroupMemberOutputWithContext(ctx context.Context) ClusterGroupMemberOutput
}
func (*ClusterGroupMember) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterGroupMember)(nil)).Elem()
}
func (i *ClusterGroupMember) ToClusterGroupMemberOutput() ClusterGroupMemberOutput {
return i.ToClusterGroupMemberOutputWithContext(context.Background())
}
func (i *ClusterGroupMember) ToClusterGroupMemberOutputWithContext(ctx context.Context) ClusterGroupMemberOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupMemberOutput)
}
// ClusterGroupMemberArrayInput is an input type that accepts ClusterGroupMemberArray and ClusterGroupMemberArrayOutput values.
// You can construct a concrete instance of `ClusterGroupMemberArrayInput` via:
//
// ClusterGroupMemberArray{ ClusterGroupMemberArgs{...} }
type ClusterGroupMemberArrayInput interface {
pulumi.Input
ToClusterGroupMemberArrayOutput() ClusterGroupMemberArrayOutput
ToClusterGroupMemberArrayOutputWithContext(context.Context) ClusterGroupMemberArrayOutput
}
type ClusterGroupMemberArray []ClusterGroupMemberInput
func (ClusterGroupMemberArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ClusterGroupMember)(nil)).Elem()
}
func (i ClusterGroupMemberArray) ToClusterGroupMemberArrayOutput() ClusterGroupMemberArrayOutput {
return i.ToClusterGroupMemberArrayOutputWithContext(context.Background())
}
func (i ClusterGroupMemberArray) ToClusterGroupMemberArrayOutputWithContext(ctx context.Context) ClusterGroupMemberArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupMemberArrayOutput)
}
// ClusterGroupMemberMapInput is an input type that accepts ClusterGroupMemberMap and ClusterGroupMemberMapOutput values.
// You can construct a concrete instance of `ClusterGroupMemberMapInput` via:
//
// ClusterGroupMemberMap{ "key": ClusterGroupMemberArgs{...} }
type ClusterGroupMemberMapInput interface {
pulumi.Input
ToClusterGroupMemberMapOutput() ClusterGroupMemberMapOutput
ToClusterGroupMemberMapOutputWithContext(context.Context) ClusterGroupMemberMapOutput
}
type ClusterGroupMemberMap map[string]ClusterGroupMemberInput
func (ClusterGroupMemberMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ClusterGroupMember)(nil)).Elem()
}
func (i ClusterGroupMemberMap) ToClusterGroupMemberMapOutput() ClusterGroupMemberMapOutput {
return i.ToClusterGroupMemberMapOutputWithContext(context.Background())
}
func (i ClusterGroupMemberMap) ToClusterGroupMemberMapOutputWithContext(ctx context.Context) ClusterGroupMemberMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterGroupMemberMapOutput)
}
type ClusterGroupMemberOutput struct{ *pulumi.OutputState }
func (ClusterGroupMemberOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterGroupMember)(nil)).Elem()
}
func (o ClusterGroupMemberOutput) ToClusterGroupMemberOutput() ClusterGroupMemberOutput {
return o
}
func (o ClusterGroupMemberOutput) ToClusterGroupMemberOutputWithContext(ctx context.Context) ClusterGroupMemberOutput {
return o
}
// **Required** - Name of the cluster group.
func (o ClusterGroupMemberOutput) ClusterGroup() pulumi.StringOutput {
return o.ApplyT(func(v *ClusterGroupMember) pulumi.StringOutput { return v.ClusterGroup }).(pulumi.StringOutput)
}
// **Required** - Name of the cluster group member.
func (o ClusterGroupMemberOutput) Member() pulumi.StringOutput {
return o.ApplyT(func(v *ClusterGroupMember) pulumi.StringOutput { return v.Member }).(pulumi.StringOutput)
}
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
func (o ClusterGroupMemberOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterGroupMember) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
}
type ClusterGroupMemberArrayOutput struct{ *pulumi.OutputState }
func (ClusterGroupMemberArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ClusterGroupMember)(nil)).Elem()
}
func (o ClusterGroupMemberArrayOutput) ToClusterGroupMemberArrayOutput() ClusterGroupMemberArrayOutput {
return o
}
func (o ClusterGroupMemberArrayOutput) ToClusterGroupMemberArrayOutputWithContext(ctx context.Context) ClusterGroupMemberArrayOutput {
return o
}
func (o ClusterGroupMemberArrayOutput) Index(i pulumi.IntInput) ClusterGroupMemberOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ClusterGroupMember {
return vs[0].([]*ClusterGroupMember)[vs[1].(int)]
}).(ClusterGroupMemberOutput)
}
type ClusterGroupMemberMapOutput struct{ *pulumi.OutputState }
func (ClusterGroupMemberMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ClusterGroupMember)(nil)).Elem()
}
func (o ClusterGroupMemberMapOutput) ToClusterGroupMemberMapOutput() ClusterGroupMemberMapOutput {
return o
}
func (o ClusterGroupMemberMapOutput) ToClusterGroupMemberMapOutputWithContext(ctx context.Context) ClusterGroupMemberMapOutput {
return o
}
func (o ClusterGroupMemberMapOutput) MapIndex(k pulumi.StringInput) ClusterGroupMemberOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ClusterGroupMember {
return vs[0].(map[string]*ClusterGroupMember)[vs[1].(string)]
}).(ClusterGroupMemberOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupMemberInput)(nil)).Elem(), &ClusterGroupMember{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupMemberArrayInput)(nil)).Elem(), ClusterGroupMemberArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ClusterGroupMemberMapInput)(nil)).Elem(), ClusterGroupMemberMap{})
pulumi.RegisterOutputType(ClusterGroupMemberOutput{})
pulumi.RegisterOutputType(ClusterGroupMemberArrayOutput{})
pulumi.RegisterOutputType(ClusterGroupMemberMapOutput{})
}

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 config
@@ -21,13 +21,17 @@ func GetConfigDir(ctx *pulumi.Context) string {
return config.Get(ctx, "incus:configDir")
}
// The default remote to use when no other remote is defined in a resource.
func GetDefaultRemote(ctx *pulumi.Context) string {
return config.Get(ctx, "incus:defaultRemote")
}
// Automatically generate the Incus client certificates if they don't exist.
func GetGenerateClientCertificates(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "incus:generateClientCertificates")
}
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
// default)
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
func GetProject(ctx *pulumi.Context) string {
return config.Get(ctx, "incus:project")
}

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 config
@@ -14,17 +14,17 @@ import (
var _ = internal.GetEnvOrDefault
type Remotes struct {
// The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
// The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
Address *string `pulumi:"address"`
// Set this remote as default.
Default *bool `pulumi:"default"`
// Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
// Server authentication type, tls or oidc. ( Only for the `incus` protocol )
AuthenticationType *string `pulumi:"authenticationType"`
// Name of the Incus remote.
Name string `pulumi:"name"`
// Port Incus Daemon API is listening on. (default = 8443)
Port *string `pulumi:"port"`
// Unix (unix) or HTTPs (https). (default = unix)
Scheme *string `pulumi:"scheme"`
// The trust token for the remote.
// Server protocol ( incus, oci or simplestreams )
Protocol *string `pulumi:"protocol"`
// Public image server
Public *bool `pulumi:"public"`
// The trust token used for initial authentication with the Incus remote.
Token *string `pulumi:"token"`
}
@@ -40,17 +40,17 @@ type RemotesInput interface {
}
type RemotesArgs struct {
// The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
// The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
Address pulumi.StringPtrInput `pulumi:"address"`
// Set this remote as default.
Default pulumi.BoolPtrInput `pulumi:"default"`
// Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
// Server authentication type, tls or oidc. ( Only for the `incus` protocol )
AuthenticationType pulumi.StringPtrInput `pulumi:"authenticationType"`
// Name of the Incus remote.
Name pulumi.StringInput `pulumi:"name"`
// Port Incus Daemon API is listening on. (default = 8443)
Port pulumi.StringPtrInput `pulumi:"port"`
// Unix (unix) or HTTPs (https). (default = unix)
Scheme pulumi.StringPtrInput `pulumi:"scheme"`
// The trust token for the remote.
// Server protocol ( incus, oci or simplestreams )
Protocol pulumi.StringPtrInput `pulumi:"protocol"`
// Public image server
Public pulumi.BoolPtrInput `pulumi:"public"`
// The trust token used for initial authentication with the Incus remote.
Token pulumi.StringPtrInput `pulumi:"token"`
}
@@ -105,32 +105,32 @@ func (o RemotesOutput) ToRemotesOutputWithContext(ctx context.Context) RemotesOu
return o
}
// The FQDN or IP where the Incus daemon can be contacted. (default = "" (read from lxc config))
// The URL of the Incus host. The default will be the path to the local unix socket, or leaving it as an empty string will use the default socket path.
func (o RemotesOutput) Address() pulumi.StringPtrOutput {
return o.ApplyT(func(v Remotes) *string { return v.Address }).(pulumi.StringPtrOutput)
}
// Set this remote as default.
func (o RemotesOutput) Default() pulumi.BoolPtrOutput {
return o.ApplyT(func(v Remotes) *bool { return v.Default }).(pulumi.BoolPtrOutput)
// Server authentication type, tls or oidc. ( Only for the `incus` protocol )
func (o RemotesOutput) AuthenticationType() pulumi.StringPtrOutput {
return o.ApplyT(func(v Remotes) *string { return v.AuthenticationType }).(pulumi.StringPtrOutput)
}
// Name of the Incus remote. Required when incusScheme set to https, to enable locating server certificate.
// Name of the Incus remote.
func (o RemotesOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v Remotes) string { return v.Name }).(pulumi.StringOutput)
}
// Port Incus Daemon API is listening on. (default = 8443)
func (o RemotesOutput) Port() pulumi.StringPtrOutput {
return o.ApplyT(func(v Remotes) *string { return v.Port }).(pulumi.StringPtrOutput)
// Server protocol ( incus, oci or simplestreams )
func (o RemotesOutput) Protocol() pulumi.StringPtrOutput {
return o.ApplyT(func(v Remotes) *string { return v.Protocol }).(pulumi.StringPtrOutput)
}
// Unix (unix) or HTTPs (https). (default = unix)
func (o RemotesOutput) Scheme() pulumi.StringPtrOutput {
return o.ApplyT(func(v Remotes) *string { return v.Scheme }).(pulumi.StringPtrOutput)
// Public image server
func (o RemotesOutput) Public() pulumi.BoolPtrOutput {
return o.ApplyT(func(v Remotes) *bool { return v.Public }).(pulumi.BoolPtrOutput)
}
// The trust token for the remote.
// The trust token used for initial authentication with the Incus remote.
func (o RemotesOutput) Token() pulumi.StringPtrOutput {
return o.ApplyT(func(v Remotes) *string { return v.Token }).(pulumi.StringPtrOutput)
}

204
sdk/go/incus/getCluster.go generated Normal file
View File

@@ -0,0 +1,204 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # getCluster
//
// Provides information about an Incus cluster.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := incus.GetCluster(ctx, &incus.GetClusterArgs{}, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Example prevent execution if any cluster member is not online
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := incus.GetCluster(ctx, &incus.GetClusterArgs{
// Remote: pulumi.StringRef("cluster"),
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Example create resource for each cluster member
//
// In this example, we define the server configuration [`core.bgp_address`](https://linuxcontainers.org/incus/docs/main/server_config/#core-configuration),
//
// which has scope `local`, on each cluster member.
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.GetCluster(ctx, &incus.GetClusterArgs{}, nil)
// if err != nil {
// return err
// }
// var tmp0 pulumi.String
// if this.IsClustered {
// tmp0 = pulumi.String(key0)
// } else {
// tmp0 = nil
// }
// var nodes []*incus.Server
// for key0, _ := range this.Members {
// __res, err := incus.NewServer(ctx, fmt.Sprintf("nodes-%v", key0), &incus.ServerArgs{
// Target: pulumi.String(tmp0),
// Config: pulumi.StringMap{
// "core.bgp_address": pulumi.String(":179"),
// },
// })
// if err != nil {
// return err
// }
// nodes = append(nodes, __res)
// }
// return nil
// })
// }
//
// ```
//
// ## Notes
//
// * For non-clustered setups, the `members` attribute will be `null`.
func GetCluster(ctx *pulumi.Context, args *GetClusterArgs, opts ...pulumi.InvokeOption) (*GetClusterResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetClusterResult
err := ctx.Invoke("incus:index/getCluster:getCluster", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getCluster.
type GetClusterArgs struct {
// *Optional* - The remote for which the Incus cluster information
// should be queried. If not provided, the provider's default remote will be used.
Remote *string `pulumi:"remote"`
}
// A collection of values returned by getCluster.
type GetClusterResult struct {
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Whether this is a clustered setup.
IsClustered bool `pulumi:"isClustered"`
// A map of cluster members. The key is the member name and the value
// is a member object. See reference below.
Members map[string]GetClusterMembers `pulumi:"members"`
Remote *string `pulumi:"remote"`
}
func GetClusterOutput(ctx *pulumi.Context, args GetClusterOutputArgs, opts ...pulumi.InvokeOption) GetClusterResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (GetClusterResultOutput, error) {
args := v.(GetClusterArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getCluster:getCluster", args, GetClusterResultOutput{}, options).(GetClusterResultOutput), nil
}).(GetClusterResultOutput)
}
// A collection of arguments for invoking getCluster.
type GetClusterOutputArgs struct {
// *Optional* - The remote for which the Incus cluster information
// should be queried. If not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput `pulumi:"remote"`
}
func (GetClusterOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetClusterArgs)(nil)).Elem()
}
// A collection of values returned by getCluster.
type GetClusterResultOutput struct{ *pulumi.OutputState }
func (GetClusterResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetClusterResult)(nil)).Elem()
}
func (o GetClusterResultOutput) ToGetClusterResultOutput() GetClusterResultOutput {
return o
}
func (o GetClusterResultOutput) ToGetClusterResultOutputWithContext(ctx context.Context) GetClusterResultOutput {
return o
}
// The provider-assigned unique ID for this managed resource.
func (o GetClusterResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetClusterResult) string { return v.Id }).(pulumi.StringOutput)
}
// Whether this is a clustered setup.
func (o GetClusterResultOutput) IsClustered() pulumi.BoolOutput {
return o.ApplyT(func(v GetClusterResult) bool { return v.IsClustered }).(pulumi.BoolOutput)
}
// A map of cluster members. The key is the member name and the value
// is a member object. See reference below.
func (o GetClusterResultOutput) Members() GetClusterMembersMapOutput {
return o.ApplyT(func(v GetClusterResult) map[string]GetClusterMembers { return v.Members }).(GetClusterMembersMapOutput)
}
func (o GetClusterResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetClusterResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(GetClusterResultOutput{})
}

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

247
sdk/go/incus/getInstance.go generated Normal file
View File

@@ -0,0 +1,247 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # Instance
//
// Provides information about an Incus instance.
// See Incus instance [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/instance_config/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupInstance(ctx, &incus.LookupInstanceArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("instanceName", this.Name)
// return nil
// })
// }
//
// ```
func LookupInstance(ctx *pulumi.Context, args *LookupInstanceArgs, opts ...pulumi.InvokeOption) (*LookupInstanceResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupInstanceResult
err := ctx.Invoke("incus:index/getInstance:getInstance", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getInstance.
type LookupInstanceArgs struct {
// Architecture name.
Architecture *string `pulumi:"architecture"`
// Description of the instance.
Description *string `pulumi:"description"`
// Device definitions. See reference below.
Devices []GetInstanceDevice `pulumi:"devices"`
// Whether the instance is ephemeral (deleted on shutdown).
Ephemeral *bool `pulumi:"ephemeral"`
// Location of the instance.
Location *string `pulumi:"location"`
// **Required** - Name of the instance.
Name string `pulumi:"name"`
// List of profiles applied to the instance.
Profiles []string `pulumi:"profiles"`
// *Optional* - Name of the project where the instance 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.
Remote *string `pulumi:"remote"`
// Whether the instance is stateful.
Stateful *bool `pulumi:"stateful"`
// Status of the instance.
Status *string `pulumi:"status"`
// Type of the device Must be one of none, disk, nic,
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
Type *string `pulumi:"type"`
}
// A collection of values returned by getInstance.
type LookupInstanceResult struct {
// Architecture name.
Architecture string `pulumi:"architecture"`
// 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 instance.
Description string `pulumi:"description"`
// Device definitions. See reference below.
Devices []GetInstanceDevice `pulumi:"devices"`
// Whether the instance is ephemeral (deleted on shutdown).
Ephemeral bool `pulumi:"ephemeral"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Location of the instance.
Location string `pulumi:"location"`
// Name of the device.
Name string `pulumi:"name"`
// List of profiles applied to the instance.
Profiles []string `pulumi:"profiles"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
// Whether the instance is stateful.
Stateful bool `pulumi:"stateful"`
// Status of the instance.
Status string `pulumi:"status"`
// Type of the device Must be one of none, disk, nic,
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
Type string `pulumi:"type"`
}
func LookupInstanceOutput(ctx *pulumi.Context, args LookupInstanceOutputArgs, opts ...pulumi.InvokeOption) LookupInstanceResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupInstanceResultOutput, error) {
args := v.(LookupInstanceArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getInstance:getInstance", args, LookupInstanceResultOutput{}, options).(LookupInstanceResultOutput), nil
}).(LookupInstanceResultOutput)
}
// A collection of arguments for invoking getInstance.
type LookupInstanceOutputArgs struct {
// Architecture name.
Architecture pulumi.StringPtrInput `pulumi:"architecture"`
// Description of the instance.
Description pulumi.StringPtrInput `pulumi:"description"`
// Device definitions. See reference below.
Devices GetInstanceDeviceArrayInput `pulumi:"devices"`
// Whether the instance is ephemeral (deleted on shutdown).
Ephemeral pulumi.BoolPtrInput `pulumi:"ephemeral"`
// Location of the instance.
Location pulumi.StringPtrInput `pulumi:"location"`
// **Required** - Name of the instance.
Name pulumi.StringInput `pulumi:"name"`
// List of profiles applied to the instance.
Profiles pulumi.StringArrayInput `pulumi:"profiles"`
// *Optional* - Name of the project where the instance 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// Whether the instance is stateful.
Stateful pulumi.BoolPtrInput `pulumi:"stateful"`
// Status of the instance.
Status pulumi.StringPtrInput `pulumi:"status"`
// Type of the device Must be one of none, disk, nic,
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
Type pulumi.StringPtrInput `pulumi:"type"`
}
func (LookupInstanceOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupInstanceArgs)(nil)).Elem()
}
// A collection of values returned by getInstance.
type LookupInstanceResultOutput struct{ *pulumi.OutputState }
func (LookupInstanceResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupInstanceResult)(nil)).Elem()
}
func (o LookupInstanceResultOutput) ToLookupInstanceResultOutput() LookupInstanceResultOutput {
return o
}
func (o LookupInstanceResultOutput) ToLookupInstanceResultOutputWithContext(ctx context.Context) LookupInstanceResultOutput {
return o
}
// Architecture name.
func (o LookupInstanceResultOutput) Architecture() pulumi.StringOutput {
return o.ApplyT(func(v LookupInstanceResult) string { return v.Architecture }).(pulumi.StringOutput)
}
// Map of key/value pairs of config settings.
// [instance config settings](https://linuxcontainers.org/incus/docs/main/reference/instance_options/)
func (o LookupInstanceResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupInstanceResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the instance.
func (o LookupInstanceResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupInstanceResult) string { return v.Description }).(pulumi.StringOutput)
}
// Device definitions. See reference below.
func (o LookupInstanceResultOutput) Devices() GetInstanceDeviceArrayOutput {
return o.ApplyT(func(v LookupInstanceResult) []GetInstanceDevice { return v.Devices }).(GetInstanceDeviceArrayOutput)
}
// Whether the instance is ephemeral (deleted on shutdown).
func (o LookupInstanceResultOutput) Ephemeral() pulumi.BoolOutput {
return o.ApplyT(func(v LookupInstanceResult) bool { return v.Ephemeral }).(pulumi.BoolOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupInstanceResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupInstanceResult) string { return v.Id }).(pulumi.StringOutput)
}
// Location of the instance.
func (o LookupInstanceResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupInstanceResult) string { return v.Location }).(pulumi.StringOutput)
}
// Name of the device.
func (o LookupInstanceResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupInstanceResult) string { return v.Name }).(pulumi.StringOutput)
}
// List of profiles applied to the instance.
func (o LookupInstanceResultOutput) Profiles() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupInstanceResult) []string { return v.Profiles }).(pulumi.StringArrayOutput)
}
func (o LookupInstanceResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupInstanceResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupInstanceResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupInstanceResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
// Whether the instance is stateful.
func (o LookupInstanceResultOutput) Stateful() pulumi.BoolOutput {
return o.ApplyT(func(v LookupInstanceResult) bool { return v.Stateful }).(pulumi.BoolOutput)
}
// Status of the instance.
func (o LookupInstanceResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupInstanceResult) string { return v.Status }).(pulumi.StringOutput)
}
// Type of the device Must be one of none, disk, nic,
// unix-char, unix-block, usb, gpu, infiniband, proxy, unix-hotplug, tpm, pci.
func (o LookupInstanceResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupInstanceResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupInstanceResultOutput{})
}

210
sdk/go/incus/getNetwork.go generated Normal file
View File

@@ -0,0 +1,210 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # Network
//
// Provides information about an Incus network.
// See Incus network [configuration reference](https://linuxcontainers.org/incus/docs/main/explanation/networks/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetwork(ctx, &incus.LookupNetworkArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkName", this.Name)
// return nil
// })
// }
//
// ```
func LookupNetwork(ctx *pulumi.Context, args *LookupNetworkArgs, opts ...pulumi.InvokeOption) (*LookupNetworkResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkResult
err := ctx.Invoke("incus:index/getNetwork:getNetwork", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetwork.
type LookupNetworkArgs struct {
// Description of the network.
Description *string `pulumi:"description"`
// Locations of the network.
Locations []string `pulumi:"locations"`
// Whether the network is managed by Incus.
Managed *bool `pulumi:"managed"`
// **Required** - Name of the network.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network 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.
Remote *string `pulumi:"remote"`
// Status of the network.
Status *string `pulumi:"status"`
// *Optional* - Specify a target node in a cluster.
Target *string `pulumi:"target"`
// Network type.
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
Type *string `pulumi:"type"`
}
// A collection of values returned by getNetwork.
type LookupNetworkResult struct {
// Map of key/value pairs of config settings.
// [network config settings](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
Config map[string]string `pulumi:"config"`
// Description of the network.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Locations of the network.
Locations []string `pulumi:"locations"`
// Whether the network is managed by Incus.
Managed bool `pulumi:"managed"`
Name string `pulumi:"name"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
// Status of the network.
Status string `pulumi:"status"`
Target *string `pulumi:"target"`
// Network type.
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
Type string `pulumi:"type"`
}
func LookupNetworkOutput(ctx *pulumi.Context, args LookupNetworkOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkResultOutput, error) {
args := v.(LookupNetworkArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetwork:getNetwork", args, LookupNetworkResultOutput{}, options).(LookupNetworkResultOutput), nil
}).(LookupNetworkResultOutput)
}
// A collection of arguments for invoking getNetwork.
type LookupNetworkOutputArgs struct {
// Description of the network.
Description pulumi.StringPtrInput `pulumi:"description"`
// Locations of the network.
Locations pulumi.StringArrayInput `pulumi:"locations"`
// Whether the network is managed by Incus.
Managed pulumi.BoolPtrInput `pulumi:"managed"`
// **Required** - Name of the network.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - Name of the project where the network 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// Status of the network.
Status pulumi.StringPtrInput `pulumi:"status"`
// *Optional* - Specify a target node in a cluster.
Target pulumi.StringPtrInput `pulumi:"target"`
// Network type.
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
Type pulumi.StringPtrInput `pulumi:"type"`
}
func (LookupNetworkOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkArgs)(nil)).Elem()
}
// A collection of values returned by getNetwork.
type LookupNetworkResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkResult)(nil)).Elem()
}
func (o LookupNetworkResultOutput) ToLookupNetworkResultOutput() LookupNetworkResultOutput {
return o
}
func (o LookupNetworkResultOutput) ToLookupNetworkResultOutputWithContext(ctx context.Context) LookupNetworkResultOutput {
return o
}
// Map of key/value pairs of config settings.
// [network config settings](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
func (o LookupNetworkResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the network.
func (o LookupNetworkResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkResult) string { return v.Id }).(pulumi.StringOutput)
}
// Locations of the network.
func (o LookupNetworkResultOutput) Locations() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupNetworkResult) []string { return v.Locations }).(pulumi.StringArrayOutput)
}
// Whether the network is managed by Incus.
func (o LookupNetworkResultOutput) Managed() pulumi.BoolOutput {
return o.ApplyT(func(v LookupNetworkResult) bool { return v.Managed }).(pulumi.BoolOutput)
}
func (o LookupNetworkResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupNetworkResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
// Status of the network.
func (o LookupNetworkResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkResult) string { return v.Status }).(pulumi.StringOutput)
}
func (o LookupNetworkResultOutput) Target() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkResult) *string { return v.Target }).(pulumi.StringPtrOutput)
}
// Network type.
// [network type documentation](https://linuxcontainers.org/incus/docs/main/howto/network_create/#network-types)
func (o LookupNetworkResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkResultOutput{})
}

173
sdk/go/incus/getNetworkAcl.go generated Normal file
View File

@@ -0,0 +1,173 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # NetworkAcl
//
// Provides information about an Incus network ACL.
// See Incus network ACL [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_acls/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetworkAcl(ctx, &incus.LookupNetworkAclArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkAclName", this.Name)
// return nil
// })
// }
//
// ```
func LookupNetworkAcl(ctx *pulumi.Context, args *LookupNetworkAclArgs, opts ...pulumi.InvokeOption) (*LookupNetworkAclResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkAclResult
err := ctx.Invoke("incus:index/getNetworkAcl:getNetworkAcl", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetworkAcl.
type LookupNetworkAclArgs struct {
// Description of the rule.
Description *string `pulumi:"description"`
// List of egress rules.
Egresses []GetNetworkAclEgress `pulumi:"egresses"`
// List of ingress rules.
Ingresses []GetNetworkAclIngress `pulumi:"ingresses"`
// **Required** - Name of the network ACL.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network ACL 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.
Remote *string `pulumi:"remote"`
}
// A collection of values returned by getNetworkAcl.
type LookupNetworkAclResult struct {
// Map of key/value pairs of config settings.
Config map[string]string `pulumi:"config"`
// Description of the rule.
Description string `pulumi:"description"`
// List of egress rules.
Egresses []GetNetworkAclEgress `pulumi:"egresses"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// List of ingress rules.
Ingresses []GetNetworkAclIngress `pulumi:"ingresses"`
Name string `pulumi:"name"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
}
func LookupNetworkAclOutput(ctx *pulumi.Context, args LookupNetworkAclOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkAclResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkAclResultOutput, error) {
args := v.(LookupNetworkAclArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetworkAcl:getNetworkAcl", args, LookupNetworkAclResultOutput{}, options).(LookupNetworkAclResultOutput), nil
}).(LookupNetworkAclResultOutput)
}
// A collection of arguments for invoking getNetworkAcl.
type LookupNetworkAclOutputArgs struct {
// Description of the rule.
Description pulumi.StringPtrInput `pulumi:"description"`
// List of egress rules.
Egresses GetNetworkAclEgressArrayInput `pulumi:"egresses"`
// List of ingress rules.
Ingresses GetNetworkAclIngressArrayInput `pulumi:"ingresses"`
// **Required** - Name of the network ACL.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - Name of the project where the network ACL 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
}
func (LookupNetworkAclOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkAclArgs)(nil)).Elem()
}
// A collection of values returned by getNetworkAcl.
type LookupNetworkAclResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkAclResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkAclResult)(nil)).Elem()
}
func (o LookupNetworkAclResultOutput) ToLookupNetworkAclResultOutput() LookupNetworkAclResultOutput {
return o
}
func (o LookupNetworkAclResultOutput) ToLookupNetworkAclResultOutputWithContext(ctx context.Context) LookupNetworkAclResultOutput {
return o
}
// Map of key/value pairs of config settings.
func (o LookupNetworkAclResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkAclResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the rule.
func (o LookupNetworkAclResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkAclResult) string { return v.Description }).(pulumi.StringOutput)
}
// List of egress rules.
func (o LookupNetworkAclResultOutput) Egresses() GetNetworkAclEgressArrayOutput {
return o.ApplyT(func(v LookupNetworkAclResult) []GetNetworkAclEgress { return v.Egresses }).(GetNetworkAclEgressArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkAclResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkAclResult) string { return v.Id }).(pulumi.StringOutput)
}
// List of ingress rules.
func (o LookupNetworkAclResultOutput) Ingresses() GetNetworkAclIngressArrayOutput {
return o.ApplyT(func(v LookupNetworkAclResult) []GetNetworkAclIngress { return v.Ingresses }).(GetNetworkAclIngressArrayOutput)
}
func (o LookupNetworkAclResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkAclResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupNetworkAclResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkAclResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkAclResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkAclResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkAclResultOutput{})
}

162
sdk/go/incus/getNetworkAddressSet.go generated Normal file
View File

@@ -0,0 +1,162 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # NetworkAddressSet
//
// Provides information about an Incus network address set.
// See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetworkAddressSet(ctx, &incus.LookupNetworkAddressSetArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkAddressSetName", this.Name)
// return nil
// })
// }
//
// ```
func LookupNetworkAddressSet(ctx *pulumi.Context, args *LookupNetworkAddressSetArgs, opts ...pulumi.InvokeOption) (*LookupNetworkAddressSetResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkAddressSetResult
err := ctx.Invoke("incus:index/getNetworkAddressSet:getNetworkAddressSet", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetworkAddressSet.
type LookupNetworkAddressSetArgs struct {
// List of network addresses.
Addresses []string `pulumi:"addresses"`
// Description of the network address set.
Description *string `pulumi:"description"`
// **Required** - Name of the network address set.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network address set 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.
Remote *string `pulumi:"remote"`
}
// A collection of values returned by getNetworkAddressSet.
type LookupNetworkAddressSetResult struct {
// List of network addresses.
Addresses []string `pulumi:"addresses"`
// Map of key/value pairs of config settings.
Config map[string]string `pulumi:"config"`
// Description of the network address set.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Name string `pulumi:"name"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
}
func LookupNetworkAddressSetOutput(ctx *pulumi.Context, args LookupNetworkAddressSetOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkAddressSetResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkAddressSetResultOutput, error) {
args := v.(LookupNetworkAddressSetArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetworkAddressSet:getNetworkAddressSet", args, LookupNetworkAddressSetResultOutput{}, options).(LookupNetworkAddressSetResultOutput), nil
}).(LookupNetworkAddressSetResultOutput)
}
// A collection of arguments for invoking getNetworkAddressSet.
type LookupNetworkAddressSetOutputArgs struct {
// List of network addresses.
Addresses pulumi.StringArrayInput `pulumi:"addresses"`
// Description of the network address set.
Description pulumi.StringPtrInput `pulumi:"description"`
// **Required** - Name of the network address set.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - Name of the project where the network address set 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
}
func (LookupNetworkAddressSetOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkAddressSetArgs)(nil)).Elem()
}
// A collection of values returned by getNetworkAddressSet.
type LookupNetworkAddressSetResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkAddressSetResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkAddressSetResult)(nil)).Elem()
}
func (o LookupNetworkAddressSetResultOutput) ToLookupNetworkAddressSetResultOutput() LookupNetworkAddressSetResultOutput {
return o
}
func (o LookupNetworkAddressSetResultOutput) ToLookupNetworkAddressSetResultOutputWithContext(ctx context.Context) LookupNetworkAddressSetResultOutput {
return o
}
// List of network addresses.
func (o LookupNetworkAddressSetResultOutput) Addresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupNetworkAddressSetResult) []string { return v.Addresses }).(pulumi.StringArrayOutput)
}
// Map of key/value pairs of config settings.
func (o LookupNetworkAddressSetResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkAddressSetResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the network address set.
func (o LookupNetworkAddressSetResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkAddressSetResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkAddressSetResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkAddressSetResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupNetworkAddressSetResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkAddressSetResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupNetworkAddressSetResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkAddressSetResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkAddressSetResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkAddressSetResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkAddressSetResultOutput{})
}

192
sdk/go/incus/getNetworkForward.go generated Normal file
View File

@@ -0,0 +1,192 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # NetworkForward
//
// Provides information about an Incus network forward.
// See Incus network forward [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_forwards/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetworkForward(ctx, &incus.LookupNetworkForwardArgs{
// ListenAddress: "127.0.0.1",
// Network: "parent",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkForwardListenAddress", this.ListenAddress)
// return nil
// })
// }
//
// ```
func LookupNetworkForward(ctx *pulumi.Context, args *LookupNetworkForwardArgs, opts ...pulumi.InvokeOption) (*LookupNetworkForwardResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkForwardResult
err := ctx.Invoke("incus:index/getNetworkForward:getNetworkForward", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetworkForward.
type LookupNetworkForwardArgs struct {
// Description of the forward port.
Description *string `pulumi:"description"`
// **Required** - Listen Address of the network forward.
ListenAddress string `pulumi:"listenAddress"`
// Location of the network forward.
Location *string `pulumi:"location"`
// **Required** - Name of the parent network.
Network string `pulumi:"network"`
// List of ports to forward.
Ports []GetNetworkForwardPort `pulumi:"ports"`
// *Optional* - Name of the project where the network forward 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.
Remote *string `pulumi:"remote"`
// *Optional* - Specify a target node in a cluster.
Target *string `pulumi:"target"`
}
// A collection of values returned by getNetworkForward.
type LookupNetworkForwardResult struct {
// Map of key/value pairs of config settings.
Config map[string]string `pulumi:"config"`
// Description of the forward port.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
ListenAddress string `pulumi:"listenAddress"`
// Location of the network forward.
Location string `pulumi:"location"`
Network string `pulumi:"network"`
// List of ports to forward.
Ports []GetNetworkForwardPort `pulumi:"ports"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
Target *string `pulumi:"target"`
}
func LookupNetworkForwardOutput(ctx *pulumi.Context, args LookupNetworkForwardOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkForwardResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkForwardResultOutput, error) {
args := v.(LookupNetworkForwardArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetworkForward:getNetworkForward", args, LookupNetworkForwardResultOutput{}, options).(LookupNetworkForwardResultOutput), nil
}).(LookupNetworkForwardResultOutput)
}
// A collection of arguments for invoking getNetworkForward.
type LookupNetworkForwardOutputArgs struct {
// Description of the forward port.
Description pulumi.StringPtrInput `pulumi:"description"`
// **Required** - Listen Address of the network forward.
ListenAddress pulumi.StringInput `pulumi:"listenAddress"`
// Location of the network forward.
Location pulumi.StringPtrInput `pulumi:"location"`
// **Required** - Name of the parent network.
Network pulumi.StringInput `pulumi:"network"`
// List of ports to forward.
Ports GetNetworkForwardPortArrayInput `pulumi:"ports"`
// *Optional* - Name of the project where the network forward 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// *Optional* - Specify a target node in a cluster.
Target pulumi.StringPtrInput `pulumi:"target"`
}
func (LookupNetworkForwardOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkForwardArgs)(nil)).Elem()
}
// A collection of values returned by getNetworkForward.
type LookupNetworkForwardResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkForwardResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkForwardResult)(nil)).Elem()
}
func (o LookupNetworkForwardResultOutput) ToLookupNetworkForwardResultOutput() LookupNetworkForwardResultOutput {
return o
}
func (o LookupNetworkForwardResultOutput) ToLookupNetworkForwardResultOutputWithContext(ctx context.Context) LookupNetworkForwardResultOutput {
return o
}
// Map of key/value pairs of config settings.
func (o LookupNetworkForwardResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the forward port.
func (o LookupNetworkForwardResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkForwardResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupNetworkForwardResultOutput) ListenAddress() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.ListenAddress }).(pulumi.StringOutput)
}
// Location of the network forward.
func (o LookupNetworkForwardResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Location }).(pulumi.StringOutput)
}
func (o LookupNetworkForwardResultOutput) Network() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) string { return v.Network }).(pulumi.StringOutput)
}
// List of ports to forward.
func (o LookupNetworkForwardResultOutput) Ports() GetNetworkForwardPortArrayOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) []GetNetworkForwardPort { return v.Ports }).(GetNetworkForwardPortArrayOutput)
}
func (o LookupNetworkForwardResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkForwardResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkForwardResultOutput) Target() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkForwardResult) *string { return v.Target }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkForwardResultOutput{})
}

153
sdk/go/incus/getNetworkIntegration.go generated Normal file
View File

@@ -0,0 +1,153 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # NetworkIntegration
//
// Provides information about an Incus network integration.
// See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetworkIntegration(ctx, &incus.LookupNetworkIntegrationArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkIntegrationName", this.Name)
// return nil
// })
// }
//
// ```
func LookupNetworkIntegration(ctx *pulumi.Context, args *LookupNetworkIntegrationArgs, opts ...pulumi.InvokeOption) (*LookupNetworkIntegrationResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkIntegrationResult
err := ctx.Invoke("incus:index/getNetworkIntegration:getNetworkIntegration", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetworkIntegration.
type LookupNetworkIntegrationArgs struct {
// Description of the network integration.
Description *string `pulumi:"description"`
// **Required** - Name of the network integration.
Name string `pulumi:"name"`
// *Optional* - The remote in which the resource was created. If
// not provided, the provider's default remote will be used.
Remote *string `pulumi:"remote"`
// Integration type.
Type *string `pulumi:"type"`
}
// A collection of values returned by getNetworkIntegration.
type LookupNetworkIntegrationResult struct {
// Map of key/value pairs of config settings.
Config map[string]string `pulumi:"config"`
// Description of the network integration.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Name string `pulumi:"name"`
Remote *string `pulumi:"remote"`
// Integration type.
Type string `pulumi:"type"`
}
func LookupNetworkIntegrationOutput(ctx *pulumi.Context, args LookupNetworkIntegrationOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkIntegrationResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkIntegrationResultOutput, error) {
args := v.(LookupNetworkIntegrationArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetworkIntegration:getNetworkIntegration", args, LookupNetworkIntegrationResultOutput{}, options).(LookupNetworkIntegrationResultOutput), nil
}).(LookupNetworkIntegrationResultOutput)
}
// A collection of arguments for invoking getNetworkIntegration.
type LookupNetworkIntegrationOutputArgs struct {
// Description of the network integration.
Description pulumi.StringPtrInput `pulumi:"description"`
// **Required** - Name of the network integration.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - The remote in which the resource was created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// Integration type.
Type pulumi.StringPtrInput `pulumi:"type"`
}
func (LookupNetworkIntegrationOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkIntegrationArgs)(nil)).Elem()
}
// A collection of values returned by getNetworkIntegration.
type LookupNetworkIntegrationResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkIntegrationResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkIntegrationResult)(nil)).Elem()
}
func (o LookupNetworkIntegrationResultOutput) ToLookupNetworkIntegrationResultOutput() LookupNetworkIntegrationResultOutput {
return o
}
func (o LookupNetworkIntegrationResultOutput) ToLookupNetworkIntegrationResultOutputWithContext(ctx context.Context) LookupNetworkIntegrationResultOutput {
return o
}
// Map of key/value pairs of config settings.
func (o LookupNetworkIntegrationResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkIntegrationResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the network integration.
func (o LookupNetworkIntegrationResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkIntegrationResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupNetworkIntegrationResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupNetworkIntegrationResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkIntegrationResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
// Integration type.
func (o LookupNetworkIntegrationResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkIntegrationResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkIntegrationResultOutput{})
}

194
sdk/go/incus/getNetworkLoadBalancer.go generated Normal file
View File

@@ -0,0 +1,194 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # getNetworkLoadBalancer
//
// Provides information about an Incus network load balancer.
// See Incus network load balancer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_load_balancers/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetworkLoadBalancer(ctx, &incus.LookupNetworkLoadBalancerArgs{
// ListenAddress: "127.0.0.1",
// Network: "parent",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkLoadBalancerListenAddress", this.ListenAddress)
// return nil
// })
// }
//
// ```
func LookupNetworkLoadBalancer(ctx *pulumi.Context, args *LookupNetworkLoadBalancerArgs, opts ...pulumi.InvokeOption) (*LookupNetworkLoadBalancerResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkLoadBalancerResult
err := ctx.Invoke("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetworkLoadBalancer.
type LookupNetworkLoadBalancerArgs struct {
// List of load balancer backends.
Backends []GetNetworkLoadBalancerBackend `pulumi:"backends"`
// Description of the load balancer port.
Description *string `pulumi:"description"`
// **Required** - Listen Address of the network load balancer.
ListenAddress string `pulumi:"listenAddress"`
// Location of the network load balancer.
Location *string `pulumi:"location"`
// **Required** - Name of the parent network.
Network string `pulumi:"network"`
// List of load balancer ports.
Ports []GetNetworkLoadBalancerPort `pulumi:"ports"`
// *Optional* - Name of the project where the network load balancer 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.
Remote *string `pulumi:"remote"`
}
// A collection of values returned by getNetworkLoadBalancer.
type LookupNetworkLoadBalancerResult struct {
// List of load balancer backends.
Backends []GetNetworkLoadBalancerBackend `pulumi:"backends"`
// Map of key/value pairs of config settings.
Config map[string]string `pulumi:"config"`
// Description of the load balancer port.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
ListenAddress string `pulumi:"listenAddress"`
// Location of the network load balancer.
Location string `pulumi:"location"`
Network string `pulumi:"network"`
// List of load balancer ports.
Ports []GetNetworkLoadBalancerPort `pulumi:"ports"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
}
func LookupNetworkLoadBalancerOutput(ctx *pulumi.Context, args LookupNetworkLoadBalancerOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkLoadBalancerResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkLoadBalancerResultOutput, error) {
args := v.(LookupNetworkLoadBalancerArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetworkLoadBalancer:getNetworkLoadBalancer", args, LookupNetworkLoadBalancerResultOutput{}, options).(LookupNetworkLoadBalancerResultOutput), nil
}).(LookupNetworkLoadBalancerResultOutput)
}
// A collection of arguments for invoking getNetworkLoadBalancer.
type LookupNetworkLoadBalancerOutputArgs struct {
// List of load balancer backends.
Backends GetNetworkLoadBalancerBackendArrayInput `pulumi:"backends"`
// Description of the load balancer port.
Description pulumi.StringPtrInput `pulumi:"description"`
// **Required** - Listen Address of the network load balancer.
ListenAddress pulumi.StringInput `pulumi:"listenAddress"`
// Location of the network load balancer.
Location pulumi.StringPtrInput `pulumi:"location"`
// **Required** - Name of the parent network.
Network pulumi.StringInput `pulumi:"network"`
// List of load balancer ports.
Ports GetNetworkLoadBalancerPortArrayInput `pulumi:"ports"`
// *Optional* - Name of the project where the network load balancer 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
}
func (LookupNetworkLoadBalancerOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkLoadBalancerArgs)(nil)).Elem()
}
// A collection of values returned by getNetworkLoadBalancer.
type LookupNetworkLoadBalancerResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkLoadBalancerResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkLoadBalancerResult)(nil)).Elem()
}
func (o LookupNetworkLoadBalancerResultOutput) ToLookupNetworkLoadBalancerResultOutput() LookupNetworkLoadBalancerResultOutput {
return o
}
func (o LookupNetworkLoadBalancerResultOutput) ToLookupNetworkLoadBalancerResultOutputWithContext(ctx context.Context) LookupNetworkLoadBalancerResultOutput {
return o
}
// List of load balancer backends.
func (o LookupNetworkLoadBalancerResultOutput) Backends() GetNetworkLoadBalancerBackendArrayOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) []GetNetworkLoadBalancerBackend { return v.Backends }).(GetNetworkLoadBalancerBackendArrayOutput)
}
// Map of key/value pairs of config settings.
func (o LookupNetworkLoadBalancerResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the load balancer port.
func (o LookupNetworkLoadBalancerResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkLoadBalancerResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupNetworkLoadBalancerResultOutput) ListenAddress() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.ListenAddress }).(pulumi.StringOutput)
}
// Location of the network load balancer.
func (o LookupNetworkLoadBalancerResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Location }).(pulumi.StringOutput)
}
func (o LookupNetworkLoadBalancerResultOutput) Network() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) string { return v.Network }).(pulumi.StringOutput)
}
// List of load balancer ports.
func (o LookupNetworkLoadBalancerResultOutput) Ports() GetNetworkLoadBalancerPortArrayOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) []GetNetworkLoadBalancerPort { return v.Ports }).(GetNetworkLoadBalancerPortArrayOutput)
}
func (o LookupNetworkLoadBalancerResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkLoadBalancerResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkLoadBalancerResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkLoadBalancerResultOutput{})
}

216
sdk/go/incus/getNetworkPeer.go generated Normal file
View File

@@ -0,0 +1,216 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # NetworkPeer
//
// Provides information about an Incus network peer.
// See Incus network peer [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_peers/https://linuxcontainers.org/incus/docs/main/howto/network_ovn_peers/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetworkPeer(ctx, &incus.LookupNetworkPeerArgs{
// Name: "default",
// Network: "parent",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkPeerName", this.Name)
// return nil
// })
// }
//
// ```
func LookupNetworkPeer(ctx *pulumi.Context, args *LookupNetworkPeerArgs, opts ...pulumi.InvokeOption) (*LookupNetworkPeerResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkPeerResult
err := ctx.Invoke("incus:index/getNetworkPeer:getNetworkPeer", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetworkPeer.
type LookupNetworkPeerArgs struct {
// Description of the network peer.
Description *string `pulumi:"description"`
// **Required** - Name of the network peer.
Name string `pulumi:"name"`
// **Required** - Name of the parent network.
Network string `pulumi:"network"`
// *Optional* - Name of the project where the network peer 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.
Remote *string `pulumi:"remote"`
// Status of the network peer.
Status *string `pulumi:"status"`
// Target integration for the network peer.
TargetIntegration *string `pulumi:"targetIntegration"`
// Target network for the network peer.
TargetNetwork *string `pulumi:"targetNetwork"`
// Target project for the network peer.
TargetProject *string `pulumi:"targetProject"`
// Network peer type.
Type *string `pulumi:"type"`
}
// A collection of values returned by getNetworkPeer.
type LookupNetworkPeerResult struct {
// Map of key/value pairs of config settings.
Config map[string]string `pulumi:"config"`
// Description of the network peer.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Name string `pulumi:"name"`
Network string `pulumi:"network"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
// Status of the network peer.
Status string `pulumi:"status"`
// Target integration for the network peer.
TargetIntegration string `pulumi:"targetIntegration"`
// Target network for the network peer.
TargetNetwork string `pulumi:"targetNetwork"`
// Target project for the network peer.
TargetProject string `pulumi:"targetProject"`
// Network peer type.
Type string `pulumi:"type"`
}
func LookupNetworkPeerOutput(ctx *pulumi.Context, args LookupNetworkPeerOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkPeerResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkPeerResultOutput, error) {
args := v.(LookupNetworkPeerArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetworkPeer:getNetworkPeer", args, LookupNetworkPeerResultOutput{}, options).(LookupNetworkPeerResultOutput), nil
}).(LookupNetworkPeerResultOutput)
}
// A collection of arguments for invoking getNetworkPeer.
type LookupNetworkPeerOutputArgs struct {
// Description of the network peer.
Description pulumi.StringPtrInput `pulumi:"description"`
// **Required** - Name of the network peer.
Name pulumi.StringInput `pulumi:"name"`
// **Required** - Name of the parent network.
Network pulumi.StringInput `pulumi:"network"`
// *Optional* - Name of the project where the network peer 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// Status of the network peer.
Status pulumi.StringPtrInput `pulumi:"status"`
// Target integration for the network peer.
TargetIntegration pulumi.StringPtrInput `pulumi:"targetIntegration"`
// Target network for the network peer.
TargetNetwork pulumi.StringPtrInput `pulumi:"targetNetwork"`
// Target project for the network peer.
TargetProject pulumi.StringPtrInput `pulumi:"targetProject"`
// Network peer type.
Type pulumi.StringPtrInput `pulumi:"type"`
}
func (LookupNetworkPeerOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkPeerArgs)(nil)).Elem()
}
// A collection of values returned by getNetworkPeer.
type LookupNetworkPeerResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkPeerResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkPeerResult)(nil)).Elem()
}
func (o LookupNetworkPeerResultOutput) ToLookupNetworkPeerResultOutput() LookupNetworkPeerResultOutput {
return o
}
func (o LookupNetworkPeerResultOutput) ToLookupNetworkPeerResultOutputWithContext(ctx context.Context) LookupNetworkPeerResultOutput {
return o
}
// Map of key/value pairs of config settings.
func (o LookupNetworkPeerResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the network peer.
func (o LookupNetworkPeerResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkPeerResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupNetworkPeerResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupNetworkPeerResultOutput) Network() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Network }).(pulumi.StringOutput)
}
func (o LookupNetworkPeerResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkPeerResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
// Status of the network peer.
func (o LookupNetworkPeerResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Status }).(pulumi.StringOutput)
}
// Target integration for the network peer.
func (o LookupNetworkPeerResultOutput) TargetIntegration() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.TargetIntegration }).(pulumi.StringOutput)
}
// Target network for the network peer.
func (o LookupNetworkPeerResultOutput) TargetNetwork() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.TargetNetwork }).(pulumi.StringOutput)
}
// Target project for the network peer.
func (o LookupNetworkPeerResultOutput) TargetProject() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.TargetProject }).(pulumi.StringOutput)
}
// Network peer type.
func (o LookupNetworkPeerResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkPeerResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkPeerResultOutput{})
}

151
sdk/go/incus/getNetworkZone.go generated Normal file
View File

@@ -0,0 +1,151 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # NetworkZone
//
// Provides information about an Incus network zone.
// See Incus network zone [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_zones/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupNetworkZone(ctx, &incus.LookupNetworkZoneArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("networkZoneName", this.Name)
// return nil
// })
// }
//
// ```
func LookupNetworkZone(ctx *pulumi.Context, args *LookupNetworkZoneArgs, opts ...pulumi.InvokeOption) (*LookupNetworkZoneResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupNetworkZoneResult
err := ctx.Invoke("incus:index/getNetworkZone:getNetworkZone", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getNetworkZone.
type LookupNetworkZoneArgs struct {
// Description of the network zone.
Description *string `pulumi:"description"`
// **Required** - Name of the network zone.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network zone 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.
Remote *string `pulumi:"remote"`
}
// A collection of values returned by getNetworkZone.
type LookupNetworkZoneResult struct {
// Map of key/value pairs of config settings.
Config map[string]string `pulumi:"config"`
// Description of the network zone.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Name string `pulumi:"name"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
}
func LookupNetworkZoneOutput(ctx *pulumi.Context, args LookupNetworkZoneOutputArgs, opts ...pulumi.InvokeOption) LookupNetworkZoneResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupNetworkZoneResultOutput, error) {
args := v.(LookupNetworkZoneArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getNetworkZone:getNetworkZone", args, LookupNetworkZoneResultOutput{}, options).(LookupNetworkZoneResultOutput), nil
}).(LookupNetworkZoneResultOutput)
}
// A collection of arguments for invoking getNetworkZone.
type LookupNetworkZoneOutputArgs struct {
// Description of the network zone.
Description pulumi.StringPtrInput `pulumi:"description"`
// **Required** - Name of the network zone.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - Name of the project where the network zone 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
}
func (LookupNetworkZoneOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkZoneArgs)(nil)).Elem()
}
// A collection of values returned by getNetworkZone.
type LookupNetworkZoneResultOutput struct{ *pulumi.OutputState }
func (LookupNetworkZoneResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupNetworkZoneResult)(nil)).Elem()
}
func (o LookupNetworkZoneResultOutput) ToLookupNetworkZoneResultOutput() LookupNetworkZoneResultOutput {
return o
}
func (o LookupNetworkZoneResultOutput) ToLookupNetworkZoneResultOutputWithContext(ctx context.Context) LookupNetworkZoneResultOutput {
return o
}
// Map of key/value pairs of config settings.
func (o LookupNetworkZoneResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupNetworkZoneResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the network zone.
func (o LookupNetworkZoneResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkZoneResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupNetworkZoneResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkZoneResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupNetworkZoneResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupNetworkZoneResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupNetworkZoneResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkZoneResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupNetworkZoneResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupNetworkZoneResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupNetworkZoneResultOutput{})
}

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)
}

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
@@ -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)
}

194
sdk/go/incus/getStorageBucket.go generated Normal file
View File

@@ -0,0 +1,194 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # StorageBucket
//
// Provides information about an Incus storage bucket.
// See Incus storage bucket [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_buckets/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupStorageBucket(ctx, &incus.LookupStorageBucketArgs{
// Name: "default",
// StoragePool: "parent",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("storageBucketName", this.Name)
// return nil
// })
// }
//
// ```
func LookupStorageBucket(ctx *pulumi.Context, args *LookupStorageBucketArgs, opts ...pulumi.InvokeOption) (*LookupStorageBucketResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupStorageBucketResult
err := ctx.Invoke("incus:index/getStorageBucket:getStorageBucket", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getStorageBucket.
type LookupStorageBucketArgs struct {
// Description of the storage bucket.
Description *string `pulumi:"description"`
// Location of the storage bucket.
Location *string `pulumi:"location"`
// **Required** - Name of the storage bucket.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the storage bucket 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.
Remote *string `pulumi:"remote"`
// Storage Bucket S3 URL.
S3Url *string `pulumi:"s3Url"`
// **Required** - Name of the parent storage pool.
StoragePool string `pulumi:"storagePool"`
// *Optional* - Specify a target node in a cluster.
Target *string `pulumi:"target"`
}
// A collection of values returned by getStorageBucket.
type LookupStorageBucketResult struct {
// Map of key/value pairs of config settings.
// [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
Config map[string]string `pulumi:"config"`
// Description of the storage bucket.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Location of the storage bucket.
Location string `pulumi:"location"`
Name string `pulumi:"name"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
// Storage Bucket S3 URL.
S3Url string `pulumi:"s3Url"`
StoragePool string `pulumi:"storagePool"`
Target *string `pulumi:"target"`
}
func LookupStorageBucketOutput(ctx *pulumi.Context, args LookupStorageBucketOutputArgs, opts ...pulumi.InvokeOption) LookupStorageBucketResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupStorageBucketResultOutput, error) {
args := v.(LookupStorageBucketArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getStorageBucket:getStorageBucket", args, LookupStorageBucketResultOutput{}, options).(LookupStorageBucketResultOutput), nil
}).(LookupStorageBucketResultOutput)
}
// A collection of arguments for invoking getStorageBucket.
type LookupStorageBucketOutputArgs struct {
// Description of the storage bucket.
Description pulumi.StringPtrInput `pulumi:"description"`
// Location of the storage bucket.
Location pulumi.StringPtrInput `pulumi:"location"`
// **Required** - Name of the storage bucket.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - Name of the project where the storage bucket 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// Storage Bucket S3 URL.
S3Url pulumi.StringPtrInput `pulumi:"s3Url"`
// **Required** - Name of the parent storage pool.
StoragePool pulumi.StringInput `pulumi:"storagePool"`
// *Optional* - Specify a target node in a cluster.
Target pulumi.StringPtrInput `pulumi:"target"`
}
func (LookupStorageBucketOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupStorageBucketArgs)(nil)).Elem()
}
// A collection of values returned by getStorageBucket.
type LookupStorageBucketResultOutput struct{ *pulumi.OutputState }
func (LookupStorageBucketResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupStorageBucketResult)(nil)).Elem()
}
func (o LookupStorageBucketResultOutput) ToLookupStorageBucketResultOutput() LookupStorageBucketResultOutput {
return o
}
func (o LookupStorageBucketResultOutput) ToLookupStorageBucketResultOutputWithContext(ctx context.Context) LookupStorageBucketResultOutput {
return o
}
// Map of key/value pairs of config settings.
// [storage bucket config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
func (o LookupStorageBucketResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupStorageBucketResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the storage bucket.
func (o LookupStorageBucketResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupStorageBucketResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Id }).(pulumi.StringOutput)
}
// Location of the storage bucket.
func (o LookupStorageBucketResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Location }).(pulumi.StringOutput)
}
func (o LookupStorageBucketResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupStorageBucketResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStorageBucketResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupStorageBucketResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStorageBucketResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
// Storage Bucket S3 URL.
func (o LookupStorageBucketResultOutput) S3Url() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.S3Url }).(pulumi.StringOutput)
}
func (o LookupStorageBucketResultOutput) StoragePool() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageBucketResult) string { return v.StoragePool }).(pulumi.StringOutput)
}
func (o LookupStorageBucketResultOutput) Target() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStorageBucketResult) *string { return v.Target }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupStorageBucketResultOutput{})
}

175
sdk/go/incus/getStoragePool.go generated Normal file
View File

@@ -0,0 +1,175 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # StoragePool
//
// Provides information about an Incus storage pool.
// See Incus storage pool [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_pools/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupStoragePool(ctx, &incus.LookupStoragePoolArgs{
// Name: "default",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("storagePoolName", this.Name)
// return nil
// })
// }
//
// ```
func LookupStoragePool(ctx *pulumi.Context, args *LookupStoragePoolArgs, opts ...pulumi.InvokeOption) (*LookupStoragePoolResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupStoragePoolResult
err := ctx.Invoke("incus:index/getStoragePool:getStoragePool", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getStoragePool.
type LookupStoragePoolArgs struct {
// Description of the storage pool.
Description *string `pulumi:"description"`
// Storage Pool driver.
Driver *string `pulumi:"driver"`
// **Required** - Name of the storage pool.
Name string `pulumi:"name"`
// *Optional* - The remote in which the resource was created. If
// not provided, the provider's default remote will be used.
Remote *string `pulumi:"remote"`
// Status of the storage pool.
Status *string `pulumi:"status"`
// *Optional* - Specify a target node in a cluster.
Target *string `pulumi:"target"`
}
// A collection of values returned by getStoragePool.
type LookupStoragePoolResult struct {
// Map of key/value pairs of config settings.
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
Config map[string]string `pulumi:"config"`
// Description of the storage pool.
Description string `pulumi:"description"`
// Storage Pool driver.
Driver string `pulumi:"driver"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Name string `pulumi:"name"`
Remote *string `pulumi:"remote"`
// Status of the storage pool.
Status string `pulumi:"status"`
Target *string `pulumi:"target"`
}
func LookupStoragePoolOutput(ctx *pulumi.Context, args LookupStoragePoolOutputArgs, opts ...pulumi.InvokeOption) LookupStoragePoolResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupStoragePoolResultOutput, error) {
args := v.(LookupStoragePoolArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getStoragePool:getStoragePool", args, LookupStoragePoolResultOutput{}, options).(LookupStoragePoolResultOutput), nil
}).(LookupStoragePoolResultOutput)
}
// A collection of arguments for invoking getStoragePool.
type LookupStoragePoolOutputArgs struct {
// Description of the storage pool.
Description pulumi.StringPtrInput `pulumi:"description"`
// Storage Pool driver.
Driver pulumi.StringPtrInput `pulumi:"driver"`
// **Required** - Name of the storage pool.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - The remote in which the resource was created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// Status of the storage pool.
Status pulumi.StringPtrInput `pulumi:"status"`
// *Optional* - Specify a target node in a cluster.
Target pulumi.StringPtrInput `pulumi:"target"`
}
func (LookupStoragePoolOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupStoragePoolArgs)(nil)).Elem()
}
// A collection of values returned by getStoragePool.
type LookupStoragePoolResultOutput struct{ *pulumi.OutputState }
func (LookupStoragePoolResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupStoragePoolResult)(nil)).Elem()
}
func (o LookupStoragePoolResultOutput) ToLookupStoragePoolResultOutput() LookupStoragePoolResultOutput {
return o
}
func (o LookupStoragePoolResultOutput) ToLookupStoragePoolResultOutputWithContext(ctx context.Context) LookupStoragePoolResultOutput {
return o
}
// Map of key/value pairs of config settings.
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
func (o LookupStoragePoolResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupStoragePoolResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Description of the storage pool.
func (o LookupStoragePoolResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Description }).(pulumi.StringOutput)
}
// Storage Pool driver.
func (o LookupStoragePoolResultOutput) Driver() pulumi.StringOutput {
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Driver }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupStoragePoolResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupStoragePoolResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupStoragePoolResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStoragePoolResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
// Status of the storage pool.
func (o LookupStoragePoolResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupStoragePoolResult) string { return v.Status }).(pulumi.StringOutput)
}
func (o LookupStoragePoolResultOutput) Target() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStoragePoolResult) *string { return v.Target }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupStoragePoolResultOutput{})
}

204
sdk/go/incus/getStorageVolume.go generated Normal file
View File

@@ -0,0 +1,204 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # StorageVolume
//
// Provides information about an Incus storage volume.
// See Incus storage volume [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/storage_volumes/) for more details.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.LookupStorageVolume(ctx, &incus.LookupStorageVolumeArgs{
// Name: "default",
// Type: "custom",
// StoragePool: "parent",
// }, nil)
// if err != nil {
// return err
// }
// ctx.Export("storageVolumeName", this.Name)
// return nil
// })
// }
//
// ```
func LookupStorageVolume(ctx *pulumi.Context, args *LookupStorageVolumeArgs, opts ...pulumi.InvokeOption) (*LookupStorageVolumeResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupStorageVolumeResult
err := ctx.Invoke("incus:index/getStorageVolume:getStorageVolume", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getStorageVolume.
type LookupStorageVolumeArgs struct {
// Storage Volume content type.
ContentType *string `pulumi:"contentType"`
// Description of the storage volume.
Description *string `pulumi:"description"`
// Location of the storage volume.
Location *string `pulumi:"location"`
// **Required** - Name of the storage volume.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the storage volume 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.
Remote *string `pulumi:"remote"`
// **Required** - Name of the parent storage pool.
StoragePool string `pulumi:"storagePool"`
// *Optional* - Specify a target node in a cluster.
Target *string `pulumi:"target"`
// **Required** - Storage Volume type.
Type string `pulumi:"type"`
}
// A collection of values returned by getStorageVolume.
type LookupStorageVolumeResult struct {
// Map of key/value pairs of config settings.
// [storage volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
Config map[string]string `pulumi:"config"`
// Storage Volume content type.
ContentType string `pulumi:"contentType"`
// Description of the storage volume.
Description string `pulumi:"description"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Location of the storage volume.
Location string `pulumi:"location"`
Name string `pulumi:"name"`
Project *string `pulumi:"project"`
Remote *string `pulumi:"remote"`
StoragePool string `pulumi:"storagePool"`
Target *string `pulumi:"target"`
Type string `pulumi:"type"`
}
func LookupStorageVolumeOutput(ctx *pulumi.Context, args LookupStorageVolumeOutputArgs, opts ...pulumi.InvokeOption) LookupStorageVolumeResultOutput {
return pulumi.ToOutputWithContext(ctx.Context(), args).
ApplyT(func(v interface{}) (LookupStorageVolumeResultOutput, error) {
args := v.(LookupStorageVolumeArgs)
options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)}
return ctx.InvokeOutput("incus:index/getStorageVolume:getStorageVolume", args, LookupStorageVolumeResultOutput{}, options).(LookupStorageVolumeResultOutput), nil
}).(LookupStorageVolumeResultOutput)
}
// A collection of arguments for invoking getStorageVolume.
type LookupStorageVolumeOutputArgs struct {
// Storage Volume content type.
ContentType pulumi.StringPtrInput `pulumi:"contentType"`
// Description of the storage volume.
Description pulumi.StringPtrInput `pulumi:"description"`
// Location of the storage volume.
Location pulumi.StringPtrInput `pulumi:"location"`
// **Required** - Name of the storage volume.
Name pulumi.StringInput `pulumi:"name"`
// *Optional* - Name of the project where the storage volume 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.
Remote pulumi.StringPtrInput `pulumi:"remote"`
// **Required** - Name of the parent storage pool.
StoragePool pulumi.StringInput `pulumi:"storagePool"`
// *Optional* - Specify a target node in a cluster.
Target pulumi.StringPtrInput `pulumi:"target"`
// **Required** - Storage Volume type.
Type pulumi.StringInput `pulumi:"type"`
}
func (LookupStorageVolumeOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupStorageVolumeArgs)(nil)).Elem()
}
// A collection of values returned by getStorageVolume.
type LookupStorageVolumeResultOutput struct{ *pulumi.OutputState }
func (LookupStorageVolumeResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupStorageVolumeResult)(nil)).Elem()
}
func (o LookupStorageVolumeResultOutput) ToLookupStorageVolumeResultOutput() LookupStorageVolumeResultOutput {
return o
}
func (o LookupStorageVolumeResultOutput) ToLookupStorageVolumeResultOutputWithContext(ctx context.Context) LookupStorageVolumeResultOutput {
return o
}
// Map of key/value pairs of config settings.
// [storage volume config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/)
func (o LookupStorageVolumeResultOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) map[string]string { return v.Config }).(pulumi.StringMapOutput)
}
// Storage Volume content type.
func (o LookupStorageVolumeResultOutput) ContentType() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.ContentType }).(pulumi.StringOutput)
}
// Description of the storage volume.
func (o LookupStorageVolumeResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Description }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupStorageVolumeResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Id }).(pulumi.StringOutput)
}
// Location of the storage volume.
func (o LookupStorageVolumeResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Location }).(pulumi.StringOutput)
}
func (o LookupStorageVolumeResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LookupStorageVolumeResultOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) *string { return v.Project }).(pulumi.StringPtrOutput)
}
func (o LookupStorageVolumeResultOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) *string { return v.Remote }).(pulumi.StringPtrOutput)
}
func (o LookupStorageVolumeResultOutput) StoragePool() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.StoragePool }).(pulumi.StringOutput)
}
func (o LookupStorageVolumeResultOutput) Target() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) *string { return v.Target }).(pulumi.StringPtrOutput)
}
func (o LookupStorageVolumeResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LookupStorageVolumeResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupStorageVolumeResultOutput{})
}

73
sdk/go/incus/image.go generated
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
@@ -52,15 +52,53 @@ import (
//
// ```
//
// ## Image alias Example
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := incus.NewImage(ctx, "alpine", &incus.ImageArgs{
// SourceImage: &incus.ImageSourceImageArgs{
// Remote: pulumi.String("images"),
// Name: pulumi.String("alpine/edge"),
// },
// Aliases: incus.ImageAliasArray{
// &incus.ImageAliasArgs{
// Name: pulumi.String("alpine"),
// Description: pulumi.String("Alpine Linux"),
// },
// &incus.ImageAliasArgs{
// Name: pulumi.String("alpine-edge"),
// Description: pulumi.String("Alpine Linux Edge"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Notes
//
// * See the Incus [documentation](https://linuxcontainers.org/incus/docs/main/howto/images_remote) for more info on default image remotes.
type Image struct {
pulumi.CustomResourceState
// *Optional* - A list of aliases to assign to the image after
// pulling.
Aliases pulumi.StringArrayOutput `pulumi:"aliases"`
// Image alias
Aliases ImageAliasArrayOutput `pulumi:"aliases"`
// The list of aliases that were copied from the
// `sourceImage`.
CopiedAliases pulumi.StringArrayOutput `pulumi:"copiedAliases"`
@@ -112,9 +150,8 @@ func GetImage(ctx *pulumi.Context,
// Input properties used for looking up and filtering Image resources.
type imageState struct {
// *Optional* - A list of aliases to assign to the image after
// pulling.
Aliases []string `pulumi:"aliases"`
// Image alias
Aliases []ImageAlias `pulumi:"aliases"`
// The list of aliases that were copied from the
// `sourceImage`.
CopiedAliases []string `pulumi:"copiedAliases"`
@@ -137,9 +174,8 @@ type imageState struct {
}
type ImageState struct {
// *Optional* - A list of aliases to assign to the image after
// pulling.
Aliases pulumi.StringArrayInput
// Image alias
Aliases ImageAliasArrayInput
// The list of aliases that were copied from the
// `sourceImage`.
CopiedAliases pulumi.StringArrayInput
@@ -166,9 +202,8 @@ func (ImageState) ElementType() reflect.Type {
}
type imageArgs struct {
// *Optional* - A list of aliases to assign to the image after
// pulling.
Aliases []string `pulumi:"aliases"`
// Image alias
Aliases []ImageAlias `pulumi:"aliases"`
// *Optional* - Name of the project where the image will be stored.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -184,9 +219,8 @@ type imageArgs struct {
// The set of arguments for constructing a Image resource.
type ImageArgs struct {
// *Optional* - A list of aliases to assign to the image after
// pulling.
Aliases pulumi.StringArrayInput
// Image alias
Aliases ImageAliasArrayInput
// *Optional* - Name of the project where the image will be stored.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
@@ -287,10 +321,9 @@ func (o ImageOutput) ToImageOutputWithContext(ctx context.Context) ImageOutput {
return o
}
// *Optional* - A list of aliases to assign to the image after
// pulling.
func (o ImageOutput) Aliases() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Image) pulumi.StringArrayOutput { return v.Aliases }).(pulumi.StringArrayOutput)
// Image alias
func (o ImageOutput) Aliases() ImageAliasArrayOutput {
return o.ApplyT(func(v *Image) ImageAliasArrayOutput { return v.Aliases }).(ImageAliasArrayOutput)
}
// The list of aliases that were copied from the

22
sdk/go/incus/init.go generated
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
@@ -25,8 +25,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
r = &Certificate{}
case "incus:index/clusterGroup:ClusterGroup":
r = &ClusterGroup{}
case "incus:index/clusterGroupAssignment:ClusterGroupAssignment":
r = &ClusterGroupAssignment{}
case "incus:index/clusterGroupMember:ClusterGroupMember":
r = &ClusterGroupMember{}
case "incus:index/image:Image":
r = &Image{}
case "incus:index/instance:Instance":
@@ -37,6 +37,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
r = &Network{}
case "incus:index/networkAcl:NetworkAcl":
r = &NetworkAcl{}
case "incus:index/networkAddressSet:NetworkAddressSet":
r = &NetworkAddressSet{}
case "incus:index/networkForward:NetworkForward":
r = &NetworkForward{}
case "incus:index/networkIntegration:NetworkIntegration":
@@ -53,6 +55,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi
r = &Profile{}
case "incus:index/project:Project":
r = &Project{}
case "incus:index/server:Server":
r = &Server{}
case "incus:index/storageBucket:StorageBucket":
r = &StorageBucket{}
case "incus:index/storageBucketKey:StorageBucketKey":
@@ -104,7 +108,7 @@ func init() {
)
pulumi.RegisterResourceModule(
"incus",
"index/clusterGroupAssignment",
"index/clusterGroupMember",
&module{version},
)
pulumi.RegisterResourceModule(
@@ -132,6 +136,11 @@ func init() {
"index/networkAcl",
&module{version},
)
pulumi.RegisterResourceModule(
"incus",
"index/networkAddressSet",
&module{version},
)
pulumi.RegisterResourceModule(
"incus",
"index/networkForward",
@@ -172,6 +181,11 @@ func init() {
"index/project",
&module{version},
)
pulumi.RegisterResourceModule(
"incus",
"index/server",
&module{version},
)
pulumi.RegisterResourceModule(
"incus",
"index/storageBucket",

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"
)
@@ -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 {

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -82,6 +81,9 @@ func NewInstanceSnapshot(ctx *pulumi.Context,
if args.Instance == nil {
return nil, errors.New("invalid value for required argument 'Instance'")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
if args.Project == nil {
args.Project = pulumi.StringPtr("default")
}
@@ -153,7 +155,7 @@ type instanceSnapshotArgs struct {
// **Required** - The name of the instance to snapshot.
Instance string `pulumi:"instance"`
// **Required** - Name of the snapshot.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - Name of the project where the snapshot will be stored.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -170,7 +172,7 @@ type InstanceSnapshotArgs struct {
// **Required** - The name of the instance to snapshot.
Instance pulumi.StringInput
// **Required** - Name of the snapshot.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - Name of the project where the snapshot will be stored.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If

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 internal

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 internal

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"
)
@@ -17,7 +18,7 @@ type Network struct {
// *Optional* - Map of key/value pairs of
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
Config pulumi.StringMapOutput `pulumi:"config"`
// *Optional* - Description of the network.
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description pulumi.StringOutput `pulumi:"description"`
// Whether or not the network is managed.
Managed pulumi.BoolOutput `pulumi:"managed"`
@@ -41,9 +42,12 @@ type Network struct {
func NewNetwork(ctx *pulumi.Context,
name string, args *NetworkArgs, opts ...pulumi.ResourceOption) (*Network, error) {
if args == nil {
args = &NetworkArgs{}
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")
}
@@ -73,7 +77,7 @@ type networkState struct {
// *Optional* - Map of key/value pairs of
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the network.
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description *string `pulumi:"description"`
// Whether or not the network is managed.
Managed *bool `pulumi:"managed"`
@@ -97,7 +101,7 @@ type NetworkState struct {
// *Optional* - Map of key/value pairs of
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
Config pulumi.StringMapInput
// *Optional* - Description of the network.
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description pulumi.StringPtrInput
// Whether or not the network is managed.
Managed pulumi.BoolPtrInput
@@ -125,11 +129,11 @@ type networkArgs struct {
// *Optional* - Map of key/value pairs of
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the network.
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description *string `pulumi:"description"`
// **Required** - Name of the network. This is usually the device the
// network will appear as to instances.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network will be created.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -148,11 +152,11 @@ type NetworkArgs struct {
// *Optional* - Map of key/value pairs of
// [network config settings](https://linuxcontainers.org/incus/docs/main/networks/).
Config pulumi.StringMapInput
// *Optional* - Description of the network.
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description pulumi.StringPtrInput
// **Required** - Name of the network. This is usually the device the
// network will appear as to instances.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - Name of the project where the network will be created.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
@@ -259,7 +263,7 @@ func (o NetworkOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v *Network) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
}
// *Optional* - Description of the network.
// *Optional* - Description of the network. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
func (o NetworkOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *Network) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}

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"
)
@@ -38,9 +39,12 @@ type NetworkAcl struct {
func NewNetworkAcl(ctx *pulumi.Context,
name string, args *NetworkAclArgs, opts ...pulumi.ResourceOption) (*NetworkAcl, error) {
if args == nil {
args = &NetworkAclArgs{}
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")
}
@@ -125,7 +129,7 @@ type networkAclArgs struct {
// The network ACL rule supports:
Ingresses []NetworkAclIngress `pulumi:"ingresses"`
// **Required** - Name of the network ACL.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network ACL will be created.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -147,7 +151,7 @@ type NetworkAclArgs struct {
// The network ACL rule supports:
Ingresses NetworkAclIngressArrayInput
// **Required** - Name of the network ACL.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - Name of the project where the network ACL will be created.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If

387
sdk/go/incus/networkAddressSet.go generated Normal file
View File

@@ -0,0 +1,387 @@
// 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
import (
"context"
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # NetworkAddressSet
//
// Network address sets are a list of either IPv4, IPv6 addresses with or without CIDR suffix. They can be used in source or destination fields of [ACLs](https://linuxcontainers.org/incus/docs/main/howto/network_acls/#network-acls-rules-properties).
//
// ## Basic Example
//
// ```go
// package main
//
// import (
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := incus.NewNetworkAddressSet(ctx, "this", &incus.NetworkAddressSetArgs{
// Name: pulumi.String("Network Address Set"),
// Description: pulumi.String("Network Address Set description"),
// Addresses: pulumi.StringArray{
// pulumi.String("10.0.0.2"),
// pulumi.String("10.0.0.3"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## ACL Example
//
// ```go
// package main
//
// import (
//
// "fmt"
//
// "git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// this, err := incus.NewNetworkAddressSet(ctx, "this", &incus.NetworkAddressSetArgs{
// Name: pulumi.String("network_address_set"),
// Description: pulumi.String("Network Address Set description"),
// Addresses: pulumi.StringArray{
// pulumi.String("10.0.0.2"),
// pulumi.String("10.0.0.3"),
// },
// })
// if err != nil {
// return err
// }
// _, err = incus.NewNetworkAcl(ctx, "this", &incus.NetworkAclArgs{
// Name: pulumi.String("network_acl"),
// Ingresses: incus.NetworkAclIngressArray{
// &incus.NetworkAclIngressArgs{
// Action: pulumi.String("allow"),
// Source: pulumi.String("${incus_network_address_set.this.name}"),
// Destination_port: "22",
// Protocol: pulumi.String("tcp"),
// Description: this.Name.ApplyT(func(name string) (string, error) {
// return fmt.Sprintf("Incoming SSH connections from %v", name), nil
// }).(pulumi.StringOutput),
// State: pulumi.String("logged"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
type NetworkAddressSet struct {
pulumi.CustomResourceState
// **Required** - IP addresses of the address set.
Addresses pulumi.StringArrayOutput `pulumi:"addresses"`
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
Config pulumi.StringMapOutput `pulumi:"config"`
// *Optional* - Description of the network address set.
Description pulumi.StringOutput `pulumi:"description"`
// **Required** - Name of the network address set.
Name pulumi.StringOutput `pulumi:"name"`
// *Optional* - Name of the project where the network address set will be created.
Project pulumi.StringPtrOutput `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrOutput `pulumi:"remote"`
}
// NewNetworkAddressSet registers a new resource with the given unique name, arguments, and options.
func NewNetworkAddressSet(ctx *pulumi.Context,
name string, args *NetworkAddressSetArgs, opts ...pulumi.ResourceOption) (*NetworkAddressSet, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Addresses == nil {
return nil, errors.New("invalid value for required argument 'Addresses'")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource NetworkAddressSet
err := ctx.RegisterResource("incus:index/networkAddressSet:NetworkAddressSet", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetNetworkAddressSet gets an existing NetworkAddressSet resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetNetworkAddressSet(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *NetworkAddressSetState, opts ...pulumi.ResourceOption) (*NetworkAddressSet, error) {
var resource NetworkAddressSet
err := ctx.ReadResource("incus:index/networkAddressSet:NetworkAddressSet", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering NetworkAddressSet resources.
type networkAddressSetState struct {
// **Required** - IP addresses of the address set.
Addresses []string `pulumi:"addresses"`
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the network address set.
Description *string `pulumi:"description"`
// **Required** - Name of the network address set.
Name *string `pulumi:"name"`
// *Optional* - Name of the project where the network address set will be created.
Project *string `pulumi:"project"`
// *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"`
}
type NetworkAddressSetState struct {
// **Required** - IP addresses of the address set.
Addresses pulumi.StringArrayInput
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
Config pulumi.StringMapInput
// *Optional* - Description of the network address set.
Description pulumi.StringPtrInput
// **Required** - Name of the network address set.
Name pulumi.StringPtrInput
// *Optional* - Name of the project where the network address set will be created.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput
}
func (NetworkAddressSetState) ElementType() reflect.Type {
return reflect.TypeOf((*networkAddressSetState)(nil)).Elem()
}
type networkAddressSetArgs struct {
// **Required** - IP addresses of the address set.
Addresses []string `pulumi:"addresses"`
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the network address set.
Description *string `pulumi:"description"`
// **Required** - Name of the network address set.
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network address set will be created.
Project *string `pulumi:"project"`
// *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"`
}
// The set of arguments for constructing a NetworkAddressSet resource.
type NetworkAddressSetArgs struct {
// **Required** - IP addresses of the address set.
Addresses pulumi.StringArrayInput
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
Config pulumi.StringMapInput
// *Optional* - Description of the network address set.
Description pulumi.StringPtrInput
// **Required** - Name of the network address set.
Name pulumi.StringInput
// *Optional* - Name of the project where the network address set will be created.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput
}
func (NetworkAddressSetArgs) ElementType() reflect.Type {
return reflect.TypeOf((*networkAddressSetArgs)(nil)).Elem()
}
type NetworkAddressSetInput interface {
pulumi.Input
ToNetworkAddressSetOutput() NetworkAddressSetOutput
ToNetworkAddressSetOutputWithContext(ctx context.Context) NetworkAddressSetOutput
}
func (*NetworkAddressSet) ElementType() reflect.Type {
return reflect.TypeOf((**NetworkAddressSet)(nil)).Elem()
}
func (i *NetworkAddressSet) ToNetworkAddressSetOutput() NetworkAddressSetOutput {
return i.ToNetworkAddressSetOutputWithContext(context.Background())
}
func (i *NetworkAddressSet) ToNetworkAddressSetOutputWithContext(ctx context.Context) NetworkAddressSetOutput {
return pulumi.ToOutputWithContext(ctx, i).(NetworkAddressSetOutput)
}
// NetworkAddressSetArrayInput is an input type that accepts NetworkAddressSetArray and NetworkAddressSetArrayOutput values.
// You can construct a concrete instance of `NetworkAddressSetArrayInput` via:
//
// NetworkAddressSetArray{ NetworkAddressSetArgs{...} }
type NetworkAddressSetArrayInput interface {
pulumi.Input
ToNetworkAddressSetArrayOutput() NetworkAddressSetArrayOutput
ToNetworkAddressSetArrayOutputWithContext(context.Context) NetworkAddressSetArrayOutput
}
type NetworkAddressSetArray []NetworkAddressSetInput
func (NetworkAddressSetArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*NetworkAddressSet)(nil)).Elem()
}
func (i NetworkAddressSetArray) ToNetworkAddressSetArrayOutput() NetworkAddressSetArrayOutput {
return i.ToNetworkAddressSetArrayOutputWithContext(context.Background())
}
func (i NetworkAddressSetArray) ToNetworkAddressSetArrayOutputWithContext(ctx context.Context) NetworkAddressSetArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(NetworkAddressSetArrayOutput)
}
// NetworkAddressSetMapInput is an input type that accepts NetworkAddressSetMap and NetworkAddressSetMapOutput values.
// You can construct a concrete instance of `NetworkAddressSetMapInput` via:
//
// NetworkAddressSetMap{ "key": NetworkAddressSetArgs{...} }
type NetworkAddressSetMapInput interface {
pulumi.Input
ToNetworkAddressSetMapOutput() NetworkAddressSetMapOutput
ToNetworkAddressSetMapOutputWithContext(context.Context) NetworkAddressSetMapOutput
}
type NetworkAddressSetMap map[string]NetworkAddressSetInput
func (NetworkAddressSetMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*NetworkAddressSet)(nil)).Elem()
}
func (i NetworkAddressSetMap) ToNetworkAddressSetMapOutput() NetworkAddressSetMapOutput {
return i.ToNetworkAddressSetMapOutputWithContext(context.Background())
}
func (i NetworkAddressSetMap) ToNetworkAddressSetMapOutputWithContext(ctx context.Context) NetworkAddressSetMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(NetworkAddressSetMapOutput)
}
type NetworkAddressSetOutput struct{ *pulumi.OutputState }
func (NetworkAddressSetOutput) ElementType() reflect.Type {
return reflect.TypeOf((**NetworkAddressSet)(nil)).Elem()
}
func (o NetworkAddressSetOutput) ToNetworkAddressSetOutput() NetworkAddressSetOutput {
return o
}
func (o NetworkAddressSetOutput) ToNetworkAddressSetOutputWithContext(ctx context.Context) NetworkAddressSetOutput {
return o
}
// **Required** - IP addresses of the address set.
func (o NetworkAddressSetOutput) Addresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringArrayOutput { return v.Addresses }).(pulumi.StringArrayOutput)
}
// *Optional* - Map of key/value pairs of [network address set config settings](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/#address-set-configuration-options)
func (o NetworkAddressSetOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
}
// *Optional* - Description of the network address set.
func (o NetworkAddressSetOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// **Required** - Name of the network address set.
func (o NetworkAddressSetOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// *Optional* - Name of the project where the network address set will be created.
func (o NetworkAddressSetOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringPtrOutput { return v.Project }).(pulumi.StringPtrOutput)
}
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
func (o NetworkAddressSetOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *NetworkAddressSet) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
}
type NetworkAddressSetArrayOutput struct{ *pulumi.OutputState }
func (NetworkAddressSetArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*NetworkAddressSet)(nil)).Elem()
}
func (o NetworkAddressSetArrayOutput) ToNetworkAddressSetArrayOutput() NetworkAddressSetArrayOutput {
return o
}
func (o NetworkAddressSetArrayOutput) ToNetworkAddressSetArrayOutputWithContext(ctx context.Context) NetworkAddressSetArrayOutput {
return o
}
func (o NetworkAddressSetArrayOutput) Index(i pulumi.IntInput) NetworkAddressSetOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *NetworkAddressSet {
return vs[0].([]*NetworkAddressSet)[vs[1].(int)]
}).(NetworkAddressSetOutput)
}
type NetworkAddressSetMapOutput struct{ *pulumi.OutputState }
func (NetworkAddressSetMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*NetworkAddressSet)(nil)).Elem()
}
func (o NetworkAddressSetMapOutput) ToNetworkAddressSetMapOutput() NetworkAddressSetMapOutput {
return o
}
func (o NetworkAddressSetMapOutput) ToNetworkAddressSetMapOutputWithContext(ctx context.Context) NetworkAddressSetMapOutput {
return o
}
func (o NetworkAddressSetMapOutput) MapIndex(k pulumi.StringInput) NetworkAddressSetOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *NetworkAddressSet {
return vs[0].(map[string]*NetworkAddressSet)[vs[1].(string)]
}).(NetworkAddressSetOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*NetworkAddressSetInput)(nil)).Elem(), &NetworkAddressSet{})
pulumi.RegisterInputType(reflect.TypeOf((*NetworkAddressSetArrayInput)(nil)).Elem(), NetworkAddressSetArray{})
pulumi.RegisterInputType(reflect.TypeOf((*NetworkAddressSetMapInput)(nil)).Elem(), NetworkAddressSetMap{})
pulumi.RegisterOutputType(NetworkAddressSetOutput{})
pulumi.RegisterOutputType(NetworkAddressSetArrayOutput{})
pulumi.RegisterOutputType(NetworkAddressSetMapOutput{})
}

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -123,6 +122,9 @@ func NewNetworkIntegration(ctx *pulumi.Context,
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.Type == nil {
return nil, errors.New("invalid value for required argument 'Type'")
}
@@ -193,7 +195,7 @@ type networkIntegrationArgs struct {
// *Optional* - Description of the network integration.
Description *string `pulumi:"description"`
// **Required** - Name of the network integration.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network will be created.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -210,7 +212,7 @@ type NetworkIntegrationArgs struct {
// *Optional* - Description of the network integration.
Description pulumi.StringPtrInput
// **Required** - Name of the network integration.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - Name of the project where the network will be created.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

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"
)
@@ -109,9 +110,12 @@ type NetworkPeer struct {
func NewNetworkPeer(ctx *pulumi.Context,
name string, args *NetworkPeerArgs, opts ...pulumi.ResourceOption) (*NetworkPeer, error) {
if args == nil {
args = &NetworkPeerArgs{}
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")
}
@@ -195,7 +199,7 @@ type networkPeerArgs struct {
// *Optional* - Description of the network peering
Description *string `pulumi:"description"`
// **required** - Name of the network peering on the local network
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// **Required** - Name of the local network.
Network *string `pulumi:"network"`
// *Optional* - Name of the project where the network is located.
@@ -219,7 +223,7 @@ type NetworkPeerArgs struct {
// *Optional* - Description of the network peering
Description pulumi.StringPtrInput
// **required** - Name of the network peering on the local network
Name pulumi.StringPtrInput
Name pulumi.StringInput
// **Required** - Name of the local network.
Network pulumi.StringPtrInput
// *Optional* - Name of the project where the network is located.

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"
)
@@ -32,9 +33,12 @@ type NetworkZone struct {
func NewNetworkZone(ctx *pulumi.Context,
name string, args *NetworkZoneArgs, opts ...pulumi.ResourceOption) (*NetworkZone, error) {
if args == nil {
args = &NetworkZoneArgs{}
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")
}
@@ -101,7 +105,7 @@ type networkZoneArgs struct {
// *Optional* - Description of the network zone.
Description *string `pulumi:"description"`
// **Required** - Name of the network zone.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network zone will be created.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -117,7 +121,7 @@ type NetworkZoneArgs struct {
// *Optional* - Description of the network zone.
Description pulumi.StringPtrInput
// **Required** - Name of the network zone.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - Name of the project where the network zone will be created.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -41,6 +40,9 @@ func NewNetworkZoneRecord(ctx *pulumi.Context,
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.Zone == nil {
return nil, errors.New("invalid value for required argument 'Zone'")
}
@@ -120,7 +122,7 @@ type networkZoneRecordArgs struct {
// *Optional* - Entry in network zone record - see below.
Entries []NetworkZoneRecordEntry `pulumi:"entries"`
// **Required** - Name of the network zone record.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - Name of the project where the network zone record will be created.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -140,7 +142,7 @@ type NetworkZoneRecordArgs struct {
// *Optional* - Entry in network zone record - see below.
Entries NetworkZoneRecordEntryArrayInput
// **Required** - Name of the network zone record.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - Name of the project where the network zone record will be created.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If

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"
)
@@ -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

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)

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
@@ -20,8 +20,9 @@ type Provider struct {
// The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
ConfigDir pulumi.StringPtrOutput `pulumi:"configDir"`
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
// default)
// The default remote to use when no other remote is defined in a resource.
DefaultRemote pulumi.StringPtrOutput `pulumi:"defaultRemote"`
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
Project pulumi.StringPtrOutput `pulumi:"project"`
}
@@ -46,10 +47,11 @@ type providerArgs struct {
AcceptRemoteCertificate *bool `pulumi:"acceptRemoteCertificate"`
// The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
ConfigDir *string `pulumi:"configDir"`
// The default remote to use when no other remote is defined in a resource.
DefaultRemote *string `pulumi:"defaultRemote"`
// Automatically generate the Incus client certificates if they don't exist.
GenerateClientCertificates *bool `pulumi:"generateClientCertificates"`
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
// default)
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
Project *string `pulumi:"project"`
// Incus Remote
Remotes []ProviderRemote `pulumi:"remotes"`
@@ -61,10 +63,11 @@ type ProviderArgs struct {
AcceptRemoteCertificate pulumi.BoolPtrInput
// The directory to look for existing Incus configuration. (default = $HOME/.config/incus)
ConfigDir pulumi.StringPtrInput
// The default remote to use when no other remote is defined in a resource.
DefaultRemote pulumi.StringPtrInput
// Automatically generate the Incus client certificates if they don't exist.
GenerateClientCertificates pulumi.BoolPtrInput
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
// default)
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
Project pulumi.StringPtrInput
// Incus Remote
Remotes ProviderRemoteArrayInput
@@ -74,6 +77,29 @@ func (ProviderArgs) ElementType() reflect.Type {
return reflect.TypeOf((*providerArgs)(nil)).Elem()
}
// This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
func (r *Provider) TerraformConfig(ctx *pulumi.Context) (ProviderTerraformConfigResultOutput, error) {
out, err := ctx.Call("pulumi:providers:incus/terraformConfig", nil, ProviderTerraformConfigResultOutput{}, r)
if err != nil {
return ProviderTerraformConfigResultOutput{}, err
}
return out.(ProviderTerraformConfigResultOutput), nil
}
type ProviderTerraformConfigResult struct {
Result map[string]interface{} `pulumi:"result"`
}
type ProviderTerraformConfigResultOutput struct{ *pulumi.OutputState }
func (ProviderTerraformConfigResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ProviderTerraformConfigResult)(nil)).Elem()
}
func (o ProviderTerraformConfigResultOutput) Result() pulumi.MapOutput {
return o.ApplyT(func(v ProviderTerraformConfigResult) map[string]interface{} { return v.Result }).(pulumi.MapOutput)
}
type ProviderInput interface {
pulumi.Input
@@ -112,8 +138,12 @@ func (o ProviderOutput) ConfigDir() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.ConfigDir }).(pulumi.StringPtrOutput)
}
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default =
// default)
// The default remote to use when no other remote is defined in a resource.
func (o ProviderOutput) DefaultRemote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.DefaultRemote }).(pulumi.StringPtrOutput)
}
// The project where project-scoped resources will be created. Can be overridden in individual resources. (default = default)
func (o ProviderOutput) Project() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Project }).(pulumi.StringPtrOutput)
}
@@ -121,4 +151,5 @@ func (o ProviderOutput) Project() pulumi.StringPtrOutput {
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{})
pulumi.RegisterOutputType(ProviderOutput{})
pulumi.RegisterOutputType(ProviderTerraformConfigResultOutput{})
}

File diff suppressed because it is too large Load Diff

268
sdk/go/incus/server.go generated Normal file
View File

@@ -0,0 +1,268 @@
// 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
import (
"context"
"reflect"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type Server struct {
pulumi.CustomResourceState
// *Optional* - Map of key/value pairs of
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
Config pulumi.StringMapOutput `pulumi:"config"`
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrOutput `pulumi:"remote"`
// *Optional* - Specify a target node in a cluster where the config
// options should be applied. This is in particular important for config options
// with `local` scope.
Target pulumi.StringPtrOutput `pulumi:"target"`
}
// NewServer registers a new resource with the given unique name, arguments, and options.
func NewServer(ctx *pulumi.Context,
name string, args *ServerArgs, opts ...pulumi.ResourceOption) (*Server, error) {
if args == nil {
args = &ServerArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource Server
err := ctx.RegisterResource("incus:index/server:Server", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetServer gets an existing Server resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetServer(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ServerState, opts ...pulumi.ResourceOption) (*Server, error) {
var resource Server
err := ctx.ReadResource("incus:index/server:Server", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Server resources.
type serverState struct {
// *Optional* - Map of key/value pairs of
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
Config map[string]string `pulumi:"config"`
// *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"`
// *Optional* - Specify a target node in a cluster where the config
// options should be applied. This is in particular important for config options
// with `local` scope.
Target *string `pulumi:"target"`
}
type ServerState struct {
// *Optional* - Map of key/value pairs of
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
Config pulumi.StringMapInput
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput
// *Optional* - Specify a target node in a cluster where the config
// options should be applied. This is in particular important for config options
// with `local` scope.
Target pulumi.StringPtrInput
}
func (ServerState) ElementType() reflect.Type {
return reflect.TypeOf((*serverState)(nil)).Elem()
}
type serverArgs struct {
// *Optional* - Map of key/value pairs of
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
Config map[string]string `pulumi:"config"`
// *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"`
// *Optional* - Specify a target node in a cluster where the config
// options should be applied. This is in particular important for config options
// with `local` scope.
Target *string `pulumi:"target"`
}
// The set of arguments for constructing a Server resource.
type ServerArgs struct {
// *Optional* - Map of key/value pairs of
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
Config pulumi.StringMapInput
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
Remote pulumi.StringPtrInput
// *Optional* - Specify a target node in a cluster where the config
// options should be applied. This is in particular important for config options
// with `local` scope.
Target pulumi.StringPtrInput
}
func (ServerArgs) ElementType() reflect.Type {
return reflect.TypeOf((*serverArgs)(nil)).Elem()
}
type ServerInput interface {
pulumi.Input
ToServerOutput() ServerOutput
ToServerOutputWithContext(ctx context.Context) ServerOutput
}
func (*Server) ElementType() reflect.Type {
return reflect.TypeOf((**Server)(nil)).Elem()
}
func (i *Server) ToServerOutput() ServerOutput {
return i.ToServerOutputWithContext(context.Background())
}
func (i *Server) ToServerOutputWithContext(ctx context.Context) ServerOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServerOutput)
}
// ServerArrayInput is an input type that accepts ServerArray and ServerArrayOutput values.
// You can construct a concrete instance of `ServerArrayInput` via:
//
// ServerArray{ ServerArgs{...} }
type ServerArrayInput interface {
pulumi.Input
ToServerArrayOutput() ServerArrayOutput
ToServerArrayOutputWithContext(context.Context) ServerArrayOutput
}
type ServerArray []ServerInput
func (ServerArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Server)(nil)).Elem()
}
func (i ServerArray) ToServerArrayOutput() ServerArrayOutput {
return i.ToServerArrayOutputWithContext(context.Background())
}
func (i ServerArray) ToServerArrayOutputWithContext(ctx context.Context) ServerArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServerArrayOutput)
}
// ServerMapInput is an input type that accepts ServerMap and ServerMapOutput values.
// You can construct a concrete instance of `ServerMapInput` via:
//
// ServerMap{ "key": ServerArgs{...} }
type ServerMapInput interface {
pulumi.Input
ToServerMapOutput() ServerMapOutput
ToServerMapOutputWithContext(context.Context) ServerMapOutput
}
type ServerMap map[string]ServerInput
func (ServerMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Server)(nil)).Elem()
}
func (i ServerMap) ToServerMapOutput() ServerMapOutput {
return i.ToServerMapOutputWithContext(context.Background())
}
func (i ServerMap) ToServerMapOutputWithContext(ctx context.Context) ServerMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServerMapOutput)
}
type ServerOutput struct{ *pulumi.OutputState }
func (ServerOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Server)(nil)).Elem()
}
func (o ServerOutput) ToServerOutput() ServerOutput {
return o
}
func (o ServerOutput) ToServerOutputWithContext(ctx context.Context) ServerOutput {
return o
}
// *Optional* - Map of key/value pairs of
// [server config settings](https://linuxcontainers.org/incus/docs/main/server_config/).
func (o ServerOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v *Server) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
}
// *Optional* - The remote in which the resource will be created. If
// not provided, the provider's default remote will be used.
func (o ServerOutput) Remote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Server) pulumi.StringPtrOutput { return v.Remote }).(pulumi.StringPtrOutput)
}
// *Optional* - Specify a target node in a cluster where the config
// options should be applied. This is in particular important for config options
// with `local` scope.
func (o ServerOutput) Target() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Server) pulumi.StringPtrOutput { return v.Target }).(pulumi.StringPtrOutput)
}
type ServerArrayOutput struct{ *pulumi.OutputState }
func (ServerArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Server)(nil)).Elem()
}
func (o ServerArrayOutput) ToServerArrayOutput() ServerArrayOutput {
return o
}
func (o ServerArrayOutput) ToServerArrayOutputWithContext(ctx context.Context) ServerArrayOutput {
return o
}
func (o ServerArrayOutput) Index(i pulumi.IntInput) ServerOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Server {
return vs[0].([]*Server)[vs[1].(int)]
}).(ServerOutput)
}
type ServerMapOutput struct{ *pulumi.OutputState }
func (ServerMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Server)(nil)).Elem()
}
func (o ServerMapOutput) ToServerMapOutput() ServerMapOutput {
return o
}
func (o ServerMapOutput) ToServerMapOutputWithContext(ctx context.Context) ServerMapOutput {
return o
}
func (o ServerMapOutput) MapIndex(k pulumi.StringInput) ServerOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Server {
return vs[0].(map[string]*Server)[vs[1].(string)]
}).(ServerOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ServerInput)(nil)).Elem(), &Server{})
pulumi.RegisterInputType(reflect.TypeOf((*ServerArrayInput)(nil)).Elem(), ServerArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ServerMapInput)(nil)).Elem(), ServerMap{})
pulumi.RegisterOutputType(ServerOutput{})
pulumi.RegisterOutputType(ServerArrayOutput{})
pulumi.RegisterOutputType(ServerMapOutput{})
}

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -46,6 +45,9 @@ func NewStorageBucket(ctx *pulumi.Context,
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.Pool == nil {
return nil, errors.New("invalid value for required argument 'Pool'")
}
@@ -134,7 +136,7 @@ type storageBucketArgs struct {
// *Optional* - Description of the storage bucket.
Description *string `pulumi:"description"`
// **Required** - Name of the storage bucket.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// **Required** - Name of storage pool to host the storage bucket.
Pool string `pulumi:"pool"`
// *Optional* - Name of the project where the storage bucket will be stored.
@@ -157,7 +159,7 @@ type StorageBucketArgs struct {
// *Optional* - Description of the storage bucket.
Description pulumi.StringPtrInput
// **Required** - Name of the storage bucket.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// **Required** - Name of storage pool to host the storage bucket.
Pool pulumi.StringInput
// *Optional* - Name of the project where the storage bucket will be stored.

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -45,6 +44,9 @@ func NewStorageBucketKey(ctx *pulumi.Context,
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.Pool == nil {
return nil, errors.New("invalid value for required argument 'Pool'")
}
@@ -135,7 +137,7 @@ type storageBucketKeyArgs struct {
// *Optional* - Description of the storage bucket key.
Description *string `pulumi:"description"`
// **Required** - Name of the storage bucket key.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// **Required** - Name of storage pool to host the storage bucket key.
Pool string `pulumi:"pool"`
// *Optional* - Name of the project where the storage bucket key will be stored.
@@ -155,7 +157,7 @@ type StorageBucketKeyArgs struct {
// *Optional* - Description of the storage bucket key.
Description pulumi.StringPtrInput
// **Required** - Name of the storage bucket key.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// **Required** - Name of storage pool to host the storage bucket key.
Pool pulumi.StringInput
// *Optional* - Name of the project where the storage bucket key will be stored.

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -20,9 +19,9 @@ type StoragePool struct {
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
// Config settings vary from driver to driver.
Config pulumi.StringMapOutput `pulumi:"config"`
// *Optional* - Description of the storage pool.
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description pulumi.StringOutput `pulumi:"description"`
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
Driver pulumi.StringOutput `pulumi:"driver"`
// **Required** - Name of the storage pool.
Name pulumi.StringOutput `pulumi:"name"`
@@ -45,6 +44,9 @@ func NewStoragePool(ctx *pulumi.Context,
if args.Driver == nil {
return nil, errors.New("invalid value for required argument 'Driver'")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
if args.Project == nil {
args.Project = pulumi.StringPtr("default")
}
@@ -75,9 +77,9 @@ type storagePoolState struct {
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
// Config settings vary from driver to driver.
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the storage pool.
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description *string `pulumi:"description"`
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
Driver *string `pulumi:"driver"`
// **Required** - Name of the storage pool.
Name *string `pulumi:"name"`
@@ -95,9 +97,9 @@ type StoragePoolState struct {
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
// Config settings vary from driver to driver.
Config pulumi.StringMapInput
// *Optional* - Description of the storage pool.
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description pulumi.StringPtrInput
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
Driver pulumi.StringPtrInput
// **Required** - Name of the storage pool.
Name pulumi.StringPtrInput
@@ -119,12 +121,12 @@ type storagePoolArgs struct {
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
// Config settings vary from driver to driver.
Config map[string]string `pulumi:"config"`
// *Optional* - Description of the storage pool.
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description *string `pulumi:"description"`
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
Driver string `pulumi:"driver"`
// **Required** - Name of the storage pool.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// *Optional* - Name of the project where the storage pool will be stored.
Project *string `pulumi:"project"`
// *Optional* - The remote in which the resource will be created. If
@@ -140,12 +142,12 @@ type StoragePoolArgs struct {
// [storage pool config settings](https://linuxcontainers.org/incus/docs/main/reference/storage_drivers/).
// Config settings vary from driver to driver.
Config pulumi.StringMapInput
// *Optional* - Description of the storage pool.
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
Description pulumi.StringPtrInput
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
Driver pulumi.StringInput
// **Required** - Name of the storage pool.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// *Optional* - Name of the project where the storage pool will be stored.
Project pulumi.StringPtrInput
// *Optional* - The remote in which the resource will be created. If
@@ -249,12 +251,12 @@ func (o StoragePoolOutput) Config() pulumi.StringMapOutput {
return o.ApplyT(func(v *StoragePool) pulumi.StringMapOutput { return v.Config }).(pulumi.StringMapOutput)
}
// *Optional* - Description of the storage pool.
// *Optional* - Description of the storage pool. `description` is mutual exclusive with `target`. The `description` can only be set on cluster level (with `target` not set) or on non-clustered setups.
func (o StoragePoolOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *StoragePool) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `btrfs`, `ceph`, `cephfs`, or `cephobject`.
// **Required** - Storage Pool driver. Must be one of `dir`, `zfs`, `lvm`, `lvmcluster`, `btrfs`, `ceph`, `cephfs`, `cephobject`, `linstor` or `truenas`.
func (o StoragePoolOutput) Driver() pulumi.StringOutput {
return o.ApplyT(func(v *StoragePool) pulumi.StringOutput { return v.Driver }).(pulumi.StringOutput)
}

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
@@ -8,7 +8,6 @@ import (
"reflect"
"errors"
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
@@ -53,6 +52,9 @@ func NewStorageVolume(ctx *pulumi.Context,
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.Pool == nil {
return nil, errors.New("invalid value for required argument 'Pool'")
}
@@ -157,7 +159,7 @@ type storageVolumeArgs struct {
// *Optional* - Description of the volume.
Description *string `pulumi:"description"`
// **Required** - Name of the storage volume.
Name *string `pulumi:"name"`
Name string `pulumi:"name"`
// **Required** - Name of storage pool to host the volume.
Pool string `pulumi:"pool"`
// *Optional* - Name of the project where the volume will be stored.
@@ -187,7 +189,7 @@ type StorageVolumeArgs struct {
// *Optional* - Description of the volume.
Description pulumi.StringPtrInput
// **Required** - Name of the storage volume.
Name pulumi.StringPtrInput
Name pulumi.StringInput
// **Required** - Name of storage pool to host the volume.
Pool pulumi.StringInput
// *Optional* - Name of the project where the volume will be stored.