Skip to content

Commit f9e7c12

Browse files
lantoliwtrocki
andauthored
fix: Gives preference to JSON responses (#473)
Co-authored-by: wtrocki <[email protected]>
1 parent 8aca342 commit f9e7c12

File tree

110 files changed

+1421
-1319
lines changed

Some content is hidden

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

110 files changed

+1421
-1319
lines changed

admin/api_access_tracking.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ func (a *AccessTrackingApiService) ListAccessLogsByClusterNameExecute(r ListAcce
205205
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
206206
}
207207

208-
// to determine the Accept header
209-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
208+
// to determine the Accept header (only first one)
209+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
210210

211211
// set Accept header
212212
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -386,8 +386,8 @@ func (a *AccessTrackingApiService) ListAccessLogsByHostnameExecute(r ListAccessL
386386
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
387387
}
388388

389-
// to determine the Accept header
390-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
389+
// to determine the Accept header (only first one)
390+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
391391

392392
// set Accept header
393393
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)

admin/api_alert_configurations.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ func (a *AlertConfigurationsApiService) CreateAlertConfigurationExecute(r Create
305305
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
306306
}
307307

308-
// to determine the Accept header
309-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
308+
// to determine the Accept header (only first one)
309+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
310310

311311
// set Accept header
312312
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -423,8 +423,8 @@ func (a *AlertConfigurationsApiService) DeleteAlertConfigurationExecute(r Delete
423423
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
424424
}
425425

426-
// to determine the Accept header
427-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
426+
// to determine the Accept header (only first one)
427+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
428428

429429
// set Accept header
430430
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -528,8 +528,8 @@ func (a *AlertConfigurationsApiService) GetAlertConfigurationExecute(r GetAlertC
528528
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
529529
}
530530

531-
// to determine the Accept header
532-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
531+
// to determine the Accept header (only first one)
532+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
533533

534534
// set Accept header
535535
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -633,8 +633,8 @@ func (a *AlertConfigurationsApiService) ListAlertConfigurationMatchersFieldNames
633633
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
634634
}
635635

636-
// to determine the Accept header
637-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
636+
// to determine the Accept header (only first one)
637+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
638638

639639
// set Accept header
640640
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -794,8 +794,8 @@ func (a *AlertConfigurationsApiService) ListAlertConfigurationsExecute(r ListAle
794794
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
795795
}
796796

797-
// to determine the Accept header
798-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
797+
// to determine the Accept header (only first one)
798+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
799799

800800
// set Accept header
801801
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -961,8 +961,8 @@ func (a *AlertConfigurationsApiService) ListAlertConfigurationsByAlertIdExecute(
961961
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
962962
}
963963

964-
// to determine the Accept header
965-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
964+
// to determine the Accept header (only first one)
965+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
966966

967967
// set Accept header
968968
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1089,8 +1089,8 @@ func (a *AlertConfigurationsApiService) ToggleAlertConfigurationExecute(r Toggle
10891089
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
10901090
}
10911091

1092-
// to determine the Accept header
1093-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
1092+
// to determine the Accept header (only first one)
1093+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
10941094

10951095
// set Accept header
10961096
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1219,8 +1219,8 @@ func (a *AlertConfigurationsApiService) UpdateAlertConfigurationExecute(r Update
12191219
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
12201220
}
12211221

1222-
// to determine the Accept header
1223-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
1222+
// to determine the Accept header (only first one)
1223+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
12241224

12251225
// set Accept header
12261226
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)

admin/api_alerts.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ func (a *AlertsApiService) AcknowledgeAlertExecute(r AcknowledgeAlertApiRequest)
206206
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
207207
}
208208

209-
// to determine the Accept header
210-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
209+
// to determine the Accept header (only first one)
210+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
211211

212212
// set Accept header
213213
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -327,8 +327,8 @@ func (a *AlertsApiService) GetAlertExecute(r GetAlertApiRequest) (*AlertViewForN
327327
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
328328
}
329329

330-
// to determine the Accept header
331-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
330+
// to determine the Accept header (only first one)
331+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
332332

