Skip to content

Commit 398f93a

Browse files
authored
CLOUDP-256771: add type mappings for supporting objects types (#348)
1 parent 02ad54d commit 398f93a

File tree

76 files changed

+609
-584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+609
-584
lines changed

admin/api_atlas_search.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ type AtlasSearchApi interface {
113113
DeleteAtlasSearchDeploymentWithParams(ctx context.Context, args *DeleteAtlasSearchDeploymentApiParams) DeleteAtlasSearchDeploymentApiRequest
114114

115115
// Method available only for mocking purposes
116-
DeleteAtlasSearchDeploymentExecute(r DeleteAtlasSearchDeploymentApiRequest) (map[string]interface{}, *http.Response, error)
116+
DeleteAtlasSearchDeploymentExecute(r DeleteAtlasSearchDeploymentApiRequest) (interface{}, *http.Response, error)
117117

118118
/*
119119
DeleteAtlasSearchIndex Remove One Atlas Search Index by Id
@@ -138,7 +138,7 @@ type AtlasSearchApi interface {
138138
DeleteAtlasSearchIndexWithParams(ctx context.Context, args *DeleteAtlasSearchIndexApiParams) DeleteAtlasSearchIndexApiRequest
139139

140140
// Method available only for mocking purposes
141-
DeleteAtlasSearchIndexExecute(r DeleteAtlasSearchIndexApiRequest) (map[string]interface{}, *http.Response, error)
141+
DeleteAtlasSearchIndexExecute(r DeleteAtlasSearchIndexApiRequest) (interface{}, *http.Response, error)
142142

143143
/*
144144
DeleteAtlasSearchIndexByName Remove One Atlas Search Index by Name
@@ -165,7 +165,7 @@ type AtlasSearchApi interface {
165165
DeleteAtlasSearchIndexByNameWithParams(ctx context.Context, args *DeleteAtlasSearchIndexByNameApiParams) DeleteAtlasSearchIndexByNameApiRequest
166166

167167
// Method available only for mocking purposes
168-
DeleteAtlasSearchIndexByNameExecute(r DeleteAtlasSearchIndexByNameApiRequest) (map[string]interface{}, *http.Response, error)
168+
DeleteAtlasSearchIndexByNameExecute(r DeleteAtlasSearchIndexByNameApiRequest) (interface{}, *http.Response, error)
169169

170170
/*
171171
DeleteAtlasSearchIndexDeprecated Remove One Atlas Search Index
@@ -194,7 +194,7 @@ type AtlasSearchApi interface {
194194
DeleteAtlasSearchIndexDeprecatedWithParams(ctx context.Context, args *DeleteAtlasSearchIndexDeprecatedApiParams) DeleteAtlasSearchIndexDeprecatedApiRequest
195195

196196
// Method available only for mocking purposes
197-
DeleteAtlasSearchIndexDeprecatedExecute(r DeleteAtlasSearchIndexDeprecatedApiRequest) (map[string]interface{}, *http.Response, error)
197+
DeleteAtlasSearchIndexDeprecatedExecute(r DeleteAtlasSearchIndexDeprecatedApiRequest) (interface{}, *http.Response, error)
198198

199199
/*
200200
GetAtlasSearchDeployment Return Search Nodes
@@ -897,7 +897,7 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchDeploymentWithParams(ctx contex
897897
}
898898
}
899899

900-
func (r DeleteAtlasSearchDeploymentApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
900+
func (r DeleteAtlasSearchDeploymentApiRequest) Execute() (interface{}, *http.Response, error) {
901901
return r.ApiService.DeleteAtlasSearchDeploymentExecute(r)
902902
}
903903

@@ -922,13 +922,13 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchDeployment(ctx context.Context,
922922

923923
// Execute executes the request
924924
//
925-
// @return map[string]interface{}
926-
func (a *AtlasSearchApiService) DeleteAtlasSearchDeploymentExecute(r DeleteAtlasSearchDeploymentApiRequest) (map[string]interface{}, *http.Response, error) {
925+
// @return interface{}
926+
func (a *AtlasSearchApiService) DeleteAtlasSearchDeploymentExecute(r DeleteAtlasSearchDeploymentApiRequest) (interface{}, *http.Response, error) {
927927
var (
928928
localVarHTTPMethod = http.MethodDelete
929929
localVarPostBody interface{}
930930
formFiles []formFile
931-
localVarReturnValue map[string]interface{}
931+
localVarReturnValue interface{}
932932
)
933933

934934
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AtlasSearchApiService.DeleteAtlasSearchDeployment")
@@ -1017,7 +1017,7 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexWithParams(ctx context.Con
10171017
}
10181018
}
10191019

1020-
func (r DeleteAtlasSearchIndexApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
1020+
func (r DeleteAtlasSearchIndexApiRequest) Execute() (interface{}, *http.Response, error) {
10211021
return r.ApiService.DeleteAtlasSearchIndexExecute(r)
10221022
}
10231023

@@ -1044,13 +1044,13 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndex(ctx context.Context, grou
10441044

10451045
// Execute executes the request
10461046
//
1047-
// @return map[string]interface{}
1048-
func (a *AtlasSearchApiService) DeleteAtlasSearchIndexExecute(r DeleteAtlasSearchIndexApiRequest) (map[string]interface{}, *http.Response, error) {
1047+
// @return interface{}
1048+
func (a *AtlasSearchApiService) DeleteAtlasSearchIndexExecute(r DeleteAtlasSearchIndexApiRequest) (interface{}, *http.Response, error) {
10491049
var (
10501050
localVarHTTPMethod = http.MethodDelete
10511051
localVarPostBody interface{}
10521052
formFiles []formFile
1053-
localVarReturnValue map[string]interface{}
1053+
localVarReturnValue interface{}
10541054
)
10551055

10561056
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AtlasSearchApiService.DeleteAtlasSearchIndex")
@@ -1146,7 +1146,7 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexByNameWithParams(ctx conte
11461146
}
11471147
}
11481148

1149-
func (r DeleteAtlasSearchIndexByNameApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
1149+
func (r DeleteAtlasSearchIndexByNameApiRequest) Execute() (interface{}, *http.Response, error) {
11501150
return r.ApiService.DeleteAtlasSearchIndexByNameExecute(r)
11511151
}
11521152

@@ -1177,13 +1177,13 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexByName(ctx context.Context
11771177

11781178
// Execute executes the request
11791179
//
1180-
// @return map[string]interface{}
1181-
func (a *AtlasSearchApiService) DeleteAtlasSearchIndexByNameExecute(r DeleteAtlasSearchIndexByNameApiRequest) (map[string]interface{}, *http.Response, error) {
1180+
// @return interface{}
1181+
func (a *AtlasSearchApiService) DeleteAtlasSearchIndexByNameExecute(r DeleteAtlasSearchIndexByNameApiRequest) (interface{}, *http.Response, error) {
11821182
var (
11831183
localVarHTTPMethod = http.MethodDelete
11841184
localVarPostBody interface{}
11851185
formFiles []formFile
1186-
localVarReturnValue map[string]interface{}
1186+
localVarReturnValue interface{}
11871187
)
11881188

11891189
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AtlasSearchApiService.DeleteAtlasSearchIndexByName")
@@ -1275,7 +1275,7 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexDeprecatedWithParams(ctx c
12751275
}
12761276
}
12771277

1278-
func (r DeleteAtlasSearchIndexDeprecatedApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
1278+
func (r DeleteAtlasSearchIndexDeprecatedApiRequest) Execute() (interface{}, *http.Response, error) {
12791279
return r.ApiService.DeleteAtlasSearchIndexDeprecatedExecute(r)
12801280
}
12811281

@@ -1304,15 +1304,15 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexDeprecated(ctx context.Con
13041304

13051305
// Execute executes the request
13061306
//
1307-
// @return map[string]interface{}
1307+
// @return interface{}
13081308
//
13091309
// Deprecated
1310-
func (a *AtlasSearchApiService) DeleteAtlasSearchIndexDeprecatedExecute(r DeleteAtlasSearchIndexDeprecatedApiRequest) (map[string]interface{}, *http.Response, error) {
1310+
func (a *AtlasSearchApiService) DeleteAtlasSearchIndexDeprecatedExecute(r DeleteAtlasSearchIndexDeprecatedApiRequest) (interface{}, *http.Response, error) {
13111311
var (
13121312
localVarHTTPMethod = http.MethodDelete
13131313
localVarPostBody interface{}
13141314
formFiles []formFile
1315-
localVarReturnValue map[string]interface{}
1315+
localVarReturnValue interface{}
13161316
)
13171317

13181318
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AtlasSearchApiService.DeleteAtlasSearchIndexDeprecated")

admin/api_cloud_backups.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type CloudBackupsApi interface {
3535
CancelBackupRestoreJobWithParams(ctx context.Context, args *CancelBackupRestoreJobApiParams) CancelBackupRestoreJobApiRequest
3636

3737
// Method available only for mocking purposes
38-
CancelBackupRestoreJobExecute(r CancelBackupRestoreJobApiRequest) (map[string]interface{}, *http.Response, error)
38+
CancelBackupRestoreJobExecute(r CancelBackupRestoreJobApiRequest) (interface{}, *http.Response, error)
3939

4040
/*
4141
CreateBackupExportJob Create One Cloud Backup Snapshot Export Job
@@ -184,7 +184,7 @@ type CloudBackupsApi interface {
184184
DeleteExportBucketWithParams(ctx context.Context, args *DeleteExportBucketApiParams) DeleteExportBucketApiRequest
185185

186186
// Method available only for mocking purposes
187-
DeleteExportBucketExecute(r DeleteExportBucketApiRequest) (map[string]interface{}, *http.Response, error)
187+
DeleteExportBucketExecute(r DeleteExportBucketApiRequest) (interface{}, *http.Response, error)
188188

189189
/*
190190
DeleteReplicaSetBackup Remove One Replica Set Cloud Backup
@@ -209,7 +209,7 @@ type CloudBackupsApi interface {
209209
DeleteReplicaSetBackupWithParams(ctx context.Context, args *DeleteReplicaSetBackupApiParams) DeleteReplicaSetBackupApiRequest
210210

211211
// Method available only for mocking purposes
212-
DeleteReplicaSetBackupExecute(r DeleteReplicaSetBackupApiRequest) (map[string]interface{}, *http.Response, error)
212+
DeleteReplicaSetBackupExecute(r DeleteReplicaSetBackupApiRequest) (interface{}, *http.Response, error)
213213

214214
/*
215215
DeleteShardedClusterBackup Remove One Sharded Cluster Cloud Backup
@@ -234,7 +234,7 @@ type CloudBackupsApi interface {
234234
DeleteShardedClusterBackupWithParams(ctx context.Context, args *DeleteShardedClusterBackupApiParams) DeleteShardedClusterBackupApiRequest
235235

236236
// Method available only for mocking purposes
237-
DeleteShardedClusterBackupExecute(r DeleteShardedClusterBackupApiRequest) (map[string]interface{}, *http.Response, error)
237+
DeleteShardedClusterBackupExecute(r DeleteShardedClusterBackupApiRequest) (interface{}, *http.Response, error)
238238

239239
/*
240240
GetBackupExportJob Return One Cloud Backup Snapshot Export Job
@@ -754,7 +754,7 @@ func (a *CloudBackupsApiService) CancelBackupRestoreJobWithParams(ctx context.Co
754754
}
755755
}
756756

757-
func (r CancelBackupRestoreJobApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
757+
func (r CancelBackupRestoreJobApiRequest) Execute() (interface{}, *http.Response, error) {
758758
return r.ApiService.CancelBackupRestoreJobExecute(r)
759759
}
760760

@@ -781,13 +781,13 @@ func (a *CloudBackupsApiService) CancelBackupRestoreJob(ctx context.Context, gro
781781

782782
// Execute executes the request
783783
//
784-
// @return map[string]interface{}
785-
func (a *CloudBackupsApiService) CancelBackupRestoreJobExecute(r CancelBackupRestoreJobApiRequest) (map[string]interface{}, *http.Response, error) {
784+
// @return interface{}
785+
func (a *CloudBackupsApiService) CancelBackupRestoreJobExecute(r CancelBackupRestoreJobApiRequest) (interface{}, *http.Response, error) {
786786
var (
787787
localVarHTTPMethod = http.MethodDelete
788788
localVarPostBody interface{}
789789
formFiles []formFile
790-
localVarReturnValue map[string]interface{}
790+
localVarReturnValue interface{}
791791
)
792792

793793
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudBackupsApiService.CancelBackupRestoreJob")
@@ -1491,7 +1491,7 @@ func (a *CloudBackupsApiService) DeleteExportBucketWithParams(ctx context.Contex
14911491
}
14921492
}
14931493

1494-
func (r DeleteExportBucketApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
1494+
func (r DeleteExportBucketApiRequest) Execute() (interface{}, *http.Response, error) {
14951495
return r.ApiService.DeleteExportBucketExecute(r)
14961496
}
14971497

@@ -1516,13 +1516,13 @@ func (a *CloudBackupsApiService) DeleteExportBucket(ctx context.Context, groupId
15161516

15171517
// Execute executes the request
15181518
//
1519-
// @return map[string]interface{}
1520-
func (a *CloudBackupsApiService) DeleteExportBucketExecute(r DeleteExportBucketApiRequest) (map[string]interface{}, *http.Response, error) {
1519+
// @return interface{}
1520+
func (a *CloudBackupsApiService) DeleteExportBucketExecute(r DeleteExportBucketApiRequest) (interface{}, *http.Response, error) {
15211521
var (
15221522
localVarHTTPMethod = http.MethodDelete
15231523
localVarPostBody interface{}
15241524
formFiles []formFile
1525-
localVarReturnValue map[string]interface{}
1525+
localVarReturnValue interface{}
15261526
)
15271527

15281528
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudBackupsApiService.DeleteExportBucket")
@@ -1611,7 +1611,7 @@ func (a *CloudBackupsApiService) DeleteReplicaSetBackupWithParams(ctx context.Co
16111611
}
16121612
}
16131613

1614-
func (r DeleteReplicaSetBackupApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
1614+
func (r DeleteReplicaSetBackupApiRequest) Execute() (interface{}, *http.Response, error) {
16151615
return r.ApiService.DeleteReplicaSetBackupExecute(r)
16161616
}
16171617

@@ -1638,13 +1638,13 @@ func (a *CloudBackupsApiService) DeleteReplicaSetBackup(ctx context.Context, gro
16381638

16391639
// Execute executes the request
16401640
//
1641-
// @return map[string]interface{}
1642-
func (a *CloudBackupsApiService) DeleteReplicaSetBackupExecute(r DeleteReplicaSetBackupApiRequest) (map[string]interface{}, *http.Response, error) {
1641+
// @return interface{}
1642+
func (a *CloudBackupsApiService) DeleteReplicaSetBackupExecute(r DeleteReplicaSetBackupApiRequest) (interface{}, *http.Response, error) {
16431643
var (
16441644
localVarHTTPMethod = http.MethodDelete
16451645
localVarPostBody interface{}
16461646
formFiles []formFile
1647-
localVarReturnValue map[string]interface{}
1647+
localVarReturnValue interface{}
16481648
)
16491649

16501650
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudBackupsApiService.DeleteReplicaSetBackup")
@@ -1734,7 +1734,7 @@ func (a *CloudBackupsApiService) DeleteShardedClusterBackupWithParams(ctx contex
17341734
}
17351735
}
17361736

1737-
func (r DeleteShardedClusterBackupApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
1737+
func (r DeleteShardedClusterBackupApiRequest) Execute() (interface{}, *http.Response, error) {
17381738
return r.ApiService.DeleteShardedClusterBackupExecute(r)
17391739
}
17401740

@@ -1761,13 +1761,13 @@ func (a *CloudBackupsApiService) DeleteShardedClusterBackup(ctx context.Context,
17611761

17621762
// Execute executes the request
17631763
//
1764-
// @return map[string]interface{}
1765-
func (a *CloudBackupsApiService) DeleteShardedClusterBackupExecute(r DeleteShardedClusterBackupApiRequest) (map[string]interface{}, *http.Response, error) {
1764+
// @return interface{}
1765+
func (a *CloudBackupsApiService) DeleteShardedClusterBackupExecute(r DeleteShardedClusterBackupApiRequest) (interface{}, *http.Response, error) {
17661766
var (
17671767
localVarHTTPMethod = http.MethodDelete
17681768
localVarPostBody interface{}
17691769
formFiles []formFile
1770-
localVarReturnValue map[string]interface{}
1770+
localVarReturnValue interface{}
17711771
)
17721772

17731773
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudBackupsApiService.DeleteShardedClusterBackup")

admin/api_cloud_migration_service.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ type CloudMigrationServiceApi interface {
111111
DeleteLinkTokenWithParams(ctx context.Context, args *DeleteLinkTokenApiParams) DeleteLinkTokenApiRequest
112112

113113
// Method available only for mocking purposes
114-
DeleteLinkTokenExecute(r DeleteLinkTokenApiRequest) (map[string]interface{}, *http.Response, error)
114+
DeleteLinkTokenExecute(r DeleteLinkTokenApiRequest) (interface{}, *http.Response, error)
115115

116116
/*
117117
GetPushMigration Return One Migration Job
@@ -576,7 +576,7 @@ func (a *CloudMigrationServiceApiService) DeleteLinkTokenWithParams(ctx context.
576576
}
577577
}
578578

579-
func (r DeleteLinkTokenApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
579+
func (r DeleteLinkTokenApiRequest) Execute() (interface{}, *http.Response, error) {
580580
return r.ApiService.DeleteLinkTokenExecute(r)
581581
}
582582

@@ -599,13 +599,13 @@ func (a *CloudMigrationServiceApiService) DeleteLinkToken(ctx context.Context, o
599599

600600
// Execute executes the request
601601
//
602-
// @return map[string]interface{}
603-
func (a *CloudMigrationServiceApiService) DeleteLinkTokenExecute(r DeleteLinkTokenApiRequest) (map[string]interface{}, *http.Response, error) {
602+
// @return interface{}
603+
func (a *CloudMigrationServiceApiService) DeleteLinkTokenExecute(r DeleteLinkTokenApiRequest) (interface{}, *http.Response, error) {
604604
var (
605605
localVarHTTPMethod = http.MethodDelete
606606
localVarPostBody interface{}
607607
formFiles []formFile
608-
localVarReturnValue map[string]interface{}
608+
localVarReturnValue interface{}
609609
)
610610

611611
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CloudMigrationServiceApiService.DeleteLinkToken")

admin/api_collection_level_metrics.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ type CollectionLevelMetricsApi interface {
8888
GetCollStatsLatencyNamespaceMetricsWithParams(ctx context.Context, args *GetCollStatsLatencyNamespaceMetricsApiParams) GetCollStatsLatencyNamespaceMetricsApiRequest
8989

9090
// Method available only for mocking purposes
91-
GetCollStatsLatencyNamespaceMetricsExecute(r GetCollStatsLatencyNamespaceMetricsApiRequest) (map[string]interface{}, *http.Response, error)
91+
GetCollStatsLatencyNamespaceMetricsExecute(r GetCollStatsLatencyNamespaceMetricsApiRequest) (interface{}, *http.Response, error)
9292

9393
/*
9494
GetCollStatsLatencyNamespacesForCluster Return Ranked Namespaces from a Cluster
@@ -628,7 +628,7 @@ func (a *CollectionLevelMetricsApiService) GetCollStatsLatencyNamespaceMetricsWi
628628
}
629629
}
630630

631-
func (r GetCollStatsLatencyNamespaceMetricsApiRequest) Execute() (map[string]interface{}, *http.Response, error) {
631+
func (r GetCollStatsLatencyNamespaceMetricsApiRequest) Execute() (interface{}, *http.Response, error) {
632632
return r.ApiService.GetCollStatsLatencyNamespaceMetricsExecute(r)
633633
}
634634

@@ -651,13 +651,13 @@ func (a *CollectionLevelMetricsApiService) GetCollStatsLatencyNamespaceMetrics(c
651651

652652
// Execute executes the request
653653
//
654-
// @return map[string]interface{}
655-
func (a *CollectionLevelMetricsApiService) GetCollStatsLatencyNamespaceMetricsExecute(r GetCollStatsLatencyNamespaceMetricsApiRequest) (map[string]interface{}, *http.Response, error) {
654+
// @return interface{}
655+
func (a *CollectionLevelMetricsApiService) GetCollStatsLatencyNamespaceMetricsExecute(r GetCollStatsLatencyNamespaceMetricsApiRequest) (interface{}, *http.Response, error) {
656656
var (
657657
localVarHTTPMethod = http.MethodGet
658658
localVarPostBody interface{}
659659
formFiles []formFile
660-
localVarReturnValue map[string]interface{}
660+
localVarReturnValue interface{}
661661
)
662662

663663
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CollectionLevelMetricsApiService.GetCollStatsLatencyNamespaceMetrics")

0 commit comments

Comments
 (0)