Skip to content

Commit 828812f

Browse files
authored
feat(instance): add start_date to server maintenance (#1101)
1 parent 2420252 commit 828812f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/clients/src/api/instance/v1/marshalling.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ const unmarshalServerMaintenance = (data: unknown): ServerMaintenance => {
358358

359359
return {
360360
reason: data.reason,
361+
startDate: unmarshalDate(data.start_date),
361362
} as ServerMaintenance
362363
}
363364

@@ -2240,6 +2241,7 @@ const marshalServerMaintenance = (
22402241
defaults: DefaultValues,
22412242
): Record<string, unknown> => ({
22422243
reason: request.reason,
2244+
start_date: request.startDate,
22432245
})
22442246

22452247
export const marshalSetServerRequest = (

packages/clients/src/api/instance/v1/types.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ export interface ServerLocation {
327327

328328
export interface ServerMaintenance {
329329
reason: string
330+
startDate?: Date
330331
}
331332

332333
export interface VolumeServer {

0 commit comments

Comments
 (0)