File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,21 @@ type OnlineArchive struct {
197197 GroupID string `json:"groupId,omitempty"`
198198 PartitionFields []* PartitionFields `json:"partitionFields,omitempty"`
199199 Paused * bool `json:"paused,omitempty"`
200+ Schedule * OnlineArchiveSchedule `json:"schedule,omitempty"`
200201 State string `json:"state,omitempty"`
201202}
202203
204+ // OnlineArchiveSchedule represents the frequency and duration when archiving process occurs.
205+ type OnlineArchiveSchedule struct {
206+ Type string `json:"type,omitempty"`
207+ DayOfMonth int32 `json:"dayOfMonth,omitempty"`
208+ DayOfWeek int32 `json:"dayOfWeek,omitempty"`
209+ EndHour * int32 `json:"endHour,omitempty"`
210+ EndMinute * int32 `json:"endMinute,omitempty"`
211+ StartHour * int32 `json:"startHour,omitempty"`
212+ StartMinute * int32 `json:"startMinute,omitempty"`
213+ }
214+
203215// OnlineArchiveCriteria criteria to use for archiving data.
204216type OnlineArchiveCriteria struct {
205217 DateField string `json:"dateField,omitempty"` // DateField is mandatory when Type is DATE
Original file line number Diff line number Diff line change @@ -94,7 +94,14 @@ func TestOnlineArchiveServiceOp_List(t *testing.T) {
9494 "order": 2
9595 }
9696 ],
97- "paused": false
97+ "paused": false,
98+ "schedule": {
99+ "type": "DAILY",
100+ "endHour": 1,
101+ "endMinute": 1,
102+ "startHour": 1,
103+ "startMinute": 1
104+ }
98105 }
99106 ],
100107 "totalCount": 2
@@ -171,6 +178,13 @@ func TestOnlineArchiveServiceOp_List(t *testing.T) {
171178 },
172179 },
173180 Paused : pointer (false ),
181+ Schedule : & OnlineArchiveSchedule {
182+ EndHour : pointer (int32 (1 )),
183+ EndMinute : pointer (int32 (1 )),
184+ StartHour : pointer (int32 (1 )),
185+ StartMinute : pointer (int32 (1 )),
186+ Type : "DAILY" ,
187+ },
174188 },
175189 },
176190 TotalCount : 2 ,
You can’t perform that action at this time.
0 commit comments