Skip to content

Commit

Permalink
CLOUDP-221984: remove redudant Mix max validation for SDK (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki authored Jan 11, 2024
1 parent 459be4d commit 1e50226
Show file tree
Hide file tree
Showing 48 changed files with 1 addition and 3,204 deletions.
18 changes: 0 additions & 18 deletions admin/api_access_tracking.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,18 +177,6 @@ func (a *AccessTrackingApiService) listAccessLogsByClusterNameExecute(r ListAcce
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.clusterName) < 1 {
return localVarReturnValue, nil, reportError("clusterName must have at least 1 elements")
}
if strlen(r.clusterName) > 64 {
return localVarReturnValue, nil, reportError("clusterName must have less than 64 elements")
}

if r.authResult != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "authResult", r.authResult, "")
Expand Down Expand Up @@ -383,12 +371,6 @@ func (a *AccessTrackingApiService) listAccessLogsByHostnameExecute(r ListAccessL
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}

if r.authResult != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "authResult", r.authResult, "")
Expand Down
72 changes: 0 additions & 72 deletions admin/api_alert_configurations.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,6 @@ func (a *AlertConfigurationsApiService) createAlertConfigurationExecute(r Create
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if r.groupAlertsConfig == nil {
return localVarReturnValue, nil, reportError("groupAlertsConfig is required and must be specified")
}
Expand Down Expand Up @@ -430,18 +424,6 @@ func (a *AlertConfigurationsApiService) deleteAlertConfigurationExecute(r Delete
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertConfigId) < 24 {
return nil, reportError("alertConfigId must have at least 24 elements")
}
if strlen(r.alertConfigId) > 24 {
return nil, reportError("alertConfigId must have less than 24 elements")
}

// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
Expand Down Expand Up @@ -565,18 +547,6 @@ func (a *AlertConfigurationsApiService) getAlertConfigurationExecute(r GetAlertC
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertConfigId) < 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
}
if strlen(r.alertConfigId) > 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
}

// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
Expand Down Expand Up @@ -848,12 +818,6 @@ func (a *AlertConfigurationsApiService) listAlertConfigurationsExecute(r ListAle
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}

if r.includeCount != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")
Expand Down Expand Up @@ -1034,18 +998,6 @@ func (a *AlertConfigurationsApiService) listAlertConfigurationsByAlertIdExecute(
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertId) < 24 {
return localVarReturnValue, nil, reportError("alertId must have at least 24 elements")
}
if strlen(r.alertId) > 24 {
return localVarReturnValue, nil, reportError("alertId must have less than 24 elements")
}

if r.includeCount != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")
Expand Down Expand Up @@ -1205,18 +1157,6 @@ func (a *AlertConfigurationsApiService) toggleAlertConfigurationExecute(r Toggle
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertConfigId) < 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
}
if strlen(r.alertConfigId) > 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
}
if r.alertsToggle == nil {
return localVarReturnValue, nil, reportError("alertsToggle is required and must be specified")
}
Expand Down Expand Up @@ -1360,18 +1300,6 @@ func (a *AlertConfigurationsApiService) updateAlertConfigurationExecute(r Update
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertConfigId) < 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
}
if strlen(r.alertConfigId) > 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
}
if r.groupAlertsConfig == nil {
return localVarReturnValue, nil, reportError("groupAlertsConfig is required and must be specified")
}
Expand Down
42 changes: 0 additions & 42 deletions admin/api_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,6 @@ func (a *AlertsApiService) acknowledgeAlertExecute(r AcknowledgeAlertApiRequest)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertId) < 24 {
return localVarReturnValue, nil, reportError("alertId must have at least 24 elements")
}
if strlen(r.alertId) > 24 {
return localVarReturnValue, nil, reportError("alertId must have less than 24 elements")
}
if r.alertViewForNdsGroup == nil {
return localVarReturnValue, nil, reportError("alertViewForNdsGroup is required and must be specified")
}
Expand Down Expand Up @@ -342,18 +330,6 @@ func (a *AlertsApiService) getAlertExecute(r GetAlertApiRequest) (*AlertViewForN
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertId) < 24 {
return localVarReturnValue, nil, reportError("alertId must have at least 24 elements")
}
if strlen(r.alertId) > 24 {
return localVarReturnValue, nil, reportError("alertId must have less than 24 elements")
}

// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
Expand Down Expand Up @@ -516,12 +492,6 @@ func (a *AlertsApiService) listAlertsExecute(r ListAlertsApiRequest) (*Paginated
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}

if r.includeCount != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")
Expand Down Expand Up @@ -705,18 +675,6 @@ func (a *AlertsApiService) listAlertsByAlertConfigurationIdExecute(r ListAlertsB
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if strlen(r.groupId) < 24 {
return localVarReturnValue, nil, reportError("groupId must have at least 24 elements")
}
if strlen(r.groupId) > 24 {
return localVarReturnValue, nil, reportError("groupId must have less than 24 elements")
}
if strlen(r.alertConfigId) < 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have at least 24 elements")
}
if strlen(r.alertConfigId) > 24 {
return localVarReturnValue, nil, reportError("alertConfigId must have less than 24 elements")
}

if r.includeCount != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "includeCount", r.includeCount, "")
Expand Down
Loading

0 comments on commit 1e50226

Please sign in to comment.