-
Notifications
You must be signed in to change notification settings - Fork 13
/
set.go
522 lines (515 loc) · 34.3 KB
/
set.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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
/*
* This file is automatically generated
*/
package clients
import (
"fmt"
cAPIV1 "github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/api/v1"
catalog_v1 "github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1"
catalog_v1alpha1 "github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1"
definitions_v1alpha1 "github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/definitions/v1alpha1"
management_v1 "github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1"
management_v1alpha1 "github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1"
)
type Set struct {
WatchTopicManagementV1alpha1 *management_v1alpha1.WatchTopicClient
DiscoveryAgentManagementV1alpha1 *management_v1alpha1.UnscopedDiscoveryAgentClient
DataplaneManagementV1alpha1 *management_v1alpha1.UnscopedDataplaneClient
DataplaneSecretManagementV1alpha1 *management_v1alpha1.UnscopedDataplaneSecretClient
TraceabilityAgentManagementV1alpha1 *management_v1alpha1.UnscopedTraceabilityAgentClient
EnvironmentManagementV1alpha1 *management_v1alpha1.EnvironmentClient
APIServiceManagementV1alpha1 *management_v1alpha1.UnscopedAPIServiceClient
APIServiceRevisionManagementV1alpha1 *management_v1alpha1.UnscopedAPIServiceRevisionClient
APIServiceInstanceManagementV1alpha1 *management_v1alpha1.UnscopedAPIServiceInstanceClient
APISpecLintingJobManagementV1alpha1 *management_v1alpha1.UnscopedAPISpecLintingJobClient
APISpecLintingRulesetManagementV1alpha1 *management_v1alpha1.APISpecLintingRulesetClient
ConsumerInstanceManagementV1alpha1 *management_v1alpha1.UnscopedConsumerInstanceClient
ConsumerSubscriptionDefinitionManagementV1alpha1 *management_v1alpha1.UnscopedConsumerSubscriptionDefinitionClient
IntegrationManagementV1alpha1 *management_v1alpha1.IntegrationClient
ResourceHookManagementV1alpha1 *management_v1alpha1.UnscopedResourceHookClient
K8SClusterManagementV1alpha1 *management_v1alpha1.K8SClusterClient
K8SResourceManagementV1alpha1 *management_v1alpha1.UnscopedK8SResourceClient
ResourceDiscoveryManagementV1alpha1 *management_v1alpha1.UnscopedResourceDiscoveryClient
MeshManagementV1alpha1 *management_v1alpha1.MeshClient
SpecDiscoveryManagementV1alpha1 *management_v1alpha1.UnscopedSpecDiscoveryClient
APISpecManagementV1alpha1 *management_v1alpha1.UnscopedAPISpecClient
MeshWorkloadManagementV1alpha1 *management_v1alpha1.UnscopedMeshWorkloadClient
MeshServiceManagementV1alpha1 *management_v1alpha1.UnscopedMeshServiceClient
MeshDiscoveryManagementV1alpha1 *management_v1alpha1.UnscopedMeshDiscoveryClient
AssetMappingTemplateManagementV1alpha1 *management_v1alpha1.UnscopedAssetMappingTemplateClient
AccessRequestDefinitionManagementV1alpha1 *management_v1alpha1.UnscopedAccessRequestDefinitionClient
AccessRequestManagementV1alpha1 *management_v1alpha1.UnscopedAccessRequestClient
ManagedApplicationManagementV1alpha1 *management_v1alpha1.UnscopedManagedApplicationClient
CredentialManagementV1alpha1 *management_v1alpha1.UnscopedCredentialClient
AssetMappingManagementV1alpha1 *management_v1alpha1.UnscopedAssetMappingClient
WebhookManagementV1alpha1 *management_v1alpha1.UnscopedWebhookClient
CredentialRequestDefinitionManagementV1alpha1 *management_v1alpha1.UnscopedCredentialRequestDefinitionClient
BatchJobManagementV1alpha1 *management_v1alpha1.UnscopedBatchJobClient
SecretManagementV1alpha1 *management_v1alpha1.UnscopedSecretClient
AccessControlListManagementV1alpha1 *management_v1alpha1.UnscopedAccessControlListClient
APISpecLintingJobManagementV1 *management_v1.UnscopedAPISpecLintingJobClient
APISpecLintingRulesetManagementV1 *management_v1.APISpecLintingRulesetClient
BatchJobManagementV1 *management_v1.UnscopedBatchJobClient
StageCatalogV1alpha1 *catalog_v1alpha1.StageClient
AssetCatalogV1alpha1 *catalog_v1alpha1.AssetClient
AssetReleaseCatalogV1alpha1 *catalog_v1alpha1.AssetReleaseClient
CategoryCatalogV1alpha1 *catalog_v1alpha1.CategoryClient
AuthorizationProfileCatalogV1alpha1 *catalog_v1alpha1.AuthorizationProfileClient
ApplicationCatalogV1alpha1 *catalog_v1alpha1.ApplicationClient
CredentialCatalogV1alpha1 *catalog_v1alpha1.UnscopedCredentialClient
SubscriptionCatalogV1alpha1 *catalog_v1alpha1.SubscriptionClient
SubscriptionJobCatalogV1alpha1 *catalog_v1alpha1.UnscopedSubscriptionJobClient
SubscriptionInvoiceCatalogV1alpha1 *catalog_v1alpha1.UnscopedSubscriptionInvoiceClient
DocumentResourceCatalogV1alpha1 *catalog_v1alpha1.DocumentResourceClient
MarketplaceCatalogV1alpha1 *catalog_v1alpha1.MarketplaceClient
PublishedProductCatalogV1alpha1 *catalog_v1alpha1.UnscopedPublishedProductClient
ProductVisibilityCatalogV1alpha1 *catalog_v1alpha1.UnscopedProductVisibilityClient
ConsumerProductVisibilityCatalogV1alpha1 *catalog_v1alpha1.UnscopedConsumerProductVisibilityClient
CategoryVisibilityCatalogV1alpha1 *catalog_v1alpha1.UnscopedCategoryVisibilityClient
PublishedDocumentResourceCatalogV1alpha1 *catalog_v1alpha1.UnscopedPublishedDocumentResourceClient
PublishedStageCatalogV1alpha1 *catalog_v1alpha1.UnscopedPublishedStageClient
StageVisibilityCatalogV1alpha1 *catalog_v1alpha1.UnscopedStageVisibilityClient
ConsumerStageVisibilityCatalogV1alpha1 *catalog_v1alpha1.UnscopedConsumerStageVisibilityClient
SupportContactCatalogV1alpha1 *catalog_v1alpha1.SupportContactClient
ProductCatalogV1alpha1 *catalog_v1alpha1.ProductClient
ProductReleaseCatalogV1alpha1 *catalog_v1alpha1.ProductReleaseClient
ProductPlanUnitCatalogV1alpha1 *catalog_v1alpha1.ProductPlanUnitClient
ProductPlanCatalogV1alpha1 *catalog_v1alpha1.ProductPlanClient
SubscriptionRequestDefinitionCatalogV1alpha1 *catalog_v1alpha1.SubscriptionRequestDefinitionClient
ProductPlanJobCatalogV1alpha1 *catalog_v1alpha1.UnscopedProductPlanJobClient
QuotaCatalogV1alpha1 *catalog_v1alpha1.UnscopedQuotaClient
ProductReviewCatalogV1alpha1 *catalog_v1alpha1.UnscopedProductReviewClient
AssetMappingCatalogV1alpha1 *catalog_v1alpha1.UnscopedAssetMappingClient
AssetResourceCatalogV1alpha1 *catalog_v1alpha1.UnscopedAssetResourceClient
AssetRequestDefinitionCatalogV1alpha1 *catalog_v1alpha1.UnscopedAssetRequestDefinitionClient
AssetRequestCatalogV1alpha1 *catalog_v1alpha1.UnscopedAssetRequestClient
DocumentCatalogV1alpha1 *catalog_v1alpha1.UnscopedDocumentClient
ResourceCatalogV1alpha1 *catalog_v1alpha1.UnscopedResourceClient
ProductOverviewCatalogV1alpha1 *catalog_v1alpha1.UnscopedProductOverviewClient
WebhookCatalogV1alpha1 *catalog_v1alpha1.UnscopedWebhookClient
ReleaseTagCatalogV1alpha1 *catalog_v1alpha1.UnscopedReleaseTagClient
CredentialRequestDefinitionCatalogV1alpha1 *catalog_v1alpha1.UnscopedCredentialRequestDefinitionClient
SecretCatalogV1alpha1 *catalog_v1alpha1.UnscopedSecretClient
AccessControlListCatalogV1alpha1 *catalog_v1alpha1.UnscopedAccessControlListClient
CategoryCatalogV1 *catalog_v1.CategoryClient
DocumentResourceCatalogV1 *catalog_v1.DocumentResourceClient
MarketplaceCatalogV1 *catalog_v1.MarketplaceClient
CategoryVisibilityCatalogV1 *catalog_v1.UnscopedCategoryVisibilityClient
PublishedDocumentResourceCatalogV1 *catalog_v1.UnscopedPublishedDocumentResourceClient
PublishedStageCatalogV1 *catalog_v1.UnscopedPublishedStageClient
SupportContactCatalogV1 *catalog_v1.SupportContactClient
ProductCatalogV1 *catalog_v1.ProductClient
ProductReleaseCatalogV1 *catalog_v1.ProductReleaseClient
SubscriptionRequestDefinitionCatalogV1 *catalog_v1.SubscriptionRequestDefinitionClient
QuotaCatalogV1 *catalog_v1.UnscopedQuotaClient
ProductReviewCatalogV1 *catalog_v1.UnscopedProductReviewClient
DocumentCatalogV1 *catalog_v1.UnscopedDocumentClient
ResourceCatalogV1 *catalog_v1.UnscopedResourceClient
ProductOverviewCatalogV1 *catalog_v1.UnscopedProductOverviewClient
ResourceGroupDefinitionsV1alpha1 *definitions_v1alpha1.ResourceGroupClient
ResourceDefinitionDefinitionsV1alpha1 *definitions_v1alpha1.UnscopedResourceDefinitionClient
ResourceDefinitionVersionDefinitionsV1alpha1 *definitions_v1alpha1.UnscopedResourceDefinitionVersionClient
CommandLineInterfaceDefinitionsV1alpha1 *definitions_v1alpha1.UnscopedCommandLineInterfaceClient
AccessControlListDefinitionsV1alpha1 *definitions_v1alpha1.UnscopedAccessControlListClient
}
func New(b cAPIV1.Base) *Set {
s := &Set{}
var err error
s.WatchTopicManagementV1alpha1, err = management_v1alpha1.NewWatchTopicClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.WatchTopic: %s", err))
}
s.DiscoveryAgentManagementV1alpha1, err = management_v1alpha1.NewDiscoveryAgentClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.DiscoveryAgent: %s", err))
}
s.DataplaneManagementV1alpha1, err = management_v1alpha1.NewDataplaneClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.Dataplane: %s", err))
}
s.DataplaneSecretManagementV1alpha1, err = management_v1alpha1.NewDataplaneSecretClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.DataplaneSecret: %s", err))
}
s.TraceabilityAgentManagementV1alpha1, err = management_v1alpha1.NewTraceabilityAgentClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.TraceabilityAgent: %s", err))
}
s.EnvironmentManagementV1alpha1, err = management_v1alpha1.NewEnvironmentClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.Environment: %s", err))
}
s.APIServiceManagementV1alpha1, err = management_v1alpha1.NewAPIServiceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.APIService: %s", err))
}
s.APIServiceRevisionManagementV1alpha1, err = management_v1alpha1.NewAPIServiceRevisionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.APIServiceRevision: %s", err))
}
s.APIServiceInstanceManagementV1alpha1, err = management_v1alpha1.NewAPIServiceInstanceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.APIServiceInstance: %s", err))
}
s.APISpecLintingJobManagementV1alpha1, err = management_v1alpha1.NewAPISpecLintingJobClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.APISpecLintingJob: %s", err))
}
s.APISpecLintingRulesetManagementV1alpha1, err = management_v1alpha1.NewAPISpecLintingRulesetClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.APISpecLintingRuleset: %s", err))
}
s.ConsumerInstanceManagementV1alpha1, err = management_v1alpha1.NewConsumerInstanceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.ConsumerInstance: %s", err))
}
s.ConsumerSubscriptionDefinitionManagementV1alpha1, err = management_v1alpha1.NewConsumerSubscriptionDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.ConsumerSubscriptionDefinition: %s", err))
}
s.IntegrationManagementV1alpha1, err = management_v1alpha1.NewIntegrationClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.Integration: %s", err))
}
s.ResourceHookManagementV1alpha1, err = management_v1alpha1.NewResourceHookClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.ResourceHook: %s", err))
}
s.K8SClusterManagementV1alpha1, err = management_v1alpha1.NewK8SClusterClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.K8SCluster: %s", err))
}
s.K8SResourceManagementV1alpha1, err = management_v1alpha1.NewK8SResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.K8SResource: %s", err))
}
s.ResourceDiscoveryManagementV1alpha1, err = management_v1alpha1.NewResourceDiscoveryClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.ResourceDiscovery: %s", err))
}
s.MeshManagementV1alpha1, err = management_v1alpha1.NewMeshClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.Mesh: %s", err))
}
s.SpecDiscoveryManagementV1alpha1, err = management_v1alpha1.NewSpecDiscoveryClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.SpecDiscovery: %s", err))
}
s.APISpecManagementV1alpha1, err = management_v1alpha1.NewAPISpecClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.APISpec: %s", err))
}
s.MeshWorkloadManagementV1alpha1, err = management_v1alpha1.NewMeshWorkloadClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.MeshWorkload: %s", err))
}
s.MeshServiceManagementV1alpha1, err = management_v1alpha1.NewMeshServiceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.MeshService: %s", err))
}
s.MeshDiscoveryManagementV1alpha1, err = management_v1alpha1.NewMeshDiscoveryClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.MeshDiscovery: %s", err))
}
s.AssetMappingTemplateManagementV1alpha1, err = management_v1alpha1.NewAssetMappingTemplateClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.AssetMappingTemplate: %s", err))
}
s.AccessRequestDefinitionManagementV1alpha1, err = management_v1alpha1.NewAccessRequestDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.AccessRequestDefinition: %s", err))
}
s.AccessRequestManagementV1alpha1, err = management_v1alpha1.NewAccessRequestClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.AccessRequest: %s", err))
}
s.ManagedApplicationManagementV1alpha1, err = management_v1alpha1.NewManagedApplicationClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.ManagedApplication: %s", err))
}
s.CredentialManagementV1alpha1, err = management_v1alpha1.NewCredentialClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.Credential: %s", err))
}
s.AssetMappingManagementV1alpha1, err = management_v1alpha1.NewAssetMappingClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.AssetMapping: %s", err))
}
s.WebhookManagementV1alpha1, err = management_v1alpha1.NewWebhookClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.Webhook: %s", err))
}
s.CredentialRequestDefinitionManagementV1alpha1, err = management_v1alpha1.NewCredentialRequestDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.CredentialRequestDefinition: %s", err))
}
s.BatchJobManagementV1alpha1, err = management_v1alpha1.NewBatchJobClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.BatchJob: %s", err))
}
s.SecretManagementV1alpha1, err = management_v1alpha1.NewSecretClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.Secret: %s", err))
}
s.AccessControlListManagementV1alpha1, err = management_v1alpha1.NewAccessControlListClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1alpha1.AccessControlList: %s", err))
}
s.APISpecLintingJobManagementV1, err = management_v1.NewAPISpecLintingJobClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1.APISpecLintingJob: %s", err))
}
s.APISpecLintingRulesetManagementV1, err = management_v1.NewAPISpecLintingRulesetClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1.APISpecLintingRuleset: %s", err))
}
s.BatchJobManagementV1, err = management_v1.NewBatchJobClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/management/v1.BatchJob: %s", err))
}
s.StageCatalogV1alpha1, err = catalog_v1alpha1.NewStageClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Stage: %s", err))
}
s.AssetCatalogV1alpha1, err = catalog_v1alpha1.NewAssetClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Asset: %s", err))
}
s.AssetReleaseCatalogV1alpha1, err = catalog_v1alpha1.NewAssetReleaseClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.AssetRelease: %s", err))
}
s.CategoryCatalogV1alpha1, err = catalog_v1alpha1.NewCategoryClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Category: %s", err))
}
s.AuthorizationProfileCatalogV1alpha1, err = catalog_v1alpha1.NewAuthorizationProfileClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.AuthorizationProfile: %s", err))
}
s.ApplicationCatalogV1alpha1, err = catalog_v1alpha1.NewApplicationClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Application: %s", err))
}
s.CredentialCatalogV1alpha1, err = catalog_v1alpha1.NewCredentialClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Credential: %s", err))
}
s.SubscriptionCatalogV1alpha1, err = catalog_v1alpha1.NewSubscriptionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Subscription: %s", err))
}
s.SubscriptionJobCatalogV1alpha1, err = catalog_v1alpha1.NewSubscriptionJobClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.SubscriptionJob: %s", err))
}
s.SubscriptionInvoiceCatalogV1alpha1, err = catalog_v1alpha1.NewSubscriptionInvoiceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.SubscriptionInvoice: %s", err))
}
s.DocumentResourceCatalogV1alpha1, err = catalog_v1alpha1.NewDocumentResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.DocumentResource: %s", err))
}
s.MarketplaceCatalogV1alpha1, err = catalog_v1alpha1.NewMarketplaceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Marketplace: %s", err))
}
s.PublishedProductCatalogV1alpha1, err = catalog_v1alpha1.NewPublishedProductClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.PublishedProduct: %s", err))
}
s.ProductVisibilityCatalogV1alpha1, err = catalog_v1alpha1.NewProductVisibilityClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ProductVisibility: %s", err))
}
s.ConsumerProductVisibilityCatalogV1alpha1, err = catalog_v1alpha1.NewConsumerProductVisibilityClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ConsumerProductVisibility: %s", err))
}
s.CategoryVisibilityCatalogV1alpha1, err = catalog_v1alpha1.NewCategoryVisibilityClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.CategoryVisibility: %s", err))
}
s.PublishedDocumentResourceCatalogV1alpha1, err = catalog_v1alpha1.NewPublishedDocumentResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.PublishedDocumentResource: %s", err))
}
s.PublishedStageCatalogV1alpha1, err = catalog_v1alpha1.NewPublishedStageClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.PublishedStage: %s", err))
}
s.StageVisibilityCatalogV1alpha1, err = catalog_v1alpha1.NewStageVisibilityClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.StageVisibility: %s", err))
}
s.ConsumerStageVisibilityCatalogV1alpha1, err = catalog_v1alpha1.NewConsumerStageVisibilityClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ConsumerStageVisibility: %s", err))
}
s.SupportContactCatalogV1alpha1, err = catalog_v1alpha1.NewSupportContactClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.SupportContact: %s", err))
}
s.ProductCatalogV1alpha1, err = catalog_v1alpha1.NewProductClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Product: %s", err))
}
s.ProductReleaseCatalogV1alpha1, err = catalog_v1alpha1.NewProductReleaseClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ProductRelease: %s", err))
}
s.ProductPlanUnitCatalogV1alpha1, err = catalog_v1alpha1.NewProductPlanUnitClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ProductPlanUnit: %s", err))
}
s.ProductPlanCatalogV1alpha1, err = catalog_v1alpha1.NewProductPlanClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ProductPlan: %s", err))
}
s.SubscriptionRequestDefinitionCatalogV1alpha1, err = catalog_v1alpha1.NewSubscriptionRequestDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.SubscriptionRequestDefinition: %s", err))
}
s.ProductPlanJobCatalogV1alpha1, err = catalog_v1alpha1.NewProductPlanJobClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ProductPlanJob: %s", err))
}
s.QuotaCatalogV1alpha1, err = catalog_v1alpha1.NewQuotaClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Quota: %s", err))
}
s.ProductReviewCatalogV1alpha1, err = catalog_v1alpha1.NewProductReviewClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ProductReview: %s", err))
}
s.AssetMappingCatalogV1alpha1, err = catalog_v1alpha1.NewAssetMappingClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.AssetMapping: %s", err))
}
s.AssetResourceCatalogV1alpha1, err = catalog_v1alpha1.NewAssetResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.AssetResource: %s", err))
}
s.AssetRequestDefinitionCatalogV1alpha1, err = catalog_v1alpha1.NewAssetRequestDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.AssetRequestDefinition: %s", err))
}
s.AssetRequestCatalogV1alpha1, err = catalog_v1alpha1.NewAssetRequestClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.AssetRequest: %s", err))
}
s.DocumentCatalogV1alpha1, err = catalog_v1alpha1.NewDocumentClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Document: %s", err))
}
s.ResourceCatalogV1alpha1, err = catalog_v1alpha1.NewResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Resource: %s", err))
}
s.ProductOverviewCatalogV1alpha1, err = catalog_v1alpha1.NewProductOverviewClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ProductOverview: %s", err))
}
s.WebhookCatalogV1alpha1, err = catalog_v1alpha1.NewWebhookClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Webhook: %s", err))
}
s.ReleaseTagCatalogV1alpha1, err = catalog_v1alpha1.NewReleaseTagClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.ReleaseTag: %s", err))
}
s.CredentialRequestDefinitionCatalogV1alpha1, err = catalog_v1alpha1.NewCredentialRequestDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.CredentialRequestDefinition: %s", err))
}
s.SecretCatalogV1alpha1, err = catalog_v1alpha1.NewSecretClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.Secret: %s", err))
}
s.AccessControlListCatalogV1alpha1, err = catalog_v1alpha1.NewAccessControlListClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1alpha1.AccessControlList: %s", err))
}
s.CategoryCatalogV1, err = catalog_v1.NewCategoryClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.Category: %s", err))
}
s.DocumentResourceCatalogV1, err = catalog_v1.NewDocumentResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.DocumentResource: %s", err))
}
s.MarketplaceCatalogV1, err = catalog_v1.NewMarketplaceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.Marketplace: %s", err))
}
s.CategoryVisibilityCatalogV1, err = catalog_v1.NewCategoryVisibilityClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.CategoryVisibility: %s", err))
}
s.PublishedDocumentResourceCatalogV1, err = catalog_v1.NewPublishedDocumentResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.PublishedDocumentResource: %s", err))
}
s.PublishedStageCatalogV1, err = catalog_v1.NewPublishedStageClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.PublishedStage: %s", err))
}
s.SupportContactCatalogV1, err = catalog_v1.NewSupportContactClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.SupportContact: %s", err))
}
s.ProductCatalogV1, err = catalog_v1.NewProductClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.Product: %s", err))
}
s.ProductReleaseCatalogV1, err = catalog_v1.NewProductReleaseClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.ProductRelease: %s", err))
}
s.SubscriptionRequestDefinitionCatalogV1, err = catalog_v1.NewSubscriptionRequestDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.SubscriptionRequestDefinition: %s", err))
}
s.QuotaCatalogV1, err = catalog_v1.NewQuotaClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.Quota: %s", err))
}
s.ProductReviewCatalogV1, err = catalog_v1.NewProductReviewClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.ProductReview: %s", err))
}
s.DocumentCatalogV1, err = catalog_v1.NewDocumentClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.Document: %s", err))
}
s.ResourceCatalogV1, err = catalog_v1.NewResourceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.Resource: %s", err))
}
s.ProductOverviewCatalogV1, err = catalog_v1.NewProductOverviewClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/catalog/v1.ProductOverview: %s", err))
}
s.ResourceGroupDefinitionsV1alpha1, err = definitions_v1alpha1.NewResourceGroupClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/definitions/v1alpha1.ResourceGroup: %s", err))
}
s.ResourceDefinitionDefinitionsV1alpha1, err = definitions_v1alpha1.NewResourceDefinitionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/definitions/v1alpha1.ResourceDefinition: %s", err))
}
s.ResourceDefinitionVersionDefinitionsV1alpha1, err = definitions_v1alpha1.NewResourceDefinitionVersionClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/definitions/v1alpha1.ResourceDefinitionVersion: %s", err))
}
s.CommandLineInterfaceDefinitionsV1alpha1, err = definitions_v1alpha1.NewCommandLineInterfaceClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/definitions/v1alpha1.CommandLineInterface: %s", err))
}
s.AccessControlListDefinitionsV1alpha1, err = definitions_v1alpha1.NewAccessControlListClient(b)
if err != nil {
panic(fmt.Sprintf("Failed to create client for github.com/Axway/agent-sdk/pkg/apic/apiserver/clients/definitions/v1alpha1.AccessControlList: %s", err))
}
return s
}