Skip to content

Commit 4d94855

Browse files
authored
feat(instance): add reason field in ServerMaintenance (#391)
1 parent e349611 commit 4d94855

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ const unmarshalServerMaintenance = (data: unknown) => {
351351
)
352352
}
353353

354-
return {} as ServerMaintenance
354+
return { reason: data.reason } as ServerMaintenance
355355
}
356356

357357
const unmarshalServerTypeCapabilities = (data: unknown) => {
@@ -1542,7 +1542,9 @@ const marshalServerLocation = (
15421542
const marshalServerMaintenance = (
15431543
request: ServerMaintenance,
15441544
defaults: DefaultValues,
1545-
): Record<string, unknown> => ({})
1545+
): Record<string, unknown> => ({
1546+
reason: request.reason,
1547+
})
15461548

15471549
const marshalSetSecurityGroupRulesRequestRule = (
15481550
request: SetSecurityGroupRulesRequestRule,

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,9 @@ export interface ServerLocation {
579579
zoneId: string
580580
}
581581

582-
export interface ServerMaintenance {}
582+
export interface ServerMaintenance {
583+
reason: string
584+
}
583585

584586
export interface ServerSummary {
585587
id: string

0 commit comments

Comments
 (0)