@scaleway/sdk 2.25.0 → 2.27.0

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.
Files changed (774) hide show
  1. package/dist/api/account/index.cjs +6 -0
  2. package/dist/api/account/index.d.ts +2 -0
  3. package/dist/api/account/index.js +6 -4
  4. package/dist/api/account/v2/api.gen.cjs +116 -0
  5. package/dist/api/account/v2/api.gen.d.ts +67 -0
  6. package/dist/api/account/v2/api.gen.js +61 -44
  7. package/dist/api/account/v2/index.gen.cjs +4 -0
  8. package/dist/api/account/v2/index.gen.d.ts +2 -0
  9. package/dist/api/account/v2/index.gen.js +4 -4
  10. package/dist/api/account/v2/marshalling.gen.cjs +44 -0
  11. package/dist/api/account/v2/marshalling.gen.d.ts +6 -0
  12. package/dist/api/account/v2/marshalling.gen.js +18 -13
  13. package/dist/api/account/v2/types.gen.d.ts +62 -0
  14. package/dist/api/account/v3/api.gen.cjs +106 -0
  15. package/dist/api/account/v3/api.gen.d.ts +57 -0
  16. package/dist/api/account/v3/api.gen.js +61 -44
  17. package/dist/api/account/v3/index.gen.cjs +6 -0
  18. package/dist/api/account/v3/index.gen.d.ts +3 -0
  19. package/dist/api/account/v3/index.gen.js +6 -6
  20. package/dist/api/account/v3/marshalling.gen.cjs +44 -0
  21. package/dist/api/account/v3/marshalling.gen.d.ts +6 -0
  22. package/dist/api/account/v3/marshalling.gen.js +18 -13
  23. package/dist/api/account/v3/types.gen.d.ts +62 -0
  24. package/dist/api/account/v3/validation-rules.gen.cjs +39 -0
  25. package/dist/api/account/v3/validation-rules.gen.d.ts +34 -0
  26. package/dist/api/account/v3/validation-rules.gen.js +5 -5
  27. package/dist/api/applesilicon/index.cjs +4 -0
  28. package/dist/api/applesilicon/index.d.ts +1 -0
  29. package/dist/api/applesilicon/index.js +4 -2
  30. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +222 -0
  31. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +119 -0
  32. package/dist/api/applesilicon/v1alpha1/api.gen.js +125 -83
  33. package/dist/api/applesilicon/v1alpha1/content.gen.cjs +11 -0
  34. package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +3 -0
  35. package/dist/api/applesilicon/v1alpha1/content.gen.js +11 -7
  36. package/dist/api/applesilicon/v1alpha1/index.gen.cjs +6 -0
  37. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +3 -0
  38. package/dist/api/applesilicon/v1alpha1/index.gen.js +6 -5
  39. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +147 -0
  40. package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +11 -0
  41. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +65 -31
  42. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +203 -0
  43. package/dist/api/baremetal/index.cjs +4 -0
  44. package/dist/api/baremetal/index.d.ts +1 -0
  45. package/dist/api/baremetal/index.js +4 -2
  46. package/dist/api/baremetal/v1/api.gen.cjs +575 -0
  47. package/dist/api/baremetal/v1/api.gen.d.ts +287 -0
  48. package/dist/api/baremetal/v1/api.gen.js +353 -205
  49. package/dist/api/baremetal/v1/api.utils.cjs +36 -0
  50. package/dist/api/baremetal/v1/api.utils.d.ts +13 -0
  51. package/dist/api/baremetal/v1/api.utils.js +27 -18
  52. package/dist/api/baremetal/v1/content.gen.cjs +18 -0
  53. package/dist/api/baremetal/v1/content.gen.d.ts +7 -0
  54. package/dist/api/baremetal/v1/content.gen.js +18 -13
  55. package/dist/api/baremetal/v1/index.cjs +12 -0
  56. package/dist/api/baremetal/v1/index.d.ts +5 -0
  57. package/dist/api/baremetal/v1/index.gen.d.ts +4 -0
  58. package/dist/api/baremetal/v1/index.js +12 -5
  59. package/dist/api/baremetal/v1/marshalling.gen.cjs +502 -0
  60. package/dist/api/baremetal/v1/marshalling.gen.d.ts +30 -0
  61. package/dist/api/baremetal/v1/marshalling.gen.js +186 -90
  62. package/dist/api/baremetal/v1/types.gen.d.ts +682 -0
  63. package/dist/api/baremetal/v1/validation-rules.gen.cjs +116 -0
  64. package/dist/api/baremetal/v1/validation-rules.gen.d.ts +104 -0
  65. package/dist/api/baremetal/v1/validation-rules.gen.js +12 -5
  66. package/dist/api/billing/index.cjs +6 -0
  67. package/dist/api/billing/index.d.ts +2 -0
  68. package/dist/api/billing/index.js +6 -4
  69. package/dist/api/billing/v2alpha1/api.gen.cjs +92 -0
  70. package/dist/api/billing/v2alpha1/api.gen.d.ts +50 -0
  71. package/dist/api/billing/v2alpha1/api.gen.js +60 -39
  72. package/dist/api/billing/v2alpha1/index.gen.cjs +4 -0
  73. package/dist/api/billing/v2alpha1/index.gen.d.ts +2 -0
  74. package/dist/api/billing/v2alpha1/index.gen.js +4 -4
  75. package/dist/api/billing/v2alpha1/marshalling.gen.cjs +117 -0
  76. package/dist/api/billing/v2alpha1/marshalling.gen.d.ts +4 -0
  77. package/dist/api/billing/v2alpha1/marshalling.gen.js +48 -29
  78. package/dist/api/billing/v2alpha1/types.gen.d.ts +136 -0
  79. package/dist/api/billing/v2beta1/api.gen.cjs +175 -0
  80. package/dist/api/billing/v2beta1/api.gen.d.ts +79 -0
  81. package/dist/api/billing/v2beta1/api.gen.js +122 -65
  82. package/dist/api/billing/v2beta1/index.gen.cjs +4 -0
  83. package/dist/api/billing/v2beta1/index.gen.d.ts +2 -0
  84. package/dist/api/billing/v2beta1/index.gen.js +4 -4
  85. package/dist/api/billing/v2beta1/marshalling.gen.cjs +158 -0
  86. package/dist/api/billing/v2beta1/marshalling.gen.d.ts +6 -0
  87. package/dist/api/billing/v2beta1/marshalling.gen.js +61 -36
  88. package/dist/api/billing/v2beta1/types.gen.d.ts +269 -0
  89. package/dist/api/block/index.cjs +4 -0
  90. package/dist/api/block/index.d.ts +1 -0
  91. package/dist/api/block/index.js +4 -2
  92. package/dist/api/block/v1alpha1/api.gen.cjs +272 -0
  93. package/dist/api/block/v1alpha1/api.gen.d.ts +144 -0
  94. package/dist/api/block/v1alpha1/api.gen.js +167 -90
  95. package/dist/api/block/v1alpha1/content.gen.cjs +20 -0
  96. package/dist/api/block/v1alpha1/content.gen.d.ts +7 -0
  97. package/dist/api/block/v1alpha1/content.gen.js +20 -13
  98. package/dist/api/block/v1alpha1/index.gen.cjs +10 -0
  99. package/dist/api/block/v1alpha1/index.gen.d.ts +4 -0
  100. package/dist/api/block/v1alpha1/index.gen.js +10 -7
  101. package/dist/api/block/v1alpha1/marshalling.gen.cjs +194 -0
  102. package/dist/api/block/v1alpha1/marshalling.gen.d.ts +13 -0
  103. package/dist/api/block/v1alpha1/marshalling.gen.js +78 -42
  104. package/dist/api/block/v1alpha1/types.gen.d.ts +315 -0
  105. package/dist/api/block/v1alpha1/validation-rules.gen.cjs +56 -0
  106. package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +47 -0
  107. package/dist/api/block/v1alpha1/validation-rules.gen.js +14 -5
  108. package/dist/api/cockpit/index.cjs +6 -0
  109. package/dist/api/cockpit/index.d.ts +2 -0
  110. package/dist/api/cockpit/index.js +6 -4
  111. package/dist/api/cockpit/v1/api.gen.cjs +629 -0
  112. package/dist/api/cockpit/v1/api.gen.d.ts +310 -0
  113. package/dist/api/cockpit/v1/api.gen.js +374 -201
  114. package/dist/api/cockpit/v1/index.gen.cjs +7 -0
  115. package/dist/api/cockpit/v1/index.gen.d.ts +3 -0
  116. package/dist/api/cockpit/v1/index.gen.js +7 -6
  117. package/dist/api/cockpit/v1/marshalling.gen.cjs +325 -0
  118. package/dist/api/cockpit/v1/marshalling.gen.d.ts +30 -0
  119. package/dist/api/cockpit/v1/marshalling.gen.js +131 -59
  120. package/dist/api/cockpit/v1/types.gen.d.ts +525 -0
  121. package/dist/api/cockpit/v1/validation-rules.gen.cjs +48 -0
  122. package/dist/api/cockpit/v1/validation-rules.gen.d.ts +41 -0
  123. package/dist/api/cockpit/v1/validation-rules.gen.js +10 -8
  124. package/dist/api/cockpit/v1beta1/api.gen.cjs +484 -0
  125. package/dist/api/cockpit/v1beta1/api.gen.d.ts +224 -0
  126. package/dist/api/cockpit/v1beta1/api.gen.js +298 -167
  127. package/dist/api/cockpit/v1beta1/content.gen.cjs +8 -0
  128. package/dist/api/cockpit/v1beta1/content.gen.d.ts +3 -0
  129. package/dist/api/cockpit/v1beta1/content.gen.js +8 -7
  130. package/dist/api/cockpit/v1beta1/index.gen.cjs +6 -0
  131. package/dist/api/cockpit/v1beta1/index.gen.d.ts +3 -0
  132. package/dist/api/cockpit/v1beta1/index.gen.js +6 -5
  133. package/dist/api/cockpit/v1beta1/marshalling.gen.cjs +343 -0
  134. package/dist/api/cockpit/v1beta1/marshalling.gen.d.ts +29 -0
  135. package/dist/api/cockpit/v1beta1/marshalling.gen.js +131 -60
  136. package/dist/api/cockpit/v1beta1/types.gen.d.ts +385 -0
  137. package/dist/api/container/index.cjs +4 -0
  138. package/dist/api/container/index.d.ts +1 -0
  139. package/dist/api/container/index.js +4 -2
  140. package/dist/api/container/v1beta1/api.gen.cjs +621 -0
  141. package/dist/api/container/v1beta1/api.gen.d.ts +300 -0
  142. package/dist/api/container/v1beta1/api.gen.js +384 -228
  143. package/dist/api/container/v1beta1/content.gen.cjs +34 -0
  144. package/dist/api/container/v1beta1/content.gen.d.ts +13 -0
  145. package/dist/api/container/v1beta1/content.gen.js +34 -22
  146. package/dist/api/container/v1beta1/index.gen.cjs +13 -0
  147. package/dist/api/container/v1beta1/index.gen.d.ts +4 -0
  148. package/dist/api/container/v1beta1/index.gen.js +13 -7
  149. package/dist/api/container/v1beta1/marshalling.gen.cjs +408 -0
  150. package/dist/api/container/v1beta1/marshalling.gen.d.ts +24 -0
  151. package/dist/api/container/v1beta1/marshalling.gen.js +147 -71
  152. package/dist/api/container/v1beta1/types.gen.d.ts +785 -0
  153. package/dist/api/container/v1beta1/validation-rules.gen.cjs +45 -0
  154. package/dist/api/container/v1beta1/validation-rules.gen.d.ts +39 -0
  155. package/dist/api/container/v1beta1/validation-rules.gen.js +6 -5
  156. package/dist/api/dedibox/index.cjs +4 -0
  157. package/dist/api/dedibox/index.d.ts +1 -0
  158. package/dist/api/dedibox/index.js +4 -2
  159. package/dist/api/dedibox/v1/api.gen.cjs +1460 -0
  160. package/dist/api/dedibox/v1/api.gen.d.ts +560 -0
  161. package/dist/api/dedibox/v1/api.gen.js +1051 -565
  162. package/dist/api/dedibox/v1/content.gen.cjs +49 -0
  163. package/dist/api/dedibox/v1/content.gen.d.ts +19 -0
  164. package/dist/api/dedibox/v1/content.gen.js +49 -31
  165. package/dist/api/dedibox/v1/index.gen.cjs +22 -0
  166. package/dist/api/dedibox/v1/index.gen.d.ts +4 -0
  167. package/dist/api/dedibox/v1/index.gen.js +22 -7
  168. package/dist/api/dedibox/v1/marshalling.gen.cjs +1475 -0
  169. package/dist/api/dedibox/v1/marshalling.gen.d.ts +82 -0
  170. package/dist/api/dedibox/v1/marshalling.gen.js +514 -237
  171. package/dist/api/dedibox/v1/types.gen.d.ts +1900 -0
  172. package/dist/api/dedibox/v1/validation-rules.gen.cjs +626 -0
  173. package/dist/api/dedibox/v1/validation-rules.gen.d.ts +539 -0
  174. package/dist/api/dedibox/v1/validation-rules.gen.js +87 -5
  175. package/dist/api/document_db/index.cjs +4 -0
  176. package/dist/api/document_db/index.d.ts +1 -0
  177. package/dist/api/document_db/index.js +4 -2
  178. package/dist/api/document_db/v1beta1/api.gen.cjs +1018 -0
  179. package/dist/api/document_db/v1beta1/api.gen.d.ts +538 -0
  180. package/dist/api/document_db/v1beta1/api.gen.js +561 -339
  181. package/dist/api/document_db/v1beta1/content.gen.cjs +31 -0
  182. package/dist/api/document_db/v1beta1/content.gen.d.ts +11 -0
  183. package/dist/api/document_db/v1beta1/content.gen.js +31 -19
  184. package/dist/api/document_db/v1beta1/index.gen.cjs +12 -0
  185. package/dist/api/document_db/v1beta1/index.gen.d.ts +4 -0
  186. package/dist/api/document_db/v1beta1/index.gen.js +12 -7
  187. package/dist/api/document_db/v1beta1/marshalling.gen.cjs +829 -0
  188. package/dist/api/document_db/v1beta1/marshalling.gen.d.ts +50 -0
  189. package/dist/api/document_db/v1beta1/marshalling.gen.js +354 -181
  190. package/dist/api/document_db/v1beta1/types.gen.d.ts +1254 -0
  191. package/dist/api/document_db/v1beta1/validation-rules.gen.cjs +8 -0
  192. package/dist/api/document_db/v1beta1/validation-rules.gen.d.ts +5 -0
  193. package/dist/api/document_db/v1beta1/validation-rules.gen.js +3 -5
  194. package/dist/api/domain/index.cjs +4 -0
  195. package/dist/api/domain/index.d.ts +1 -0
  196. package/dist/api/domain/index.js +4 -2
  197. package/dist/api/domain/v2beta1/api.gen.cjs +1052 -0
  198. package/dist/api/domain/v2beta1/api.gen.d.ts +521 -0
  199. package/dist/api/domain/v2beta1/api.gen.js +638 -365
  200. package/dist/api/domain/v2beta1/content.gen.cjs +29 -0
  201. package/dist/api/domain/v2beta1/content.gen.d.ts +18 -0
  202. package/dist/api/domain/v2beta1/content.gen.js +29 -28
  203. package/dist/api/domain/v2beta1/index.gen.cjs +13 -0
  204. package/dist/api/domain/v2beta1/index.gen.d.ts +3 -0
  205. package/dist/api/domain/v2beta1/index.gen.js +13 -5
  206. package/dist/api/domain/v2beta1/marshalling.gen.cjs +1472 -0
  207. package/dist/api/domain/v2beta1/marshalling.gen.d.ts +59 -0
  208. package/dist/api/domain/v2beta1/marshalling.gen.js +676 -383
  209. package/dist/api/domain/v2beta1/types.gen.d.ts +1073 -0
  210. package/dist/api/flexibleip/index.cjs +4 -0
  211. package/dist/api/flexibleip/index.d.ts +1 -0
  212. package/dist/api/flexibleip/index.js +4 -2
  213. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +227 -0
  214. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +117 -0
  215. package/dist/api/flexibleip/v1alpha1/api.gen.js +134 -86
  216. package/dist/api/flexibleip/v1alpha1/content.gen.cjs +12 -0
  217. package/dist/api/flexibleip/v1alpha1/content.gen.d.ts +5 -0
  218. package/dist/api/flexibleip/v1alpha1/content.gen.js +12 -10
  219. package/dist/api/flexibleip/v1alpha1/index.gen.cjs +9 -0
  220. package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +4 -0
  221. package/dist/api/flexibleip/v1alpha1/index.gen.js +9 -7
  222. package/dist/api/flexibleip/v1alpha1/marshalling.gen.cjs +115 -0
  223. package/dist/api/flexibleip/v1alpha1/marshalling.gen.d.ts +13 -0
  224. package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +36 -18
  225. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +196 -0
  226. package/dist/api/flexibleip/v1alpha1/validation-rules.gen.cjs +12 -0
  227. package/dist/api/flexibleip/v1alpha1/validation-rules.gen.d.ts +9 -0
  228. package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +3 -5
  229. package/dist/api/function/index.cjs +4 -0
  230. package/dist/api/function/index.d.ts +1 -0
  231. package/dist/api/function/index.js +4 -2
  232. package/dist/api/function/v1beta1/api.gen.cjs +666 -0
  233. package/dist/api/function/v1beta1/api.gen.d.ts +326 -0
  234. package/dist/api/function/v1beta1/api.gen.js +406 -244
  235. package/dist/api/function/v1beta1/content.gen.cjs +34 -0
  236. package/dist/api/function/v1beta1/content.gen.d.ts +13 -0
  237. package/dist/api/function/v1beta1/content.gen.js +34 -22
  238. package/dist/api/function/v1beta1/index.gen.cjs +13 -0
  239. package/dist/api/function/v1beta1/index.gen.d.ts +4 -0
  240. package/dist/api/function/v1beta1/index.gen.js +13 -7
  241. package/dist/api/function/v1beta1/marshalling.gen.cjs +457 -0
  242. package/dist/api/function/v1beta1/marshalling.gen.d.ts +27 -0
  243. package/dist/api/function/v1beta1/marshalling.gen.js +167 -80
  244. package/dist/api/function/v1beta1/types.gen.d.ts +819 -0
  245. package/dist/api/function/v1beta1/validation-rules.gen.cjs +45 -0
  246. package/dist/api/function/v1beta1/validation-rules.gen.d.ts +39 -0
  247. package/dist/api/function/v1beta1/validation-rules.gen.js +6 -5
  248. package/dist/api/iam/index.cjs +4 -0
  249. package/dist/api/iam/index.d.ts +1 -0
  250. package/dist/api/iam/index.js +4 -2
  251. package/dist/api/iam/v1alpha1/api.gen.cjs +951 -0
  252. package/dist/api/iam/v1alpha1/api.gen.d.ts +475 -0
  253. package/dist/api/iam/v1alpha1/api.gen.js +560 -302
  254. package/dist/api/iam/v1alpha1/index.gen.cjs +6 -0
  255. package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -0
  256. package/dist/api/iam/v1alpha1/index.gen.js +6 -6
  257. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +504 -0
  258. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +42 -0
  259. package/dist/api/iam/v1alpha1/marshalling.gen.js +184 -119
  260. package/dist/api/iam/v1alpha1/types.gen.d.ts +886 -0
  261. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +235 -0
  262. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +211 -0
  263. package/dist/api/iam/v1alpha1/validation-rules.gen.js +29 -10
  264. package/dist/api/index.d.ts +34 -0
  265. package/dist/api/instance/index.cjs +4 -0
  266. package/dist/api/instance/index.d.ts +1 -0
  267. package/dist/api/instance/index.js +4 -2
  268. package/dist/api/instance/v1/api.gen.cjs +1178 -0
  269. package/dist/api/instance/v1/api.gen.d.ts +528 -0
  270. package/dist/api/instance/v1/api.gen.js +763 -445
  271. package/dist/api/instance/v1/api.utils.cjs +279 -0
  272. package/dist/api/instance/v1/api.utils.d.ts +95 -0
  273. package/dist/api/instance/v1/api.utils.js +145 -109
  274. package/dist/api/instance/v1/content.gen.cjs +44 -0
  275. package/dist/api/instance/v1/content.gen.d.ts +21 -0
  276. package/dist/api/instance/v1/content.gen.js +44 -34
  277. package/dist/api/instance/v1/index.cjs +15 -0
  278. package/dist/api/instance/v1/index.d.ts +4 -0
  279. package/dist/api/instance/v1/index.gen.d.ts +4 -0
  280. package/dist/api/instance/v1/index.js +15 -2
  281. package/dist/api/instance/v1/marshalling.gen.cjs +1813 -0
  282. package/dist/api/instance/v1/marshalling.gen.d.ts +95 -0
  283. package/dist/api/instance/v1/marshalling.gen.js +736 -412
  284. package/dist/api/instance/v1/marshalling.utils.d.ts +3 -0
  285. package/dist/api/instance/v1/types.gen.d.ts +1818 -0
  286. package/dist/api/instance/v1/types.private.gen.d.ts +167 -0
  287. package/dist/api/instance/v1/types.utils.d.ts +35 -0
  288. package/dist/api/instance/v1/validation-rules.gen.d.ts +10 -0
  289. package/dist/api/iot/index.cjs +4 -0
  290. package/dist/api/iot/index.d.ts +1 -0
  291. package/dist/api/iot/index.js +4 -2
  292. package/dist/api/iot/v1/api.gen.cjs +621 -0
  293. package/dist/api/iot/v1/api.gen.d.ts +325 -0
  294. package/dist/api/iot/v1/api.gen.js +350 -238
  295. package/dist/api/iot/v1/content.gen.cjs +4 -0
  296. package/dist/api/iot/v1/content.gen.d.ts +3 -0
  297. package/dist/api/iot/v1/content.gen.js +4 -7
  298. package/dist/api/iot/v1/index.gen.cjs +6 -0
  299. package/dist/api/iot/v1/index.gen.d.ts +3 -0
  300. package/dist/api/iot/v1/index.gen.js +6 -5
  301. package/dist/api/iot/v1/marshalling.gen.cjs +534 -0
  302. package/dist/api/iot/v1/marshalling.gen.d.ts +31 -0
  303. package/dist/api/iot/v1/marshalling.gen.js +209 -114
  304. package/dist/api/iot/v1/types.gen.d.ts +916 -0
  305. package/dist/api/ipam/index.cjs +4 -0
  306. package/dist/api/ipam/index.d.ts +1 -0
  307. package/dist/api/ipam/index.js +4 -2
  308. package/dist/api/ipam/v1/api.gen.cjs +115 -0
  309. package/dist/api/ipam/v1/api.gen.d.ts +57 -0
  310. package/dist/api/ipam/v1/api.gen.js +73 -55
  311. package/dist/api/ipam/v1/index.gen.cjs +6 -0
  312. package/dist/api/ipam/v1/index.gen.d.ts +3 -0
  313. package/dist/api/ipam/v1/index.gen.js +6 -6
  314. package/dist/api/ipam/v1/marshalling.gen.cjs +98 -0
  315. package/dist/api/ipam/v1/marshalling.gen.d.ts +6 -0
  316. package/dist/api/ipam/v1/marshalling.gen.js +35 -29
  317. package/dist/api/ipam/v1/types.gen.d.ts +198 -0
  318. package/dist/api/ipam/v1/validation-rules.gen.cjs +9 -0
  319. package/dist/api/ipam/v1/validation-rules.gen.d.ts +6 -0
  320. package/dist/api/ipam/v1/validation-rules.gen.js +3 -5
  321. package/dist/api/ipfs/index.cjs +4 -0
  322. package/dist/api/ipfs/index.d.ts +1 -0
  323. package/dist/api/ipfs/index.js +4 -2
  324. package/dist/api/ipfs/v1alpha1/api.gen.cjs +374 -0
  325. package/dist/api/ipfs/v1alpha1/api.gen.d.ts +198 -0
  326. package/dist/api/ipfs/v1alpha1/api.gen.js +210 -133
  327. package/dist/api/ipfs/v1alpha1/content.gen.cjs +6 -0
  328. package/dist/api/ipfs/v1alpha1/content.gen.d.ts +5 -0
  329. package/dist/api/ipfs/v1alpha1/content.gen.js +6 -10
  330. package/dist/api/ipfs/v1alpha1/index.gen.cjs +8 -0
  331. package/dist/api/ipfs/v1alpha1/index.gen.d.ts +3 -0
  332. package/dist/api/ipfs/v1alpha1/index.gen.js +8 -5
  333. package/dist/api/ipfs/v1alpha1/marshalling.gen.cjs +208 -0
  334. package/dist/api/ipfs/v1alpha1/marshalling.gen.d.ts +18 -0
  335. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +68 -33
  336. package/dist/api/ipfs/v1alpha1/types.gen.d.ts +317 -0
  337. package/dist/api/jobs/index.cjs +4 -0
  338. package/dist/api/jobs/index.d.ts +1 -0
  339. package/dist/api/jobs/index.js +4 -2
  340. package/dist/api/jobs/v1alpha1/api.gen.cjs +170 -0
  341. package/dist/api/jobs/v1alpha1/api.gen.d.ts +80 -0
  342. package/dist/api/jobs/v1alpha1/api.gen.js +109 -69
  343. package/dist/api/jobs/v1alpha1/content.gen.cjs +8 -0
  344. package/dist/api/jobs/v1alpha1/content.gen.d.ts +3 -0
  345. package/dist/api/jobs/v1alpha1/content.gen.js +8 -7
  346. package/dist/api/jobs/v1alpha1/index.gen.cjs +8 -0
  347. package/dist/api/jobs/v1alpha1/index.gen.d.ts +4 -0
  348. package/dist/api/jobs/v1alpha1/index.gen.js +8 -7
  349. package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +150 -0
  350. package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +10 -0
  351. package/dist/api/jobs/v1alpha1/marshalling.gen.js +50 -26
  352. package/dist/api/jobs/v1alpha1/types.gen.d.ts +210 -0
  353. package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +97 -0
  354. package/dist/api/jobs/v1alpha1/validation-rules.gen.d.ts +87 -0
  355. package/dist/api/jobs/v1alpha1/validation-rules.gen.js +12 -7
  356. package/dist/api/k8s/index.cjs +4 -0
  357. package/dist/api/k8s/index.d.ts +1 -0
  358. package/dist/api/k8s/index.js +4 -2
  359. package/dist/api/k8s/v1/api.gen.cjs +550 -0
  360. package/dist/api/k8s/v1/api.gen.d.ts +280 -0
  361. package/dist/api/k8s/v1/api.gen.js +324 -188
  362. package/dist/api/k8s/v1/api.utils.cjs +13 -0
  363. package/dist/api/k8s/v1/api.utils.d.ts +11 -0
  364. package/dist/api/k8s/v1/api.utils.js +5 -5
  365. package/dist/api/k8s/v1/content.gen.cjs +23 -0
  366. package/dist/api/k8s/v1/content.gen.d.ts +7 -0
  367. package/dist/api/k8s/v1/content.gen.js +23 -13
  368. package/dist/api/k8s/v1/index.cjs +10 -0
  369. package/dist/api/k8s/v1/index.d.ts +4 -0
  370. package/dist/api/k8s/v1/index.gen.d.ts +4 -0
  371. package/dist/api/k8s/v1/index.js +10 -4
  372. package/dist/api/k8s/v1/marshalling.gen.cjs +510 -0
  373. package/dist/api/k8s/v1/marshalling.gen.d.ts +22 -0
  374. package/dist/api/k8s/v1/marshalling.gen.js +158 -79
  375. package/dist/api/k8s/v1/types.gen.d.ts +1123 -0
  376. package/dist/api/k8s/v1/validation-rules.gen.cjs +110 -0
  377. package/dist/api/k8s/v1/validation-rules.gen.d.ts +96 -0
  378. package/dist/api/k8s/v1/validation-rules.gen.js +14 -5
  379. package/dist/api/lb/index.cjs +4 -0
  380. package/dist/api/lb/index.d.ts +1 -0
  381. package/dist/api/lb/index.js +4 -2
  382. package/dist/api/lb/v1/api.gen.cjs +1984 -0
  383. package/dist/api/lb/v1/api.gen.d.ts +990 -0
  384. package/dist/api/lb/v1/api.gen.js +1186 -695
  385. package/dist/api/lb/v1/api.utils.cjs +116 -0
  386. package/dist/api/lb/v1/api.utils.d.ts +41 -0
  387. package/dist/api/lb/v1/api.utils.js +83 -48
  388. package/dist/api/lb/v1/content.gen.cjs +22 -0
  389. package/dist/api/lb/v1/content.gen.d.ts +9 -0
  390. package/dist/api/lb/v1/content.gen.js +22 -16
  391. package/dist/api/lb/v1/index.cjs +10 -0
  392. package/dist/api/lb/v1/index.d.ts +4 -0
  393. package/dist/api/lb/v1/index.gen.d.ts +3 -0
  394. package/dist/api/lb/v1/index.js +10 -2
  395. package/dist/api/lb/v1/marshalling.gen.cjs +1289 -0
  396. package/dist/api/lb/v1/marshalling.gen.d.ts +73 -0
  397. package/dist/api/lb/v1/marshalling.gen.js +576 -334
  398. package/dist/api/lb/v1/types.gen.d.ts +2729 -0
  399. package/dist/api/lb/v1/types.utils.d.ts +13 -0
  400. package/dist/api/llm_inference/index.cjs +4 -0
  401. package/dist/api/llm_inference/index.d.ts +1 -0
  402. package/dist/api/llm_inference/index.js +4 -2
  403. package/dist/api/llm_inference/v1beta1/api.gen.cjs +305 -0
  404. package/dist/api/llm_inference/v1beta1/api.gen.d.ts +147 -0
  405. package/dist/api/llm_inference/v1beta1/api.gen.js +192 -120
  406. package/dist/api/llm_inference/v1beta1/content.gen.cjs +8 -0
  407. package/dist/api/llm_inference/v1beta1/content.gen.d.ts +3 -0
  408. package/dist/api/llm_inference/v1beta1/content.gen.js +8 -7
  409. package/dist/api/llm_inference/v1beta1/index.gen.cjs +8 -0
  410. package/dist/api/llm_inference/v1beta1/index.gen.d.ts +4 -0
  411. package/dist/api/llm_inference/v1beta1/index.gen.js +8 -7
  412. package/dist/api/llm_inference/v1beta1/marshalling.gen.cjs +271 -0
  413. package/dist/api/llm_inference/v1beta1/marshalling.gen.d.ts +18 -0
  414. package/dist/api/llm_inference/v1beta1/marshalling.gen.js +98 -52
  415. package/dist/api/llm_inference/v1beta1/types.gen.d.ts +433 -0
  416. package/dist/api/llm_inference/v1beta1/validation-rules.gen.cjs +56 -0
  417. package/dist/api/llm_inference/v1beta1/validation-rules.gen.d.ts +50 -0
  418. package/dist/api/llm_inference/v1beta1/validation-rules.gen.js +6 -5
  419. package/dist/api/marketplace/index.cjs +4 -0
  420. package/dist/api/marketplace/index.d.ts +1 -0
  421. package/dist/api/marketplace/index.js +4 -2
  422. package/dist/api/marketplace/v2/api.gen.cjs +174 -0
  423. package/dist/api/marketplace/v2/api.gen.d.ts +90 -0
  424. package/dist/api/marketplace/v2/api.gen.js +111 -67
  425. package/dist/api/marketplace/v2/index.gen.cjs +4 -0
  426. package/dist/api/marketplace/v2/index.gen.d.ts +2 -0
  427. package/dist/api/marketplace/v2/index.gen.js +4 -4
  428. package/dist/api/marketplace/v2/marshalling.gen.cjs +115 -0
  429. package/dist/api/marketplace/v2/marshalling.gen.d.ts +9 -0
  430. package/dist/api/marketplace/v2/marshalling.gen.js +44 -23
  431. package/dist/api/marketplace/v2/types.gen.d.ts +135 -0
  432. package/dist/api/mnq/index.cjs +4 -0
  433. package/dist/api/mnq/index.d.ts +1 -0
  434. package/dist/api/mnq/index.js +4 -2
  435. package/dist/api/mnq/v1beta1/api.gen.cjs +500 -0
  436. package/dist/api/mnq/v1beta1/api.gen.d.ts +265 -0
  437. package/dist/api/mnq/v1beta1/api.gen.js +291 -184
  438. package/dist/api/mnq/v1beta1/index.gen.cjs +8 -0
  439. package/dist/api/mnq/v1beta1/index.gen.d.ts +3 -0
  440. package/dist/api/mnq/v1beta1/index.gen.js +8 -6
  441. package/dist/api/mnq/v1beta1/marshalling.gen.cjs +268 -0
  442. package/dist/api/mnq/v1beta1/marshalling.gen.d.ts +23 -0
  443. package/dist/api/mnq/v1beta1/marshalling.gen.js +105 -49
  444. package/dist/api/mnq/v1beta1/types.gen.d.ts +449 -0
  445. package/dist/api/mnq/v1beta1/validation-rules.gen.cjs +85 -0
  446. package/dist/api/mnq/v1beta1/validation-rules.gen.d.ts +72 -0
  447. package/dist/api/mnq/v1beta1/validation-rules.gen.js +13 -5
  448. package/dist/api/rdb/index.cjs +4 -0
  449. package/dist/api/rdb/index.d.ts +1 -0
  450. package/dist/api/rdb/index.js +4 -2
  451. package/dist/api/rdb/v1/api.gen.cjs +1192 -0
  452. package/dist/api/rdb/v1/api.gen.d.ts +626 -0
  453. package/dist/api/rdb/v1/api.gen.js +660 -393
  454. package/dist/api/rdb/v1/content.gen.cjs +38 -0
  455. package/dist/api/rdb/v1/content.gen.d.ts +13 -0
  456. package/dist/api/rdb/v1/content.gen.js +38 -22
  457. package/dist/api/rdb/v1/index.gen.cjs +13 -0
  458. package/dist/api/rdb/v1/index.gen.d.ts +4 -0
  459. package/dist/api/rdb/v1/index.gen.js +13 -7
  460. package/dist/api/rdb/v1/marshalling.gen.cjs +908 -0
  461. package/dist/api/rdb/v1/marshalling.gen.d.ts +59 -0
  462. package/dist/api/rdb/v1/marshalling.gen.js +385 -191
  463. package/dist/api/rdb/v1/types.gen.d.ts +1404 -0
  464. package/dist/api/rdb/v1/validation-rules.gen.cjs +8 -0
  465. package/dist/api/rdb/v1/validation-rules.gen.d.ts +5 -0
  466. package/dist/api/rdb/v1/validation-rules.gen.js +3 -5
  467. package/dist/api/redis/index.cjs +4 -0
  468. package/dist/api/redis/index.d.ts +1 -0
  469. package/dist/api/redis/index.js +4 -2
  470. package/dist/api/redis/v1/api.gen.cjs +476 -0
  471. package/dist/api/redis/v1/api.gen.d.ts +249 -0
  472. package/dist/api/redis/v1/api.gen.js +265 -162
  473. package/dist/api/redis/v1/content.gen.cjs +10 -0
  474. package/dist/api/redis/v1/content.gen.d.ts +3 -0
  475. package/dist/api/redis/v1/content.gen.js +10 -7
  476. package/dist/api/redis/v1/index.gen.cjs +6 -0
  477. package/dist/api/redis/v1/index.gen.d.ts +3 -0
  478. package/dist/api/redis/v1/index.gen.js +6 -5
  479. package/dist/api/redis/v1/marshalling.gen.cjs +355 -0
  480. package/dist/api/redis/v1/marshalling.gen.d.ts +24 -0
  481. package/dist/api/redis/v1/marshalling.gen.js +156 -84
  482. package/dist/api/redis/v1/types.gen.d.ts +473 -0
  483. package/dist/api/registry/index.cjs +4 -0
  484. package/dist/api/registry/index.d.ts +1 -0
  485. package/dist/api/registry/index.js +4 -2
  486. package/dist/api/registry/v1/api.gen.cjs +287 -0
  487. package/dist/api/registry/v1/api.gen.d.ts +156 -0
  488. package/dist/api/registry/v1/api.gen.js +161 -94
  489. package/dist/api/registry/v1/content.gen.cjs +8 -0
  490. package/dist/api/registry/v1/content.gen.d.ts +7 -0
  491. package/dist/api/registry/v1/content.gen.js +8 -13
  492. package/dist/api/registry/v1/index.gen.cjs +8 -0
  493. package/dist/api/registry/v1/index.gen.d.ts +3 -0
  494. package/dist/api/registry/v1/index.gen.js +8 -5
  495. package/dist/api/registry/v1/marshalling.gen.cjs +129 -0
  496. package/dist/api/registry/v1/marshalling.gen.d.ts +11 -0
  497. package/dist/api/registry/v1/marshalling.gen.js +51 -30
  498. package/dist/api/registry/v1/types.gen.d.ts +300 -0
  499. package/dist/api/secret/index.cjs +6 -0
  500. package/dist/api/secret/index.d.ts +2 -0
  501. package/dist/api/secret/index.js +6 -4
  502. package/dist/api/secret/v1alpha1/api.gen.cjs +483 -0
  503. package/dist/api/secret/v1alpha1/api.gen.d.ts +261 -0
  504. package/dist/api/secret/v1alpha1/api.gen.js +271 -176
  505. package/dist/api/secret/v1alpha1/index.gen.cjs +4 -0
  506. package/dist/api/secret/v1alpha1/index.gen.d.ts +2 -0
  507. package/dist/api/secret/v1alpha1/index.gen.js +4 -4
  508. package/dist/api/secret/v1alpha1/marshalling.gen.cjs +221 -0
  509. package/dist/api/secret/v1alpha1/marshalling.gen.d.ts +19 -0
  510. package/dist/api/secret/v1alpha1/marshalling.gen.js +67 -33
  511. package/dist/api/secret/v1alpha1/types.gen.d.ts +619 -0
  512. package/dist/api/secret/v1beta1/api.gen.cjs +359 -0
  513. package/dist/api/secret/v1beta1/api.gen.d.ts +181 -0
  514. package/dist/api/secret/v1beta1/api.gen.js +213 -135
  515. package/dist/api/secret/v1beta1/index.gen.cjs +6 -0
  516. package/dist/api/secret/v1beta1/index.gen.d.ts +3 -0
  517. package/dist/api/secret/v1beta1/index.gen.js +6 -6
  518. package/dist/api/secret/v1beta1/marshalling.gen.cjs +219 -0
  519. package/dist/api/secret/v1beta1/marshalling.gen.d.ts +14 -0
  520. package/dist/api/secret/v1beta1/marshalling.gen.js +76 -40
  521. package/dist/api/secret/v1beta1/types.gen.d.ts +513 -0
  522. package/dist/api/secret/v1beta1/validation-rules.gen.cjs +8 -0
  523. package/dist/api/secret/v1beta1/validation-rules.gen.d.ts +5 -0
  524. package/dist/api/secret/v1beta1/validation-rules.gen.js +3 -5
  525. package/dist/api/serverless_sqldb/index.cjs +4 -0
  526. package/dist/api/serverless_sqldb/index.d.ts +1 -0
  527. package/dist/api/serverless_sqldb/index.js +4 -2
  528. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +202 -0
  529. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +109 -0
  530. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +118 -78
  531. package/dist/api/serverless_sqldb/v1alpha1/content.gen.cjs +8 -0
  532. package/dist/api/serverless_sqldb/v1alpha1/content.gen.d.ts +3 -0
  533. package/dist/api/serverless_sqldb/v1alpha1/content.gen.js +8 -7
  534. package/dist/api/serverless_sqldb/v1alpha1/index.gen.cjs +8 -0
  535. package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +4 -0
  536. package/dist/api/serverless_sqldb/v1alpha1/index.gen.js +8 -7
  537. package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.cjs +89 -0
  538. package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.d.ts +9 -0
  539. package/dist/api/serverless_sqldb/v1alpha1/marshalling.gen.js +27 -15
  540. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +193 -0
  541. package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.cjs +62 -0
  542. package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.d.ts +55 -0
  543. package/dist/api/serverless_sqldb/v1alpha1/validation-rules.gen.js +9 -7
  544. package/dist/api/std/index.gen.cjs +1 -0
  545. package/dist/api/std/index.gen.d.ts +1 -0
  546. package/dist/api/std/types.gen.d.ts +1 -0
  547. package/dist/api/tem/index.cjs +4 -0
  548. package/dist/api/tem/index.d.ts +1 -0
  549. package/dist/api/tem/index.js +4 -2
  550. package/dist/api/tem/v1alpha1/api.gen.cjs +260 -0
  551. package/dist/api/tem/v1alpha1/api.gen.d.ts +130 -0
  552. package/dist/api/tem/v1alpha1/api.gen.js +154 -89
  553. package/dist/api/tem/v1alpha1/content.gen.cjs +6 -0
  554. package/dist/api/tem/v1alpha1/content.gen.d.ts +5 -0
  555. package/dist/api/tem/v1alpha1/content.gen.js +6 -10
  556. package/dist/api/tem/v1alpha1/index.gen.cjs +7 -0
  557. package/dist/api/tem/v1alpha1/index.gen.d.ts +3 -0
  558. package/dist/api/tem/v1alpha1/index.gen.js +7 -5
  559. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +255 -0
  560. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +11 -0
  561. package/dist/api/tem/v1alpha1/marshalling.gen.js +90 -50
  562. package/dist/api/tem/v1alpha1/types.gen.d.ts +401 -0
  563. package/dist/api/test/index.cjs +4 -0
  564. package/dist/api/test/index.d.ts +1 -0
  565. package/dist/api/test/index.js +4 -2
  566. package/dist/api/test/v1/api.gen.cjs +164 -0
  567. package/dist/api/test/v1/api.gen.d.ts +84 -0
  568. package/dist/api/test/v1/api.gen.js +99 -71
  569. package/dist/api/test/v1/content.gen.cjs +4 -0
  570. package/dist/api/test/v1/content.gen.d.ts +3 -0
  571. package/dist/api/test/v1/content.gen.js +4 -7
  572. package/dist/api/test/v1/index.gen.cjs +6 -0
  573. package/dist/api/test/v1/index.gen.d.ts +3 -0
  574. package/dist/api/test/v1/index.gen.js +6 -5
  575. package/dist/api/test/v1/marshalling.gen.cjs +93 -0
  576. package/dist/api/test/v1/marshalling.gen.d.ts +8 -0
  577. package/dist/api/test/v1/marshalling.gen.js +34 -22
  578. package/dist/api/test/v1/types.gen.d.ts +91 -0
  579. package/dist/api/vpc/index.cjs +6 -0
  580. package/dist/api/vpc/index.d.ts +2 -0
  581. package/dist/api/vpc/index.js +6 -4
  582. package/dist/api/vpc/v1/api.gen.cjs +119 -0
  583. package/dist/api/vpc/v1/api.gen.d.ts +54 -0
  584. package/dist/api/vpc/v1/api.gen.js +76 -43
  585. package/dist/api/vpc/v1/index.gen.cjs +4 -0
  586. package/dist/api/vpc/v1/index.gen.d.ts +2 -0
  587. package/dist/api/vpc/v1/index.gen.js +4 -4
  588. package/dist/api/vpc/v1/marshalling.gen.cjs +52 -0
  589. package/dist/api/vpc/v1/marshalling.gen.d.ts +6 -0
  590. package/dist/api/vpc/v1/marshalling.gen.js +22 -14
  591. package/dist/api/vpc/v1/types.gen.d.ts +99 -0
  592. package/dist/api/vpc/v2/api.gen.cjs +303 -0
  593. package/dist/api/vpc/v2/api.gen.d.ts +144 -0
  594. package/dist/api/vpc/v2/api.gen.js +181 -112
  595. package/dist/api/vpc/v2/index.gen.cjs +4 -0
  596. package/dist/api/vpc/v2/index.gen.d.ts +2 -0
  597. package/dist/api/vpc/v2/index.gen.js +4 -4
  598. package/dist/api/vpc/v2/marshalling.gen.cjs +173 -0
  599. package/dist/api/vpc/v2/marshalling.gen.d.ts +17 -0
  600. package/dist/api/vpc/v2/marshalling.gen.js +70 -36
  601. package/dist/api/vpc/v2/types.gen.d.ts +338 -0
  602. package/dist/api/vpcgw/index.cjs +4 -0
  603. package/dist/api/vpcgw/index.d.ts +1 -0
  604. package/dist/api/vpcgw/index.js +4 -2
  605. package/dist/api/vpcgw/v1/api.gen.cjs +740 -0
  606. package/dist/api/vpcgw/v1/api.gen.d.ts +389 -0
  607. package/dist/api/vpcgw/v1/api.gen.js +408 -239
  608. package/dist/api/vpcgw/v1/content.gen.cjs +15 -0
  609. package/dist/api/vpcgw/v1/content.gen.d.ts +5 -0
  610. package/dist/api/vpcgw/v1/content.gen.js +15 -10
  611. package/dist/api/vpcgw/v1/index.gen.cjs +7 -0
  612. package/dist/api/vpcgw/v1/index.gen.d.ts +3 -0
  613. package/dist/api/vpcgw/v1/index.gen.js +7 -5
  614. package/dist/api/vpcgw/v1/marshalling.gen.cjs +437 -0
  615. package/dist/api/vpcgw/v1/marshalling.gen.d.ts +31 -0
  616. package/dist/api/vpcgw/v1/marshalling.gen.js +145 -74
  617. package/dist/api/vpcgw/v1/types.gen.d.ts +901 -0
  618. package/dist/api/webhosting/index.cjs +4 -0
  619. package/dist/api/webhosting/index.d.ts +1 -0
  620. package/dist/api/webhosting/index.js +4 -2
  621. package/dist/api/webhosting/v1alpha1/api.gen.cjs +226 -0
  622. package/dist/api/webhosting/v1alpha1/api.gen.d.ts +111 -0
  623. package/dist/api/webhosting/v1alpha1/api.gen.js +145 -75
  624. package/dist/api/webhosting/v1alpha1/content.gen.cjs +8 -0
  625. package/dist/api/webhosting/v1alpha1/content.gen.d.ts +3 -0
  626. package/dist/api/webhosting/v1alpha1/content.gen.js +8 -7
  627. package/dist/api/webhosting/v1alpha1/index.gen.cjs +8 -0
  628. package/dist/api/webhosting/v1alpha1/index.gen.d.ts +4 -0
  629. package/dist/api/webhosting/v1alpha1/index.gen.js +8 -7
  630. package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +236 -0
  631. package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +11 -0
  632. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +92 -37
  633. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +379 -0
  634. package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +22 -0
  635. package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +18 -0
  636. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +4 -5
  637. package/dist/bridge.d.ts +11 -0
  638. package/dist/helpers/is-browser.cjs +7 -0
  639. package/dist/helpers/is-browser.d.ts +1 -0
  640. package/dist/helpers/is-browser.js +7 -5
  641. package/dist/helpers/is-response.cjs +4 -0
  642. package/dist/helpers/is-response.d.ts +8 -0
  643. package/dist/helpers/is-response.js +4 -10
  644. package/dist/helpers/json.cjs +7 -0
  645. package/dist/helpers/json.d.ts +13 -0
  646. package/dist/helpers/json.js +5 -9
  647. package/dist/helpers/marshalling.cjs +78 -0
  648. package/dist/helpers/marshalling.d.ts +63 -0
  649. package/dist/helpers/marshalling.js +40 -77
  650. package/dist/index.cjs +114 -32034
  651. package/dist/index.d.ts +15 -38373
  652. package/dist/index.js +115 -81
  653. package/dist/internal/async/interval-retrier.cjs +55 -0
  654. package/dist/internal/async/interval-retrier.d.ts +111 -0
  655. package/dist/internal/async/interval-retrier.js +30 -72
  656. package/dist/internal/async/sleep.cjs +6 -0
  657. package/dist/internal/async/sleep.d.ts +9 -0
  658. package/dist/internal/async/sleep.js +4 -11
  659. package/dist/internal/interceptors/composer.cjs +25 -0
  660. package/dist/internal/interceptors/composer.d.ts +25 -0
  661. package/dist/internal/interceptors/composer.js +15 -36
  662. package/dist/internal/interceptors/helpers.cjs +12 -0
  663. package/dist/internal/interceptors/helpers.d.ts +21 -0
  664. package/dist/internal/interceptors/helpers.js +7 -26
  665. package/dist/internal/interceptors/types.d.ts +89 -0
  666. package/dist/internal/logger/console-logger.cjs +24 -0
  667. package/dist/internal/logger/console-logger.d.ts +23 -0
  668. package/dist/internal/logger/console-logger.js +11 -19
  669. package/dist/internal/logger/index.cjs +12 -0
  670. package/dist/internal/logger/index.d.ts +25 -0
  671. package/dist/internal/logger/index.js +9 -30
  672. package/dist/internal/logger/level-resolver.cjs +13 -0
  673. package/dist/internal/logger/level-resolver.d.ts +9 -0
  674. package/dist/internal/logger/level-resolver.js +12 -12
  675. package/dist/internal/logger/logger.d.ts +13 -0
  676. package/dist/internal/validations/string-validation.cjs +30 -0
  677. package/dist/internal/validations/string-validation.d.ts +18 -0
  678. package/dist/internal/validations/string-validation.js +19 -27
  679. package/dist/internals.d.ts +10 -0
  680. package/dist/scw/api.cjs +8 -0
  681. package/dist/scw/api.d.ts +10 -0
  682. package/dist/scw/api.js +3 -7
  683. package/dist/scw/auth.cjs +28 -0
  684. package/dist/scw/auth.d.ts +57 -0
  685. package/dist/scw/auth.js +23 -62
  686. package/dist/scw/client-ini-factory.cjs +66 -0
  687. package/dist/scw/client-ini-factory.d.ts +111 -0
  688. package/dist/scw/client-ini-factory.js +33 -141
  689. package/dist/scw/client-ini-profile.cjs +23 -0
  690. package/dist/scw/client-ini-profile.d.ts +82 -0
  691. package/dist/scw/client-ini-profile.js +15 -46
  692. package/dist/scw/client-settings.cjs +51 -0
  693. package/dist/scw/client-settings.d.ts +59 -0
  694. package/dist/scw/client-settings.js +26 -53
  695. package/dist/scw/client.cjs +28 -0
  696. package/dist/scw/client.d.ts +72 -0
  697. package/dist/scw/client.js +14 -76
  698. package/dist/scw/constants.cjs +6 -0
  699. package/dist/scw/constants.d.ts +2 -0
  700. package/dist/scw/constants.js +5 -3
  701. package/dist/scw/custom-marshalling.cjs +92 -0
  702. package/dist/scw/custom-marshalling.d.ts +59 -0
  703. package/dist/scw/custom-marshalling.js +38 -77
  704. package/dist/scw/errors/error-parser.cjs +76 -0
  705. package/dist/scw/errors/error-parser.d.ts +12 -0
  706. package/dist/scw/errors/error-parser.js +33 -64
  707. package/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
  708. package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +12 -0
  709. package/dist/scw/errors/non-standard/invalid-request-mapper.js +26 -23
  710. package/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
  711. package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +11 -0
  712. package/dist/scw/errors/non-standard/unknown-resource-mapper.js +16 -20
  713. package/dist/scw/errors/scw-error.cjs +43 -0
  714. package/dist/scw/errors/scw-error.d.ts +25 -0
  715. package/dist/scw/errors/scw-error.js +19 -35
  716. package/dist/scw/errors/standard/already-exists-error.cjs +31 -0
  717. package/dist/scw/errors/standard/already-exists-error.d.ts +16 -0
  718. package/dist/scw/errors/standard/already-exists-error.js +18 -13
  719. package/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
  720. package/dist/scw/errors/standard/denied-authentication-error.d.ts +15 -0
  721. package/dist/scw/errors/standard/denied-authentication-error.js +9 -24
  722. package/dist/scw/errors/standard/index.cjs +28 -0
  723. package/dist/scw/errors/standard/index.d.ts +17 -0
  724. package/dist/scw/errors/standard/index.js +28 -13
  725. package/dist/scw/errors/standard/invalid-arguments-error.cjs +55 -0
  726. package/dist/scw/errors/standard/invalid-arguments-error.d.ts +24 -0
  727. package/dist/scw/errors/standard/invalid-arguments-error.js +26 -38
  728. package/dist/scw/errors/standard/out-of-stock-error.cjs +18 -0
  729. package/dist/scw/errors/standard/out-of-stock-error.d.ts +14 -0
  730. package/dist/scw/errors/standard/out-of-stock-error.js +7 -11
  731. package/dist/scw/errors/standard/permissions-denied-error.cjs +30 -0
  732. package/dist/scw/errors/standard/permissions-denied-error.d.ts +23 -0
  733. package/dist/scw/errors/standard/permissions-denied-error.js +20 -35
  734. package/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
  735. package/dist/scw/errors/standard/precondition-failed-error.d.ts +15 -0
  736. package/dist/scw/errors/standard/precondition-failed-error.js +14 -24
  737. package/dist/scw/errors/standard/quotas-exceeded-error.cjs +44 -0
  738. package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +34 -0
  739. package/dist/scw/errors/standard/quotas-exceeded-error.js +29 -53
  740. package/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
  741. package/dist/scw/errors/standard/resource-expired-error.d.ts +16 -0
  742. package/dist/scw/errors/standard/resource-expired-error.js +18 -13
  743. package/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
  744. package/dist/scw/errors/standard/resource-locked-error.d.ts +15 -0
  745. package/dist/scw/errors/standard/resource-locked-error.js +6 -11
  746. package/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
  747. package/dist/scw/errors/standard/resource-not-found-error.d.ts +15 -0
  748. package/dist/scw/errors/standard/resource-not-found-error.js +11 -12
  749. package/dist/scw/errors/standard/too-many-requests-error.cjs +59 -0
  750. package/dist/scw/errors/standard/too-many-requests-error.d.ts +32 -0
  751. package/dist/scw/errors/standard/too-many-requests-error.js +20 -31
  752. package/dist/scw/errors/standard/transient-state-error.cjs +31 -0
  753. package/dist/scw/errors/standard/transient-state-error.d.ts +16 -0
  754. package/dist/scw/errors/standard/transient-state-error.js +18 -13
  755. package/dist/scw/errors/types.cjs +15 -0
  756. package/dist/scw/errors/types.d.ts +9 -0
  757. package/dist/scw/errors/types.js +6 -14
  758. package/dist/scw/fetch/build-fetcher.cjs +60 -0
  759. package/dist/scw/fetch/build-fetcher.d.ts +23 -0
  760. package/dist/scw/fetch/build-fetcher.js +29 -38
  761. package/dist/scw/fetch/http-dumper.cjs +20 -0
  762. package/dist/scw/fetch/http-dumper.d.ts +18 -0
  763. package/dist/scw/fetch/http-dumper.js +19 -50
  764. package/dist/scw/fetch/http-interceptors.cjs +43 -0
  765. package/dist/scw/fetch/http-interceptors.d.ts +38 -0
  766. package/dist/scw/fetch/http-interceptors.js +23 -66
  767. package/dist/scw/fetch/resource-paginator.cjs +37 -0
  768. package/dist/scw/fetch/resource-paginator.d.ts +47 -0
  769. package/dist/scw/fetch/resource-paginator.js +12 -45
  770. package/dist/scw/fetch/response-parser.cjs +57 -0
  771. package/dist/scw/fetch/response-parser.d.ts +25 -0
  772. package/dist/scw/fetch/response-parser.js +31 -46
  773. package/package.json +7 -3
  774. package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js +0 -11
