/
init.go
338 lines (330 loc) · 13.1 KB
/
init.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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package beta
import (
"fmt"
"github.com/blang/semver"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type module struct {
version semver.Version
}
func (m *module) Version() semver.Version {
return m.version
}
func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
switch typ {
case "google-native:compute/beta:Address":
r = &Address{}
case "google-native:compute/beta:Autoscaler":
r = &Autoscaler{}
case "google-native:compute/beta:BackendBucket":
r = &BackendBucket{}
case "google-native:compute/beta:BackendBucketIamBinding":
r = &BackendBucketIamBinding{}
case "google-native:compute/beta:BackendBucketIamMember":
r = &BackendBucketIamMember{}
case "google-native:compute/beta:BackendBucketIamPolicy":
r = &BackendBucketIamPolicy{}
case "google-native:compute/beta:BackendService":
r = &BackendService{}
case "google-native:compute/beta:BackendServiceIamBinding":
r = &BackendServiceIamBinding{}
case "google-native:compute/beta:BackendServiceIamMember":
r = &BackendServiceIamMember{}
case "google-native:compute/beta:BackendServiceIamPolicy":
r = &BackendServiceIamPolicy{}
case "google-native:compute/beta:Disk":
r = &Disk{}
case "google-native:compute/beta:DiskIamBinding":
r = &DiskIamBinding{}
case "google-native:compute/beta:DiskIamMember":
r = &DiskIamMember{}
case "google-native:compute/beta:DiskIamPolicy":
r = &DiskIamPolicy{}
case "google-native:compute/beta:ExternalVpnGateway":
r = &ExternalVpnGateway{}
case "google-native:compute/beta:Firewall":
r = &Firewall{}
case "google-native:compute/beta:FirewallPolicy":
r = &FirewallPolicy{}
case "google-native:compute/beta:FirewallPolicyIamBinding":
r = &FirewallPolicyIamBinding{}
case "google-native:compute/beta:FirewallPolicyIamMember":
r = &FirewallPolicyIamMember{}
case "google-native:compute/beta:FirewallPolicyIamPolicy":
r = &FirewallPolicyIamPolicy{}
case "google-native:compute/beta:ForwardingRule":
r = &ForwardingRule{}
case "google-native:compute/beta:FutureReservation":
r = &FutureReservation{}
case "google-native:compute/beta:GlobalAddress":
r = &GlobalAddress{}
case "google-native:compute/beta:GlobalForwardingRule":
r = &GlobalForwardingRule{}
case "google-native:compute/beta:GlobalNetworkEndpointGroup":
r = &GlobalNetworkEndpointGroup{}
case "google-native:compute/beta:GlobalPublicDelegatedPrefix":
r = &GlobalPublicDelegatedPrefix{}
case "google-native:compute/beta:HealthCheck":
r = &HealthCheck{}
case "google-native:compute/beta:HttpHealthCheck":
r = &HttpHealthCheck{}
case "google-native:compute/beta:HttpsHealthCheck":
r = &HttpsHealthCheck{}
case "google-native:compute/beta:Image":
r = &Image{}
case "google-native:compute/beta:ImageIamBinding":
r = &ImageIamBinding{}
case "google-native:compute/beta:ImageIamMember":
r = &ImageIamMember{}
case "google-native:compute/beta:ImageIamPolicy":
r = &ImageIamPolicy{}
case "google-native:compute/beta:Instance":
r = &Instance{}
case "google-native:compute/beta:InstanceGroup":
r = &InstanceGroup{}
case "google-native:compute/beta:InstanceGroupManager":
r = &InstanceGroupManager{}
case "google-native:compute/beta:InstanceGroupManagerResizeRequest":
r = &InstanceGroupManagerResizeRequest{}
case "google-native:compute/beta:InstanceIamBinding":
r = &InstanceIamBinding{}
case "google-native:compute/beta:InstanceIamMember":
r = &InstanceIamMember{}
case "google-native:compute/beta:InstanceIamPolicy":
r = &InstanceIamPolicy{}
case "google-native:compute/beta:InstanceTemplate":
r = &InstanceTemplate{}
case "google-native:compute/beta:InstanceTemplateIamBinding":
r = &InstanceTemplateIamBinding{}
case "google-native:compute/beta:InstanceTemplateIamMember":
r = &InstanceTemplateIamMember{}
case "google-native:compute/beta:InstanceTemplateIamPolicy":
r = &InstanceTemplateIamPolicy{}
case "google-native:compute/beta:InstantSnapshot":
r = &InstantSnapshot{}
case "google-native:compute/beta:InstantSnapshotIamBinding":
r = &InstantSnapshotIamBinding{}
case "google-native:compute/beta:InstantSnapshotIamMember":
r = &InstantSnapshotIamMember{}
case "google-native:compute/beta:InstantSnapshotIamPolicy":
r = &InstantSnapshotIamPolicy{}
case "google-native:compute/beta:Interconnect":
r = &Interconnect{}
case "google-native:compute/beta:InterconnectAttachment":
r = &InterconnectAttachment{}
case "google-native:compute/beta:License":
r = &License{}
case "google-native:compute/beta:LicenseIamBinding":
r = &LicenseIamBinding{}
case "google-native:compute/beta:LicenseIamMember":
r = &LicenseIamMember{}
case "google-native:compute/beta:LicenseIamPolicy":
r = &LicenseIamPolicy{}
case "google-native:compute/beta:MachineImage":
r = &MachineImage{}
case "google-native:compute/beta:MachineImageIamBinding":
r = &MachineImageIamBinding{}
case "google-native:compute/beta:MachineImageIamMember":
r = &MachineImageIamMember{}
case "google-native:compute/beta:MachineImageIamPolicy":
r = &MachineImageIamPolicy{}
case "google-native:compute/beta:Network":
r = &Network{}
case "google-native:compute/beta:NetworkAttachment":
r = &NetworkAttachment{}
case "google-native:compute/beta:NetworkAttachmentIamBinding":
r = &NetworkAttachmentIamBinding{}
case "google-native:compute/beta:NetworkAttachmentIamMember":
r = &NetworkAttachmentIamMember{}
case "google-native:compute/beta:NetworkAttachmentIamPolicy":
r = &NetworkAttachmentIamPolicy{}
case "google-native:compute/beta:NetworkEdgeSecurityService":
r = &NetworkEdgeSecurityService{}
case "google-native:compute/beta:NetworkEndpointGroup":
r = &NetworkEndpointGroup{}
case "google-native:compute/beta:NetworkFirewallPolicy":
r = &NetworkFirewallPolicy{}
case "google-native:compute/beta:NetworkFirewallPolicyIamBinding":
r = &NetworkFirewallPolicyIamBinding{}
case "google-native:compute/beta:NetworkFirewallPolicyIamMember":
r = &NetworkFirewallPolicyIamMember{}
case "google-native:compute/beta:NetworkFirewallPolicyIamPolicy":
r = &NetworkFirewallPolicyIamPolicy{}
case "google-native:compute/beta:NodeGroup":
r = &NodeGroup{}
case "google-native:compute/beta:NodeGroupIamBinding":
r = &NodeGroupIamBinding{}
case "google-native:compute/beta:NodeGroupIamMember":
r = &NodeGroupIamMember{}
case "google-native:compute/beta:NodeGroupIamPolicy":
r = &NodeGroupIamPolicy{}
case "google-native:compute/beta:NodeTemplate":
r = &NodeTemplate{}
case "google-native:compute/beta:NodeTemplateIamBinding":
r = &NodeTemplateIamBinding{}
case "google-native:compute/beta:NodeTemplateIamMember":
r = &NodeTemplateIamMember{}
case "google-native:compute/beta:NodeTemplateIamPolicy":
r = &NodeTemplateIamPolicy{}
case "google-native:compute/beta:OrganizationSecurityPolicy":
r = &OrganizationSecurityPolicy{}
case "google-native:compute/beta:PacketMirroring":
r = &PacketMirroring{}
case "google-native:compute/beta:PublicAdvertisedPrefix":
r = &PublicAdvertisedPrefix{}
case "google-native:compute/beta:PublicDelegatedPrefix":
r = &PublicDelegatedPrefix{}
case "google-native:compute/beta:RegionAutoscaler":
r = &RegionAutoscaler{}
case "google-native:compute/beta:RegionBackendService":
r = &RegionBackendService{}
case "google-native:compute/beta:RegionBackendServiceIamBinding":
r = &RegionBackendServiceIamBinding{}
case "google-native:compute/beta:RegionBackendServiceIamMember":
r = &RegionBackendServiceIamMember{}
case "google-native:compute/beta:RegionBackendServiceIamPolicy":
r = &RegionBackendServiceIamPolicy{}
case "google-native:compute/beta:RegionCommitment":
r = &RegionCommitment{}
case "google-native:compute/beta:RegionDisk":
r = &RegionDisk{}
case "google-native:compute/beta:RegionDiskIamBinding":
r = &RegionDiskIamBinding{}
case "google-native:compute/beta:RegionDiskIamMember":
r = &RegionDiskIamMember{}
case "google-native:compute/beta:RegionDiskIamPolicy":
r = &RegionDiskIamPolicy{}
case "google-native:compute/beta:RegionHealthCheck":
r = &RegionHealthCheck{}
case "google-native:compute/beta:RegionHealthCheckService":
r = &RegionHealthCheckService{}
case "google-native:compute/beta:RegionInstanceGroupManager":
r = &RegionInstanceGroupManager{}
case "google-native:compute/beta:RegionInstanceTemplate":
r = &RegionInstanceTemplate{}
case "google-native:compute/beta:RegionInstantSnapshot":
r = &RegionInstantSnapshot{}
case "google-native:compute/beta:RegionInstantSnapshotIamBinding":
r = &RegionInstantSnapshotIamBinding{}
case "google-native:compute/beta:RegionInstantSnapshotIamMember":
r = &RegionInstantSnapshotIamMember{}
case "google-native:compute/beta:RegionInstantSnapshotIamPolicy":
r = &RegionInstantSnapshotIamPolicy{}
case "google-native:compute/beta:RegionNetworkEndpointGroup":
r = &RegionNetworkEndpointGroup{}
case "google-native:compute/beta:RegionNetworkFirewallPolicy":
r = &RegionNetworkFirewallPolicy{}
case "google-native:compute/beta:RegionNetworkFirewallPolicyIamBinding":
r = &RegionNetworkFirewallPolicyIamBinding{}
case "google-native:compute/beta:RegionNetworkFirewallPolicyIamMember":
r = &RegionNetworkFirewallPolicyIamMember{}
case "google-native:compute/beta:RegionNetworkFirewallPolicyIamPolicy":
r = &RegionNetworkFirewallPolicyIamPolicy{}
case "google-native:compute/beta:RegionNotificationEndpoint":
r = &RegionNotificationEndpoint{}
case "google-native:compute/beta:RegionSecurityPolicy":
r = &RegionSecurityPolicy{}
case "google-native:compute/beta:RegionSslCertificate":
r = &RegionSslCertificate{}
case "google-native:compute/beta:RegionSslPolicy":
r = &RegionSslPolicy{}
case "google-native:compute/beta:RegionTargetHttpProxy":
r = &RegionTargetHttpProxy{}
case "google-native:compute/beta:RegionTargetHttpsProxy":
r = &RegionTargetHttpsProxy{}
case "google-native:compute/beta:RegionTargetTcpProxy":
r = &RegionTargetTcpProxy{}
case "google-native:compute/beta:RegionUrlMap":
r = &RegionUrlMap{}
case "google-native:compute/beta:Reservation":
r = &Reservation{}
case "google-native:compute/beta:ReservationIamBinding":
r = &ReservationIamBinding{}
case "google-native:compute/beta:ReservationIamMember":
r = &ReservationIamMember{}
case "google-native:compute/beta:ReservationIamPolicy":
r = &ReservationIamPolicy{}
case "google-native:compute/beta:ResourcePolicy":
r = &ResourcePolicy{}
case "google-native:compute/beta:ResourcePolicyIamBinding":
r = &ResourcePolicyIamBinding{}
case "google-native:compute/beta:ResourcePolicyIamMember":
r = &ResourcePolicyIamMember{}
case "google-native:compute/beta:ResourcePolicyIamPolicy":
r = &ResourcePolicyIamPolicy{}
case "google-native:compute/beta:Route":
r = &Route{}
case "google-native:compute/beta:Router":
r = &Router{}
case "google-native:compute/beta:SecurityPolicy":
r = &SecurityPolicy{}
case "google-native:compute/beta:ServiceAttachment":
r = &ServiceAttachment{}
case "google-native:compute/beta:ServiceAttachmentIamBinding":
r = &ServiceAttachmentIamBinding{}
case "google-native:compute/beta:ServiceAttachmentIamMember":
r = &ServiceAttachmentIamMember{}
case "google-native:compute/beta:ServiceAttachmentIamPolicy":
r = &ServiceAttachmentIamPolicy{}
case "google-native:compute/beta:Snapshot":
r = &Snapshot{}
case "google-native:compute/beta:SnapshotIamBinding":
r = &SnapshotIamBinding{}
case "google-native:compute/beta:SnapshotIamMember":
r = &SnapshotIamMember{}
case "google-native:compute/beta:SnapshotIamPolicy":
r = &SnapshotIamPolicy{}
case "google-native:compute/beta:SslCertificate":
r = &SslCertificate{}
case "google-native:compute/beta:SslPolicy":
r = &SslPolicy{}
case "google-native:compute/beta:Subnetwork":
r = &Subnetwork{}
case "google-native:compute/beta:SubnetworkIamBinding":
r = &SubnetworkIamBinding{}
case "google-native:compute/beta:SubnetworkIamMember":
r = &SubnetworkIamMember{}
case "google-native:compute/beta:SubnetworkIamPolicy":
r = &SubnetworkIamPolicy{}
case "google-native:compute/beta:TargetGrpcProxy":
r = &TargetGrpcProxy{}
case "google-native:compute/beta:TargetHttpProxy":
r = &TargetHttpProxy{}
case "google-native:compute/beta:TargetHttpsProxy":
r = &TargetHttpsProxy{}
case "google-native:compute/beta:TargetInstance":
r = &TargetInstance{}
case "google-native:compute/beta:TargetPool":
r = &TargetPool{}
case "google-native:compute/beta:TargetSslProxy":
r = &TargetSslProxy{}
case "google-native:compute/beta:TargetTcpProxy":
r = &TargetTcpProxy{}
case "google-native:compute/beta:TargetVpnGateway":
r = &TargetVpnGateway{}
case "google-native:compute/beta:UrlMap":
r = &UrlMap{}
case "google-native:compute/beta:VpnGateway":
r = &VpnGateway{}
case "google-native:compute/beta:VpnTunnel":
r = &VpnTunnel{}
default:
return nil, fmt.Errorf("unknown resource type: %s", typ)
}
err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
return
}
func init() {
version, err := internal.PkgVersion()
if err != nil {
version = semver.Version{Major: 1}
}
pulumi.RegisterResourceModule(
"google-native",
"compute/beta",
&module{version},
)
}