/
pulumiTypes.go
118 lines (90 loc) · 3.92 KB
/
pulumiTypes.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// 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 dpdk
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
var _ = internal.GetEnvOrDefault
type GlobalInterface struct {
// Physical interface name.
InterfaceName *string `pulumi:"interfaceName"`
}
// GlobalInterfaceInput is an input type that accepts GlobalInterfaceArgs and GlobalInterfaceOutput values.
// You can construct a concrete instance of `GlobalInterfaceInput` via:
//
// GlobalInterfaceArgs{...}
type GlobalInterfaceInput interface {
pulumi.Input
ToGlobalInterfaceOutput() GlobalInterfaceOutput
ToGlobalInterfaceOutputWithContext(context.Context) GlobalInterfaceOutput
}
type GlobalInterfaceArgs struct {
// Physical interface name.
InterfaceName pulumi.StringPtrInput `pulumi:"interfaceName"`
}
func (GlobalInterfaceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GlobalInterface)(nil)).Elem()
}
func (i GlobalInterfaceArgs) ToGlobalInterfaceOutput() GlobalInterfaceOutput {
return i.ToGlobalInterfaceOutputWithContext(context.Background())
}
func (i GlobalInterfaceArgs) ToGlobalInterfaceOutputWithContext(ctx context.Context) GlobalInterfaceOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlobalInterfaceOutput)
}
// GlobalInterfaceArrayInput is an input type that accepts GlobalInterfaceArray and GlobalInterfaceArrayOutput values.
// You can construct a concrete instance of `GlobalInterfaceArrayInput` via:
//
// GlobalInterfaceArray{ GlobalInterfaceArgs{...} }
type GlobalInterfaceArrayInput interface {
pulumi.Input
ToGlobalInterfaceArrayOutput() GlobalInterfaceArrayOutput
ToGlobalInterfaceArrayOutputWithContext(context.Context) GlobalInterfaceArrayOutput
}
type GlobalInterfaceArray []GlobalInterfaceInput
func (GlobalInterfaceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GlobalInterface)(nil)).Elem()
}
func (i GlobalInterfaceArray) ToGlobalInterfaceArrayOutput() GlobalInterfaceArrayOutput {
return i.ToGlobalInterfaceArrayOutputWithContext(context.Background())
}
func (i GlobalInterfaceArray) ToGlobalInterfaceArrayOutputWithContext(ctx context.Context) GlobalInterfaceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlobalInterfaceArrayOutput)
}
type GlobalInterfaceOutput struct{ *pulumi.OutputState }
func (GlobalInterfaceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GlobalInterface)(nil)).Elem()
}
func (o GlobalInterfaceOutput) ToGlobalInterfaceOutput() GlobalInterfaceOutput {
return o
}
func (o GlobalInterfaceOutput) ToGlobalInterfaceOutputWithContext(ctx context.Context) GlobalInterfaceOutput {
return o
}
// Physical interface name.
func (o GlobalInterfaceOutput) InterfaceName() pulumi.StringPtrOutput {
return o.ApplyT(func(v GlobalInterface) *string { return v.InterfaceName }).(pulumi.StringPtrOutput)
}
type GlobalInterfaceArrayOutput struct{ *pulumi.OutputState }
func (GlobalInterfaceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GlobalInterface)(nil)).Elem()
}
func (o GlobalInterfaceArrayOutput) ToGlobalInterfaceArrayOutput() GlobalInterfaceArrayOutput {
return o
}
func (o GlobalInterfaceArrayOutput) ToGlobalInterfaceArrayOutputWithContext(ctx context.Context) GlobalInterfaceArrayOutput {
return o
}
func (o GlobalInterfaceArrayOutput) Index(i pulumi.IntInput) GlobalInterfaceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GlobalInterface {
return vs[0].([]GlobalInterface)[vs[1].(int)]
}).(GlobalInterfaceOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GlobalInterfaceInput)(nil)).Elem(), GlobalInterfaceArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GlobalInterfaceArrayInput)(nil)).Elem(), GlobalInterfaceArray{})
pulumi.RegisterOutputType(GlobalInterfaceOutput{})
pulumi.RegisterOutputType(GlobalInterfaceArrayOutput{})
}