@@ -1,12 +1,11 @@
1
- import { isJSONObject } from '../../../helpers/json.js';
2
- import { unmarshalMoney } from '../../../scw/custom-marshalling.js';
3
- import { unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
4
-
5
- // This file was automatically generated. DO NOT EDIT.
6
- // If you have any remark or suggestion do not hesitate to open an issue.
7
- const unmarshalIP = data => {
1
+ import { isJSONObject } from "../../../helpers/json.js";
2
+ import { unmarshalMoney } from "../../../scw/custom-marshalling.js";
3
+ import { unmarshalArrayOfObject, unmarshalDate } from "../../../helpers/marshalling.js";
4
+ const unmarshalIP = (data) => {
8
5
  if (!isJSONObject(data)) {
9
- throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
6
+ throw new TypeError(
7
+ `Unmarshalling the type 'IP' failed as data isn't a dictionary.`
8
+ );
10
9
  }
11
10
  return {
12
11
  address: data.address,
@@ -20,9 +19,11 @@ const unmarshalIP = data => {
20
19
  version: data.version
21
20
  };
22
21
  };
23
- const unmarshalCPU = data => {
22
+ const unmarshalCPU = (data) => {
24
23
  if (!isJSONObject(data)) {
25
- throw new TypeError(`Unmarshalling the type 'CPU' failed as data isn't a dictionary.`);
24
+ throw new TypeError(
25
+ `Unmarshalling the type 'CPU' failed as data isn't a dictionary.`
26
+ );
26
27
  }
27
28
  return {
28
29
  coreCount: data.core_count,
@@ -31,18 +32,22 @@ const unmarshalCPU = data => {
31
32
  threadCount: data.thread_count
32
33
  };
33
34
  };
34
- const unmarshalDisk = data => {
35
+ const unmarshalDisk = (data) => {
35
36
  if (!isJSONObject(data)) {
36
- throw new TypeError(`Unmarshalling the type 'Disk' failed as data isn't a dictionary.`);
37
+ throw new TypeError(
38
+ `Unmarshalling the type 'Disk' failed as data isn't a dictionary.`
39
+ );
37
40
  }
38
41
  return {
39
42
  capacity: data.capacity,
40
43
  type: data.type
41
44
  };
42
45
  };
43
- const unmarshalMemory = data => {
46
+ const unmarshalMemory = (data) => {
44
47
  if (!isJSONObject(data)) {
45
- throw new TypeError(`Unmarshalling the type 'Memory' failed as data isn't a dictionary.`);
48
+ throw new TypeError(
49
+ `Unmarshalling the type 'Memory' failed as data isn't a dictionary.`
50
+ );
46
51
  }
47
52
  return {
48
53
  capacity: data.capacity,
@@ -51,9 +56,11 @@ const unmarshalMemory = data => {
51
56
  type: data.type
52
57
  };
53
58
  };
54
- const unmarshalPersistentMemory = data => {
59
+ const unmarshalPersistentMemory = (data) => {
55
60
  if (!isJSONObject(data)) {
56
- throw new TypeError(`Unmarshalling the type 'PersistentMemory' failed as data isn't a dictionary.`);
61
+ throw new TypeError(
62
+ `Unmarshalling the type 'PersistentMemory' failed as data isn't a dictionary.`
63
+ );
57
64
  }
58
65
  return {
59
66
  capacity: data.capacity,
@@ -61,74 +68,92 @@ const unmarshalPersistentMemory = data => {
61
68
  model: data.model
62
69
  };
63
70
  };
64
- const unmarshalRaidController = data => {
71
+ const unmarshalRaidController = (data) => {
65
72
  if (!isJSONObject(data)) {
66
- throw new TypeError(`Unmarshalling the type 'RaidController' failed as data isn't a dictionary.`);
73
+ throw new TypeError(
74
+ `Unmarshalling the type 'RaidController' failed as data isn't a dictionary.`
75
+ );
67
76
  }
68
77
  return {
69
78
  model: data.model,
70
79
  raidLevel: data.raid_level
71
80
  };
72
81
  };
73
- const unmarshalOfferAntiDosInfo = data => {
82
+ const unmarshalOfferAntiDosInfo = (data) => {
74
83
  if (!isJSONObject(data)) {
75
- throw new TypeError(`Unmarshalling the type 'OfferAntiDosInfo' failed as data isn't a dictionary.`);
84
+ throw new TypeError(
85
+ `Unmarshalling the type 'OfferAntiDosInfo' failed as data isn't a dictionary.`
86
+ );
76
87
  }
77
88
  return {
78
89
  type: data.type
79
90
  };
80
91
  };
81
- const unmarshalOfferBackupInfo = data => {
92
+ const unmarshalOfferBackupInfo = (data) => {
82
93
  if (!isJSONObject(data)) {
83
- throw new TypeError(`Unmarshalling the type 'OfferBackupInfo' failed as data isn't a dictionary.`);
94
+ throw new TypeError(
95
+ `Unmarshalling the type 'OfferBackupInfo' failed as data isn't a dictionary.`
96
+ );
84
97
  }
85
98
  return {
86
99
  size: data.size
87
100
  };
88
101
  };
89
- const unmarshalOfferBandwidthInfo = data => {
102
+ const unmarshalOfferBandwidthInfo = (data) => {
90
103
  if (!isJSONObject(data)) {
91
- throw new TypeError(`Unmarshalling the type 'OfferBandwidthInfo' failed as data isn't a dictionary.`);
104
+ throw new TypeError(
105
+ `Unmarshalling the type 'OfferBandwidthInfo' failed as data isn't a dictionary.`
106
+ );
92
107
  }
93
108
  return {
94
109
  speed: data.speed
95
110
  };
96
111
  };
97
- const unmarshalOfferFailoverBlockInfo = data => {
112
+ const unmarshalOfferFailoverBlockInfo = (data) => {
98
113
  if (!isJSONObject(data)) {
99
- throw new TypeError(`Unmarshalling the type 'OfferFailoverBlockInfo' failed as data isn't a dictionary.`);
114
+ throw new TypeError(
115
+ `Unmarshalling the type 'OfferFailoverBlockInfo' failed as data isn't a dictionary.`
116
+ );
100
117
  }
101
118
  return {
102
- onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : undefined
119
+ onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : void 0
103
120
  };
104
121
  };
105
- const unmarshalOfferFailoverIpInfo = data => {
122
+ const unmarshalOfferFailoverIpInfo = (data) => {
106
123
  if (!isJSONObject(data)) {
107
- throw new TypeError(`Unmarshalling the type 'OfferFailoverIpInfo' failed as data isn't a dictionary.`);
124
+ throw new TypeError(
125
+ `Unmarshalling the type 'OfferFailoverIpInfo' failed as data isn't a dictionary.`
126
+ );
108
127
  }
109
128
  return {
110
- onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : undefined
129
+ onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : void 0
111
130
  };
112
131
  };
113
- const unmarshalOfferLicenseInfo = data => {
132
+ const unmarshalOfferLicenseInfo = (data) => {
114
133
  if (!isJSONObject(data)) {
115
- throw new TypeError(`Unmarshalling the type 'OfferLicenseInfo' failed as data isn't a dictionary.`);
134
+ throw new TypeError(
135
+ `Unmarshalling the type 'OfferLicenseInfo' failed as data isn't a dictionary.`
136
+ );
116
137
  }
117
138
  return {
118
139
  boundToIp: data.bound_to_ip
119
140
  };
120
141
  };
121
- const unmarshalOfferRPNInfo = data => {
142
+ const unmarshalOfferRPNInfo = (data) => {
122
143
  if (!isJSONObject(data)) {
123
- throw new TypeError(`Unmarshalling the type 'OfferRPNInfo' failed as data isn't a dictionary.`);
144
+ throw new TypeError(
145
+ `Unmarshalling the type 'OfferRPNInfo' failed as data isn't a dictionary.`
146
+ );
124
147
  }
125
148
  return {
126
149
  speed: data.speed
127
150
  };
128
151
  };
129
- const unmarshalOfferSANInfo = data => {
152
+ const unmarshalOfferSANInfo = (data) => {
130
153
  if (!isJSONObject(data)) {
131
- throw new TypeError(`Unmarshalling the type 'OfferSANInfo' failed as data isn't a dictionary.`);
154
+ throw new TypeError(
155
+ `Unmarshalling the type 'OfferSANInfo' failed as data isn't a dictionary.`
156
+ );
132
157
  }
133
158
  return {
134
159
  deviceType: data.device_type,
@@ -136,33 +161,49 @@ const unmarshalOfferSANInfo = data => {
136
161
  size: data.size
137
162
  };
138
163
  };
139
- const unmarshalOfferServerInfo = data => {
164
+ const unmarshalOfferServerInfo = (data) => {
140
165
  if (!isJSONObject(data)) {
141
- throw new TypeError(`Unmarshalling the type 'OfferServerInfo' failed as data isn't a dictionary.`);
166
+ throw new TypeError(
167
+ `Unmarshalling the type 'OfferServerInfo' failed as data isn't a dictionary.`
168
+ );
142
169
  }
143
170
  return {
144
- availableOptions: unmarshalArrayOfObject(data.available_options, unmarshalOffer),
171
+ availableOptions: unmarshalArrayOfObject(
172
+ data.available_options,
173
+ unmarshalOffer
174
+ ),
145
175
  bandwidth: data.bandwidth,
146
176
  commercialRange: data.commercial_range,
147
177
  connectivity: data.connectivity,
148
178
  cpus: unmarshalArrayOfObject(data.cpus, unmarshalCPU),
149
179
  disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
150
180
  memories: unmarshalArrayOfObject(data.memories, unmarshalMemory),
151
- onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : undefined,
152
- persistentMemories: unmarshalArrayOfObject(data.persistent_memories, unmarshalPersistentMemory),
153
- raidControllers: unmarshalArrayOfObject(data.raid_controllers, unmarshalRaidController),
181
+ onetimeFees: data.onetime_fees ? unmarshalOffer(data.onetime_fees) : void 0,
182
+ persistentMemories: unmarshalArrayOfObject(
183
+ data.persistent_memories,
184
+ unmarshalPersistentMemory
185
+ ),
186
+ raidControllers: unmarshalArrayOfObject(
187
+ data.raid_controllers,
188
+ unmarshalRaidController
189
+ ),
154
190
  rpnVersion: data.rpn_version,
155
191
  stock: data.stock,
156
192
  stockByDatacenter: data.stock_by_datacenter
157
193
  };
158
194
  };
159
- const unmarshalOfferServiceLevelInfo = data => {
195
+ const unmarshalOfferServiceLevelInfo = (data) => {
160
196
  if (!isJSONObject(data)) {
161
- throw new TypeError(`Unmarshalling the type 'OfferServiceLevelInfo' failed as data isn't a dictionary.`);
197
+ throw new TypeError(
198
+ `Unmarshalling the type 'OfferServiceLevelInfo' failed as data isn't a dictionary.`
199
+ );
162
200
  }
163
201
  return {
164
202
  antidos: data.antidos,
165
- availableOptions: unmarshalArrayOfObject(data.available_options, unmarshalOffer),
203
+ availableOptions: unmarshalArrayOfObject(
204
+ data.available_options,
205
+ unmarshalOffer
206
+ ),
166
207
  customization: data.customization,
167
208
  extraFailoverQuota: data.extra_failover_quota,
168
209
  git: data.git,
@@ -174,42 +215,48 @@ const unmarshalOfferServiceLevelInfo = data => {
174
215
  supportTicket: data.support_ticket
175
216
  };
176
217
  };
177
- const unmarshalOfferStorageInfo = data => {
218
+ const unmarshalOfferStorageInfo = (data) => {
178
219
  if (!isJSONObject(data)) {
179
- throw new TypeError(`Unmarshalling the type 'OfferStorageInfo' failed as data isn't a dictionary.`);
220
+ throw new TypeError(
221
+ `Unmarshalling the type 'OfferStorageInfo' failed as data isn't a dictionary.`
222
+ );
180
223
  }
181
224
  return {
182
225
  maxQuota: data.max_quota,
183
226
  size: data.size
184
227
  };
185
228
  };
186
- const unmarshalOffer = data => {
229
+ const unmarshalOffer = (data) => {
187
230
  if (!isJSONObject(data)) {
188
- throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
231
+ throw new TypeError(
232
+ `Unmarshalling the type 'Offer' failed as data isn't a dictionary.`
233
+ );
189
234
  }
190
235
  return {
191
- antidosInfo: data.antidos_info ? unmarshalOfferAntiDosInfo(data.antidos_info) : undefined,
192
- backupInfo: data.backup_info ? unmarshalOfferBackupInfo(data.backup_info) : undefined,
193
- bandwidthInfo: data.bandwidth_info ? unmarshalOfferBandwidthInfo(data.bandwidth_info) : undefined,
236
+ antidosInfo: data.antidos_info ? unmarshalOfferAntiDosInfo(data.antidos_info) : void 0,
237
+ backupInfo: data.backup_info ? unmarshalOfferBackupInfo(data.backup_info) : void 0,
238
+ bandwidthInfo: data.bandwidth_info ? unmarshalOfferBandwidthInfo(data.bandwidth_info) : void 0,
194
239
  catalog: data.catalog,
195
- failoverBlockInfo: data.failover_block_info ? unmarshalOfferFailoverBlockInfo(data.failover_block_info) : undefined,
196
- failoverIpInfo: data.failover_ip_info ? unmarshalOfferFailoverIpInfo(data.failover_ip_info) : undefined,
240
+ failoverBlockInfo: data.failover_block_info ? unmarshalOfferFailoverBlockInfo(data.failover_block_info) : void 0,
241
+ failoverIpInfo: data.failover_ip_info ? unmarshalOfferFailoverIpInfo(data.failover_ip_info) : void 0,
197
242
  id: data.id,
198
- licenseInfo: data.license_info ? unmarshalOfferLicenseInfo(data.license_info) : undefined,
243
+ licenseInfo: data.license_info ? unmarshalOfferLicenseInfo(data.license_info) : void 0,
199
244
  name: data.name,
200
245
  paymentFrequency: data.payment_frequency,
201
- pricing: data.pricing ? unmarshalMoney(data.pricing) : undefined,
202
- rpnInfo: data.rpn_info ? unmarshalOfferRPNInfo(data.rpn_info) : undefined,
203
- sanInfo: data.san_info ? unmarshalOfferSANInfo(data.san_info) : undefined,
204
- serverInfo: data.server_info ? unmarshalOfferServerInfo(data.server_info) : undefined,
205
- serviceLevelInfo: data.service_level_info ? unmarshalOfferServiceLevelInfo(data.service_level_info) : undefined,
206
- storageInfo: data.storage_info ? unmarshalOfferStorageInfo(data.storage_info) : undefined,
207
- usbStorageInfo: data.usb_storage_info ? unmarshalOfferStorageInfo(data.usb_storage_info) : undefined
246
+ pricing: data.pricing ? unmarshalMoney(data.pricing) : void 0,
247
+ rpnInfo: data.rpn_info ? unmarshalOfferRPNInfo(data.rpn_info) : void 0,
248
+ sanInfo: data.san_info ? unmarshalOfferSANInfo(data.san_info) : void 0,
249
+ serverInfo: data.server_info ? unmarshalOfferServerInfo(data.server_info) : void 0,
250
+ serviceLevelInfo: data.service_level_info ? unmarshalOfferServiceLevelInfo(data.service_level_info) : void 0,
251
+ storageInfo: data.storage_info ? unmarshalOfferStorageInfo(data.storage_info) : void 0,
252
+ usbStorageInfo: data.usb_storage_info ? unmarshalOfferStorageInfo(data.usb_storage_info) : void 0
208
253
  };
209
254
  };
210
- const unmarshalOS = data => {
255
+ const unmarshalOS = (data) => {
211
256
  if (!isJSONObject(data)) {
212
- throw new TypeError(`Unmarshalling the type 'OS' failed as data isn't a dictionary.`);
257
+ throw new TypeError(
258
+ `Unmarshalling the type 'OS' failed as data isn't a dictionary.`
259
+ );
213
260
  }
214
261
  return {
215
262
  allowCustomPartitioning: data.allow_custom_partitioning,
@@ -235,9 +282,11 @@ const unmarshalOS = data => {
235
282
  version: data.version
236
283
  };
237
284
  };
238
- const unmarshalRpnSan = data => {
285
+ const unmarshalRpnSan = (data) => {
239
286
  if (!isJSONObject(data)) {
240
- throw new TypeError(`Unmarshalling the type 'RpnSan' failed as data isn't a dictionary.`);
287
+ throw new TypeError(
288
+ `Unmarshalling the type 'RpnSan' failed as data isn't a dictionary.`
289
+ );
241
290
  }
242
291
  return {
243
292
  createdAt: unmarshalDate(data.created_at),
@@ -247,7 +296,7 @@ const unmarshalRpnSan = data => {
247
296
  id: data.id,
248
297
  iqn: data.iqn,
249
298
  iqnSuffix: data.iqn_suffix,
250
- offer: data.offer ? unmarshalOffer(data.offer) : undefined,
299
+ offer: data.offer ? unmarshalOffer(data.offer) : void 0,
251
300
  offerId: data.offer_id,
252
301
  offerName: data.offer_name,
253
302
  organizationId: data.organization_id,
@@ -260,9 +309,11 @@ const unmarshalRpnSan = data => {
260
309
  terminatedAt: unmarshalDate(data.terminated_at)
261
310
  };
262
311
  };
263
- const unmarshalRpnGroup = data => {
312
+ const unmarshalRpnGroup = (data) => {
264
313
  if (!isJSONObject(data)) {
265
- throw new TypeError(`Unmarshalling the type 'RpnGroup' failed as data isn't a dictionary.`);
314
+ throw new TypeError(
315
+ `Unmarshalling the type 'RpnGroup' failed as data isn't a dictionary.`
316
+ );
266
317
  }
267
318
  return {
268
319
  active: data.active,
@@ -276,9 +327,11 @@ const unmarshalRpnGroup = data => {
276
327
  type: data.type
277
328
  };
278
329
  };
279
- const unmarshalNetworkInterface = data => {
330
+ const unmarshalNetworkInterface = (data) => {
280
331
  if (!isJSONObject(data)) {
281
- throw new TypeError(`Unmarshalling the type 'NetworkInterface' failed as data isn't a dictionary.`);
332
+ throw new TypeError(
333
+ `Unmarshalling the type 'NetworkInterface' failed as data isn't a dictionary.`
334
+ );
282
335
  }
283
336
  return {
284
337
  cardId: data.card_id,
@@ -288,9 +341,11 @@ const unmarshalNetworkInterface = data => {
288
341
  type: data.type
289
342
  };
290
343
  };
291
- const unmarshalServerLocation = data => {
344
+ const unmarshalServerLocation = (data) => {
292
345
  if (!isJSONObject(data)) {
293
- throw new TypeError(`Unmarshalling the type 'ServerLocation' failed as data isn't a dictionary.`);
346
+ throw new TypeError(
347
+ `Unmarshalling the type 'ServerLocation' failed as data isn't a dictionary.`
348
+ );
294
349
  }
295
350
  return {
296
351
  datacenterName: data.datacenter_name,
@@ -298,30 +353,36 @@ const unmarshalServerLocation = data => {
298
353
  room: data.room
299
354
  };
300
355
  };
301
- const unmarshalServerOption = data => {
356
+ const unmarshalServerOption = (data) => {
302
357
  if (!isJSONObject(data)) {
303
- throw new TypeError(`Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`);
358
+ throw new TypeError(
359
+ `Unmarshalling the type 'ServerOption' failed as data isn't a dictionary.`
360
+ );
304
361
  }
305
362
  return {
306
363
  createdAt: unmarshalDate(data.created_at),
307
364
  expiredAt: unmarshalDate(data.expired_at),
308
- offer: data.offer ? unmarshalOffer(data.offer) : undefined,
365
+ offer: data.offer ? unmarshalOffer(data.offer) : void 0,
309
366
  options: unmarshalArrayOfObject(data.options, unmarshalServerOption),
310
367
  updatedAt: unmarshalDate(data.updated_at)
311
368
  };
312
369
  };
313
- const unmarshalServiceLevel = data => {
370
+ const unmarshalServiceLevel = (data) => {
314
371
  if (!isJSONObject(data)) {
315
- throw new TypeError(`Unmarshalling the type 'ServiceLevel' failed as data isn't a dictionary.`);
372
+ throw new TypeError(
373
+ `Unmarshalling the type 'ServiceLevel' failed as data isn't a dictionary.`
374
+ );
316
375
  }
317
376
  return {
318
377
  level: data.level,
319
378
  offerId: data.offer_id
320
379
  };
321
380
  };
322
- const unmarshalServer = data => {
381
+ const unmarshalServer = (data) => {
323
382
  if (!isJSONObject(data)) {
324
- throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
383
+ throw new TypeError(
384
+ `Unmarshalling the type 'Server' failed as data isn't a dictionary.`
385
+ );
325
386
  }
326
387
  return {
327
388
  abuseContact: data.abuse_contact,
@@ -330,38 +391,45 @@ const unmarshalServer = data => {
330
391
  hasBmc: data.has_bmc,
331
392
  hostname: data.hostname,
332
393
  id: data.id,
333
- interfaces: unmarshalArrayOfObject(data.interfaces, unmarshalNetworkInterface),
394
+ interfaces: unmarshalArrayOfObject(
395
+ data.interfaces,
396
+ unmarshalNetworkInterface
397
+ ),
334
398
  ipv6Slaac: data.ipv6_slaac,
335
399
  isOutsourced: data.is_outsourced,
336
400
  isRpnv2Member: data.is_rpnv2_member,
337
- level: data.level ? unmarshalServiceLevel(data.level) : undefined,
338
- location: data.location ? unmarshalServerLocation(data.location) : undefined,
339
- offer: data.offer ? unmarshalOffer(data.offer) : undefined,
401
+ level: data.level ? unmarshalServiceLevel(data.level) : void 0,
402
+ location: data.location ? unmarshalServerLocation(data.location) : void 0,
403
+ offer: data.offer ? unmarshalOffer(data.offer) : void 0,
340
404
  options: unmarshalArrayOfObject(data.options, unmarshalServerOption),
341
405
  organizationId: data.organization_id,
342
- os: data.os ? unmarshalOS(data.os) : undefined,
406
+ os: data.os ? unmarshalOS(data.os) : void 0,
343
407
  projectId: data.project_id,
344
408
  qinq: data.qinq,
345
409
  rebootedAt: unmarshalDate(data.rebooted_at),
346
- rescueOs: data.rescue_os ? unmarshalOS(data.rescue_os) : undefined,
410
+ rescueOs: data.rescue_os ? unmarshalOS(data.rescue_os) : void 0,
347
411
  status: data.status,
348
412
  tags: data.tags,
349
413
  updatedAt: unmarshalDate(data.updated_at),
350
414
  zone: data.zone
351
415
  };
352
416
  };
353
- const unmarshalRpnV2GroupSubnet = data => {
417
+ const unmarshalRpnV2GroupSubnet = (data) => {
354
418
  if (!isJSONObject(data)) {
355
- throw new TypeError(`Unmarshalling the type 'RpnV2GroupSubnet' failed as data isn't a dictionary.`);
419
+ throw new TypeError(
420
+ `Unmarshalling the type 'RpnV2GroupSubnet' failed as data isn't a dictionary.`
421
+ );
356
422
  }
357
423
  return {
358
424
  address: data.address,
359
425
  cidr: data.cidr
360
426
  };
361
427
  };
362
- const unmarshalRpnV2Group = data => {
428
+ const unmarshalRpnV2Group = (data) => {
363
429
  if (!isJSONObject(data)) {
364
- throw new TypeError(`Unmarshalling the type 'RpnV2Group' failed as data isn't a dictionary.`);
430
+ throw new TypeError(
431
+ `Unmarshalling the type 'RpnV2Group' failed as data isn't a dictionary.`
432
+ );
365
433
  }
366
434
  return {
367
435
  compatibleRpnv1: data.compatible_rpnv1,
@@ -372,31 +440,35 @@ const unmarshalRpnV2Group = data => {
372
440
  organizationId: data.organization_id,
373
441
  owner: data.owner,
374
442
  projectId: data.project_id,
375
- rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : undefined,
443
+ rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : void 0,
376
444
  status: data.status,
377
- subnet: data.subnet ? unmarshalRpnV2GroupSubnet(data.subnet) : undefined,
445
+ subnet: data.subnet ? unmarshalRpnV2GroupSubnet(data.subnet) : void 0,
378
446
  type: data.type
379
447
  };
380
448
  };
381
- const unmarshalService = data => {
449
+ const unmarshalService = (data) => {
382
450
  if (!isJSONObject(data)) {
383
- throw new TypeError(`Unmarshalling the type 'Service' failed as data isn't a dictionary.`);
451
+ throw new TypeError(
452
+ `Unmarshalling the type 'Service' failed as data isn't a dictionary.`
453
+ );
384
454
  }
385
455
  return {
386
456
  createdAt: unmarshalDate(data.created_at),
387
457
  deliveredAt: unmarshalDate(data.delivered_at),
388
458
  expiresAt: unmarshalDate(data.expires_at),
389
459
  id: data.id,
390
- offer: data.offer ? unmarshalOffer(data.offer) : undefined,
460
+ offer: data.offer ? unmarshalOffer(data.offer) : void 0,
391
461
  provisioningStatus: data.provisioning_status,
392
462
  resourceId: data.resource_id,
393
463
  terminatedAt: unmarshalDate(data.terminated_at),
394
464
  type: data.type
395
465
  };
396
466
  };
397
- const unmarshalFailoverBlock = data => {
467
+ const unmarshalFailoverBlock = (data) => {
398
468
  if (!isJSONObject(data)) {
399
- throw new TypeError(`Unmarshalling the type 'FailoverBlock' failed as data isn't a dictionary.`);
469
+ throw new TypeError(
470
+ `Unmarshalling the type 'FailoverBlock' failed as data isn't a dictionary.`
471
+ );
400
472
  }
401
473
  return {
402
474
  address: data.address,
@@ -408,13 +480,15 @@ const unmarshalFailoverBlock = data => {
408
480
  netmask: data.netmask
409
481
  };
410
482
  };
411
- const unmarshalFailoverIP = data => {
483
+ const unmarshalFailoverIP = (data) => {
412
484
  if (!isJSONObject(data)) {
413
- throw new TypeError(`Unmarshalling the type 'FailoverIP' failed as data isn't a dictionary.`);
485
+ throw new TypeError(
486
+ `Unmarshalling the type 'FailoverIP' failed as data isn't a dictionary.`
487
+ );
414
488
  }
415
489
  return {
416
490
  address: data.address,
417
- block: data.block ? unmarshalFailoverBlock(data.block) : undefined,
491
+ block: data.block ? unmarshalFailoverBlock(data.block) : void 0,
418
492
  cidr: data.cidr,
419
493
  gatewayIp: data.gateway_ip,
420
494
  id: data.id,
@@ -428,9 +502,11 @@ const unmarshalFailoverIP = data => {
428
502
  type: data.type
429
503
  };
430
504
  };
431
- const unmarshalBMCAccess = data => {
505
+ const unmarshalBMCAccess = (data) => {
432
506
  if (!isJSONObject(data)) {
433
- throw new TypeError(`Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`);
507
+ throw new TypeError(
508
+ `Unmarshalling the type 'BMCAccess' failed as data isn't a dictionary.`
509
+ );
434
510
  }
435
511
  return {
436
512
  expiresAt: unmarshalDate(data.expires_at),
@@ -440,9 +516,11 @@ const unmarshalBMCAccess = data => {
440
516
  url: data.url
441
517
  };
442
518
  };
443
- const unmarshalBackup = data => {
519
+ const unmarshalBackup = (data) => {
444
520
  if (!isJSONObject(data)) {
445
- throw new TypeError(`Unmarshalling the type 'Backup' failed as data isn't a dictionary.`);
521
+ throw new TypeError(
522
+ `Unmarshalling the type 'Backup' failed as data isn't a dictionary.`
523
+ );
446
524
  }
447
525
  return {
448
526
  aclEnabled: data.acl_enabled,
@@ -457,9 +535,11 @@ const unmarshalBackup = data => {
457
535
  status: data.status
458
536
  };
459
537
  };
460
- const unmarshalCanOrderResponse = data => {
538
+ const unmarshalCanOrderResponse = (data) => {
461
539
  if (!isJSONObject(data)) {
462
- throw new TypeError(`Unmarshalling the type 'CanOrderResponse' failed as data isn't a dictionary.`);
540
+ throw new TypeError(
541
+ `Unmarshalling the type 'CanOrderResponse' failed as data isn't a dictionary.`
542
+ );
463
543
  }
464
544
  return {
465
545
  billingOk: data.billing_ok,
@@ -472,36 +552,47 @@ const unmarshalCanOrderResponse = data => {
472
552
  userConfirmed: data.user_confirmed
473
553
  };
474
554
  };
475
- const unmarshalCreateFailoverIPsResponse = data => {
555
+ const unmarshalCreateFailoverIPsResponse = (data) => {
476
556
  if (!isJSONObject(data)) {
477
- throw new TypeError(`Unmarshalling the type 'CreateFailoverIPsResponse' failed as data isn't a dictionary.`);
557
+ throw new TypeError(
558
+ `Unmarshalling the type 'CreateFailoverIPsResponse' failed as data isn't a dictionary.`
559
+ );
478
560
  }
479
561
  return {
480
562
  services: unmarshalArrayOfObject(data.services, unmarshalService),
481
563
  totalCount: data.total_count
482
564
  };
483
565
  };
484
- const unmarshalGetIPv6BlockQuotasResponseQuota = data => {
566
+ const unmarshalGetIPv6BlockQuotasResponseQuota = (data) => {
485
567
  if (!isJSONObject(data)) {
486
- throw new TypeError(`Unmarshalling the type 'GetIPv6BlockQuotasResponseQuota' failed as data isn't a dictionary.`);
568
+ throw new TypeError(
569
+ `Unmarshalling the type 'GetIPv6BlockQuotasResponseQuota' failed as data isn't a dictionary.`
570
+ );
487
571
  }
488
572
  return {
489
573
  cidr: data.cidr,
490
574
  quota: data.quota
491
575
  };
492
576
  };
493
- const unmarshalGetIPv6BlockQuotasResponse = data => {
577
+ const unmarshalGetIPv6BlockQuotasResponse = (data) => {
494
578
  if (!isJSONObject(data)) {
495
- throw new TypeError(`Unmarshalling the type 'GetIPv6BlockQuotasResponse' failed as data isn't a dictionary.`);
579
+ throw new TypeError(
580
+ `Unmarshalling the type 'GetIPv6BlockQuotasResponse' failed as data isn't a dictionary.`
581
+ );
496
582
  }
497
583
  return {
498
- quotas: unmarshalArrayOfObject(data.quotas, unmarshalGetIPv6BlockQuotasResponseQuota),
584
+ quotas: unmarshalArrayOfObject(
585
+ data.quotas,
586
+ unmarshalGetIPv6BlockQuotasResponseQuota
587
+ ),
499
588
  totalCount: data.total_count
500
589
  };
501
590
  };
502
- const unmarshalGetRemainingQuotaResponse = data => {
591
+ const unmarshalGetRemainingQuotaResponse = (data) => {
503
592
  if (!isJSONObject(data)) {
504
- throw new TypeError(`Unmarshalling the type 'GetRemainingQuotaResponse' failed as data isn't a dictionary.`);
593
+ throw new TypeError(
594
+ `Unmarshalling the type 'GetRemainingQuotaResponse' failed as data isn't a dictionary.`
595
+ );
505
596
  }
506
597
  return {
507
598
  failoverBlockQuota: data.failover_block_quota,
@@ -510,18 +601,22 @@ const unmarshalGetRemainingQuotaResponse = data => {
510
601
  failoverIpRemainingQuota: data.failover_ip_remaining_quota
511
602
  };
512
603
  };
513
- const unmarshalGetRpnStatusResponse = data => {
604
+ const unmarshalGetRpnStatusResponse = (data) => {
514
605
  if (!isJSONObject(data)) {
515
- throw new TypeError(`Unmarshalling the type 'GetRpnStatusResponse' failed as data isn't a dictionary.`);
606
+ throw new TypeError(
607
+ `Unmarshalling the type 'GetRpnStatusResponse' failed as data isn't a dictionary.`
608
+ );
516
609
  }
517
610
  return {
518
611
  operationsLeft: data.operations_left,
519
612
  status: data.status
520
613
  };
521
614
  };
522
- const unmarshalIPv6Block = data => {
615
+ const unmarshalIPv6Block = (data) => {
523
616
  if (!isJSONObject(data)) {
524
- throw new TypeError(`Unmarshalling the type 'IPv6Block' failed as data isn't a dictionary.`);
617
+ throw new TypeError(
618
+ `Unmarshalling the type 'IPv6Block' failed as data isn't a dictionary.`
619
+ );
525
620
  }
526
621
  return {
527
622
  address: data.address,
@@ -533,9 +628,11 @@ const unmarshalIPv6Block = data => {
533
628
  subnets: unmarshalArrayOfObject(data.subnets, unmarshalIPv6Block)
534
629
  };
535
630
  };
536
- const unmarshalInvoice = data => {
631
+ const unmarshalInvoice = (data) => {
537
632
  if (!isJSONObject(data)) {
538
- throw new TypeError(`Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`);
633
+ throw new TypeError(
634
+ `Unmarshalling the type 'Invoice' failed as data isn't a dictionary.`
635
+ );
539
636
  }
540
637
  return {
541
638
  content: data.content,
@@ -544,41 +641,52 @@ const unmarshalInvoice = data => {
544
641
  paidAt: unmarshalDate(data.paid_at),
545
642
  paymentMethod: data.payment_method,
546
643
  status: data.status,
547
- totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
548
- totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined,
644
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : void 0,
645
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0,
549
646
  transactionId: data.transaction_id
550
647
  };
551
648
  };
552
- const unmarshalListFailoverIPsResponse = data => {
649
+ const unmarshalListFailoverIPsResponse = (data) => {
553
650
  if (!isJSONObject(data)) {
554
- throw new TypeError(`Unmarshalling the type 'ListFailoverIPsResponse' failed as data isn't a dictionary.`);
651
+ throw new TypeError(
652
+ `Unmarshalling the type 'ListFailoverIPsResponse' failed as data isn't a dictionary.`
653
+ );
555
654
  }
556
655
  return {
557
656
  failoverIps: unmarshalArrayOfObject(data.failover_ips, unmarshalFailoverIP),
558
657
  totalCount: data.total_count
559
658
  };
560
659
  };
561
- const unmarshalListIPv6BlockSubnetsAvailableResponseSubnet = data => {
660
+ const unmarshalListIPv6BlockSubnetsAvailableResponseSubnet = (data) => {
562
661
  if (!isJSONObject(data)) {
563
- throw new TypeError(`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponseSubnet' failed as data isn't a dictionary.`);
662
+ throw new TypeError(
663
+ `Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponseSubnet' failed as data isn't a dictionary.`
664
+ );
564
665
  }
565
666
  return {
566
667
  address: data.address,
567
668
  cidr: data.cidr
568
669
  };
569
670
  };
570
- const unmarshalListIPv6BlockSubnetsAvailableResponse = data => {
671
+ const unmarshalListIPv6BlockSubnetsAvailableResponse = (data) => {
571
672
  if (!isJSONObject(data)) {
572
- throw new TypeError(`Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponse' failed as data isn't a dictionary.`);
673
+ throw new TypeError(
674
+ `Unmarshalling the type 'ListIPv6BlockSubnetsAvailableResponse' failed as data isn't a dictionary.`
675
+ );
573
676
  }
574
677
  return {
575
- subnetAvailables: unmarshalArrayOfObject(data.subnet_availables, unmarshalListIPv6BlockSubnetsAvailableResponseSubnet),
678
+ subnetAvailables: unmarshalArrayOfObject(
679
+ data.subnet_availables,
680
+ unmarshalListIPv6BlockSubnetsAvailableResponseSubnet
681
+ ),
576
682
  totalCount: data.total_count
577
683
  };
578
684
  };
579
- const unmarshalInvoiceSummary = data => {
685
+ const unmarshalInvoiceSummary = (data) => {
580
686
  if (!isJSONObject(data)) {
581
- throw new TypeError(`Unmarshalling the type 'InvoiceSummary' failed as data isn't a dictionary.`);
687
+ throw new TypeError(
688
+ `Unmarshalling the type 'InvoiceSummary' failed as data isn't a dictionary.`
689
+ );
582
690
  }
583
691
  return {
584
692
  createdAt: unmarshalDate(data.created_at),
@@ -586,32 +694,38 @@ const unmarshalInvoiceSummary = data => {
586
694
  paidAt: unmarshalDate(data.paid_at),
587
695
  paymentMethod: data.payment_method,
588
696
  status: data.status,
589
- totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
590
- totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined,
697
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : void 0,
698
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0,
591
699
  transactionId: data.transaction_id
592
700
  };
593
701
  };
594
- const unmarshalListInvoicesResponse = data => {
702
+ const unmarshalListInvoicesResponse = (data) => {
595
703
  if (!isJSONObject(data)) {
596
- throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
704
+ throw new TypeError(
705
+ `Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`
706
+ );
597
707
  }
598
708
  return {
599
709
  invoices: unmarshalArrayOfObject(data.invoices, unmarshalInvoiceSummary),
600
710
  totalCount: data.total_count
601
711
  };
602
712
  };
603
- const unmarshalRpnSanIpRpnV2Group = data => {
713
+ const unmarshalRpnSanIpRpnV2Group = (data) => {
604
714
  if (!isJSONObject(data)) {
605
- throw new TypeError(`Unmarshalling the type 'RpnSanIpRpnV2Group' failed as data isn't a dictionary.`);
715
+ throw new TypeError(
716
+ `Unmarshalling the type 'RpnSanIpRpnV2Group' failed as data isn't a dictionary.`
717
+ );
606
718
  }
607
719
  return {
608
720
  id: data.id,
609
721
  name: data.name
610
722
  };
611
723
  };
612
- const unmarshalRpnSanIpServer = data => {
724
+ const unmarshalRpnSanIpServer = (data) => {
613
725
  if (!isJSONObject(data)) {
614
- throw new TypeError(`Unmarshalling the type 'RpnSanIpServer' failed as data isn't a dictionary.`);
726
+ throw new TypeError(
727
+ `Unmarshalling the type 'RpnSanIpServer' failed as data isn't a dictionary.`
728
+ );
615
729
  }
616
730
  return {
617
731
  datacenterName: data.datacenter_name,
@@ -619,47 +733,57 @@ const unmarshalRpnSanIpServer = data => {
619
733
  id: data.id
620
734
  };
621
735
  };
622
- const unmarshalRpnSanIp = data => {
736
+ const unmarshalRpnSanIp = (data) => {
623
737
  if (!isJSONObject(data)) {
624
- throw new TypeError(`Unmarshalling the type 'RpnSanIp' failed as data isn't a dictionary.`);
738
+ throw new TypeError(
739
+ `Unmarshalling the type 'RpnSanIp' failed as data isn't a dictionary.`
740
+ );
625
741
  }
626
742
  return {
627
- ip: data.ip ? unmarshalIP(data.ip) : undefined,
628
- rpnv2Group: data.rpnv2_group ? unmarshalRpnSanIpRpnV2Group(data.rpnv2_group) : undefined,
629
- server: data.server ? unmarshalRpnSanIpServer(data.server) : undefined,
743
+ ip: data.ip ? unmarshalIP(data.ip) : void 0,
744
+ rpnv2Group: data.rpnv2_group ? unmarshalRpnSanIpRpnV2Group(data.rpnv2_group) : void 0,
745
+ server: data.server ? unmarshalRpnSanIpServer(data.server) : void 0,
630
746
  type: data.type
631
747
  };
632
748
  };
633
- const unmarshalListIpsResponse = data => {
749
+ const unmarshalListIpsResponse = (data) => {
634
750
  if (!isJSONObject(data)) {
635
- throw new TypeError(`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`);
751
+ throw new TypeError(
752
+ `Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`
753
+ );
636
754
  }
637
755
  return {
638
756
  ips: unmarshalArrayOfObject(data.ips, unmarshalRpnSanIp),
639
757
  totalCount: data.total_count
640
758
  };
641
759
  };
642
- const unmarshalListOSResponse = data => {
760
+ const unmarshalListOSResponse = (data) => {
643
761
  if (!isJSONObject(data)) {
644
- throw new TypeError(`Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`);
762
+ throw new TypeError(
763
+ `Unmarshalling the type 'ListOSResponse' failed as data isn't a dictionary.`
764
+ );
645
765
  }
646
766
  return {
647
767
  os: unmarshalArrayOfObject(data.os, unmarshalOS),
648
768
  totalCount: data.total_count
649
769
  };
650
770
  };
651
- const unmarshalListOffersResponse = data => {
771
+ const unmarshalListOffersResponse = (data) => {
652
772
  if (!isJSONObject(data)) {
653
- throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
773
+ throw new TypeError(
774
+ `Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`
775
+ );
654
776
  }
655
777
  return {
656
778
  offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
657
779
  totalCount: data.total_count
658
780
  };
659
781
  };
660
- const unmarshalRefundSummary = data => {
782
+ const unmarshalRefundSummary = (data) => {
661
783
  if (!isJSONObject(data)) {
662
- throw new TypeError(`Unmarshalling the type 'RefundSummary' failed as data isn't a dictionary.`);
784
+ throw new TypeError(
785
+ `Unmarshalling the type 'RefundSummary' failed as data isn't a dictionary.`
786
+ );
663
787
  }
664
788
  return {
665
789
  createdAt: unmarshalDate(data.created_at),
@@ -667,22 +791,26 @@ const unmarshalRefundSummary = data => {
667
791
  method: data.method,
668
792
  refundedAt: unmarshalDate(data.refunded_at),
669
793
  status: data.status,
670
- totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
671
- totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined
794
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : void 0,
795
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0
672
796
  };
673
797
  };
674
- const unmarshalListRefundsResponse = data => {
798
+ const unmarshalListRefundsResponse = (data) => {
675
799
  if (!isJSONObject(data)) {
676
- throw new TypeError(`Unmarshalling the type 'ListRefundsResponse' failed as data isn't a dictionary.`);
800
+ throw new TypeError(
801
+ `Unmarshalling the type 'ListRefundsResponse' failed as data isn't a dictionary.`
802
+ );
677
803
  }
678
804
  return {
679
805
  refunds: unmarshalArrayOfObject(data.refunds, unmarshalRefundSummary),
680
806
  totalCount: data.total_count
681
807
  };
682
808
  };
683
- const unmarshalRpnSanServer = data => {
809
+ const unmarshalRpnSanServer = (data) => {
684
810
  if (!isJSONObject(data)) {
685
- throw new TypeError(`Unmarshalling the type 'RpnSanServer' failed as data isn't a dictionary.`);
811
+ throw new TypeError(
812
+ `Unmarshalling the type 'RpnSanServer' failed as data isn't a dictionary.`
813
+ );
686
814
  }
687
815
  return {
688
816
  datacenterName: data.datacenter_name,
@@ -692,27 +820,33 @@ const unmarshalRpnSanServer = data => {
692
820
  zone: data.zone
693
821
  };
694
822
  };
695
- const unmarshalListRpnCapableSanServersResponse = data => {
823
+ const unmarshalListRpnCapableSanServersResponse = (data) => {
696
824
  if (!isJSONObject(data)) {
697
- throw new TypeError(`Unmarshalling the type 'ListRpnCapableSanServersResponse' failed as data isn't a dictionary.`);
825
+ throw new TypeError(
826
+ `Unmarshalling the type 'ListRpnCapableSanServersResponse' failed as data isn't a dictionary.`
827
+ );
698
828
  }
699
829
  return {
700
830
  sanServers: unmarshalArrayOfObject(data.san_servers, unmarshalRpnSanServer),
701
831
  totalCount: data.total_count
702
832
  };
703
833
  };
704
- const unmarshalListRpnCapableServersResponse = data => {
834
+ const unmarshalListRpnCapableServersResponse = (data) => {
705
835
  if (!isJSONObject(data)) {
706
- throw new TypeError(`Unmarshalling the type 'ListRpnCapableServersResponse' failed as data isn't a dictionary.`);
836
+ throw new TypeError(
837
+ `Unmarshalling the type 'ListRpnCapableServersResponse' failed as data isn't a dictionary.`
838
+ );
707
839
  }
708
840
  return {
709
841
  servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
710
842
  totalCount: data.total_count
711
843
  };
712
844
  };
713
- const unmarshalRpnGroupMember = data => {
845
+ const unmarshalRpnGroupMember = (data) => {
714
846
  if (!isJSONObject(data)) {
715
- throw new TypeError(`Unmarshalling the type 'RpnGroupMember' failed as data isn't a dictionary.`);
847
+ throw new TypeError(
848
+ `Unmarshalling the type 'RpnGroupMember' failed as data isn't a dictionary.`
849
+ );
716
850
  }
717
851
  return {
718
852
  groupId: data.group_id,
@@ -720,42 +854,50 @@ const unmarshalRpnGroupMember = data => {
720
854
  groupOwner: data.group_owner,
721
855
  id: data.id,
722
856
  owner: data.owner,
723
- sanServer: data.san_server ? unmarshalRpnSanServer(data.san_server) : undefined,
724
- server: data.server ? unmarshalServer(data.server) : undefined,
857
+ sanServer: data.san_server ? unmarshalRpnSanServer(data.san_server) : void 0,
858
+ server: data.server ? unmarshalServer(data.server) : void 0,
725
859
  speed: data.speed,
726
860
  status: data.status
727
861
  };
728
862
  };
729
- const unmarshalListRpnGroupMembersResponse = data => {
863
+ const unmarshalListRpnGroupMembersResponse = (data) => {
730
864
  if (!isJSONObject(data)) {
731
- throw new TypeError(`Unmarshalling the type 'ListRpnGroupMembersResponse' failed as data isn't a dictionary.`);
865
+ throw new TypeError(
866
+ `Unmarshalling the type 'ListRpnGroupMembersResponse' failed as data isn't a dictionary.`
867
+ );
732
868
  }
733
869
  return {
734
870
  members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
735
871
  totalCount: data.total_count
736
872
  };
737
873
  };
738
- const unmarshalListRpnGroupsResponse = data => {
874
+ const unmarshalListRpnGroupsResponse = (data) => {
739
875
  if (!isJSONObject(data)) {
740
- throw new TypeError(`Unmarshalling the type 'ListRpnGroupsResponse' failed as data isn't a dictionary.`);
876
+ throw new TypeError(
877
+ `Unmarshalling the type 'ListRpnGroupsResponse' failed as data isn't a dictionary.`
878
+ );
741
879
  }
742
880
  return {
743
881
  rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnGroup),
744
882
  totalCount: data.total_count
745
883
  };
746
884
  };
747
- const unmarshalListRpnInvitesResponse = data => {
885
+ const unmarshalListRpnInvitesResponse = (data) => {
748
886
  if (!isJSONObject(data)) {
749
- throw new TypeError(`Unmarshalling the type 'ListRpnInvitesResponse' failed as data isn't a dictionary.`);
887
+ throw new TypeError(
888
+ `Unmarshalling the type 'ListRpnInvitesResponse' failed as data isn't a dictionary.`
889
+ );
750
890
  }
751
891
  return {
752
892
  members: unmarshalArrayOfObject(data.members, unmarshalRpnGroupMember),
753
893
  totalCount: data.total_count
754
894
  };
755
895
  };
756
- const unmarshalRpnSanSummary = data => {
896
+ const unmarshalRpnSanSummary = (data) => {
757
897
  if (!isJSONObject(data)) {
758
- throw new TypeError(`Unmarshalling the type 'RpnSanSummary' failed as data isn't a dictionary.`);
898
+ throw new TypeError(
899
+ `Unmarshalling the type 'RpnSanSummary' failed as data isn't a dictionary.`
900
+ );
759
901
  }
760
902
  return {
761
903
  createdAt: unmarshalDate(data.created_at),
@@ -776,18 +918,22 @@ const unmarshalRpnSanSummary = data => {
776
918
  terminatedAt: unmarshalDate(data.terminated_at)
777
919
  };
778
920
  };
779
- const unmarshalListRpnSansResponse = data => {
921
+ const unmarshalListRpnSansResponse = (data) => {
780
922
  if (!isJSONObject(data)) {
781
- throw new TypeError(`Unmarshalling the type 'ListRpnSansResponse' failed as data isn't a dictionary.`);
923
+ throw new TypeError(
924
+ `Unmarshalling the type 'ListRpnSansResponse' failed as data isn't a dictionary.`
925
+ );
782
926
  }
783
927
  return {
784
928
  rpnSans: unmarshalArrayOfObject(data.rpn_sans, unmarshalRpnSanSummary),
785
929
  totalCount: data.total_count
786
930
  };
787
931
  };
788
- const unmarshalRpnServerCapability = data => {
932
+ const unmarshalRpnServerCapability = (data) => {
789
933
  if (!isJSONObject(data)) {
790
- throw new TypeError(`Unmarshalling the type 'RpnServerCapability' failed as data isn't a dictionary.`);
934
+ throw new TypeError(
935
+ `Unmarshalling the type 'RpnServerCapability' failed as data isn't a dictionary.`
936
+ );
791
937
  }
792
938
  return {
793
939
  canJoinQinqGroup: data.can_join_qinq_group,
@@ -803,81 +949,97 @@ const unmarshalRpnServerCapability = data => {
803
949
  zone: data.zone
804
950
  };
805
951
  };
806
- const unmarshalListRpnServerCapabilitiesResponse = data => {
952
+ const unmarshalListRpnServerCapabilitiesResponse = (data) => {
807
953
  if (!isJSONObject(data)) {
808
- throw new TypeError(`Unmarshalling the type 'ListRpnServerCapabilitiesResponse' failed as data isn't a dictionary.`);
954
+ throw new TypeError(
955
+ `Unmarshalling the type 'ListRpnServerCapabilitiesResponse' failed as data isn't a dictionary.`
956
+ );
809
957
  }
810
958
  return {
811
959
  servers: unmarshalArrayOfObject(data.servers, unmarshalRpnServerCapability),
812
960
  totalCount: data.total_count
813
961
  };
814
962
  };
815
- const unmarshalListRpnV2CapableResourcesResponse = data => {
963
+ const unmarshalListRpnV2CapableResourcesResponse = (data) => {
816
964
  if (!isJSONObject(data)) {
817
- throw new TypeError(`Unmarshalling the type 'ListRpnV2CapableResourcesResponse' failed as data isn't a dictionary.`);
965
+ throw new TypeError(
966
+ `Unmarshalling the type 'ListRpnV2CapableResourcesResponse' failed as data isn't a dictionary.`
967
+ );
818
968
  }
819
969
  return {
820
970
  servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
821
971
  totalCount: data.total_count
822
972
  };
823
973
  };
824
- const unmarshalRpnV2Member = data => {
974
+ const unmarshalRpnV2Member = (data) => {
825
975
  if (!isJSONObject(data)) {
826
- throw new TypeError(`Unmarshalling the type 'RpnV2Member' failed as data isn't a dictionary.`);
976
+ throw new TypeError(
977
+ `Unmarshalling the type 'RpnV2Member' failed as data isn't a dictionary.`
978
+ );
827
979
  }
828
980
  return {
829
981
  id: data.id,
830
- rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : undefined,
831
- server: data.server ? unmarshalServer(data.server) : undefined,
982
+ rpnv1Group: data.rpnv1_group ? unmarshalRpnGroup(data.rpnv1_group) : void 0,
983
+ server: data.server ? unmarshalServer(data.server) : void 0,
832
984
  speed: data.speed,
833
985
  status: data.status,
834
986
  vlan: data.vlan
835
987
  };
836
988
  };
837
- const unmarshalLog = data => {
989
+ const unmarshalLog = (data) => {
838
990
  if (!isJSONObject(data)) {
839
- throw new TypeError(`Unmarshalling the type 'Log' failed as data isn't a dictionary.`);
991
+ throw new TypeError(
992
+ `Unmarshalling the type 'Log' failed as data isn't a dictionary.`
993
+ );
840
994
  }
841
995
  return {
842
996
  action: data.action,
843
997
  createdAt: unmarshalDate(data.created_at),
844
998
  finishedAt: unmarshalDate(data.finished_at),
845
- group: data.group ? unmarshalRpnV2Group(data.group) : undefined,
999
+ group: data.group ? unmarshalRpnV2Group(data.group) : void 0,
846
1000
  id: data.id,
847
- member: data.member ? unmarshalRpnV2Member(data.member) : undefined,
1001
+ member: data.member ? unmarshalRpnV2Member(data.member) : void 0,
848
1002
  status: data.status
849
1003
  };
850
1004
  };
851
- const unmarshalListRpnV2GroupLogsResponse = data => {
1005
+ const unmarshalListRpnV2GroupLogsResponse = (data) => {
852
1006
  if (!isJSONObject(data)) {
853
- throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupLogsResponse' failed as data isn't a dictionary.`);
1007
+ throw new TypeError(
1008
+ `Unmarshalling the type 'ListRpnV2GroupLogsResponse' failed as data isn't a dictionary.`
1009
+ );
854
1010
  }
855
1011
  return {
856
1012
  logs: unmarshalArrayOfObject(data.logs, unmarshalLog),
857
1013
  totalCount: data.total_count
858
1014
  };
859
1015
  };
860
- const unmarshalListRpnV2GroupsResponse = data => {
1016
+ const unmarshalListRpnV2GroupsResponse = (data) => {
861
1017
  if (!isJSONObject(data)) {
862
- throw new TypeError(`Unmarshalling the type 'ListRpnV2GroupsResponse' failed as data isn't a dictionary.`);
1018
+ throw new TypeError(
1019
+ `Unmarshalling the type 'ListRpnV2GroupsResponse' failed as data isn't a dictionary.`
1020
+ );
863
1021
  }
864
1022
  return {
865
1023
  rpnGroups: unmarshalArrayOfObject(data.rpn_groups, unmarshalRpnV2Group),
866
1024
  totalCount: data.total_count
867
1025
  };
868
1026
  };
869
- const unmarshalListRpnV2MembersResponse = data => {
1027
+ const unmarshalListRpnV2MembersResponse = (data) => {
870
1028
  if (!isJSONObject(data)) {
871
- throw new TypeError(`Unmarshalling the type 'ListRpnV2MembersResponse' failed as data isn't a dictionary.`);
1029
+ throw new TypeError(
1030
+ `Unmarshalling the type 'ListRpnV2MembersResponse' failed as data isn't a dictionary.`
1031
+ );
872
1032
  }
873
1033
  return {
874
1034
  members: unmarshalArrayOfObject(data.members, unmarshalRpnV2Member),
875
1035
  totalCount: data.total_count
876
1036
  };
877
1037
  };
878
- const unmarshalServerDisk = data => {
1038
+ const unmarshalServerDisk = (data) => {
879
1039
  if (!isJSONObject(data)) {
880
- throw new TypeError(`Unmarshalling the type 'ServerDisk' failed as data isn't a dictionary.`);
1040
+ throw new TypeError(
1041
+ `Unmarshalling the type 'ServerDisk' failed as data isn't a dictionary.`
1042
+ );
881
1043
  }
882
1044
  return {
883
1045
  capacity: data.capacity,
@@ -887,18 +1049,22 @@ const unmarshalServerDisk = data => {
887
1049
  type: data.type
888
1050
  };
889
1051
  };
890
- const unmarshalListServerDisksResponse = data => {
1052
+ const unmarshalListServerDisksResponse = (data) => {
891
1053
  if (!isJSONObject(data)) {
892
- throw new TypeError(`Unmarshalling the type 'ListServerDisksResponse' failed as data isn't a dictionary.`);
1054
+ throw new TypeError(
1055
+ `Unmarshalling the type 'ListServerDisksResponse' failed as data isn't a dictionary.`
1056
+ );
893
1057
  }
894
1058
  return {
895
1059
  disks: unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
896
1060
  totalCount: data.total_count
897
1061
  };
898
1062
  };
899
- const unmarshalServerEvent = data => {
1063
+ const unmarshalServerEvent = (data) => {
900
1064
  if (!isJSONObject(data)) {
901
- throw new TypeError(`Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`);
1065
+ throw new TypeError(
1066
+ `Unmarshalling the type 'ServerEvent' failed as data isn't a dictionary.`
1067
+ );
902
1068
  }
903
1069
  return {
904
1070
  date: unmarshalDate(data.date),
@@ -906,18 +1072,22 @@ const unmarshalServerEvent = data => {
906
1072
  eventId: data.event_id
907
1073
  };
908
1074
  };
909
- const unmarshalListServerEventsResponse = data => {
1075
+ const unmarshalListServerEventsResponse = (data) => {
910
1076
  if (!isJSONObject(data)) {
911
- throw new TypeError(`Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`);
1077
+ throw new TypeError(
1078
+ `Unmarshalling the type 'ListServerEventsResponse' failed as data isn't a dictionary.`
1079
+ );
912
1080
  }
913
1081
  return {
914
1082
  events: unmarshalArrayOfObject(data.events, unmarshalServerEvent),
915
1083
  totalCount: data.total_count
916
1084
  };
917
1085
  };
918
- const unmarshalServerSummary = data => {
1086
+ const unmarshalServerSummary = (data) => {
919
1087
  if (!isJSONObject(data)) {
920
- throw new TypeError(`Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`);
1088
+ throw new TypeError(
1089
+ `Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`
1090
+ );
921
1091
  }
922
1092
  return {
923
1093
  createdAt: unmarshalDate(data.created_at),
@@ -925,9 +1095,12 @@ const unmarshalServerSummary = data => {
925
1095
  expiredAt: unmarshalDate(data.expired_at),
926
1096
  hostname: data.hostname,
927
1097
  id: data.id,
928
- interfaces: unmarshalArrayOfObject(data.interfaces, unmarshalNetworkInterface),
1098
+ interfaces: unmarshalArrayOfObject(
1099
+ data.interfaces,
1100
+ unmarshalNetworkInterface
1101
+ ),
929
1102
  isOutsourced: data.is_outsourced,
930
- level: data.level ? unmarshalServiceLevel(data.level) : undefined,
1103
+ level: data.level ? unmarshalServiceLevel(data.level) : void 0,
931
1104
  offerId: data.offer_id,
932
1105
  offerName: data.offer_name,
933
1106
  organizationId: data.organization_id,
@@ -940,53 +1113,65 @@ const unmarshalServerSummary = data => {
940
1113
  zone: data.zone
941
1114
  };
942
1115
  };
943
- const unmarshalListServersResponse = data => {
1116
+ const unmarshalListServersResponse = (data) => {
944
1117
  if (!isJSONObject(data)) {
945
- throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
1118
+ throw new TypeError(
1119
+ `Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`
1120
+ );
946
1121
  }
947
1122
  return {
948
1123
  servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
949
1124
  totalCount: data.total_count
950
1125
  };
951
1126
  };
952
- const unmarshalListServicesResponse = data => {
1127
+ const unmarshalListServicesResponse = (data) => {
953
1128
  if (!isJSONObject(data)) {
954
- throw new TypeError(`Unmarshalling the type 'ListServicesResponse' failed as data isn't a dictionary.`);
1129
+ throw new TypeError(
1130
+ `Unmarshalling the type 'ListServicesResponse' failed as data isn't a dictionary.`
1131
+ );
955
1132
  }
956
1133
  return {
957
1134
  services: unmarshalArrayOfObject(data.services, unmarshalService),
958
1135
  totalCount: data.total_count
959
1136
  };
960
1137
  };
961
- const unmarshalListSubscribableServerOptionsResponse = data => {
1138
+ const unmarshalListSubscribableServerOptionsResponse = (data) => {
962
1139
  if (!isJSONObject(data)) {
963
- throw new TypeError(`Unmarshalling the type 'ListSubscribableServerOptionsResponse' failed as data isn't a dictionary.`);
1140
+ throw new TypeError(
1141
+ `Unmarshalling the type 'ListSubscribableServerOptionsResponse' failed as data isn't a dictionary.`
1142
+ );
964
1143
  }
965
1144
  return {
966
1145
  serverOptions: unmarshalArrayOfObject(data.server_options, unmarshalOffer),
967
1146
  totalCount: data.total_count
968
1147
  };
969
1148
  };
970
- const unmarshalRaidArray = data => {
1149
+ const unmarshalRaidArray = (data) => {
971
1150
  if (!isJSONObject(data)) {
972
- throw new TypeError(`Unmarshalling the type 'RaidArray' failed as data isn't a dictionary.`);
1151
+ throw new TypeError(
1152
+ `Unmarshalling the type 'RaidArray' failed as data isn't a dictionary.`
1153
+ );
973
1154
  }
974
1155
  return {
975
1156
  disks: unmarshalArrayOfObject(data.disks, unmarshalServerDisk),
976
1157
  raidLevel: data.raid_level
977
1158
  };
978
1159
  };
979
- const unmarshalRaid = data => {
1160
+ const unmarshalRaid = (data) => {
980
1161
  if (!isJSONObject(data)) {
981
- throw new TypeError(`Unmarshalling the type 'Raid' failed as data isn't a dictionary.`);
1162
+ throw new TypeError(
1163
+ `Unmarshalling the type 'Raid' failed as data isn't a dictionary.`
1164
+ );
982
1165
  }
983
1166
  return {
984
1167
  raidArrays: unmarshalArrayOfObject(data.raid_arrays, unmarshalRaidArray)
985
1168
  };
986
1169
  };
987
- const unmarshalRefund = data => {
1170
+ const unmarshalRefund = (data) => {
988
1171
  if (!isJSONObject(data)) {
989
- throw new TypeError(`Unmarshalling the type 'Refund' failed as data isn't a dictionary.`);
1172
+ throw new TypeError(
1173
+ `Unmarshalling the type 'Refund' failed as data isn't a dictionary.`
1174
+ );
990
1175
  }
991
1176
  return {
992
1177
  content: data.content,
@@ -995,13 +1180,15 @@ const unmarshalRefund = data => {
995
1180
  method: data.method,
996
1181
  refundedAt: unmarshalDate(data.refunded_at),
997
1182
  status: data.status,
998
- totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : undefined,
999
- totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : undefined
1183
+ totalWithTaxes: data.total_with_taxes ? unmarshalMoney(data.total_with_taxes) : void 0,
1184
+ totalWithoutTaxes: data.total_without_taxes ? unmarshalMoney(data.total_without_taxes) : void 0
1000
1185
  };
1001
1186
  };
1002
- const unmarshalRescue = data => {
1187
+ const unmarshalRescue = (data) => {
1003
1188
  if (!isJSONObject(data)) {
1004
- throw new TypeError(`Unmarshalling the type 'Rescue' failed as data isn't a dictionary.`);
1189
+ throw new TypeError(
1190
+ `Unmarshalling the type 'Rescue' failed as data isn't a dictionary.`
1191
+ );
1005
1192
  }
1006
1193
  return {
1007
1194
  login: data.login,
@@ -1010,9 +1197,11 @@ const unmarshalRescue = data => {
1010
1197
  protocol: data.protocol
1011
1198
  };
1012
1199
  };
1013
- const unmarshalPartition = data => {
1200
+ const unmarshalPartition = (data) => {
1014
1201
  if (!isJSONObject(data)) {
1015
- throw new TypeError(`Unmarshalling the type 'Partition' failed as data isn't a dictionary.`);
1202
+ throw new TypeError(
1203
+ `Unmarshalling the type 'Partition' failed as data isn't a dictionary.`
1204
+ );
1016
1205
  }
1017
1206
  return {
1018
1207
  capacity: data.capacity,
@@ -1023,17 +1212,21 @@ const unmarshalPartition = data => {
1023
1212
  type: data.type
1024
1213
  };
1025
1214
  };
1026
- const unmarshalServerDefaultPartitioning = data => {
1215
+ const unmarshalServerDefaultPartitioning = (data) => {
1027
1216
  if (!isJSONObject(data)) {
1028
- throw new TypeError(`Unmarshalling the type 'ServerDefaultPartitioning' failed as data isn't a dictionary.`);
1217
+ throw new TypeError(
1218
+ `Unmarshalling the type 'ServerDefaultPartitioning' failed as data isn't a dictionary.`
1219
+ );
1029
1220
  }
1030
1221
  return {
1031
1222
  partitions: unmarshalArrayOfObject(data.partitions, unmarshalPartition)
1032
1223
  };
1033
1224
  };
1034
- const unmarshalServerInstall = data => {
1225
+ const unmarshalServerInstall = (data) => {
1035
1226
  if (!isJSONObject(data)) {
1036
- throw new TypeError(`Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`);
1227
+ throw new TypeError(
1228
+ `Unmarshalling the type 'ServerInstall' failed as data isn't a dictionary.`
1229
+ );
1037
1230
  }
1038
1231
  return {
1039
1232
  hostname: data.hostname,
@@ -1045,9 +1238,11 @@ const unmarshalServerInstall = data => {
1045
1238
  userLogin: data.user_login
1046
1239
  };
1047
1240
  };
1048
- const unmarshalSubscribeStorageOptionsResponse = data => {
1241
+ const unmarshalSubscribeStorageOptionsResponse = (data) => {
1049
1242
  if (!isJSONObject(data)) {
1050
- throw new TypeError(`Unmarshalling the type 'SubscribeStorageOptionsResponse' failed as data isn't a dictionary.`);
1243
+ throw new TypeError(
1244
+ `Unmarshalling the type 'SubscribeStorageOptionsResponse' failed as data isn't a dictionary.`
1245
+ );
1051
1246
  }
1052
1247
  return {
1053
1248
  services: unmarshalArrayOfObject(data.services, unmarshalService)
@@ -1098,7 +1293,7 @@ const marshalInstallServerRequest = (request, defaults) => ({
1098
1293
  license_offer_id: request.licenseOfferId,
1099
1294
  os_id: request.osId,
1100
1295
  panel_password: request.panelPassword,
1101
- partitions: request.partitions !== undefined ? request.partitions.map(elt => marshalInstallPartition(elt)) : undefined,
1296
+ partitions: request.partitions !== void 0 ? request.partitions.map((elt) => marshalInstallPartition(elt)) : void 0,
1102
1297
  root_password: request.rootPassword,
1103
1298
  ssh_key_ids: request.sshKeyIds,
1104
1299
  user_login: request.userLogin,
@@ -1177,7 +1372,9 @@ const marshalUpdatableRaidArray = (request, defaults) => ({
1177
1372
  raid_level: request.raidLevel
1178
1373
  });
1179
1374
  const marshalUpdateRaidRequest = (request, defaults) => ({
1180
- raid_arrays: request.raidArrays.map(elt => marshalUpdatableRaidArray(elt))
1375
+ raid_arrays: request.raidArrays.map(
1376
+ (elt) => marshalUpdatableRaidArray(elt)
1377
+ )
1181
1378
  });
1182
1379
  const marshalUpdateReverseRequest = (request, defaults) => ({
1183
1380
  reverse: request.reverse
@@ -1194,5 +1391,85 @@ const marshalUpdateServerRequest = (request, defaults) => ({
1194
1391
  const marshalUpdateServerTagsRequest = (request, defaults) => ({
1195
1392
  tags: request.tags
1196
1393
  });
1197
-
1198
- export { marshalAttachFailoverIPToMacAddressRequest, marshalAttachFailoverIPsRequest, marshalCreateFailoverIPsRequest, marshalCreateServerRequest, marshalDetachFailoverIPsRequest, marshalIPv6BlockApiCreateIPv6BlockRequest, marshalIPv6BlockApiCreateIPv6BlockSubnetRequest, marshalIPv6BlockApiUpdateIPv6BlockRequest, marshalInstallServerRequest, marshalRpnSanApiAddIpRequest, marshalRpnSanApiCreateRpnSanRequest, marshalRpnSanApiRemoveIpRequest, marshalRpnV1ApiAddRpnGroupMembersRequest, marshalRpnV1ApiCreateRpnGroupRequest, marshalRpnV1ApiDeleteRpnGroupMembersRequest, marshalRpnV1ApiLeaveRpnGroupRequest, marshalRpnV1ApiRpnGroupInviteRequest, marshalRpnV1ApiUpdateRpnGroupNameRequest, marshalRpnV2ApiAddRpnV2MembersRequest, marshalRpnV2ApiCreateRpnV2GroupRequest, marshalRpnV2ApiDeleteRpnV2MembersRequest, marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest, marshalRpnV2ApiUpdateRpnV2GroupNameRequest, marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest, marshalStartBMCAccessRequest, marshalStartRescueRequest, marshalSubscribeServerOptionRequest, marshalSubscribeStorageOptionsRequest, marshalUpdateRaidRequest, marshalUpdateReverseRequest, marshalUpdateServerBackupRequest, marshalUpdateServerRequest, marshalUpdateServerTagsRequest, unmarshalBMCAccess, unmarshalBackup, unmarshalCanOrderResponse, unmarshalCreateFailoverIPsResponse, unmarshalFailoverIP, unmarshalGetIPv6BlockQuotasResponse, unmarshalGetRemainingQuotaResponse, unmarshalGetRpnStatusResponse, unmarshalIP, unmarshalIPv6Block, unmarshalInvoice, unmarshalListFailoverIPsResponse, unmarshalListIPv6BlockSubnetsAvailableResponse, unmarshalListInvoicesResponse, unmarshalListIpsResponse, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListRefundsResponse, unmarshalListRpnCapableSanServersResponse, unmarshalListRpnCapableServersResponse, unmarshalListRpnGroupMembersResponse, unmarshalListRpnGroupsResponse, unmarshalListRpnInvitesResponse, unmarshalListRpnSansResponse, unmarshalListRpnServerCapabilitiesResponse, unmarshalListRpnV2CapableResourcesResponse, unmarshalListRpnV2GroupLogsResponse, unmarshalListRpnV2GroupsResponse, unmarshalListRpnV2MembersResponse, unmarshalListServerDisksResponse, unmarshalListServerEventsResponse, unmarshalListServersResponse, unmarshalListServicesResponse, unmarshalListSubscribableServerOptionsResponse, unmarshalOS, unmarshalOffer, unmarshalRaid, unmarshalRefund, unmarshalRescue, unmarshalRpnGroup, unmarshalRpnSan, unmarshalRpnV2Group, unmarshalServer, unmarshalServerDefaultPartitioning, unmarshalServerInstall, unmarshalService, unmarshalSubscribeStorageOptionsResponse };
1394
+ export {
1395
+ marshalAttachFailoverIPToMacAddressRequest,
1396
+ marshalAttachFailoverIPsRequest,
1397
+ marshalCreateFailoverIPsRequest,
1398
+ marshalCreateServerRequest,
1399
+ marshalDetachFailoverIPsRequest,
1400
+ marshalIPv6BlockApiCreateIPv6BlockRequest,
1401
+ marshalIPv6BlockApiCreateIPv6BlockSubnetRequest,
1402
+ marshalIPv6BlockApiUpdateIPv6BlockRequest,
1403
+ marshalInstallServerRequest,
1404
+ marshalRpnSanApiAddIpRequest,
1405
+ marshalRpnSanApiCreateRpnSanRequest,
1406
+ marshalRpnSanApiRemoveIpRequest,
1407
+ marshalRpnV1ApiAddRpnGroupMembersRequest,
1408
+ marshalRpnV1ApiCreateRpnGroupRequest,
1409
+ marshalRpnV1ApiDeleteRpnGroupMembersRequest,
1410
+ marshalRpnV1ApiLeaveRpnGroupRequest,
1411
+ marshalRpnV1ApiRpnGroupInviteRequest,
1412
+ marshalRpnV1ApiUpdateRpnGroupNameRequest,
1413
+ marshalRpnV2ApiAddRpnV2MembersRequest,
1414
+ marshalRpnV2ApiCreateRpnV2GroupRequest,
1415
+ marshalRpnV2ApiDeleteRpnV2MembersRequest,
1416
+ marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest,
1417
+ marshalRpnV2ApiUpdateRpnV2GroupNameRequest,
1418
+ marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest,
1419
+ marshalStartBMCAccessRequest,
1420
+ marshalStartRescueRequest,
1421
+ marshalSubscribeServerOptionRequest,
1422
+ marshalSubscribeStorageOptionsRequest,
1423
+ marshalUpdateRaidRequest,
1424
+ marshalUpdateReverseRequest,
1425
+ marshalUpdateServerBackupRequest,
1426
+ marshalUpdateServerRequest,
1427
+ marshalUpdateServerTagsRequest,
1428
+ unmarshalBMCAccess,
1429
+ unmarshalBackup,
1430
+ unmarshalCanOrderResponse,
1431
+ unmarshalCreateFailoverIPsResponse,
1432
+ unmarshalFailoverIP,
1433
+ unmarshalGetIPv6BlockQuotasResponse,
1434
+ unmarshalGetRemainingQuotaResponse,
1435
+ unmarshalGetRpnStatusResponse,
1436
+ unmarshalIP,
1437
+ unmarshalIPv6Block,
1438
+ unmarshalInvoice,
1439
+ unmarshalListFailoverIPsResponse,
1440
+ unmarshalListIPv6BlockSubnetsAvailableResponse,
1441
+ unmarshalListInvoicesResponse,
1442
+ unmarshalListIpsResponse,
1443
+ unmarshalListOSResponse,
1444
+ unmarshalListOffersResponse,
1445
+ unmarshalListRefundsResponse,
1446
+ unmarshalListRpnCapableSanServersResponse,
1447
+ unmarshalListRpnCapableServersResponse,
1448
+ unmarshalListRpnGroupMembersResponse,
1449
+ unmarshalListRpnGroupsResponse,
1450
+ unmarshalListRpnInvitesResponse,
1451
+ unmarshalListRpnSansResponse,
1452
+ unmarshalListRpnServerCapabilitiesResponse,
1453
+ unmarshalListRpnV2CapableResourcesResponse,
1454
+ unmarshalListRpnV2GroupLogsResponse,
1455
+ unmarshalListRpnV2GroupsResponse,
1456
+ unmarshalListRpnV2MembersResponse,
1457
+ unmarshalListServerDisksResponse,
1458
+ unmarshalListServerEventsResponse,
1459
+ unmarshalListServersResponse,
1460
+ unmarshalListServicesResponse,
1461
+ unmarshalListSubscribableServerOptionsResponse,
1462
+ unmarshalOS,
1463
+ unmarshalOffer,
1464
+ unmarshalRaid,
1465
+ unmarshalRefund,
1466
+ unmarshalRescue,
1467
+ unmarshalRpnGroup,
1468
+ unmarshalRpnSan,
1469
+ unmarshalRpnV2Group,
1470
+ unmarshalServer,
1471
+ unmarshalServerDefaultPartitioning,
1472
+ unmarshalServerInstall,
1473
+ unmarshalService,
1474
+ unmarshalSubscribeStorageOptionsResponse
1475
+ };