@scaleway/sdk-baremetal 2.19.0 → 2.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import { Money, TimeSeries, Zone } from "@scaleway/sdk-client";
2
2
  //#region src/v1/types.gen.d.ts
3
+ export type CommitmentPeriod = 'unknown_period' | 'one_month' | 'six_months' | 'one_year' | 'two_years' | 'three_years';
3
4
  export type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error';
4
5
  export type IPVersion = 'IPv4' | 'IPv6';
5
6
  export type ListServerEventsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
@@ -9,6 +10,7 @@ export type ListSettingsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
9
10
  export type MemoryEccType = 'unknown_ecc_type' | 'none' | 'standard' | 'on_die';
10
11
  export type OfferStock = 'empty' | 'low' | 'available';
11
12
  export type OfferSubscriptionPeriod = 'unknown_subscription_period' | 'hourly' | 'monthly';
13
+ export type OptionType = 'option_type_unknown' | 'private_network' | 'license' | 'remote_access' | 'public_bandwidth' | 'certification';
12
14
  export type SchemaFilesystemFormat = 'unknown_format' | 'fat32' | 'ext4' | 'swap' | 'zfs' | 'xfs';
13
15
  export type SchemaPartitionLabel = 'unknown_partition_label' | 'uefi' | 'legacy' | 'root' | 'boot' | 'swap' | 'data' | 'home' | 'raid' | 'zfs';
14
16
  export type SchemaPoolType = 'unknown_type' | 'no_raid' | 'mirror' | 'raidz1' | 'raidz2';
@@ -54,7 +56,7 @@ export interface Schema {
54
56
  disks: SchemaDisk[];
55
57
  raids: SchemaRAID[];
56
58
  filesystems: SchemaFilesystem[];
57
- zfs?: SchemaZFS;
59
+ zfs?: SchemaZFS | null;
58
60
  }
59
61
  export interface CertificationOption {}
