forked from muhlba91/pulumi-proxmoxve
/
pulumiTypes.go
222 lines (170 loc) · 7.18 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package system
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type HostsEntry struct {
Address string `pulumi:"address"`
Hostnames []string `pulumi:"hostnames"`
}
// HostsEntryInput is an input type that accepts HostsEntryArgs and HostsEntryOutput values.
// You can construct a concrete instance of `HostsEntryInput` via:
//
// HostsEntryArgs{...}
type HostsEntryInput interface {
pulumi.Input
ToHostsEntryOutput() HostsEntryOutput
ToHostsEntryOutputWithContext(context.Context) HostsEntryOutput
}
type HostsEntryArgs struct {
Address pulumi.StringInput `pulumi:"address"`
Hostnames pulumi.StringArrayInput `pulumi:"hostnames"`
}
func (HostsEntryArgs) ElementType() reflect.Type {
return reflect.TypeOf((*HostsEntry)(nil)).Elem()
}
func (i HostsEntryArgs) ToHostsEntryOutput() HostsEntryOutput {
return i.ToHostsEntryOutputWithContext(context.Background())
}
func (i HostsEntryArgs) ToHostsEntryOutputWithContext(ctx context.Context) HostsEntryOutput {
return pulumi.ToOutputWithContext(ctx, i).(HostsEntryOutput)
}
// HostsEntryArrayInput is an input type that accepts HostsEntryArray and HostsEntryArrayOutput values.
// You can construct a concrete instance of `HostsEntryArrayInput` via:
//
// HostsEntryArray{ HostsEntryArgs{...} }
type HostsEntryArrayInput interface {
pulumi.Input
ToHostsEntryArrayOutput() HostsEntryArrayOutput
ToHostsEntryArrayOutputWithContext(context.Context) HostsEntryArrayOutput
}
type HostsEntryArray []HostsEntryInput
func (HostsEntryArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]HostsEntry)(nil)).Elem()
}
func (i HostsEntryArray) ToHostsEntryArrayOutput() HostsEntryArrayOutput {
return i.ToHostsEntryArrayOutputWithContext(context.Background())
}
func (i HostsEntryArray) ToHostsEntryArrayOutputWithContext(ctx context.Context) HostsEntryArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(HostsEntryArrayOutput)
}
type HostsEntryOutput struct{ *pulumi.OutputState }
func (HostsEntryOutput) ElementType() reflect.Type {
return reflect.TypeOf((*HostsEntry)(nil)).Elem()
}
func (o HostsEntryOutput) ToHostsEntryOutput() HostsEntryOutput {
return o
}
func (o HostsEntryOutput) ToHostsEntryOutputWithContext(ctx context.Context) HostsEntryOutput {
return o
}
func (o HostsEntryOutput) Address() pulumi.StringOutput {
return o.ApplyT(func(v HostsEntry) string { return v.Address }).(pulumi.StringOutput)
}
func (o HostsEntryOutput) Hostnames() pulumi.StringArrayOutput {
return o.ApplyT(func(v HostsEntry) []string { return v.Hostnames }).(pulumi.StringArrayOutput)
}
type HostsEntryArrayOutput struct{ *pulumi.OutputState }
func (HostsEntryArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]HostsEntry)(nil)).Elem()
}
func (o HostsEntryArrayOutput) ToHostsEntryArrayOutput() HostsEntryArrayOutput {
return o
}
func (o HostsEntryArrayOutput) ToHostsEntryArrayOutputWithContext(ctx context.Context) HostsEntryArrayOutput {
return o
}
func (o HostsEntryArrayOutput) Index(i pulumi.IntInput) HostsEntryOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) HostsEntry {
return vs[0].([]HostsEntry)[vs[1].(int)]
}).(HostsEntryOutput)
}
type GetHostsEntry struct {
Address string `pulumi:"address"`
Hostnames []string `pulumi:"hostnames"`
}
// GetHostsEntryInput is an input type that accepts GetHostsEntryArgs and GetHostsEntryOutput values.
// You can construct a concrete instance of `GetHostsEntryInput` via:
//
// GetHostsEntryArgs{...}
type GetHostsEntryInput interface {
pulumi.Input
ToGetHostsEntryOutput() GetHostsEntryOutput
ToGetHostsEntryOutputWithContext(context.Context) GetHostsEntryOutput
}
type GetHostsEntryArgs struct {
Address pulumi.StringInput `pulumi:"address"`
Hostnames pulumi.StringArrayInput `pulumi:"hostnames"`
}
func (GetHostsEntryArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetHostsEntry)(nil)).Elem()
}
func (i GetHostsEntryArgs) ToGetHostsEntryOutput() GetHostsEntryOutput {
return i.ToGetHostsEntryOutputWithContext(context.Background())
}
func (i GetHostsEntryArgs) ToGetHostsEntryOutputWithContext(ctx context.Context) GetHostsEntryOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetHostsEntryOutput)
}
// GetHostsEntryArrayInput is an input type that accepts GetHostsEntryArray and GetHostsEntryArrayOutput values.
// You can construct a concrete instance of `GetHostsEntryArrayInput` via:
//
// GetHostsEntryArray{ GetHostsEntryArgs{...} }
type GetHostsEntryArrayInput interface {
pulumi.Input
ToGetHostsEntryArrayOutput() GetHostsEntryArrayOutput
ToGetHostsEntryArrayOutputWithContext(context.Context) GetHostsEntryArrayOutput
}
type GetHostsEntryArray []GetHostsEntryInput
func (GetHostsEntryArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetHostsEntry)(nil)).Elem()
}
func (i GetHostsEntryArray) ToGetHostsEntryArrayOutput() GetHostsEntryArrayOutput {
return i.ToGetHostsEntryArrayOutputWithContext(context.Background())
}
func (i GetHostsEntryArray) ToGetHostsEntryArrayOutputWithContext(ctx context.Context) GetHostsEntryArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetHostsEntryArrayOutput)
}
type GetHostsEntryOutput struct{ *pulumi.OutputState }
func (GetHostsEntryOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetHostsEntry)(nil)).Elem()
}
func (o GetHostsEntryOutput) ToGetHostsEntryOutput() GetHostsEntryOutput {
return o
}
func (o GetHostsEntryOutput) ToGetHostsEntryOutputWithContext(ctx context.Context) GetHostsEntryOutput {
return o
}
func (o GetHostsEntryOutput) Address() pulumi.StringOutput {
return o.ApplyT(func(v GetHostsEntry) string { return v.Address }).(pulumi.StringOutput)
}
func (o GetHostsEntryOutput) Hostnames() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetHostsEntry) []string { return v.Hostnames }).(pulumi.StringArrayOutput)
}
type GetHostsEntryArrayOutput struct{ *pulumi.OutputState }
func (GetHostsEntryArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetHostsEntry)(nil)).Elem()
}
func (o GetHostsEntryArrayOutput) ToGetHostsEntryArrayOutput() GetHostsEntryArrayOutput {
return o
}
func (o GetHostsEntryArrayOutput) ToGetHostsEntryArrayOutputWithContext(ctx context.Context) GetHostsEntryArrayOutput {
return o
}
func (o GetHostsEntryArrayOutput) Index(i pulumi.IntInput) GetHostsEntryOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetHostsEntry {
return vs[0].([]GetHostsEntry)[vs[1].(int)]
}).(GetHostsEntryOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*HostsEntryInput)(nil)).Elem(), HostsEntryArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*HostsEntryArrayInput)(nil)).Elem(), HostsEntryArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetHostsEntryInput)(nil)).Elem(), GetHostsEntryArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetHostsEntryArrayInput)(nil)).Elem(), GetHostsEntryArray{})
pulumi.RegisterOutputType(HostsEntryOutput{})
pulumi.RegisterOutputType(HostsEntryArrayOutput{})
pulumi.RegisterOutputType(GetHostsEntryOutput{})
pulumi.RegisterOutputType(GetHostsEntryArrayOutput{})
}