Skip to content

Commit 1e50226

Browse files
authored
CLOUDP-221984: remove redudant Mix max validation for SDK (#257)
1 parent 459be4d commit 1e50226

Some content is hidden

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

48 files changed

+1
-3204
lines changed

admin/api_access_tracking.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,6 @@ func (a *AccessTrackingApiService) listAccessLogsByClusterNameExecute(r ListAcce
177177
localVarHeaderParams := make(map[string]string)
178178
localVarQueryParams := url.Values{}
179179
localVarFormParams := url.Values{}
180-
if strlen(r.groupId) < 24 {
181-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
182-
}
183-
if strlen(r.groupId) > 24 {
184-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
185-
}
186-
if strlen(r.clusterName) < 1 {
187-
return localVarReturnValue, nil, reportError("clusterName must have at least 1 elements")
188-
}
189-
if strlen(r.clusterName) > 64 {
190-
return localVarReturnValue, nil, reportError("clusterName must have less than 64 elements")
191-
}
192180

193181
if r.authResult != nil {
194182
parameterAddToHeaderOrQuery(localVarQueryParams, "authResult", r.authResult, "")
@@ -383,12 +371,6 @@ func (a *AccessTrackingApiService) listAccessLogsByHostnameExecute(r ListAccessL
383371
localVarHeaderParams := make(map[string]string)
384372
localVarQueryParams := url.Values{}
385373
localVarFormParams := url.Values{}
386-
if strlen(r.groupId) < 24 {
387-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
388-
}
389-
if strlen(r.groupId) > 24 {
390-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
391-
}
392374

393375
if r.authResult != nil {
394376
parameterAddToHeaderOrQuery(localVarQueryParams, "authResult", r.authResult, "")

admin/api_alert_configurations.go

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,6 @@ func (a *AlertConfigurationsApiService) createAlertConfigurationExecute(r Create
290290
localVarHeaderParams := make(map[string]string)
291291
localVarQueryParams := url.Values{}
292292
localVarFormParams := url.Values{}
293-
if strlen(r.groupId) < 24 {
294-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
295-
}
296-
if strlen(r.groupId) > 24 {
297-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
298-
}
299293
if r.groupAlertsConfig == nil {
300294
return localVarReturnValue, nil, reportError("groupAlertsConfig is required and must be specified")
301295
}
@@ -430,18 +424,6 @@ func (a *AlertConfigurationsApiService) deleteAlertConfigurationExecute(r Delete
430424
localVarHeaderParams := make(map[string]string)
431425
localVarQueryParams := url.Values{}
432426
localVarFormParams := url.Values{}
433-
if strlen(r.groupId) < 24 {
434-
return nil, reportError("groupId must have at least 24 elements")
435-
}
436-
if strlen(r.groupId) > 24 {
437-
return nil, reportError("groupId must have less than 24 elements")
438-
}
439-
if strlen(r.alertConfigId) < 24 {
440-
return nil, reportError("alertConfigId must have at least 24 elements")
441-
}
442-
if strlen(r.alertConfigId) > 24 {
443-
return nil, reportError("alertConfigId must have less than 24 elements")
444-
}
445427

446428
// to determine the Content-Type header
447429
localVarHTTPContentTypes := []string{}
@@ -565,18 +547,6 @@ func (a *AlertConfigurationsApiService) getAlertConfigurationExecute(r GetAlertC
565547
localVarHeaderParams := make(map[string]string)
566548
localVarQueryParams := url.Values{}
567549
localVarFormParams := url.Values{}
568-
if strlen(r.groupId) < 24 {
569-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
570-
}
571-
if strlen(r.groupId) > 24 {
572-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
573-
}
574-
if strlen(r.alertConfigId) < 24 {
575-
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
576-
}
577-
if strlen(r.alertConfigId) > 24 {
578-
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
579-
}
580550

581551
// to determine the Content-Type header
582552
localVarHTTPContentTypes := []string{}
@@ -848,12 +818,6 @@ func (a *AlertConfigurationsApiService) listAlertConfigurationsExecute(r ListAle
848818
localVarHeaderParams := make(map[string]string)
849819
localVarQueryParams := url.Values{}
850820
localVarFormParams := url.Values{}
851-
if strlen(r.groupId) < 24 {
852-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
853-
}
854-
if strlen(r.groupId) > 24 {
855-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
856-
}
857821

858822
if r.includeCount != nil {
859823
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")
@@ -1034,18 +998,6 @@ func (a *AlertConfigurationsApiService) listAlertConfigurationsByAlertIdExecute(
1034998
localVarHeaderParams := make(map[string]string)
1035999
localVarQueryParams := url.Values{}
10361000
localVarFormParams := url.Values{}
1037-
if strlen(r.groupId) < 24 {
1038-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
1039-
}
1040-
if strlen(r.groupId) > 24 {
1041-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
1042-
}
1043-
if strlen(r.alertId) < 24 {
1044-
return localVarReturnValue, nil, reportError("alertId must have at least 24 elements")
1045-
}
1046-
if strlen(r.alertId) > 24 {
1047-
return localVarReturnValue, nil, reportError("alertId must have less than 24 elements")
1048-
}
10491001

10501002
if r.includeCount != nil {
10511003
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")
@@ -1205,18 +1157,6 @@ func (a *AlertConfigurationsApiService) toggleAlertConfigurationExecute(r Toggle
12051157
localVarHeaderParams := make(map[string]string)
12061158
localVarQueryParams := url.Values{}
12071159
localVarFormParams := url.Values{}
1208-
if strlen(r.groupId) < 24 {
1209-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
1210-
}
1211-
if strlen(r.groupId) > 24 {
1212-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
1213-
}
1214-
if strlen(r.alertConfigId) < 24 {
1215-
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
1216-
}
1217-
if strlen(r.alertConfigId) > 24 {
1218-
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
1219-
}
12201160
if r.alertsToggle == nil {
12211161
return localVarReturnValue, nil, reportError("alertsToggle is required and must be specified")
12221162
}
@@ -1360,18 +1300,6 @@ func (a *AlertConfigurationsApiService) updateAlertConfigurationExecute(r Update
13601300
localVarHeaderParams := make(map[string]string)
13611301
localVarQueryParams := url.Values{}
13621302
localVarFormParams := url.Values{}
1363-
if strlen(r.groupId) < 24 {
1364-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
1365-
}
1366-
if strlen(r.groupId) > 24 {
1367-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
1368-
}
1369-
if strlen(r.alertConfigId) < 24 {
1370-
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
1371-
}
1372-
if strlen(r.alertConfigId) > 24 {
1373-
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
1374-
}
13751303
if r.groupAlertsConfig == nil {
13761304
return localVarReturnValue, nil, reportError("groupAlertsConfig is required and must be specified")
13771305
}

admin/api_alerts.go

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,6 @@ func (a *AlertsApiService) acknowledgeAlertExecute(r AcknowledgeAlertApiRequest)
193193
localVarHeaderParams := make(map[string]string)
194194
localVarQueryParams := url.Values{}
195195
localVarFormParams := url.Values{}
196-
if strlen(r.groupId) < 24 {
197-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
198-
}
199-
if strlen(r.groupId) > 24 {
200-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
201-
}
202-
if strlen(r.alertId) < 24 {
203-
return localVarReturnValue, nil, reportError("alertId must have at least 24 elements")
204-
}
205-
if strlen(r.alertId) > 24 {
206-
return localVarReturnValue, nil, reportError("alertId must have less than 24 elements")
207-
}
208196
if r.alertViewForNdsGroup == nil {
209197
return localVarReturnValue, nil, reportError("alertViewForNdsGroup is required and must be specified")
210198
}
@@ -342,18 +330,6 @@ func (a *AlertsApiService) getAlertExecute(r GetAlertApiRequest) (*AlertViewForN
342330
localVarHeaderParams := make(map[string]string)
343331
localVarQueryParams := url.Values{}
344332
localVarFormParams := url.Values{}
345-
if strlen(r.groupId) < 24 {
346-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
347-
}
348-
if strlen(r.groupId) > 24 {
349-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
350-
}
351-
if strlen(r.alertId) < 24 {
352-
return localVarReturnValue, nil, reportError("alertId must have at least 24 elements")
353-
}
354-
if strlen(r.alertId) > 24 {
355-
return localVarReturnValue, nil, reportError("alertId must have less than 24 elements")
356-
}
357333

358334
// to determine the Content-Type header
359335
localVarHTTPContentTypes := []string{}
@@ -516,12 +492,6 @@ func (a *AlertsApiService) listAlertsExecute(r ListAlertsApiRequest) (*Paginated
516492
localVarHeaderParams := make(map[string]string)
517493
localVarQueryParams := url.Values{}
518494
localVarFormParams := url.Values{}
519-
if strlen(r.groupId) < 24 {
520-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
521-
}
522-
if strlen(r.groupId) > 24 {
523-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
524-
}
525495

526496
if r.includeCount != nil {
527497
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")
@@ -705,18 +675,6 @@ func (a *AlertsApiService) listAlertsByAlertConfigurationIdExecute(r ListAlertsB
705675
localVarHeaderParams := make(map[string]string)
706676
localVarQueryParams := url.Values{}
707677
localVarFormParams := url.Values{}
708-
if strlen(r.groupId) < 24 {
709-
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
710-
}
711-
if strlen(r.groupId) > 24 {
712-
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
713-
}
714-
if strlen(r.alertConfigId) < 24 {
715-
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
716-
}
717-
if strlen(r.alertConfigId) > 24 {
718-
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
719-
}
720678

721679
if r.includeCount != nil {
722680
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")

0 commit comments

Comments
 (0)