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
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export const unmarshalServer = (data: unknown): Server => {
return {
createdAt: unmarshalDate(data.created_at),
deletableAt: unmarshalDate(data.deletable_at),
deletionScheduled: data.deletion_scheduled,
id: data.id,
ip: data.ip,
name: data.name,
Expand Down Expand Up @@ -220,4 +221,5 @@ export const marshalUpdateServerRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
name: request.name,
schedule_deletion: request.scheduleDeletion,
})
10 changes: 9 additions & 1 deletion packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,14 @@ export interface Server {
createdAt?: Date
/** Date on which the server was last updated. */
updatedAt?: Date
/** Date on which the server was last deleted. */
/** Date from which the server can be deleted. */
deletableAt?: Date
/**
* Set to true to mark the server for automatic deletion depending on
* `deletable_at` date. Set to false to cancel an existing deletion schedule.
* Leave unset otherwise.
*/
deletionScheduled: boolean
/** Zone of the server. */
zone: Zone
}
Expand Down Expand Up @@ -256,4 +262,6 @@ export type UpdateServerRequest = {
serverId: string
/** Updated name for your server. */
name?: string
/** Specify whether the server should be flagged for automatic deletion. */
scheduleDeletion?: boolean
}