333333
// set Accept header
334334
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -500,8 +500,8 @@ func (a *AlertsApiService) ListAlertsExecute(r ListAlertsApiRequest) (*Paginated
500500
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
501501
}
502502

503-
// to determine the Accept header
504-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
503+
// to determine the Accept header (only first one)
504+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
505505

506506
// set Accept header
507507
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -667,8 +667,8 @@ func (a *AlertsApiService) ListAlertsByAlertConfigurationIdExecute(r ListAlertsB
667667
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
668668
}
669669

670-
// to determine the Accept header
671-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
670+
// to determine the Accept header (only first one)
671+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
672672

673673
// set Accept header
674674
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)

admin/api_atlas_search.go

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ func (a *AtlasSearchApiService) CreateAtlasSearchDeploymentExecute(r CreateAtlas
578578
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
579579
}
580580

581-
// to determine the Accept header
582-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
581+
// to determine the Accept header (only first one)
582+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
583583

584584
// set Accept header
585585
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -704,8 +704,8 @@ func (a *AtlasSearchApiService) CreateAtlasSearchIndexExecute(r CreateAtlasSearc
704704
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
705705
}
706706

707-
// to determine the Accept header
708-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
707+
// to determine the Accept header (only first one)
708+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
709709

710710
// set Accept header
711711
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -834,8 +834,8 @@ func (a *AtlasSearchApiService) CreateAtlasSearchIndexDeprecatedExecute(r Create
834834
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
835835
}
836836

837-
// to determine the Accept header
838-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
837+
// to determine the Accept header (only first one)
838+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
839839

840840
// set Accept header
841841
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -953,8 +953,8 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchDeploymentExecute(r DeleteAtlas
953953
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
954954
}
955955

956-
// to determine the Accept header
957-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
956+
// to determine the Accept header (only first one)
957+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
958958

959959
// set Accept header
960960
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1076,8 +1076,8 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexExecute(r DeleteAtlasSearc
10761076
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
10771077
}
10781078

1079-
// to determine the Accept header
1080-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
1079+
// to determine the Accept header (only first one)
1080+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
10811081

10821082
// set Accept header
10831083
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1211,8 +1211,8 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexByNameExecute(r DeleteAtla
12111211
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
12121212
}
12131213

1214-
// to determine the Accept header
1215-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
1214+
// to determine the Accept header (only first one)
1215+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
12161216

12171217
// set Accept header
12181218
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1338,8 +1338,8 @@ func (a *AtlasSearchApiService) DeleteAtlasSearchIndexDeprecatedExecute(r Delete
13381338
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
13391339
}
13401340

1341-
// to determine the Accept header
1342-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
1341+
// to determine the Accept header (only first one)
1342+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
13431343

13441344
// set Accept header
13451345
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1455,8 +1455,8 @@ func (a *AtlasSearchApiService) GetAtlasSearchDeploymentExecute(r GetAtlasSearch
14551455
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
14561456
}
14571457

1458-
// to determine the Accept header
1459-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
1458+
// to determine the Accept header (only first one)
1459+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
14601460

14611461
// set Accept header
14621462
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1578,8 +1578,8 @@ func (a *AtlasSearchApiService) GetAtlasSearchIndexExecute(r GetAtlasSearchIndex
15781578
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
15791579
}
15801580

1581-
// to determine the Accept header
1582-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
1581+
// to determine the Accept header (only first one)
1582+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
15831583

15841584
// set Accept header
15851585
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1713,8 +1713,8 @@ func (a *AtlasSearchApiService) GetAtlasSearchIndexByNameExecute(r GetAtlasSearc
17131713
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
17141714
}
17151715

1716-
// to determine the Accept header
1717-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
1716+
// to determine the Accept header (only first one)
1717+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
17181718

17191719
// set Accept header
17201720
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1840,8 +1840,8 @@ func (a *AtlasSearchApiService) GetAtlasSearchIndexDeprecatedExecute(r GetAtlasS
18401840
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
18411841
}
18421842

