@@ -171,12 +171,14 @@ export type Filesystem = {
171
171
172
172
export type Filesystem_Status = "creating" | "created" | "deleting" ;
173
173
174
+ /**
175
+ * A unique identifier for each security group. This is automatically generated.
176
+ *
177
+ */
178
+ export type SecurityGroupId = string ;
179
+
174
180
export type SecurityGroup = {
175
- /**
176
- * A unique identifier for each security group. This is automatically generated.
177
- *
178
- */
179
- id : string ;
181
+ id : SecurityGroupId ;
180
182
/**
181
183
* The human-readable name for the security group.
182
184
*
@@ -288,7 +290,7 @@ export type Instance = {
288
290
* The security groups of the instance.
289
291
*/
290
292
security_groups : Array < {
291
- id : Instance_SecurityGroupId ;
293
+ id : SecurityGroupId ;
292
294
/**
293
295
* The name of the security group.
294
296
*/
@@ -341,20 +343,7 @@ export type ImageId = string;
341
343
export type Instance_SSHKeyId = string ;
342
344
343
345
/**
344
- * An array of security group ids.
345
- * **Please Note**: By default the **standard security group** is set if you don"t specify any Security Groups.
346
- * You can override this behavior by providing a different Security Group.
347
- *
348
- */
349
- export type Instance_SecurityGroupIds = Array < Instance_SecurityGroupId > ;
350
-
351
- /**
352
- * The security group ID.
353
- */
354
- export type Instance_SecurityGroupId = string ;
355
-
356
- /**
357
- * The storage size of the instance's boot volume given in GiB (Min: 80GiB).
346
+ * The storage size of the instance's boot volume given in GiB.
358
347
*
359
348
*/
360
349
export type Instance_DiskSize = number ;
@@ -436,6 +425,42 @@ export type Instance_BillingType =
436
425
*/
437
426
export type Instance_ReuseLongTermSubscription = string ;
438
427
428
+ export type Instance_UpdateSecurityGroups =
429
+ | Instance_UpdateSecurityGroups_List
430
+ | Instance_UpdateSecurityGroups_Attach
431
+ | Instance_UpdateSecurityGroups_Detach ;
432
+
433
+ /**
434
+ * The instance's security group IDs.
435
+ */
436
+ export type Instance_UpdateSecurityGroups_List = Array < SecurityGroupId > ;
437
+
438
+ export type Instance_UpdateSecurityGroups_Attach = {
439
+ attach : SecurityGroupId ;
440
+ } ;
441
+
442
+ export type Instance_UpdateSecurityGroups_Detach = {
443
+ detach : SecurityGroupId ;
444
+ } ;
445
+
446
+ export type Instance_UpdateVolumes =
447
+ | Instance_UpdateVolumes_List
448
+ | Instance_UpdateVolumes_Attach
449
+ | Instance_UpdateVolumes_Detach ;
450
+
451
+ /**
452
+ * The instance's volume IDs.
453
+ */
454
+ export type Instance_UpdateVolumes_List = Array < VolumeId > ;
455
+
456
+ export type Instance_UpdateVolumes_Attach = {
457
+ attach : VolumeId ;
458
+ } ;
459
+
460
+ export type Instance_UpdateVolumes_Detach = {
461
+ detach : VolumeId ;
462
+ } ;
463
+
439
464
export type SSHKey = {
440
465
/**
441
466
* A unique identifier for each SSH key. This is automatically generated.
@@ -636,7 +661,7 @@ export type $OpenApiTs = {
636
661
*/
637
662
name : string ;
638
663
/**
639
- * The storage size of this snapshot given in GiB (Min : 1GiB).
664
+ * The storage size of this snapshot given in GiB (min : 1GiB).
640
665
*
641
666
*/
642
667
size : number ;
@@ -738,7 +763,7 @@ export type $OpenApiTs = {
738
763
description ?: string ;
739
764
type ?: VolumeType ;
740
765
/**
741
- * The storage size of this volume given in GiB (Min : 1GiB).
766
+ * The storage size of this volume given in GiB (min : 1GiB).
742
767
*
743
768
*/
744
769
size : number ;
@@ -797,6 +822,11 @@ export type $OpenApiTs = {
797
822
* The human-readable description set for the volume.
798
823
*/
799
824
description ?: string ;
825
+ /**
826
+ * The storage size of this volume given in GiB (min: previous size).
827
+ *
828
+ */
829
+ size ?: number ;
800
830
} ;
801
831
volumeId : string ;
802
832
} ;
@@ -837,7 +867,7 @@ export type $OpenApiTs = {
837
867
description ?: string ;
838
868
type ?: FilesystemType ;
839
869
/**
840
- * The storage size of this filesystem given in GiB (Min : 1GiB).
870
+ * The storage size of this filesystem given in GiB (min : 1GiB).
841
871
*
842
872
*/
843
873
size : number ;
@@ -898,7 +928,8 @@ export type $OpenApiTs = {
898
928
*/
899
929
description ?: string ;
900
930
/**
901
- * The storage size of this filesystem given in GiB.
931
+ * The storage size of this filesystem given in GiB (min: previous size).
932
+ *
902
933
*/
903
934
size ?: number ;
904
935
} ;
@@ -1060,6 +1091,11 @@ export type $OpenApiTs = {
1060
1091
*
1061
1092
*/
1062
1093
ssh_keys ?: Array < Instance_SSHKeyId > ;
1094
+ /**
1095
+ * An array of security group ids.
1096
+ *
1097
+ */
1098
+ security_groups ?: Array < SecurityGroupId > ;
1063
1099
/**
1064
1100
* An array of volume ids.
1065
1101
*
@@ -1078,7 +1114,6 @@ export type $OpenApiTs = {
1078
1114
*
1079
1115
*/
1080
1116
placement_option ?: string ;
1081
- security_groups ?: Instance_SecurityGroupIds ;
1082
1117
is_protected ?: Instance_IsProtected ;
1083
1118
destroy_on_shutdown ?: Instance_DestroyOnShutdown ;
1084
1119
public_ipv6 ?: Instance_PublicIpv6 ;
@@ -1148,11 +1183,8 @@ export type $OpenApiTs = {
1148
1183
*
1149
1184
*/
1150
1185
reservation_id ?: string ;
1151
- security_groups ?: Instance_SecurityGroupIds ;
1152
- /**
1153
- * The instance's volumes IDs.
1154
- */
1155
- volumes ?: Array < VolumeId > ;
1186
+ security_groups ?: Instance_UpdateSecurityGroups ;
1187
+ volumes ?: Instance_UpdateVolumes ;
1156
1188
disk_size ?: Instance_DiskSize ;
1157
1189
} ;
1158
1190
} ;
0 commit comments