@@ -287,6 +287,9 @@ func (a *AlertConfigurationsApiService) CreateAlertConfigurationExecute(r Create
287
287
}
288
288
289
289
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
+ }
290
293
localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
291
294
292
295
localVarHeaderParams := make (map [string ]string )
@@ -407,7 +410,13 @@ func (a *AlertConfigurationsApiService) DeleteAlertConfigurationExecute(r Delete
407
410
}
408
411
409
412
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
+ }
410
416
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
+ }
411
420
localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
412
421
413
422
localVarHeaderParams := make (map [string ]string )
@@ -512,7 +521,13 @@ func (a *AlertConfigurationsApiService) GetAlertConfigurationExecute(r GetAlertC
512
521
}
513
522
514
523
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
+ }
515
527
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
+ }
516
531
localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
517
532
518
533
localVarHeaderParams := make (map [string ]string )
@@ -758,6 +773,9 @@ func (a *AlertConfigurationsApiService) ListAlertConfigurationsExecute(r ListAle
758
773
}
759
774
760
775
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
+ }
761
779
localVarPath = strings .Replace (localVarPath , "{" + "groupId" + "}" , url .PathEscape (r .groupId ), - 1 )
762
780
763
781
localVarHeaderParams := make (map [string ]string )
@@ -924,7 +942,13 @@ func (a *AlertConfigurationsApiService) ListAlertConfigurationsByAlertIdExecute(
924
942
}
925
943
926
944
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
+ }
927
948
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
+ }
928
952
localVarPath = strings .Replace (localVarPath , "{" + "alertId" + "}" , url .PathEscape (r .alertId ), - 1 )
929
953
930
954
localVarHeaderParams := make (map [string ]string )
@@ -1070,7 +1094,13 @@ func (a *AlertConfigurationsApiService) ToggleAlertConfigurationExecute(r Toggle
1070
1094
}
1071
1095
1072
1096
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
+ }
1073
1100
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
+ }
1074
1104
localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
1075
1105
1076
1106
localVarHeaderParams := make (map [string ]string )
@@ -1200,7 +1230,13 @@ func (a *AlertConfigurationsApiService) UpdateAlertConfigurationExecute(r Update
1200
1230
}
1201
1231
1202
1232
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
+ }
1203
1236
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
+ }
1204
1240
localVarPath = strings .Replace (localVarPath , "{" + "alertConfigId" + "}" , url .PathEscape (r .alertConfigId ), - 1 )
1205
1241
1206
1242
localVarHeaderParams := make (map [string ]string )
0 commit comments