60
62
  export interface LicenseOption {
@@ -83,31 +85,31 @@ export interface CreateServerRequestInstall {
83
85
  /**
84
86
  * User for the installation.
85
87
  */
86
- user?: string;
88
+ user?: string | null;
87
89
  /**
88
90
  * Password for the installation.
89
91
  */
90
- password?: string;
92
+ password?: string | null;
91
93
  /**
92
94
  * Regular user that runs the service to be installed on the server.
93
95
  */
94
- serviceUser?: string;
96
+ serviceUser?: string | null;
95
97
  /**
96
98
  * Password used for the service to install.
97
99
  */
98
- servicePassword?: string;
100
+ servicePassword?: string | null;
99
101
  /**
100
102
  * Partitioning schema.
101
103
  */
102
- partitioningSchema?: Schema;
104
+ partitioningSchema?: Schema | null;
103
105
  /**
104
106
  * URL of the network service to which the server should forward its boot request.
105
107
  */
106
- networkBootUrl?: string;
108
+ networkBootUrl?: string | null;
107
109
  /**
108
110
  * Defines whether the network boot forwarding should be applied at every reboot or only once.
109
111
  */
110
- networkBootPersistent?: boolean;
112
+ networkBootPersistent?: boolean | null;
111
113
  }
112
114
  export interface IP {
113
115
  /**
@@ -135,6 +137,32 @@ export interface IP {
135
137
  */
136
138
  reverseStatusMessage: string;
137
139
  }
140
+ export interface ServerCommitment {
141
+ /**
142
+ * Commitment period subscribed.
143
+ */
144
+ period: CommitmentPeriod;
145
+ /**
146
+ * Start of commitment subscribed.
147
+ */
148
+ startedAt?: Date | null;
149
+ /**
150
+ * Next renew of commitment subscribed.
151
+ */
152
+ renewAt?: Date | null;
153
+ /**
154
+ * End of commitment subscribed.
155
+ */
156
+ endAt?: Date | null;
157
+ /**
158
+ * Discount rate for the commitment period.
159
+ */
160
+ discountRatePercent: number;
161
+ /**
162
+ * Flag for automatic renewal commitment.
163
+ */
164
+ autoRenewal: boolean;
165
+ }
138
166
  export interface ServerInstall {
139
167
  /**
140
168
  * ID of the OS.
@@ -167,7 +195,7 @@ export interface ServerInstall {
167
195
  /**
168
196
  * Partitioning schema.
169
197
  */
170
- partitioningSchema?: Schema;
198
+ partitioningSchema?: Schema | null;
171
199
  /**
172
200
  * URL of the network service to which the server should forward its boot request.
173
201
  */
@@ -197,37 +225,41 @@ export interface ServerOption {
197
225
  /**
198
226
  * Auto expiration date for compatible options.
199
227
  */
200
- expiresAt?: Date;
228
+ expiresAt?: Date | null;
201
229
  /**
202
230
  * License option, contains the ID of the OS linked to the option.
203
231
  *
204
232
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
205
233
  */
206
- license?: LicenseOption;
234
+ license?: LicenseOption | null;
207
235
  /**
208
236
  * Public_bandwidth option, contains the bandwidth_in_bps.
209
237
  *
210
238
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
211
239
  */
212
- publicBandwidth?: PublicBandwidthOption;
240
+ publicBandwidth?: PublicBandwidthOption | null;
213
241
  /**
214
242
  * Private_network option, contains the bandwidth_in_bps.
215
243
  *
216
244
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
217
245
  */
218
- privateNetwork?: PrivateNetworkOption;
246
+ privateNetwork?: PrivateNetworkOption | null;
219
247
  /**
220
248
  * Remote_access option.
221
249
  *
222
250
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
223
251
  */
224
- remoteAccess?: RemoteAccessOption;
252
+ remoteAccess?: RemoteAccessOption | null;
225
253
  /**
226
254
  * Certification option.
227
255
  *
228
256
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
229
257
  */
230
- certification?: CertificationOption;
258
+ certification?: CertificationOption | null;
259
+ /**
260
+ * Type of the option on this server.
261
+ */
262
+ type: OptionType;
231
263
  }
232
264
  export interface ServerRescueServer {
233
265
  /**
@@ -242,7 +274,7 @@ export interface ServerRescueServer {
242
274
  export interface OSOSField {
243
275
  editable: boolean;
244
276
  required: boolean;
245
- defaultValue?: string;
277
+ defaultValue?: string | null;
246
278
  }
247
279
  export interface CPU {
248
280
  /**
@@ -308,6 +340,20 @@ export interface Memory {
308
340
  */
309
341
  eccType: MemoryEccType;
310
342
  }
343
+ export interface OfferCommitment {
344
+ /**
345
+ * Commitment period.
346
+ */
347
+ period: CommitmentPeriod;
348
+ /**
349
+ * Discount rate for the commitment period.
350
+ */
351
+ discountRatePercent: number;
352
+ /**
353
+ * Fee not mandatory.
354
+ */
355
+ noFee: boolean;
356
+ }
311
357
  export interface OfferOptionOffer {
312
358
  /**
313
359
  * ID of the option.
@@ -329,7 +375,7 @@ export interface OfferOptionOffer {
329
375
  /**
330
376
  * Price of the option.
331
377
  */
332
- price?: Money;
378
+ price?: Money | null;
333
379
  /**
334
380
  * Boolean to know if option could be managed.
335
381
  */
@@ -337,37 +383,41 @@ export interface OfferOptionOffer {
337
383
  /**
338
384
  * @deprecated Deprecated, use LicenseOptionVars.os_id instead.
339
385
  */
340
- osId?: string;
386
+ osId?: string | null;
341
387
  /**
342
388
  * License option, contains the ID of the OS linked to the option.
343
389
  *
344
390
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
345
391
  */
346
- license?: LicenseOption;
392
+ license?: LicenseOption | null;
347
393
  /**
348
394
  * Public_bandwidth option, contains the bandwidth_in_bps.
349
395
  *
350
396
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
351
397
  */
352
- publicBandwidth?: PublicBandwidthOption;
398
+ publicBandwidth?: PublicBandwidthOption | null;
353
399
  /**
354
400
  * Private_network option, contains the bandwidth_in_bps.
355
401
  *
356
402
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
357
403
  */
358
- privateNetwork?: PrivateNetworkOption;
404
+ privateNetwork?: PrivateNetworkOption | null;
359
405
  /**
360
406
  * Remote_access option.
361
407
  *
362
408
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
363
409
  */
364
- remoteAccess?: RemoteAccessOption;
410
+ remoteAccess?: RemoteAccessOption | null;
365
411
  /**
366
412
  * Certification option.
367
413
  *
368
414
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
369
415
  */
370
- certification?: CertificationOption;
416
+ certification?: CertificationOption | null;
417
+ /**
418
+ * Type of the option offered.
419
+ */
420
+ type: OptionType;
371
421
  }
372
422
  export interface PersistentMemory {
373
423
  /**
@@ -396,7 +446,7 @@ export type CreateServerRequest = {
396
446
  /**
397
447
  * Zone to target. If none is passed will use default zone from the config.
398
448
  */
399
- zone?: Zone;
449
+ zone?: Zone | null;
400
450
  /**
401
451
  * Offer ID of the new server.
402
452
  */
@@ -406,13 +456,13 @@ export type CreateServerRequest = {
406
456
  *
407
457
  * One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId' could be set.
408
458
  */
409
- organizationId?: string;
459
+ organizationId?: string | null;
410
460
  /**
411
461
  * Project ID with which the server will be created.
412
462
  *
413
463
  * One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId' could be set.
414
464
  */
415
- projectId?: string;
465
+ projectId?: string | null;
416
466
  /**
417
467
  * Name of the server (≠hostname).
418
468
  */
@@ -424,15 +474,15 @@ export type CreateServerRequest = {
424
474
  /**
425
475
  * Tags to associate to the server.
426
476
  */
427
- tags?: string[];
477
+ tags?: string[] | null;
428
478
  /**
429
479
  * Object describing the configuration details of the OS installation on the server.
430
480
  */
431
- install?: CreateServerRequestInstall;
481
+ install?: CreateServerRequestInstall | null;
432
482
  /**
433
483
  * IDs of options to enable on server.
434
484
  */
435
- optionIds?: string[];
485
+ optionIds?: string[] | null;
436
486
  /**
437
487
  * If enabled, the server can not be deleted.
438
488
  */
@@ -440,7 +490,11 @@ export type CreateServerRequest = {
440
490
  /**
441
491
  * Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
442
492
  */
443
- userData?: string;
493
+ userData?: string | null;
494
+ /**
495
+ * Commitment period to subscribe.
496
+ */
497
+ commitmentPeriod?: CommitmentPeriod | null;
444
498
  };
445
499
  export interface Server {
446
500
  /**
@@ -466,11 +520,11 @@ export interface Server {
466
520
  /**
467
521
  * Last modification date of the server.
468
522
  */
469
- updatedAt?: Date;
523
+ updatedAt?: Date | null;
470
524
  /**
471
525
  * Creation date of the server.
472
526
  */
473
- createdAt?: Date;
527
+ createdAt?: Date | null;
474
528
  /**
475
529
  * Status of the server.
476
530
  */
@@ -506,7 +560,7 @@ export interface Server {
506
560
  /**
507
561
  * Configuration of the installation.
508
562
  */
509
- install?: ServerInstall;
563
+ install?: ServerInstall | null;
510
564
  /**
511
565
  * Status of server ping.
512
566
  */
@@ -518,7 +572,7 @@ export interface Server {
518
572
  /**
519
573
  * Configuration of rescue boot.
520
574
  */
521
- rescueServer?: ServerRescueServer;
575
+ rescueServer?: ServerRescueServer | null;
522
576
  /**
523
577
  * If enabled, the server can not be deleted.
524
578
  */
@@ -526,7 +580,23 @@ export interface Server {
526
580
  /**
527
581
  * Optional configuration data passed to cloud-init.
528
582
  */
529
- userData?: string;
583
+ userData?: string | null;
584
+ /**
585
+ * Commitment subscribed for the server.
586
+ */
587
+ commitment?: ServerCommitment | null;
588
+ /**
589
+ * Date on which the server will be deleted.
590
+ */
591
+ scheduledDeletionAt?: Date | null;
592
+ /**
593
+ * True if a deletion is scheduled.
594
+ */
595
+ scheduledDeletion: boolean;
596
+ /**
597
+ * The SRN of the server.
598
+ */
599
+ srn: string;
530
600
  }
531
601
  export interface OS {
532
602
  /**
@@ -548,23 +618,23 @@ export interface OS {
548
618
  /**
549
619
  * Object defining the SSH requirements to install the OS.
550
620
  */
551
- ssh?: OSOSField;
621
+ ssh?: OSOSField | null;
552
622
  /**
553
623
  * Object defining the username requirements to install the OS.
554
624
  */
555
- user?: OSOSField;
625
+ user?: OSOSField | null;
556
626
  /**
557
627
  * Object defining the password requirements to install the OS.
558
628
  */
559
- password?: OSOSField;
629
+ password?: OSOSField | null;
560
630
  /**
561
631
  * Object defining the username requirements to install the service.
562
632
  */
563
- serviceUser?: OSOSField;
633
+ serviceUser?: OSOSField | null;
564
634
  /**
565
635
  * Object defining the password requirements to install the service.
566
636
  */
567
- servicePassword?: OSOSField;
637
+ servicePassword?: OSOSField | null;
568
638
  /**
569
639
  * Defines if the operating system is enabled or not.
570
640
  */
@@ -588,11 +658,11 @@ export interface OS {
588
658
  /**
589
659
  * Defines the cloud-init API version used by this OS.
590
660
  */
591
- cloudInitVersion?: string;
661
+ cloudInitVersion?: string | null;
592
662
  /**
593
663
  * Object defining the network boot requirements for booting server.
594
664
  */
595
- networkBoot?: OSOSField;
665
+ networkBoot?: OSOSField | null;
596
666
  /**
597
667
  * Defines if the network boot can be persisted or not.
598
668
  */
@@ -601,6 +671,10 @@ export interface OS {
601
671
  * Zone in which is the OS is available.
602
672
  */
603
673
  zone: Zone;
674
+ /**
675
+ * The SRN of the OS.
676
+ */
677
+ srn: string;
604
678
  }
605
679
  export interface Offer {
606
680
  /**
@@ -630,11 +704,11 @@ export interface Offer {
630
704
  /**
631
705
  * Price of the offer for the next 60 minutes (a server order at 11h32 will be paid until 12h32).
632
706
  */
633
- pricePerHour?: Money;
707
+ pricePerHour?: Money | null;
634
708
  /**
635
709
  * Monthly price of the offer, if subscribing on a monthly basis.
636
710
  */
637
- pricePerMonth?: Money;
711
+ pricePerMonth?: Money | null;
638
712
  /**
639
713
  * Disks specifications of the offer.
640
714
  */
@@ -678,7 +752,7 @@ export interface Offer {
678
752
  /**
679
753
  * One time fee invoiced by Scaleway for the setup and activation of the server.
680
754
  */
681
- fee?: Money;
755
+ fee?: Money | null;
682
756
  /**
683
757
  * Available options for customization of the server.
684
758
  */
@@ -702,7 +776,11 @@ export interface Offer {
702
776
  /**
703
777
  * Exist only for hourly offers, to migrate to the monthly offer.
704
778
  */
705
- monthlyOfferId?: string;
779
+ monthlyOfferId?: string | null;
780
+ /**
781
+ * List all available commitments on the offer.
782
+ */
783
+ commitmentsAvailable: OfferCommitment[];
706
784
  /**
707
785
  * Zone in which is the offer is available.
708
786
  */
@@ -710,7 +788,11 @@ export interface Offer {
710
788
  /**
711
789
  * Describe the network topology of the offer.
712
790
  */
713
- dualAttach?: boolean;
791
+ dualAttach?: boolean | null;
792
+ /**
793
+ * The SRN of the offer.
794
+ */
795
+ srn: string;
714
796
  }
715
797
  export interface Option {
716
798
  /**
@@ -725,36 +807,48 @@ export interface Option {
725
807
  * Defines whether the option is manageable (could be added or removed).
726
808
  */
727
809
  manageable: boolean;
810
+ /**
811
+ * Type of the option.
812
+ */
813
+ type: OptionType;
728
814
  /**
729
815
  * License option, contains the ID of the OS linked to the option.
730
816
  *
731
817
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
732
818
  */
733
- license?: LicenseOption;
819
+ license?: LicenseOption | null;
734
820
  /**
735
821
  * Public_bandwidth option, contains the bandwidth_in_bps.
736
822
  *
737
823
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
738
824
  */
739
- publicBandwidth?: PublicBandwidthOption;
825
+ publicBandwidth?: PublicBandwidthOption | null;
740
826
  /**
741
827
  * Private_network option, contains the bandwidth_in_bps.
742
828
  *
743
829
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
744
830
  */
745
- privateNetwork?: PrivateNetworkOption;
831
+ privateNetwork?: PrivateNetworkOption | null;
746
832
  /**
747
833
  * Remote_access option.
748
834
  *
749
835
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
750
836
  */
751
- remoteAccess?: RemoteAccessOption;
837
+ remoteAccess?: RemoteAccessOption | null;
752
838
  /**
753
839
  * Certification option.
754
840
  *
755
841
  * One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
756
842
  */
757
- certification?: CertificationOption;
843
+ certification?: CertificationOption | null;
844
+ /**
845
+ * Zone in which is the option is available.
846
+ */
847
+ zone: Zone;
848
+ /**
849
+ * The SRN of the option.
850
+ */
851
+ srn: string;
758
852
  }
759
853
  export interface ServerEvent {
760
854
  /**
@@ -768,11 +862,11 @@ export interface ServerEvent {
768
862
  /**
769
863
  * Date of last modification of the action.
770
864
  */
771
- updatedAt?: Date;
865
+ updatedAt?: Date | null;
772
866
  /**
773
867
  * Date of creation of the action.
774
868
  */
775
- createdAt?: Date;
869
+ createdAt?: Date | null;
776
870
  }
777
871
  export interface ServerPrivateNetwork {
778
872
  /**
@@ -794,7 +888,7 @@ export interface ServerPrivateNetwork {
794
888
  /**
795
889
  * The VLAN ID associated to the Private Network.
796
890
  */
797
- vlan?: number;
891
+ vlan?: number | null;
798
892
  /**
799
893
  * The configuration status of the Private Network.
800
894
  */
@@ -802,11 +896,11 @@ export interface ServerPrivateNetwork {
802
896
  /**
803
897
  * The Private Network creation date.
804
898
  */
805
- createdAt?: Date;
899
+ createdAt?: Date | null;
806
900
  /**
807
901
  * The date the Private Network was last modified.
808
902
  */
809
- updatedAt?: Date;
903
+ updatedAt?: Date | null;
810
904
  }
811
905
  export interface Setting {
812
906
  /**
@@ -825,12 +919,20 @@ export interface Setting {
825
919
  * Defines whether the setting is enabled.
826
920
  */
827
921
  enabled: boolean;
922
+ /**
923
+ * Zone in which is the setting is located.
924
+ */
925
+ zone: Zone;
926
+ /**
927
+ * The SRN of the setting.
928
+ */
929
+ srn: string;
828
930
  }
829
931
  export type AddOptionServerRequest = {
830
932
  /**
831
933
  * Zone to target. If none is passed will use default zone from the config.
832
934
  */
833
- zone?: Zone;
935
+ zone?: Zone | null;
834
936
  /**
835
937
  * ID of the server.
836
938
  */
@@ -842,7 +944,7 @@ export type AddOptionServerRequest = {
842
944
  /**
843
945
  * Auto expire the option after this date.
844
946
  */
845
- expiresAt?: Date;
947
+ expiresAt?: Date | null;
846
948
  };
847
949
  export interface BMCAccess {
848
950
  /**
@@ -860,21 +962,33 @@ export interface BMCAccess {
860
962
  /**
861
963
  * The date after which the BMC (Baseboard Management Controller) access will be closed.
862
964
  */
863
- expiresAt?: Date;
965
+ expiresAt?: Date | null;
966
+ /**
967
+ * ID of the server.
968
+ */
969
+ serverId: string;
970
+ /**
971
+ * Zone in which the server is located.
972
+ */
973
+ zone: Zone;
974
+ /**
975
+ * The SRN of the BMC access.
976
+ */
977
+ srn: string;
864
978
  }
865
979
  export type BatchCreateServersRequest = {
866
980
  /**
867
981
  * Zone to target. If none is passed will use default zone from the config.
868
982
  */
869
- zone?: Zone;
983
+ zone?: Zone | null;
870
984
  /**
871
985
  * Configuration wanted for the servers to create.
872
986
  */
873
- commonConfiguration?: CreateServerRequest;
987
+ commonConfiguration?: CreateServerRequest | null;
874
988
  /**
875
989
  * List of servers to create.
876
990
  */
877
- servers?: BatchCreateServersRequestServerConfig[];
991
+ servers?: BatchCreateServersRequestServerConfig[] | null;
878
992
  };
879
993
  export interface BatchCreateServersResponse {
880
994
  servers: Server[];
@@ -883,7 +997,7 @@ export type DeleteOptionServerRequest = {
883
997
  /**
884
998
  * Zone to target. If none is passed will use default zone from the config.
885
999
  */
886
- zone?: Zone;
1000
+ zone?: Zone | null;
887
1001
  /**
888
1002
  * ID of the server.
889
1003
  */
@@ -897,7 +1011,7 @@ export type DeleteServerRequest = {
897
1011
  /**
898
1012
  * Zone to target. If none is passed will use default zone from the config.
899
1013
  */
900
- zone?: Zone;
1014
+ zone?: Zone | null;
901
1015
  /**
902
1016
  * ID of the server to delete.
903
1017
  */
@@ -907,7 +1021,7 @@ export type GetBMCAccessRequest = {
907
1021
  /**
908
1022
  * Zone to target. If none is passed will use default zone from the config.
909
1023
  */
910
- zone?: Zone;
1024
+ zone?: Zone | null;
911
1025
  /**
912
1026
  * ID of the server.
913
1027
  */
@@ -917,7 +1031,7 @@ export type GetDefaultPartitioningSchemaRequest = {
917
1031
  /**
918
1032
  * Zone to target. If none is passed will use default zone from the config.
919
1033
  */
920
- zone?: Zone;
1034
+ zone?: Zone | null;
921
1035
  /**
922
1036
  * ID of the offer.
923
1037
  */
@@ -931,7 +1045,7 @@ export type GetOSRequest = {
931
1045
  /**
932
1046
  * Zone to target. If none is passed will use default zone from the config.
933
1047
  */
934
- zone?: Zone;
1048
+ zone?: Zone | null;
935
1049
  /**
936
1050
  * ID of the OS.
937
1051
  */
@@ -941,7 +1055,7 @@ export type GetOfferRequest = {
941
1055
  /**
942
1056
  * Zone to target. If none is passed will use default zone from the config.
943
1057
  */
944
- zone?: Zone;
1058
+ zone?: Zone | null;
945
1059
  /**
946
1060
  * ID of the researched Offer.
947
1061
  */
@@ -951,7 +1065,7 @@ export type GetOptionRequest = {
951
1065
  /**
952
1066
  * Zone to target. If none is passed will use default zone from the config.
953
1067
  */
954
- zone?: Zone;
1068
+ zone?: Zone | null;
955
1069
  /**
956
1070
  * ID of the option.
957
1071
  */
@@ -961,7 +1075,7 @@ export type GetServerMetricsRequest = {
961
1075
  /**
962
1076
  * Zone to target. If none is passed will use default zone from the config.
963
1077
  */
964
- zone?: Zone;
1078
+ zone?: Zone | null;
965
1079
  /**
966
1080
  * Server ID to get the metrics.
967
1081
  */
@@ -971,13 +1085,13 @@ export interface GetServerMetricsResponse {
971
1085
  /**
972
1086
  * Timeseries object representing pings on the server.
973
1087
  */
974
- pings?: TimeSeries;
1088
+ pings?: TimeSeries | null;
975
1089
  }
976
1090
  export type GetServerRequest = {
977
1091
  /**
978
1092
  * Zone to target. If none is passed will use default zone from the config.
979
1093
  */
980
- zone?: Zone;
1094
+ zone?: Zone | null;
981
1095
  /**
982
1096
  * ID of the server.
983
1097
  */
@@ -987,7 +1101,7 @@ export type InstallServerRequest = {
987
1101
  /**
988
1102
  * Zone to target. If none is passed will use default zone from the config.
989
1103
  */
990
- zone?: Zone;
1104
+ zone?: Zone | null;
991
1105
  /**
992
1106
  * Server ID to install.
993
1107
  */
@@ -1007,53 +1121,53 @@ export type InstallServerRequest = {
1007
1121
  /**
1008
1122
  * User used for the installation.
1009
1123
  */
1010
- user?: string;
1124
+ user?: string | null;
1011
1125
  /**
1012
1126
  * Password used for the installation.
1013
1127
  */
1014
- password?: string;
1128
+ password?: string | null;
1015
1129
  /**
1016
1130
  * User used for the service to install.
1017
1131
  */
1018
- serviceUser?: string;
1132
+ serviceUser?: string | null;
1019
1133
  /**
1020
1134
  * Password used for the service to install.
1021
1135
  */
1022
- servicePassword?: string;
1136
+ servicePassword?: string | null;
1023
1137
  /**
1024
1138
  * Partitioning schema.
1025
1139
  */
1026
- partitioningSchema?: Schema;
1140
+ partitioningSchema?: Schema | null;
1027
1141
  /**
1028
1142
  * @deprecated Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
1029
1143
  */
1030
- userData?: Blob;
1144
+ userData?: Blob | null;
1031
1145
  /**
1032
1146
  * URL of the network service to which the server should forward its boot request.
1033
1147
  */
1034
- networkBootUrl?: string;
1148
+ networkBootUrl?: string | null;
1035
1149
  /**
1036
1150
  * Defines whether the network boot forwarding should be applied at every reboot or only once.
1037
1151
  */
1038
- networkBootPersistent?: boolean;
1152
+ networkBootPersistent?: boolean | null;
1039
1153
  };
1040
1154
  export type ListOSRequest = {
1041
1155
  /**
1042
1156
  * Zone to target. If none is passed will use default zone from the config.
1043
1157
  */
1044
- zone?: Zone;
1158
+ zone?: Zone | null;
1045
1159
  /**
1046
1160
  * Page number.
1047
1161
  */
1048
- page?: number;
1162
+ page?: number | null;
1049
1163
  /**
1050
1164
  * Number of OS per page.
1051
1165
  */
1052
- pageSize?: number;
1166
+ pageSize?: number | null;
1053
1167
  /**
1054
1168
  * Offer IDs to filter OSes for.
1055
1169
  */
1056
- offerId?: string;
1170
+ offerId?: string | null;
1057
1171
  };
1058
1172
  export interface ListOSResponse {
1059
1173
  /**
@@ -1069,23 +1183,23 @@ export type ListOffersRequest = {
1069
1183
  /**
1070
1184
  * Zone to target. If none is passed will use default zone from the config.
1071
1185
  */
1072
- zone?: Zone;
1186
+ zone?: Zone | null;
1073
1187
  /**
1074
1188
  * Page number.
1075
1189
  */
1076
- page?: number;
1190
+ page?: number | null;
1077
1191
  /**
1078
1192
  * Number of offers per page.
1079
1193
  */
1080
- pageSize?: number;
1194
+ pageSize?: number | null;
1081
1195
  /**
1082
1196
  * Subscription period type to filter offers by.
1083
1197
  */
1084
- subscriptionPeriod?: OfferSubscriptionPeriod;
1198
+ subscriptionPeriod?: OfferSubscriptionPeriod | null;
1085
1199
  /**
1086
1200
  * Offer name to filter offers by.
1087
1201
  */
1088
- name?: string;
1202
+ name?: string | null;
1089
1203
  };
1090
1204
  export interface ListOffersResponse {
1091
1205
  /**
@@ -1101,23 +1215,23 @@ export type ListOptionsRequest = {
1101
1215
  /**
1102
1216
  * Zone to target. If none is passed will use default zone from the config.
1103
1217
  */
1104
- zone?: Zone;
1218
+ zone?: Zone | null;
1105
1219
  /**
1106
1220
  * Page number.
1107
1221
  */
1108
- page?: number;
1222
+ page?: number | null;
1109
1223
  /**
1110
1224
  * Number of options per page.
1111
1225
  */
1112
- pageSize?: number;
1226
+ pageSize?: number | null;
1113
1227
  /**
1114
1228
  * Offer ID to filter options for.
1115
1229
  */
1116
- offerId?: string;
1230
+ offerId?: string | null;
1117
1231
  /**
1118
1232
  * Name to filter options for.
1119
1233
  */
1120
- name?: string;
1234
+ name?: string | null;
1121
1235
  };
1122
1236
  export interface ListOptionsResponse {
1123
1237
  /**
@@ -1133,7 +1247,7 @@ export type ListServerEventsRequest = {
1133
1247
  /**
1134
1248
  * Zone to target. If none is passed will use default zone from the config.
1135
1249
  */
1136
- zone?: Zone;
1250
+ zone?: Zone | null;
1137
1251
  /**
1138
1252
  * ID of the server events searched.
1139
1253
  */
@@ -1141,15 +1255,15 @@ export type ListServerEventsRequest = {
1141
1255
  /**
1142
1256
  * Page number.
1143
1257
  */
1144
- page?: number;
1258
+ page?: number | null;
1145
1259
  /**
1146
1260
  * Number of server events per page.
1147
1261
  */
1148
- pageSize?: number;
1262
+ pageSize?: number | null;
1149
1263
  /**
1150
1264
  * Order of the server events.
1151
1265
  */
1152
- orderBy?: ListServerEventsRequestOrderBy;
1266
+ orderBy?: ListServerEventsRequestOrderBy | null;
1153
1267
  };
1154
1268
  export interface ListServerEventsResponse {
1155
1269
  /**
@@ -1169,43 +1283,43 @@ export type ListServersRequest = {
1169
1283
  /**
1170
1284
  * Zone to target. If none is passed will use default zone from the config.
1171
1285
  */
1172
- zone?: Zone;
1286
+ zone?: Zone | null;
1173
1287
  /**
1174
1288
  * Page number.
1175
1289
  */
1176
- page?: number;
1290
+ page?: number | null;
1177
1291
  /**
1178
1292
  * Number of servers per page.
1179
1293
  */
1180
- pageSize?: number;
1294
+ pageSize?: number | null;
1181
1295
  /**
1182
1296
  * Order of the servers.
1183
1297
  */
1184
- orderBy?: ListServersRequestOrderBy;
1298
+ orderBy?: ListServersRequestOrderBy | null;
1185
1299
  /**
1186
1300
  * Tags to filter for.
1187
1301
  */
1188
- tags?: string[];
1302
+ tags?: string[] | null;
1189
1303
  /**
1190
1304
  * Status to filter for.
1191
1305
  */
1192
- status?: string[];
1306
+ status?: string[] | null;
1193
1307
  /**
1194
1308
  * Names to filter for.
1195
1309
  */
1196
- name?: string;
1310
+ name?: string | null;
1197
1311
  /**
1198
1312
  * Organization ID to filter for.
1199
1313
  */
1200
- organizationId?: string;
1314
+ organizationId?: string | null;
1201
1315
  /**
1202
1316
  * Project ID to filter for.
1203
1317
  */
1204
- projectId?: string;
1318
+ projectId?: string | null;
1205
1319
  /**
1206
1320
  * Option ID to filter for.
1207
1321
  */
1208
- optionId?: string;
1322
+ optionId?: string | null;
1209
1323
  };
1210
1324
  export interface ListServersResponse {
1211
1325
  /**
@@ -1221,23 +1335,23 @@ export type ListSettingsRequest = {
1221
1335
  /**
1222
1336
  * Zone to target. If none is passed will use default zone from the config.
1223
1337
  */
1224
- zone?: Zone;
1338
+ zone?: Zone | null;
1225
1339
  /**
1226
1340
  * Page number.
1227
1341
  */
1228
- page?: number;
1342
+ page?: number | null;
1229
1343
  /**
1230
1344
  * Set the maximum list size.
1231
1345
  */
1232
- pageSize?: number;
1346
+ pageSize?: number | null;
1233
1347
  /**
1234
1348
  * Sort order for items in the response.
1235
1349
  */
1236
- orderBy?: ListSettingsRequestOrderBy;
1350
+ orderBy?: ListSettingsRequestOrderBy | null;
1237
1351
  /**
1238
1352
  * ID of the Project.
1239
1353
  */
1240
- projectId?: string;
1354
+ projectId?: string | null;
1241
1355
  };
1242
1356
  export interface ListSettingsResponse {
1243
1357
  /**
@@ -1253,7 +1367,7 @@ export type MigrateServerToMonthlyOfferRequest = {
1253
1367
  /**
1254
1368
  * Zone to target. If none is passed will use default zone from the config.
1255
1369
  */
1256
- zone?: Zone;
1370
+ zone?: Zone | null;
1257
1371
  /**
1258
1372
  * ID of the server.
1259
1373
  */
@@ -1263,7 +1377,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
1263
1377
  /**
1264
1378
  * Zone to target. If none is passed will use default zone from the config.
1265
1379
  */
1266
- zone?: Zone;
1380
+ zone?: Zone | null;
1267
1381
  /**
1268
1382
  * The ID of the server.
1269
1383
  */
@@ -1277,7 +1391,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
1277
1391
  /**
1278
1392
  * Zone to target. If none is passed will use default zone from the config.
1279
1393
  */
1280
- zone?: Zone;
1394
+ zone?: Zone | null;
1281
1395
  /**
1282
1396
  * The ID of the server.
1283
1397
  */
@@ -1291,41 +1405,41 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
1291
1405
  /**
1292
1406
  * Zone to target. If none is passed will use default zone from the config.
1293
1407
  */
1294
- zone?: Zone;
1408
+ zone?: Zone | null;
1295
1409
  /**
1296
1410
  * The sort order for the returned Private Networks.
1297
1411
  */
1298
- orderBy?: ListServerPrivateNetworksRequestOrderBy;
1412
+ orderBy?: ListServerPrivateNetworksRequestOrderBy | null;
1299
1413
  /**
1300
1414
  * The page number for the returned Private Networks.
1301
1415
  */
1302
- page?: number;
1416
+ page?: number | null;
1303
1417
  /**
1304
1418
  * The maximum number of Private Networks per page.
1305
1419
  */
1306
- pageSize?: number;
1420
+ pageSize?: number | null;
1307
1421
  /**
1308
1422
  * Filter Private Networks by server ID.
1309
1423
  */
1310
- serverId?: string;
1424
+ serverId?: string | null;
1311
1425
  /**
1312
1426
  * Filter Private Networks by Private Network ID.
1313
1427
  */
1314
- privateNetworkId?: string;
1428
+ privateNetworkId?: string | null;
1315
1429
  /**
1316
1430
  * Filter Private Networks by Organization ID.
1317
1431
  */
1318
- organizationId?: string;
1432
+ organizationId?: string | null;
1319
1433
  /**
1320
1434
  * Filter Private Networks by Project ID.
1321
1435
  */
1322
- projectId?: string;
1436
+ projectId?: string | null;
1323
1437
  };
1324
1438
  export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
1325
1439
  /**
1326
1440
  * Zone to target. If none is passed will use default zone from the config.
1327
1441
  */
1328
- zone?: Zone;
1442
+ zone?: Zone | null;
1329
1443
  /**
1330
1444
  * The ID of the server.
1331
1445
  */
@@ -1339,7 +1453,7 @@ export type RebootServerRequest = {
1339
1453
  /**
1340
1454
  * Zone to target. If none is passed will use default zone from the config.
1341
1455
  */
1342
- zone?: Zone;
1456
+ zone?: Zone | null;
1343
1457
  /**
1344
1458
  * ID of the server to reboot.
1345
1459
  */
@@ -1347,11 +1461,11 @@ export type RebootServerRequest = {
1347
1461
  /**
1348
1462
  * The type of boot.
1349
1463
  */
1350
- bootType?: ServerBootType;
1464
+ bootType?: ServerBootType | null;
1351
1465
  /**
1352
1466
  * Additional SSH public key IDs to configure on rescue image.
1353
1467
  */
1354
- sshKeyIds?: string[];
1468
+ sshKeyIds?: string[] | null;
1355
1469
  };
1356
1470
  export interface SetServerPrivateNetworksResponse {
1357
1471
  serverPrivateNetworks: ServerPrivateNetwork[];
@@ -1360,7 +1474,7 @@ export type StartBMCAccessRequest = {
1360
1474
  /**
1361
1475
  * Zone to target. If none is passed will use default zone from the config.
1362
1476
  */
1363
- zone?: Zone;
1477
+ zone?: Zone | null;
1364
1478
  /**
1365
1479
  * ID of the server.
1366
1480
  */
@@ -1374,7 +1488,7 @@ export type StartServerRequest = {
1374
1488
  /**
1375
1489
  * Zone to target. If none is passed will use default zone from the config.
1376
1490
  */
1377
- zone?: Zone;
1491
+ zone?: Zone | null;
1378
1492
  /**
1379
1493
  * ID of the server to start.
1380
1494
  */
@@ -1382,17 +1496,17 @@ export type StartServerRequest = {
1382
1496
  /**
1383
1497
  * The type of boot.
1384
1498
  */
1385
- bootType?: ServerBootType;
1499
+ bootType?: ServerBootType | null;
1386
1500
  /**
1387
1501
  * Additional SSH public key IDs to configure on rescue image.
1388
1502
  */
1389
- sshKeyIds?: string[];
1503
+ sshKeyIds?: string[] | null;
1390
1504
  };
1391
1505
  export type StopBMCAccessRequest = {
1392
1506
  /**
1393
1507
  * Zone to target. If none is passed will use default zone from the config.
1394
1508
  */
1395
- zone?: Zone;
1509
+ zone?: Zone | null;
1396
1510
  /**
1397
1511
  * ID of the server.
1398
1512
  */
@@ -1402,7 +1516,7 @@ export type StopServerRequest = {
1402
1516
  /**
1403
1517
  * Zone to target. If none is passed will use default zone from the config.
1404
1518
  */
1405
- zone?: Zone;
1519
+ zone?: Zone | null;
1406
1520
  /**
1407
1521
  * ID of the server to stop.
1408
1522
  */
@@ -1412,7 +1526,7 @@ export type UpdateIPRequest = {
1412
1526
  /**
1413
1527
  * Zone to target. If none is passed will use default zone from the config.
1414
1528
  */
1415
- zone?: Zone;
1529
+ zone?: Zone | null;
1416
1530
  /**
1417
1531
  * ID of the server.
1418
1532
  */
@@ -1424,13 +1538,21 @@ export type UpdateIPRequest = {
1424
1538
  /**
1425
1539
  * New reverse IP to update, not updated if null.
1426
1540
  */
1427
- reverse?: string;
1541
+ reverse?: string | null;
1542
+ };
1543
+ export type UpdateServerCommitmentRequest = {
1544
+ /**
1545
+ * Zone to target. If none is passed will use default zone from the config.
1546
+ */
1547
+ zone?: Zone | null;
1548
+ serverId: string;
1549
+ autoRenewal: boolean;
1428
1550
  };
1429
1551
  export type UpdateServerRequest = {
1430
1552
  /**
1431
1553
  * Zone to target. If none is passed will use default zone from the config.
1432
1554
  */
1433
- zone?: Zone;
1555
+ zone?: Zone | null;
1434
1556
  /**
1435
1557
  * ID of the server to update.
1436
1558
  */
@@ -1438,29 +1560,33 @@ export type UpdateServerRequest = {
1438
1560
  /**
1439
1561
  * Name of the server (≠hostname), not updated if null.
1440
1562
  */
1441
- name?: string;
1563
+ name?: string | null;
1442
1564
  /**
1443
1565
  * Description associated with the server, max 255 characters, not updated if null.
1444
1566
  */
1445
- description?: string;
1567
+ description?: string | null;
1446
1568
  /**
1447
1569
  * Tags associated with the server, not updated if null.
1448
1570
  */
1449
- tags?: string[];
1571
+ tags?: string[] | null;
1450
1572
  /**
1451
1573
  * If enabled, the server can not be deleted.
1452
1574
  */
1453
- protected?: boolean;
1575
+ protected?: boolean | null;
1454
1576
  /**
1455
1577
  * Configuration data to pass to cloud-init such as a YAML cloud config data or a user-data script.
1456
1578
  */
1457
- userData?: string;
1579
+ userData?: string | null;
1580
+ /**
1581
+ * Set false to cancel the scheduled deletion of the server.
1582
+ */
1583
+ scheduledDeletion?: boolean | null;
1458
1584
  };
1459
1585
  export type UpdateSettingRequest = {
1460
1586
  /**
1461
1587
  * Zone to target. If none is passed will use default zone from the config.
1462
1588
  */
1463
- zone?: Zone;
1589
+ zone?: Zone | null;
1464
1590
  /**
1465
1591
  * ID of the setting.
1466
1592
  */
@@ -1468,17 +1594,25 @@ export type UpdateSettingRequest = {
1468
1594
  /**
1469
1595
  * Defines whether the setting is enabled.
1470
1596
  */
1471
- enabled?: boolean;
1597
+ enabled?: boolean | null;
1598
+ };
1599
+ export type UpgradeServerCommitmentRequest = {
1600
+ /**
1601
+ * Zone to target. If none is passed will use default zone from the config.
1602
+ */
1603
+ zone?: Zone | null;
1604
+ serverId: string;
1605
+ period?: CommitmentPeriod | null;
1472
1606
  };
1473
1607
  export type ValidatePartitioningSchemaRequest = {
1474
1608
  /**
1475
1609
  * Zone to target. If none is passed will use default zone from the config.
1476
1610
  */
1477
- zone?: Zone;
1611
+ zone?: Zone | null;
1478
1612
  /**
1479
1613
  * Partitioning schema.
1480
1614
  */
1481
- partitioningSchema?: Schema;
1615
+ partitioningSchema?: Schema | null;
1482
1616
  /**
1483
1617
  * Offer ID of the server.
1484
1618
  */