Skip to content

Commit 38ab1ca

Browse files
authored
fix(instance): document protected field on Create Server Request (scaleway#2502)
1 parent 2142811 commit 38ab1ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,6 +2398,9 @@ type CreateServerRequest struct {
23982398

23992399
// AdminPasswordEncryptionSSHKeyID: the public_key value of this key is used to encrypt the admin password.
24002400
AdminPasswordEncryptionSSHKeyID *string `json:"admin_password_encryption_ssh_key_id,omitempty"`
2401+
2402+
// Protected: true to activate server protection option.
2403+
Protected bool `json:"protected,omitempty"`
24012404
}
24022405

24032406
// CreateServerResponse: create server response.
@@ -3835,6 +3838,7 @@ type UpdateServerRequest struct {
38353838
// Deprecated
38363839
EnableIPv6 *bool `json:"enable_ipv6,omitempty"`
38373840

3841+
// Protected: true to activate server protection option.
38383842
Protected *bool `json:"protected,omitempty"`
38393843

38403844
SecurityGroup *SecurityGroupTemplate `json:"security_group,omitempty"`

0 commit comments

Comments
 (0)