Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/clients/src/api/instance/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ const unmarshalServerMaintenance = (data: unknown) => {
)
}

return {} as ServerMaintenance
return { reason: data.reason } as ServerMaintenance
}

const unmarshalServerTypeCapabilities = (data: unknown) => {
Expand Down Expand Up @@ -1542,7 +1542,9 @@ const marshalServerLocation = (
const marshalServerMaintenance = (
request: ServerMaintenance,
defaults: DefaultValues,
): Record<string, unknown> => ({})
): Record<string, unknown> => ({
reason: request.reason,
})

const marshalSetSecurityGroupRulesRequestRule = (
request: SetSecurityGroupRulesRequestRule,
Expand Down
4 changes: 3 additions & 1 deletion packages/clients/src/api/instance/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,9 @@ export interface ServerLocation {
zoneId: string
}

export interface ServerMaintenance {}
export interface ServerMaintenance {
reason: string
}

export interface ServerSummary {
id: string
Expand Down