Update
This commit is contained in:
24
sdk/go/incus/network.go
generated
24
sdk/go/incus/network.go
generated
@@ -1,4 +1,4 @@
|
||||
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package incus
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"git.kalinow.ski/kiterun/pulumi-incus/sdk/go/incus/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user