Skip to content

Commit a646b01

Browse files
fix(instance): document protected field on Create Server Request (#1990)
Co-authored-by: Rémy Léone <[email protected]>
1 parent ebaf806 commit a646b01

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/clients/src/api/instance/v1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,6 +1834,7 @@ export const marshalCreateServerRequest = (
18341834
image: request.image,
18351835
name: request.name || randomName('srv'),
18361836
placement_group: request.placementGroup,
1837+
protected: request.protected,
18371838
public_ip: request.publicIp,
18381839
public_ips: request.publicIps,
18391840
routed_ip_enabled: request.routedIpEnabled,

packages/clients/src/api/instance/v1/types.gen.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ export interface Task {
888888
hrefFrom: string
889889
hrefResult: string
890890
/**
891-
* Zone in which the task is excecuted.
891+
* Zone in which the task is executed.
892892
*/
893893
zone: ScwZone
894894
}
@@ -1437,6 +1437,10 @@ export type CreateServerRequest = {
14371437
* The public_key value of this key is used to encrypt the admin password.
14381438
*/
14391439
adminPasswordEncryptionSshKeyId?: string
1440+
/**
1441+
* True to activate server protection option.
1442+
*/
1443+
protected: boolean
14401444
}
14411445

14421446
export interface CreateServerResponse {
@@ -2783,6 +2787,9 @@ export type UpdateServerRequest = {
27832787
* @deprecated
27842788
*/
27852789
enableIpv6?: boolean
2790+
/**
2791+
* True to activate server protection option.
2792+
*/
27862793
protected?: boolean
27872794
securityGroup?: SecurityGroupTemplate
27882795
/**

0 commit comments

Comments
 (0)