Update
This commit is contained in:
173
sdk/go/incus/getNetworkAcl.go
generated
Normal file
173
sdk/go/incus/getNetworkAcl.go
generated
Normal 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{})
|
||||
}
|
||||
Reference in New Issue
Block a user