generated from pulumi/pulumi-tf-provider-boilerplate
/
pulumiTypes.go
243 lines (187 loc) · 8.99 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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
// 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 availability
import (
"context"
"reflect"
"github.com/mergtil/pulumi-tencentcloud/sdk/go/tencentcloud/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type GetRegionsRegion struct {
Description string `pulumi:"description"`
Name string `pulumi:"name"`
State string `pulumi:"state"`
}
// GetRegionsRegionInput is an input type that accepts GetRegionsRegionArgs and GetRegionsRegionOutput values.
// You can construct a concrete instance of `GetRegionsRegionInput` via:
//
// GetRegionsRegionArgs{...}
type GetRegionsRegionInput interface {
pulumi.Input
ToGetRegionsRegionOutput() GetRegionsRegionOutput
ToGetRegionsRegionOutputWithContext(context.Context) GetRegionsRegionOutput
}
type GetRegionsRegionArgs struct {
Description pulumi.StringInput `pulumi:"description"`
Name pulumi.StringInput `pulumi:"name"`
State pulumi.StringInput `pulumi:"state"`
}
func (GetRegionsRegionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetRegionsRegion)(nil)).Elem()
}
func (i GetRegionsRegionArgs) ToGetRegionsRegionOutput() GetRegionsRegionOutput {
return i.ToGetRegionsRegionOutputWithContext(context.Background())
}
func (i GetRegionsRegionArgs) ToGetRegionsRegionOutputWithContext(ctx context.Context) GetRegionsRegionOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetRegionsRegionOutput)
}
// GetRegionsRegionArrayInput is an input type that accepts GetRegionsRegionArray and GetRegionsRegionArrayOutput values.
// You can construct a concrete instance of `GetRegionsRegionArrayInput` via:
//
// GetRegionsRegionArray{ GetRegionsRegionArgs{...} }
type GetRegionsRegionArrayInput interface {
pulumi.Input
ToGetRegionsRegionArrayOutput() GetRegionsRegionArrayOutput
ToGetRegionsRegionArrayOutputWithContext(context.Context) GetRegionsRegionArrayOutput
}
type GetRegionsRegionArray []GetRegionsRegionInput
func (GetRegionsRegionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetRegionsRegion)(nil)).Elem()
}
func (i GetRegionsRegionArray) ToGetRegionsRegionArrayOutput() GetRegionsRegionArrayOutput {
return i.ToGetRegionsRegionArrayOutputWithContext(context.Background())
}
func (i GetRegionsRegionArray) ToGetRegionsRegionArrayOutputWithContext(ctx context.Context) GetRegionsRegionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetRegionsRegionArrayOutput)
}
type GetRegionsRegionOutput struct{ *pulumi.OutputState }
func (GetRegionsRegionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetRegionsRegion)(nil)).Elem()
}
func (o GetRegionsRegionOutput) ToGetRegionsRegionOutput() GetRegionsRegionOutput {
return o
}
func (o GetRegionsRegionOutput) ToGetRegionsRegionOutputWithContext(ctx context.Context) GetRegionsRegionOutput {
return o
}
func (o GetRegionsRegionOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v GetRegionsRegion) string { return v.Description }).(pulumi.StringOutput)
}
func (o GetRegionsRegionOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v GetRegionsRegion) string { return v.Name }).(pulumi.StringOutput)
}
func (o GetRegionsRegionOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v GetRegionsRegion) string { return v.State }).(pulumi.StringOutput)
}
type GetRegionsRegionArrayOutput struct{ *pulumi.OutputState }
func (GetRegionsRegionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetRegionsRegion)(nil)).Elem()
}
func (o GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutput() GetRegionsRegionArrayOutput {
return o
}
func (o GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutputWithContext(ctx context.Context) GetRegionsRegionArrayOutput {
return o
}
func (o GetRegionsRegionArrayOutput) Index(i pulumi.IntInput) GetRegionsRegionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetRegionsRegion {
return vs[0].([]GetRegionsRegion)[vs[1].(int)]
}).(GetRegionsRegionOutput)
}
type GetZonesByProductZone struct {
Description string `pulumi:"description"`
Id string `pulumi:"id"`
Name string `pulumi:"name"`
State string `pulumi:"state"`
}
// GetZonesByProductZoneInput is an input type that accepts GetZonesByProductZoneArgs and GetZonesByProductZoneOutput values.
// You can construct a concrete instance of `GetZonesByProductZoneInput` via:
//
// GetZonesByProductZoneArgs{...}
type GetZonesByProductZoneInput interface {
pulumi.Input
ToGetZonesByProductZoneOutput() GetZonesByProductZoneOutput
ToGetZonesByProductZoneOutputWithContext(context.Context) GetZonesByProductZoneOutput
}
type GetZonesByProductZoneArgs struct {
Description pulumi.StringInput `pulumi:"description"`
Id pulumi.StringInput `pulumi:"id"`
Name pulumi.StringInput `pulumi:"name"`
State pulumi.StringInput `pulumi:"state"`
}
func (GetZonesByProductZoneArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetZonesByProductZone)(nil)).Elem()
}
func (i GetZonesByProductZoneArgs) ToGetZonesByProductZoneOutput() GetZonesByProductZoneOutput {
return i.ToGetZonesByProductZoneOutputWithContext(context.Background())
}
func (i GetZonesByProductZoneArgs) ToGetZonesByProductZoneOutputWithContext(ctx context.Context) GetZonesByProductZoneOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetZonesByProductZoneOutput)
}
// GetZonesByProductZoneArrayInput is an input type that accepts GetZonesByProductZoneArray and GetZonesByProductZoneArrayOutput values.
// You can construct a concrete instance of `GetZonesByProductZoneArrayInput` via:
//
// GetZonesByProductZoneArray{ GetZonesByProductZoneArgs{...} }
type GetZonesByProductZoneArrayInput interface {
pulumi.Input
ToGetZonesByProductZoneArrayOutput() GetZonesByProductZoneArrayOutput
ToGetZonesByProductZoneArrayOutputWithContext(context.Context) GetZonesByProductZoneArrayOutput
}
type GetZonesByProductZoneArray []GetZonesByProductZoneInput
func (GetZonesByProductZoneArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetZonesByProductZone)(nil)).Elem()
}
func (i GetZonesByProductZoneArray) ToGetZonesByProductZoneArrayOutput() GetZonesByProductZoneArrayOutput {
return i.ToGetZonesByProductZoneArrayOutputWithContext(context.Background())
}
func (i GetZonesByProductZoneArray) ToGetZonesByProductZoneArrayOutputWithContext(ctx context.Context) GetZonesByProductZoneArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetZonesByProductZoneArrayOutput)
}
type GetZonesByProductZoneOutput struct{ *pulumi.OutputState }
func (GetZonesByProductZoneOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetZonesByProductZone)(nil)).Elem()
}
func (o GetZonesByProductZoneOutput) ToGetZonesByProductZoneOutput() GetZonesByProductZoneOutput {
return o
}
func (o GetZonesByProductZoneOutput) ToGetZonesByProductZoneOutputWithContext(ctx context.Context) GetZonesByProductZoneOutput {
return o
}
func (o GetZonesByProductZoneOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v GetZonesByProductZone) string { return v.Description }).(pulumi.StringOutput)
}
func (o GetZonesByProductZoneOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetZonesByProductZone) string { return v.Id }).(pulumi.StringOutput)
}
func (o GetZonesByProductZoneOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v GetZonesByProductZone) string { return v.Name }).(pulumi.StringOutput)
}
func (o GetZonesByProductZoneOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v GetZonesByProductZone) string { return v.State }).(pulumi.StringOutput)
}
type GetZonesByProductZoneArrayOutput struct{ *pulumi.OutputState }
func (GetZonesByProductZoneArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetZonesByProductZone)(nil)).Elem()
}
func (o GetZonesByProductZoneArrayOutput) ToGetZonesByProductZoneArrayOutput() GetZonesByProductZoneArrayOutput {
return o
}
func (o GetZonesByProductZoneArrayOutput) ToGetZonesByProductZoneArrayOutputWithContext(ctx context.Context) GetZonesByProductZoneArrayOutput {
return o
}
func (o GetZonesByProductZoneArrayOutput) Index(i pulumi.IntInput) GetZonesByProductZoneOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetZonesByProductZone {
return vs[0].([]GetZonesByProductZone)[vs[1].(int)]
}).(GetZonesByProductZoneOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GetRegionsRegionInput)(nil)).Elem(), GetRegionsRegionArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetRegionsRegionArrayInput)(nil)).Elem(), GetRegionsRegionArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetZonesByProductZoneInput)(nil)).Elem(), GetZonesByProductZoneArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetZonesByProductZoneArrayInput)(nil)).Elem(), GetZonesByProductZoneArray{})
pulumi.RegisterOutputType(GetRegionsRegionOutput{})
pulumi.RegisterOutputType(GetRegionsRegionArrayOutput{})
pulumi.RegisterOutputType(GetZonesByProductZoneOutput{})
pulumi.RegisterOutputType(GetZonesByProductZoneArrayOutput{})
}