@@ -287,6 +287,9 @@ func (a *AlertConfigurationsApiService) CreateAlertConfigurationExecute(r Create
287287 }
288288
289289 localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/alertConfigs"
290+ if r .groupId == "" {
291+ return localVarReturnValue , nil , reportError ("groupId is empty and must be specified" )
292+ }
290293 localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
291294
292295 localVarHeaderParams := make (map [string ]string )
@@ -407,7 +410,13 @@ func (a *AlertConfigurationsApiService) DeleteAlertConfigurationExecute(r Delete
407410 }
408411
409412 localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/alertConfigs/{alertConfigId}"
413+ if r .groupId == "" {
414+ return nil , reportError ("groupId is empty and must be specified" )
415+ }
410416 localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
417+ if r .alertConfigId == "" {
418+ return nil , reportError ("alertConfigId is empty and must be specified" )
419+ }
411420 localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
412421
413422 localVarHeaderParams := make (map [string ]string )
@@ -512,7 +521,13 @@ func (a *AlertConfigurationsApiService) GetAlertConfigurationExecute(r GetAlertC
512521 }
513522
514523 localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/alertConfigs/{alertConfigId}"
524+ if r .groupId == "" {
525+ return localVarReturnValue , nil , reportError ("groupId is empty and must be specified" )
526+ }
515527 localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
528+ if r .alertConfigId == "" {
529+ return localVarReturnValue , nil , reportError ("alertConfigId is empty and must be specified" )
530+ }
516531 localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
517532
518533 localVarHeaderParams := make (map [string ]string )
@@ -758,6 +773,9 @@ func (a *AlertConfigurationsApiService) ListAlertConfigurationsExecute(r ListAle
758773 }
759774
760775 localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/alertConfigs"
776+ if r .groupId == "" {
777+ return localVarReturnValue , nil , reportError ("groupId is empty and must be specified" )
778+ }
761779 localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
762780
763781 localVarHeaderParams := make (map [string ]string )
@@ -924,7 +942,13 @@ func (a *AlertConfigurationsApiService) ListAlertConfigurationsByAlertIdExecute(
924942 }
925943
926944 localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/alerts/{alertId}/alertConfigs"
945+ if r .groupId == "" {
946+ return localVarReturnValue , nil , reportError ("groupId is empty and must be specified" )
947+ }
927948 localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
949+ if r .alertId == "" {
950+ return localVarReturnValue , nil , reportError ("alertId is empty and must be specified" )
951+ }
928952 localVarPath = strings .Replace (localVarPath , "{" + "alertId" + "}" , url .PathEscape (r .alertId ), - 1 )
929953
930954 localVarHeaderParams := make (map [string ]string )
@@ -1070,7 +1094,13 @@ func (a *AlertConfigurationsApiService) ToggleAlertConfigurationExecute(r Toggle
10701094 }
10711095
10721096 localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/alertConfigs/{alertConfigId}"
1097+ if r .groupId == "" {
1098+ return localVarReturnValue , nil , reportError ("groupId is empty and must be specified" )
1099+ }
10731100 localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
1101+ if r .alertConfigId == "" {
1102+ return localVarReturnValue , nil , reportError ("alertConfigId is empty and must be specified" )
1103+ }
10741104 localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
10751105
10761106 localVarHeaderParams := make (map [string ]string )
@@ -1200,7 +1230,13 @@ func (a *AlertConfigurationsApiService) UpdateAlertConfigurationExecute(r Update
12001230 }
12011231
12021232 localVarPath := localBasePath + "/api/atlas/v2/groups/{groupId}/alertConfigs/{alertConfigId}"
1233+ if r .groupId == "" {
1234+ return localVarReturnValue , nil , reportError ("groupId is empty and must be specified" )
1235+ }
12031236 localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
1237+ if r .alertConfigId == "" {
1238+ return localVarReturnValue , nil , reportError ("alertConfigId is empty and must be specified" )
1239+ }
12041240 localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
12051241
12061242 localVarHeaderParams := make (map [string ]string )
0 commit comments