@@ -72,6 +72,20 @@ export type ServerStatus =
7272
7373export type SettingType = 'unknown' | 'smtp'
7474
75+ export interface CertificationOption { }
76+
77+ export interface LicenseOption {
78+ osId : string
79+ }
80+
81+ export interface PrivateNetworkOption { }
82+
83+ export interface PublicBandwidthOption {
84+ bandwidthInBps : number
85+ }
86+
87+ export interface RemoteAccessOption { }
88+
7589export interface OSOSField {
7690 editable : boolean
7791 required : boolean
@@ -125,8 +139,43 @@ export interface OfferOptionOffer {
125139 price ?: Money
126140 /** Boolean to know if option could be managed. */
127141 manageable : boolean
128- /** ID of the OS linked to the option . */
142+ /** @deprecated Deprecated, use LicenseOptionVars.os_id instead . */
129143 osId ?: string
144+ /**
145+ * License option, contains the ID of the OS linked to the option.
146+ *
147+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
148+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
149+ */
150+ license ?: LicenseOption
151+ /**
152+ * Public_bandwidth option, contains the bandwidth_in_bps.
153+ *
154+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
155+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
156+ */
157+ publicBandwidth ?: PublicBandwidthOption
158+ /**
159+ * Private_network option.
160+ *
161+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
162+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
163+ */
164+ privateNetwork ?: PrivateNetworkOption
165+ /**
166+ * Remote_access option.
167+ *
168+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
169+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
170+ */
171+ remoteAccess ?: RemoteAccessOption
172+ /**
173+ * Certification option.
174+ *
175+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
176+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
177+ */
178+ certification ?: CertificationOption
130179}
131180
132181export interface PersistentMemory {
@@ -192,6 +241,41 @@ export interface ServerOption {
192241 manageable : boolean
193242 /** Auto expiration date for compatible options. */
194243 expiresAt ?: Date
244+ /**
245+ * License option, contains the ID of the OS linked to the option.
246+ *
247+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
248+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
249+ */
250+ license ?: LicenseOption
251+ /**
252+ * Public_bandwidth option, contains the bandwidth_in_bps.
253+ *
254+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
255+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
256+ */
257+ publicBandwidth ?: PublicBandwidthOption
258+ /**
259+ * Private_network option.
260+ *
261+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
262+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
263+ */
264+ privateNetwork ?: PrivateNetworkOption
265+ /**
266+ * Remote_access option.
267+ *
268+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
269+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
270+ */
271+ remoteAccess ?: RemoteAccessOption
272+ /**
273+ * Certification option.
274+ *
275+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
276+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
277+ */
278+ certification ?: CertificationOption
195279}
196280
197281export interface ServerRescueServer {
@@ -312,6 +396,41 @@ export interface Option {
312396 name : string
313397 /** Defines whether the option is manageable (could be added or removed). */
314398 manageable : boolean
399+ /**
400+ * License option, contains the ID of the OS linked to the option.
401+ *
402+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
403+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
404+ */
405+ license ?: LicenseOption
406+ /**
407+ * Public_bandwidth option, contains the bandwidth_in_bps.
408+ *
409+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
410+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
411+ */
412+ publicBandwidth ?: PublicBandwidthOption
413+ /**
414+ * Private_network option.
415+ *
416+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
417+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
418+ */
419+ privateNetwork ?: PrivateNetworkOption
420+ /**
421+ * Remote_access option.
422+ *
423+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
424+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
425+ */
426+ remoteAccess ?: RemoteAccessOption
427+ /**
428+ * Certification option.
429+ *
430+ * One-of ('option'): at most one of 'license', 'publicBandwidth',
431+ * 'privateNetwork', 'remoteAccess', 'certification' could be set.
432+ */
433+ certification ?: CertificationOption
315434}
316435
317436export interface ServerEvent {
0 commit comments