@@ -26,12 +26,11 @@ func maintenanceWindowResponseToModel(spaceId string, res *alerting.MaintenanceW
2626 unwrappedRecurring := unwrapOptionalField (res .Schedule .Custom .Recurring )
2727
2828 recurring = & models.MaintenanceWindowScheduleRecurring {
29- End : unwrappedRecurring .End ,
30- Every : unwrappedRecurring .Every ,
31- Occurrences : unwrappedRecurring .Occurrences ,
32- OnWeekDay : & unwrappedRecurring .OnWeekDay ,
33- OnMonthDay : & unwrappedRecurring .OnMonthDay ,
34- OnMonth : & unwrappedRecurring .OnMonth ,
29+ End : unwrappedRecurring .End ,
30+ Every : unwrappedRecurring .Every ,
31+ OnWeekDay : & unwrappedRecurring .OnWeekDay ,
32+ OnMonthDay : & unwrappedRecurring .OnMonthDay ,
33+ OnMonth : & unwrappedRecurring .OnMonth ,
3534 }
3635 }
3736
@@ -91,12 +90,11 @@ func CreateMaintenanceWindow(ctx context.Context, apiClient ApiClient, maintenan
9190 unwrappedOnMonth := unwrapOptionalField (unwrappedRecurring .OnMonth )
9291
9392 recurring = & alerting.CreateMaintenanceWindowRequestScheduleCustomRecurring {
94- End : unwrappedRecurring .End ,
95- Every : unwrappedRecurring .Every ,
96- Occurrences : unwrappedRecurring .Occurrences ,
97- OnWeekDay : unwrappedOnWeekDay ,
98- OnMonthDay : unwrappedOnMonthDay ,
99- OnMonth : unwrappedOnMonth ,
93+ End : unwrappedRecurring .End ,
94+ Every : unwrappedRecurring .Every ,
95+ OnWeekDay : unwrappedOnWeekDay ,
96+ OnMonthDay : unwrappedOnMonthDay ,
97+ OnMonth : unwrappedOnMonth ,
10098 }
10199 }
102100
@@ -215,12 +213,11 @@ func UpdateMaintenanceWindow(ctx context.Context, apiClient ApiClient, maintenan
215213 unwrappedOnMonth := unwrapOptionalField (unwrappedRecurring .OnMonth )
216214
217215 recurring = & alerting.CreateMaintenanceWindowRequestScheduleCustomRecurring {
218- End : unwrappedRecurring .End ,
219- Every : unwrappedRecurring .Every ,
220- Occurrences : unwrappedRecurring .Occurrences ,
221- OnWeekDay : unwrappedOnWeekDay ,
222- OnMonthDay : unwrappedOnMonthDay ,
223- OnMonth : unwrappedOnMonth ,
216+ End : unwrappedRecurring .End ,
217+ Every : unwrappedRecurring .Every ,
218+ OnWeekDay : unwrappedOnWeekDay ,
219+ OnMonthDay : unwrappedOnMonthDay ,
220+ OnMonth : unwrappedOnMonth ,
224221 }
225222 }
226223
0 commit comments