/
getInternetservicelist.go
103 lines (85 loc) · 4.34 KB
/
getInternetservicelist.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// 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 firewall
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
// Provides a list of `firewall.Internetservice`.
func LookupInternetservicelist(ctx *pulumi.Context, args *LookupInternetservicelistArgs, opts ...pulumi.InvokeOption) (*LookupInternetservicelistResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupInternetservicelistResult
err := ctx.Invoke("fortios:firewall/getInternetservicelist:getInternetservicelist", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getInternetservicelist.
type LookupInternetservicelistArgs struct {
// A filter used to scope the list. See Filter results of datasource.
Filter *string `pulumi:"filter"`
// Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam *string `pulumi:"vdomparam"`
}
// A collection of values returned by getInternetservicelist.
type LookupInternetservicelistResult struct {
Filter *string `pulumi:"filter"`
// A list of the `firewall.Internetservice`.
Fosidlists []int `pulumi:"fosidlists"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Vdomparam *string `pulumi:"vdomparam"`
}
func LookupInternetservicelistOutput(ctx *pulumi.Context, args LookupInternetservicelistOutputArgs, opts ...pulumi.InvokeOption) LookupInternetservicelistResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupInternetservicelistResult, error) {
args := v.(LookupInternetservicelistArgs)
r, err := LookupInternetservicelist(ctx, &args, opts...)
var s LookupInternetservicelistResult
if r != nil {
s = *r
}
return s, err
}).(LookupInternetservicelistResultOutput)
}
// A collection of arguments for invoking getInternetservicelist.
type LookupInternetservicelistOutputArgs struct {
// A filter used to scope the list. See Filter results of datasource.
Filter pulumi.StringPtrInput `pulumi:"filter"`
// Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Vdomparam pulumi.StringPtrInput `pulumi:"vdomparam"`
}
func (LookupInternetservicelistOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupInternetservicelistArgs)(nil)).Elem()
}
// A collection of values returned by getInternetservicelist.
type LookupInternetservicelistResultOutput struct{ *pulumi.OutputState }
func (LookupInternetservicelistResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupInternetservicelistResult)(nil)).Elem()
}
func (o LookupInternetservicelistResultOutput) ToLookupInternetservicelistResultOutput() LookupInternetservicelistResultOutput {
return o
}
func (o LookupInternetservicelistResultOutput) ToLookupInternetservicelistResultOutputWithContext(ctx context.Context) LookupInternetservicelistResultOutput {
return o
}
func (o LookupInternetservicelistResultOutput) Filter() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupInternetservicelistResult) *string { return v.Filter }).(pulumi.StringPtrOutput)
}
// A list of the `firewall.Internetservice`.
func (o LookupInternetservicelistResultOutput) Fosidlists() pulumi.IntArrayOutput {
return o.ApplyT(func(v LookupInternetservicelistResult) []int { return v.Fosidlists }).(pulumi.IntArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LookupInternetservicelistResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupInternetservicelistResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LookupInternetservicelistResultOutput) Vdomparam() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupInternetservicelistResult) *string { return v.Vdomparam }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupInternetservicelistResultOutput{})
}