Skip to content

feat(instance): add reason field in ServerMaintenance #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2023
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