1843-
// to determine the Accept header
1844-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
1843+
// to determine the Accept header (only first one)
1844+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
18451845

18461846
// set Accept header
18471847
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -1969,8 +1969,8 @@ func (a *AtlasSearchApiService) ListAtlasSearchIndexesExecute(r ListAtlasSearchI
19691969
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
19701970
}
19711971

1972-
// to determine the Accept header
1973-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
1972+
// to determine the Accept header (only first one)
1973+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
19741974

19751975
// set Accept header
19761976
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -2086,8 +2086,8 @@ func (a *AtlasSearchApiService) ListAtlasSearchIndexesClusterExecute(r ListAtlas
20862086
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
20872087
}
20882088

2089-
// to determine the Accept header
2090-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
2089+
// to determine the Accept header (only first one)
2090+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
20912091

20922092
// set Accept header
20932093
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -2219,8 +2219,8 @@ func (a *AtlasSearchApiService) ListAtlasSearchIndexesDeprecatedExecute(r ListAt
22192219
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
22202220
}
22212221

2222-
// to determine the Accept header
2223-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
2222+
// to determine the Accept header (only first one)
2223+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
22242224

22252225
// set Accept header
22262226
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -2343,8 +2343,8 @@ func (a *AtlasSearchApiService) UpdateAtlasSearchDeploymentExecute(r UpdateAtlas
23432343
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
23442344
}
23452345

2346-
// to determine the Accept header
2347-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
2346+
// to determine the Accept header (only first one)
2347+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
23482348

23492349
// set Accept header
23502350
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -2475,8 +2475,8 @@ func (a *AtlasSearchApiService) UpdateAtlasSearchIndexExecute(r UpdateAtlasSearc
24752475
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
24762476
}
24772477

2478-
// to determine the Accept header
2479-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
2478+
// to determine the Accept header (only first one)
2479+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
24802480

24812481
// set Accept header
24822482
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -2619,8 +2619,8 @@ func (a *AtlasSearchApiService) UpdateAtlasSearchIndexByNameExecute(r UpdateAtla
26192619
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
26202620
}
26212621

2622-
// to determine the Accept header
2623-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json", "application/json"}
2622+
// to determine the Accept header (only first one)
2623+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2024-05-30+json"}
26242624

26252625
// set Accept header
26262626
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -2755,8 +2755,8 @@ func (a *AtlasSearchApiService) UpdateAtlasSearchIndexDeprecatedExecute(r Update
27552755
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
27562756
}
27572757

2758-
// to determine the Accept header
2759-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
2758+
// to determine the Accept header (only first one)
2759+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
27602760

27612761
// set Accept header
27622762
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)

admin/api_auditing.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ func (a *AuditingApiService) GetAuditingConfigurationExecute(r GetAuditingConfig
134134
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
135135
}
136136

137-
// to determine the Accept header
138-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
137+
// to determine the Accept header (only first one)
138+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
139139

140140
// set Accept header
141141
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -252,8 +252,8 @@ func (a *AuditingApiService) UpdateAuditingConfigurationExecute(r UpdateAuditing
252252
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
253253
}
254254

255-
// to determine the Accept header
256-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
255+
// to determine the Accept header (only first one)
256+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
257257

258258
// set Accept header
259259
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)

admin/api_aws_clusters_dns.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ func (a *AWSClustersDNSApiService) GetAWSCustomDNSExecute(r GetAWSCustomDNSApiRe
134134
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
135135
}
136136

137-
// to determine the Accept header
138-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
137+
// to determine the Accept header (only first one)
138+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
139139

140140
// set Accept header
141141
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
@@ -252,8 +252,8 @@ func (a *AWSClustersDNSApiService) ToggleAWSCustomDNSExecute(r ToggleAWSCustomDN
252252
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
253253
}
254254

255-
// to determine the Accept header
256-
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json", "application/json"}
255+
// to determine the Accept header (only first one)
256+
localVarHTTPHeaderAccepts := []string{"application/vnd.atlas.2023-01-01+json"}
257257

258258
// set Accept header
259259
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)

0 commit comments

Comments
 (0)