Skip to content
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

feat(apple_silicon): adapt public API for automatic server deletion #2164

Merged
merged 1 commit into from
Aug 2, 2024
Merged
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
8 changes: 7 additions & 1 deletion api/applesilicon/v1alpha1/applesilicon_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,12 @@ type Server struct {
// UpdatedAt: date on which the server was last updated.
UpdatedAt *time.Time `json:"updated_at"`

// DeletableAt: date on which the server was last deleted.
// DeletableAt: date from which the server can be deleted.
DeletableAt *time.Time `json:"deletable_at"`

// DeletionScheduled: 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 bool `json:"deletion_scheduled"`

// Zone: zone of the server.
Zone scw.Zone `json:"zone"`
}
Expand Down Expand Up @@ -506,6 +509,9 @@ type UpdateServerRequest struct {

// Name: updated name for your server.
Name *string `json:"name,omitempty"`

// ScheduleDeletion: specify whether the server should be flagged for automatic deletion.
ScheduleDeletion *bool `json:"schedule_deletion,omitempty"`
}

// This API allows you to manage your Apple silicon machines.
Expand Down