/
pulumiTypes.go
127 lines (98 loc) · 4.49 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
119
120
121
122
123
124
125
126
127
// 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 net
import (
"context"
"reflect"
"github.com/pulumi/pulumi-f5bigip/sdk/v3/go/f5bigip/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type VlanInterface struct {
// Specifies a list of tagged interfaces or trunks associated with this VLAN. Note that you can associate tagged interfaces or trunks with any number of VLANs.
Tagged *bool `pulumi:"tagged"`
// Physical or virtual port used for traffic
Vlanport *string `pulumi:"vlanport"`
}
// VlanInterfaceInput is an input type that accepts VlanInterfaceArgs and VlanInterfaceOutput values.
// You can construct a concrete instance of `VlanInterfaceInput` via:
//
// VlanInterfaceArgs{...}
type VlanInterfaceInput interface {
pulumi.Input
ToVlanInterfaceOutput() VlanInterfaceOutput
ToVlanInterfaceOutputWithContext(context.Context) VlanInterfaceOutput
}
type VlanInterfaceArgs struct {
// Specifies a list of tagged interfaces or trunks associated with this VLAN. Note that you can associate tagged interfaces or trunks with any number of VLANs.
Tagged pulumi.BoolPtrInput `pulumi:"tagged"`
// Physical or virtual port used for traffic
Vlanport pulumi.StringPtrInput `pulumi:"vlanport"`
}
func (VlanInterfaceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*VlanInterface)(nil)).Elem()
}
func (i VlanInterfaceArgs) ToVlanInterfaceOutput() VlanInterfaceOutput {
return i.ToVlanInterfaceOutputWithContext(context.Background())
}
func (i VlanInterfaceArgs) ToVlanInterfaceOutputWithContext(ctx context.Context) VlanInterfaceOutput {
return pulumi.ToOutputWithContext(ctx, i).(VlanInterfaceOutput)
}
// VlanInterfaceArrayInput is an input type that accepts VlanInterfaceArray and VlanInterfaceArrayOutput values.
// You can construct a concrete instance of `VlanInterfaceArrayInput` via:
//
// VlanInterfaceArray{ VlanInterfaceArgs{...} }
type VlanInterfaceArrayInput interface {
pulumi.Input
ToVlanInterfaceArrayOutput() VlanInterfaceArrayOutput
ToVlanInterfaceArrayOutputWithContext(context.Context) VlanInterfaceArrayOutput
}
type VlanInterfaceArray []VlanInterfaceInput
func (VlanInterfaceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]VlanInterface)(nil)).Elem()
}
func (i VlanInterfaceArray) ToVlanInterfaceArrayOutput() VlanInterfaceArrayOutput {
return i.ToVlanInterfaceArrayOutputWithContext(context.Background())
}
func (i VlanInterfaceArray) ToVlanInterfaceArrayOutputWithContext(ctx context.Context) VlanInterfaceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(VlanInterfaceArrayOutput)
}
type VlanInterfaceOutput struct{ *pulumi.OutputState }
func (VlanInterfaceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*VlanInterface)(nil)).Elem()
}
func (o VlanInterfaceOutput) ToVlanInterfaceOutput() VlanInterfaceOutput {
return o
}
func (o VlanInterfaceOutput) ToVlanInterfaceOutputWithContext(ctx context.Context) VlanInterfaceOutput {
return o
}
// Specifies a list of tagged interfaces or trunks associated with this VLAN. Note that you can associate tagged interfaces or trunks with any number of VLANs.
func (o VlanInterfaceOutput) Tagged() pulumi.BoolPtrOutput {
return o.ApplyT(func(v VlanInterface) *bool { return v.Tagged }).(pulumi.BoolPtrOutput)
}
// Physical or virtual port used for traffic
func (o VlanInterfaceOutput) Vlanport() pulumi.StringPtrOutput {
return o.ApplyT(func(v VlanInterface) *string { return v.Vlanport }).(pulumi.StringPtrOutput)
}
type VlanInterfaceArrayOutput struct{ *pulumi.OutputState }
func (VlanInterfaceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]VlanInterface)(nil)).Elem()
}
func (o VlanInterfaceArrayOutput) ToVlanInterfaceArrayOutput() VlanInterfaceArrayOutput {
return o
}
func (o VlanInterfaceArrayOutput) ToVlanInterfaceArrayOutputWithContext(ctx context.Context) VlanInterfaceArrayOutput {
return o
}
func (o VlanInterfaceArrayOutput) Index(i pulumi.IntInput) VlanInterfaceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) VlanInterface {
return vs[0].([]VlanInterface)[vs[1].(int)]
}).(VlanInterfaceOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*VlanInterfaceInput)(nil)).Elem(), VlanInterfaceArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*VlanInterfaceArrayInput)(nil)).Elem(), VlanInterfaceArray{})
pulumi.RegisterOutputType(VlanInterfaceOutput{})
pulumi.RegisterOutputType(VlanInterfaceArrayOutput{})
}