@scaleway/sdk 2.26.0 → 2.28.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 (778) 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 +123 -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 +56 -32
  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 +51 -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 +104 -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 +223 -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 +304 -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 +542 -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 +115 -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 +330 -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 +480 -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 +532 -0
  270. package/dist/api/instance/v1/api.gen.js +753 -436
  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 +117 -0
  309. package/dist/api/ipam/v1/api.gen.d.ts +57 -0
  310. package/dist/api/ipam/v1/api.gen.js +75 -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 +209 -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 +84 -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 +284 -0
  361. package/dist/api/k8s/v1/api.gen.js +317 -195
  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 +151 -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 +95 -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 +267 -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 +631 -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 +253 -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 +160 -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 +262 -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 +182 -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 +134 -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 +59 -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 +149 -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 +393 -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 +115 -0
  623. package/dist/api/webhosting/v1alpha1/api.gen.js +138 -86
  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 +80 -41
  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 -32093
  651. package/dist/index.d.ts +15 -38464
  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/custom-types.d.ts +65 -0
  705. package/dist/scw/errors/error-parser.cjs +76 -0
  706. package/dist/scw/errors/error-parser.d.ts +12 -0
  707. package/dist/scw/errors/error-parser.js +33 -64
  708. package/dist/scw/errors/non-standard/invalid-request-mapper.cjs +36 -0
  709. package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +12 -0
  710. package/dist/scw/errors/non-standard/invalid-request-mapper.js +26 -23
  711. package/dist/scw/errors/non-standard/unknown-resource-mapper.cjs +23 -0
  712. package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +11 -0
  713. package/dist/scw/errors/non-standard/unknown-resource-mapper.js +16 -20
  714. package/dist/scw/errors/scw-error-from-json.d.ts +10 -0
  715. package/dist/scw/errors/scw-error.cjs +43 -0
  716. package/dist/scw/errors/scw-error.d.ts +25 -0
  717. package/dist/scw/errors/scw-error.js +19 -35
  718. package/dist/scw/errors/standard/already-exists-error.cjs +31 -0
  719. package/dist/scw/errors/standard/already-exists-error.d.ts +16 -0
  720. package/dist/scw/errors/standard/already-exists-error.js +18 -13
  721. package/dist/scw/errors/standard/denied-authentication-error.cjs +37 -0
  722. package/dist/scw/errors/standard/denied-authentication-error.d.ts +15 -0
  723. package/dist/scw/errors/standard/denied-authentication-error.js +9 -24
  724. package/dist/scw/errors/standard/index.cjs +28 -0
  725. package/dist/scw/errors/standard/index.d.ts +17 -0
  726. package/dist/scw/errors/standard/index.js +28 -13
  727. package/dist/scw/errors/standard/invalid-arguments-error.cjs +55 -0
  728. package/dist/scw/errors/standard/invalid-arguments-error.d.ts +24 -0
  729. package/dist/scw/errors/standard/invalid-arguments-error.js +26 -38
  730. package/dist/scw/errors/standard/out-of-stock-error.cjs +18 -0
  731. package/dist/scw/errors/standard/out-of-stock-error.d.ts +14 -0
  732. package/dist/scw/errors/standard/out-of-stock-error.js +7 -11
  733. package/dist/scw/errors/standard/permissions-denied-error.cjs +30 -0
  734. package/dist/scw/errors/standard/permissions-denied-error.d.ts +23 -0
  735. package/dist/scw/errors/standard/permissions-denied-error.js +20 -35
  736. package/dist/scw/errors/standard/precondition-failed-error.cjs +32 -0
  737. package/dist/scw/errors/standard/precondition-failed-error.d.ts +15 -0
  738. package/dist/scw/errors/standard/precondition-failed-error.js +14 -24
  739. package/dist/scw/errors/standard/quotas-exceeded-error.cjs +44 -0
  740. package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +34 -0
  741. package/dist/scw/errors/standard/quotas-exceeded-error.js +29 -53
  742. package/dist/scw/errors/standard/resource-expired-error.cjs +31 -0
  743. package/dist/scw/errors/standard/resource-expired-error.d.ts +16 -0
  744. package/dist/scw/errors/standard/resource-expired-error.js +18 -13
  745. package/dist/scw/errors/standard/resource-locked-error.cjs +20 -0
  746. package/dist/scw/errors/standard/resource-locked-error.d.ts +15 -0
  747. package/dist/scw/errors/standard/resource-locked-error.js +6 -11
  748. package/dist/scw/errors/standard/resource-not-found-error.cjs +24 -0
  749. package/dist/scw/errors/standard/resource-not-found-error.d.ts +15 -0
  750. package/dist/scw/errors/standard/resource-not-found-error.js +11 -12
  751. package/dist/scw/errors/standard/too-many-requests-error.cjs +59 -0
  752. package/dist/scw/errors/standard/too-many-requests-error.d.ts +32 -0
  753. package/dist/scw/errors/standard/too-many-requests-error.js +20 -31
  754. package/dist/scw/errors/standard/transient-state-error.cjs +31 -0
  755. package/dist/scw/errors/standard/transient-state-error.d.ts +16 -0
  756. package/dist/scw/errors/standard/transient-state-error.js +18 -13
  757. package/dist/scw/errors/types.cjs +15 -0
  758. package/dist/scw/errors/types.d.ts +9 -0
  759. package/dist/scw/errors/types.js +6 -14
  760. package/dist/scw/fetch/build-fetcher.cjs +60 -0
  761. package/dist/scw/fetch/build-fetcher.d.ts +23 -0
  762. package/dist/scw/fetch/build-fetcher.js +29 -38
  763. package/dist/scw/fetch/http-dumper.cjs +20 -0
  764. package/dist/scw/fetch/http-dumper.d.ts +18 -0
  765. package/dist/scw/fetch/http-dumper.js +19 -50
  766. package/dist/scw/fetch/http-interceptors.cjs +43 -0
  767. package/dist/scw/fetch/http-interceptors.d.ts +38 -0
  768. package/dist/scw/fetch/http-interceptors.js +23 -66
  769. package/dist/scw/fetch/resource-paginator.cjs +37 -0
  770. package/dist/scw/fetch/resource-paginator.d.ts +47 -0
  771. package/dist/scw/fetch/resource-paginator.js +12 -45
  772. package/dist/scw/fetch/response-parser.cjs +57 -0
  773. package/dist/scw/fetch/response-parser.d.ts +25 -0
  774. package/dist/scw/fetch/response-parser.js +31 -46
  775. package/dist/scw/fetch/types.d.ts +16 -0
  776. package/dist/scw/locality.d.ts +2 -0
  777. package/package.json +7 -3
  778. 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 randomName from '../../../node_modules/.pnpm/@scaleway_random-name@4.0.3/node_modules/@scaleway/random-name/dist/index.js';
2
- import { isJSONObject } from '../../../helpers/json.js';
3
- import { unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf, 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 unmarshalPrivateNIC = data => {
1
+ import randomName from "@scaleway/random-name";
2
+ import { isJSONObject } from "../../../helpers/json.js";
3
+ import { unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf, unmarshalDate } from "../../../helpers/marshalling.js";
4
+ const unmarshalPrivateNIC = (data) => {
8
5
  if (!isJSONObject(data)) {
9
- throw new TypeError(`Unmarshalling the type 'PrivateNIC' failed as data isn't a dictionary.`);
6
+ throw new TypeError(
7
+ `Unmarshalling the type 'PrivateNIC' failed as data isn't a dictionary.`
8
+ );
10
9
  }
11
10
  return {
12
11
  id: data.id,
@@ -17,18 +16,22 @@ const unmarshalPrivateNIC = data => {
17
16
  tags: data.tags
18
17
  };
19
18
  };
20
- const unmarshalServerSummary = data => {
19
+ const unmarshalServerSummary = (data) => {
21
20
  if (!isJSONObject(data)) {
22
- throw new TypeError(`Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`);
21
+ throw new TypeError(
22
+ `Unmarshalling the type 'ServerSummary' failed as data isn't a dictionary.`
23
+ );
23
24
  }
24
25
  return {
25
26
  id: data.id,
26
27
  name: data.name
27
28
  };
28
29
  };
29
- const unmarshalBootscript = data => {
30
+ const unmarshalBootscript = (data) => {
30
31
  if (!isJSONObject(data)) {
31
- throw new TypeError(`Unmarshalling the type 'Bootscript' failed as data isn't a dictionary.`);
32
+ throw new TypeError(
33
+ `Unmarshalling the type 'Bootscript' failed as data isn't a dictionary.`
34
+ );
32
35
  }
33
36
  return {
34
37
  arch: data.arch,
@@ -45,9 +48,11 @@ const unmarshalBootscript = data => {
45
48
  zone: data.zone
46
49
  };
47
50
  };
48
- const unmarshalVolume = data => {
51
+ const unmarshalVolume = (data) => {
49
52
  if (!isJSONObject(data)) {
50
- throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
53
+ throw new TypeError(
54
+ `Unmarshalling the type 'Volume' failed as data isn't a dictionary.`
55
+ );
51
56
  }
52
57
  return {
53
58
  creationDate: unmarshalDate(data.creation_date),
@@ -57,7 +62,7 @@ const unmarshalVolume = data => {
57
62
  name: data.name,
58
63
  organization: data.organization,
59
64
  project: data.project,
60
- server: data.server ? unmarshalServerSummary(data.server) : undefined,
65
+ server: data.server ? unmarshalServerSummary(data.server) : void 0,
61
66
  size: data.size,
62
67
  state: data.state,
63
68
  tags: data.tags,
@@ -65,9 +70,11 @@ const unmarshalVolume = data => {
65
70
  zone: data.zone
66
71
  };
67
72
  };
68
- const unmarshalVolumeSummary = data => {
73
+ const unmarshalVolumeSummary = (data) => {
69
74
  if (!isJSONObject(data)) {
70
- throw new TypeError(`Unmarshalling the type 'VolumeSummary' failed as data isn't a dictionary.`);
75
+ throw new TypeError(
76
+ `Unmarshalling the type 'VolumeSummary' failed as data isn't a dictionary.`
77
+ );
71
78
  }
72
79
  return {
73
80
  id: data.id,
@@ -76,14 +83,16 @@ const unmarshalVolumeSummary = data => {
76
83
  volumeType: data.volume_type
77
84
  };
78
85
  };
79
- const unmarshalImage = data => {
86
+ const unmarshalImage = (data) => {
80
87
  if (!isJSONObject(data)) {
81
- throw new TypeError(`Unmarshalling the type 'Image' failed as data isn't a dictionary.`);
88
+ throw new TypeError(
89
+ `Unmarshalling the type 'Image' failed as data isn't a dictionary.`
90
+ );
82
91
  }
83
92
  return {
84
93
  arch: data.arch,
85
94
  creationDate: unmarshalDate(data.creation_date),
86
- defaultBootscript: data.default_bootscript ? unmarshalBootscript(data.default_bootscript) : undefined,
95
+ defaultBootscript: data.default_bootscript ? unmarshalBootscript(data.default_bootscript) : void 0,
87
96
  extraVolumes: unmarshalMapOfObject(data.extra_volumes, unmarshalVolume),
88
97
  fromServer: data.from_server,
89
98
  id: data.id,
@@ -92,15 +101,17 @@ const unmarshalImage = data => {
92
101
  organization: data.organization,
93
102
  project: data.project,
94
103
  public: data.public,
95
- rootVolume: data.root_volume ? unmarshalVolumeSummary(data.root_volume) : undefined,
104
+ rootVolume: data.root_volume ? unmarshalVolumeSummary(data.root_volume) : void 0,
96
105
  state: data.state,
97
106
  tags: data.tags,
98
107
  zone: data.zone
99
108
  };
100
109
  };
101
- const unmarshalPlacementGroup = data => {
110
+ const unmarshalPlacementGroup = (data) => {
102
111
  if (!isJSONObject(data)) {
103
- throw new TypeError(`Unmarshalling the type 'PlacementGroup' failed as data isn't a dictionary.`);
112
+ throw new TypeError(
113
+ `Unmarshalling the type 'PlacementGroup' failed as data isn't a dictionary.`
114
+ );
104
115
  }
105
116
  return {
106
117
  id: data.id,
@@ -114,18 +125,22 @@ const unmarshalPlacementGroup = data => {
114
125
  zone: data.zone
115
126
  };
116
127
  };
117
- const unmarshalSecurityGroupSummary = data => {
128
+ const unmarshalSecurityGroupSummary = (data) => {
118
129
  if (!isJSONObject(data)) {
119
- throw new TypeError(`Unmarshalling the type 'SecurityGroupSummary' failed as data isn't a dictionary.`);
130
+ throw new TypeError(
131
+ `Unmarshalling the type 'SecurityGroupSummary' failed as data isn't a dictionary.`
132
+ );
120
133
  }
121
134
  return {
122
135
  id: data.id,
123
136
  name: data.name
124
137
  };
125
138
  };
126
- const unmarshalServerIp = data => {
139
+ const unmarshalServerIp = (data) => {
127
140
  if (!isJSONObject(data)) {
128
- throw new TypeError(`Unmarshalling the type 'ServerIp' failed as data isn't a dictionary.`);
141
+ throw new TypeError(
142
+ `Unmarshalling the type 'ServerIp' failed as data isn't a dictionary.`
143
+ );
129
144
  }
130
145
  return {
131
146
  address: data.address,
@@ -140,9 +155,11 @@ const unmarshalServerIp = data => {
140
155
  tags: data.tags
141
156
  };
142
157
  };
143
- const unmarshalServerIpv6 = data => {
158
+ const unmarshalServerIpv6 = (data) => {
144
159
  if (!isJSONObject(data)) {
145
- throw new TypeError(`Unmarshalling the type 'ServerIpv6' failed as data isn't a dictionary.`);
160
+ throw new TypeError(
161
+ `Unmarshalling the type 'ServerIpv6' failed as data isn't a dictionary.`
162
+ );
146
163
  }
147
164
  return {
148
165
  address: data.address,
@@ -150,9 +167,11 @@ const unmarshalServerIpv6 = data => {
150
167
  netmask: data.netmask
151
168
  };
152
169
  };
153
- const unmarshalServerLocation = data => {
170
+ const unmarshalServerLocation = (data) => {
154
171
  if (!isJSONObject(data)) {
155
- throw new TypeError(`Unmarshalling the type 'ServerLocation' failed as data isn't a dictionary.`);
172
+ throw new TypeError(
173
+ `Unmarshalling the type 'ServerLocation' failed as data isn't a dictionary.`
174
+ );
156
175
  }
157
176
  return {
158
177
  clusterId: data.cluster_id,
@@ -162,18 +181,22 @@ const unmarshalServerLocation = data => {
162
181
  zoneId: data.zone_id
163
182
  };
164
183
  };
165
- const unmarshalServerMaintenance = data => {
184
+ const unmarshalServerMaintenance = (data) => {
166
185
  if (!isJSONObject(data)) {
167
- throw new TypeError(`Unmarshalling the type 'ServerMaintenance' failed as data isn't a dictionary.`);
186
+ throw new TypeError(
187
+ `Unmarshalling the type 'ServerMaintenance' failed as data isn't a dictionary.`
188
+ );
168
189
  }
169
190
  return {
170
191
  reason: data.reason,
171
192
  startDate: unmarshalDate(data.start_date)
172
193
  };
173
194
  };
174
- const unmarshalVolumeServer = data => {
195
+ const unmarshalVolumeServer = (data) => {
175
196
  if (!isJSONObject(data)) {
176
- throw new TypeError(`Unmarshalling the type 'VolumeServer' failed as data isn't a dictionary.`);
197
+ throw new TypeError(
198
+ `Unmarshalling the type 'VolumeServer' failed as data isn't a dictionary.`
199
+ );
177
200
  }
178
201
  return {
179
202
  boot: data.boot,
@@ -184,45 +207,50 @@ const unmarshalVolumeServer = data => {
184
207
  name: data.name,
185
208
  organization: data.organization,
186
209
  project: data.project,
187
- server: data.server ? unmarshalServerSummary(data.server) : undefined,
210
+ server: data.server ? unmarshalServerSummary(data.server) : void 0,
188
211
  size: data.size,
189
212
  state: data.state,
190
213
  volumeType: data.volume_type,
191
214
  zone: data.zone
192
215
  };
193
216
  };
194
- const unmarshalServer = data => {
217
+ const unmarshalServer = (data) => {
195
218
  if (!isJSONObject(data)) {
196
- throw new TypeError(`Unmarshalling the type 'Server' failed as data isn't a dictionary.`);
219
+ throw new TypeError(
220
+ `Unmarshalling the type 'Server' failed as data isn't a dictionary.`
221
+ );
197
222
  }
198
223
  return {
199
224
  allowedActions: data.allowed_actions,
200
225
  arch: data.arch,
201
226
  bootType: data.boot_type,
202
- bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : undefined,
227
+ bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0,
203
228
  commercialType: data.commercial_type,
204
229
  creationDate: unmarshalDate(data.creation_date),
205
230
  dynamicIpRequired: data.dynamic_ip_required,
206
231
  enableIpv6: data.enable_ipv6,
207
232
  hostname: data.hostname,
208
233
  id: data.id,
209
- image: data.image ? unmarshalImage(data.image) : undefined,
210
- ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) : undefined,
211
- location: data.location ? unmarshalServerLocation(data.location) : undefined,
234
+ image: data.image ? unmarshalImage(data.image) : void 0,
235
+ ipv6: data.ipv6 ? unmarshalServerIpv6(data.ipv6) : void 0,
236
+ location: data.location ? unmarshalServerLocation(data.location) : void 0,
212
237
  macAddress: data.mac_address,
213
- maintenances: unmarshalArrayOfObject(data.maintenances, unmarshalServerMaintenance),
238
+ maintenances: unmarshalArrayOfObject(
239
+ data.maintenances,
240
+ unmarshalServerMaintenance
241
+ ),
214
242
  modificationDate: unmarshalDate(data.modification_date),
215
243
  name: data.name,
216
244
  organization: data.organization,
217
- placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined,
245
+ placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0,
218
246
  privateIp: data.private_ip,
219
247
  privateNics: unmarshalArrayOfObject(data.private_nics, unmarshalPrivateNIC),
220
248
  project: data.project,
221
249
  protected: data.protected,
222
- publicIp: data.public_ip ? unmarshalServerIp(data.public_ip) : undefined,
250
+ publicIp: data.public_ip ? unmarshalServerIp(data.public_ip) : void 0,
223
251
  publicIps: unmarshalArrayOfObject(data.public_ips, unmarshalServerIp),
224
252
  routedIpEnabled: data.routed_ip_enabled,
225
- securityGroup: data.security_group ? unmarshalSecurityGroupSummary(data.security_group) : undefined,
253
+ securityGroup: data.security_group ? unmarshalSecurityGroupSummary(data.security_group) : void 0,
226
254
  state: data.state,
227
255
  stateDetail: data.state_detail,
228
256
  tags: data.tags,
@@ -230,25 +258,31 @@ const unmarshalServer = data => {
230
258
  zone: data.zone
231
259
  };
232
260
  };
233
- const unmarshalAttachServerVolumeResponse = data => {
261
+ const unmarshalAttachServerVolumeResponse = (data) => {
234
262
  if (!isJSONObject(data)) {
235
- throw new TypeError(`Unmarshalling the type 'AttachServerVolumeResponse' failed as data isn't a dictionary.`);
263
+ throw new TypeError(
264
+ `Unmarshalling the type 'AttachServerVolumeResponse' failed as data isn't a dictionary.`
265
+ );
236
266
  }
237
267
  return {
238
- server: data.server ? unmarshalServer(data.server) : undefined
268
+ server: data.server ? unmarshalServer(data.server) : void 0
239
269
  };
240
270
  };
241
- const unmarshalCreateImageResponse = data => {
271
+ const unmarshalCreateImageResponse = (data) => {
242
272
  if (!isJSONObject(data)) {
243
- throw new TypeError(`Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`);
273
+ throw new TypeError(
274
+ `Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`
275
+ );
244
276
  }
245
277
  return {
246
- image: data.image ? unmarshalImage(data.image) : undefined
278
+ image: data.image ? unmarshalImage(data.image) : void 0
247
279
  };
248
280
  };
249
- const unmarshalIp = data => {
281
+ const unmarshalIp = (data) => {
250
282
  if (!isJSONObject(data)) {
251
- throw new TypeError(`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`);
283
+ throw new TypeError(
284
+ `Unmarshalling the type 'Ip' failed as data isn't a dictionary.`
285
+ );
252
286
  }
253
287
  return {
254
288
  address: data.address,
@@ -258,40 +292,48 @@ const unmarshalIp = data => {
258
292
  prefix: data.prefix,
259
293
  project: data.project,
260
294
  reverse: data.reverse,
261
- server: data.server ? unmarshalServerSummary(data.server) : undefined,
295
+ server: data.server ? unmarshalServerSummary(data.server) : void 0,
262
296
  state: data.state,
263
297
  tags: data.tags,
264
298
  type: data.type,
265
299
  zone: data.zone
266
300
  };
267
301
  };
268
- const unmarshalCreateIpResponse = data => {
302
+ const unmarshalCreateIpResponse = (data) => {
269
303
  if (!isJSONObject(data)) {
270
- throw new TypeError(`Unmarshalling the type 'CreateIpResponse' failed as data isn't a dictionary.`);
304
+ throw new TypeError(
305
+ `Unmarshalling the type 'CreateIpResponse' failed as data isn't a dictionary.`
306
+ );
271
307
  }
272
308
  return {
273
- ip: data.ip ? unmarshalIp(data.ip) : undefined
309
+ ip: data.ip ? unmarshalIp(data.ip) : void 0
274
310
  };
275
311
  };
276
- const unmarshalCreatePlacementGroupResponse = data => {
312
+ const unmarshalCreatePlacementGroupResponse = (data) => {
277
313
  if (!isJSONObject(data)) {
278
- throw new TypeError(`Unmarshalling the type 'CreatePlacementGroupResponse' failed as data isn't a dictionary.`);
314
+ throw new TypeError(
315
+ `Unmarshalling the type 'CreatePlacementGroupResponse' failed as data isn't a dictionary.`
316
+ );
279
317
  }
280
318
  return {
281
- placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
319
+ placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
282
320
  };
283
321
  };
284
- const unmarshalCreatePrivateNICResponse = data => {
322
+ const unmarshalCreatePrivateNICResponse = (data) => {
285
323
  if (!isJSONObject(data)) {
286
- throw new TypeError(`Unmarshalling the type 'CreatePrivateNICResponse' failed as data isn't a dictionary.`);
324
+ throw new TypeError(
325
+ `Unmarshalling the type 'CreatePrivateNICResponse' failed as data isn't a dictionary.`
326
+ );
287
327
  }
288
328
  return {
289
- privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : undefined
329
+ privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : void 0
290
330
  };
291
331
  };
292
- const unmarshalSecurityGroup = data => {
332
+ const unmarshalSecurityGroup = (data) => {
293
333
  if (!isJSONObject(data)) {
294
- throw new TypeError(`Unmarshalling the type 'SecurityGroup' failed as data isn't a dictionary.`);
334
+ throw new TypeError(
335
+ `Unmarshalling the type 'SecurityGroup' failed as data isn't a dictionary.`
336
+ );
295
337
  }
296
338
  return {
297
339
  creationDate: unmarshalDate(data.creation_date),
@@ -313,17 +355,21 @@ const unmarshalSecurityGroup = data => {
313
355
  zone: data.zone
314
356
  };
315
357
  };
316
- const unmarshalCreateSecurityGroupResponse = data => {
358
+ const unmarshalCreateSecurityGroupResponse = (data) => {
317
359
  if (!isJSONObject(data)) {
318
- throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupResponse' failed as data isn't a dictionary.`);
360
+ throw new TypeError(
361
+ `Unmarshalling the type 'CreateSecurityGroupResponse' failed as data isn't a dictionary.`
362
+ );
319
363
  }
320
364
  return {
321
- securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
365
+ securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
322
366
  };
323
367
  };
324
- const unmarshalSecurityGroupRule = data => {
368
+ const unmarshalSecurityGroupRule = (data) => {
325
369
  if (!isJSONObject(data)) {
326
- throw new TypeError(`Unmarshalling the type 'SecurityGroupRule' failed as data isn't a dictionary.`);
370
+ throw new TypeError(
371
+ `Unmarshalling the type 'SecurityGroupRule' failed as data isn't a dictionary.`
372
+ );
327
373
  }
328
374
  return {
329
375
  action: data.action,
@@ -338,37 +384,45 @@ const unmarshalSecurityGroupRule = data => {
338
384
  zone: data.zone
339
385
  };
340
386
  };
341
- const unmarshalCreateSecurityGroupRuleResponse = data => {
387
+ const unmarshalCreateSecurityGroupRuleResponse = (data) => {
342
388
  if (!isJSONObject(data)) {
343
- throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
389
+ throw new TypeError(
390
+ `Unmarshalling the type 'CreateSecurityGroupRuleResponse' failed as data isn't a dictionary.`
391
+ );
344
392
  }
345
393
  return {
346
- rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
394
+ rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
347
395
  };
348
396
  };
349
- const unmarshalCreateServerResponse = data => {
397
+ const unmarshalCreateServerResponse = (data) => {
350
398
  if (!isJSONObject(data)) {
351
- throw new TypeError(`Unmarshalling the type 'CreateServerResponse' failed as data isn't a dictionary.`);
399
+ throw new TypeError(
400
+ `Unmarshalling the type 'CreateServerResponse' failed as data isn't a dictionary.`
401
+ );
352
402
  }
353
403
  return {
354
- server: data.server ? unmarshalServer(data.server) : undefined
404
+ server: data.server ? unmarshalServer(data.server) : void 0
355
405
  };
356
406
  };
357
- const unmarshalSnapshotBaseVolume = data => {
407
+ const unmarshalSnapshotBaseVolume = (data) => {
358
408
  if (!isJSONObject(data)) {
359
- throw new TypeError(`Unmarshalling the type 'SnapshotBaseVolume' failed as data isn't a dictionary.`);
409
+ throw new TypeError(
410
+ `Unmarshalling the type 'SnapshotBaseVolume' failed as data isn't a dictionary.`
411
+ );
360
412
  }
361
413
  return {
362
414
  id: data.id,
363
415
  name: data.name
364
416
  };
365
417
  };
366
- const unmarshalSnapshot = data => {
418
+ const unmarshalSnapshot = (data) => {
367
419
  if (!isJSONObject(data)) {
368
- throw new TypeError(`Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`);
420
+ throw new TypeError(
421
+ `Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`
422
+ );
369
423
  }
370
424
  return {
371
- baseVolume: data.base_volume ? unmarshalSnapshotBaseVolume(data.base_volume) : undefined,
425
+ baseVolume: data.base_volume ? unmarshalSnapshotBaseVolume(data.base_volume) : void 0,
372
426
  creationDate: unmarshalDate(data.creation_date),
373
427
  errorReason: data.error_reason,
374
428
  id: data.id,
@@ -383,9 +437,11 @@ const unmarshalSnapshot = data => {
383
437
  zone: data.zone
384
438
  };
385
439
  };
386
- const unmarshalTask = data => {
440
+ const unmarshalTask = (data) => {
387
441
  if (!isJSONObject(data)) {
388
- throw new TypeError(`Unmarshalling the type 'Task' failed as data isn't a dictionary.`);
442
+ throw new TypeError(
443
+ `Unmarshalling the type 'Task' failed as data isn't a dictionary.`
444
+ );
389
445
  }
390
446
  return {
391
447
  description: data.description,
@@ -399,50 +455,62 @@ const unmarshalTask = data => {
399
455
  zone: data.zone
400
456
  };
401
457
  };
402
- const unmarshalCreateSnapshotResponse = data => {
458
+ const unmarshalCreateSnapshotResponse = (data) => {
403
459
  if (!isJSONObject(data)) {
404
- throw new TypeError(`Unmarshalling the type 'CreateSnapshotResponse' failed as data isn't a dictionary.`);
460
+ throw new TypeError(
461
+ `Unmarshalling the type 'CreateSnapshotResponse' failed as data isn't a dictionary.`
462
+ );
405
463
  }
406
464
  return {
407
- snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : undefined,
408
- task: data.task ? unmarshalTask(data.task) : undefined
465
+ snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0,
466
+ task: data.task ? unmarshalTask(data.task) : void 0
409
467
  };
410
468
  };
411
- const unmarshalCreateVolumeResponse = data => {
469
+ const unmarshalCreateVolumeResponse = (data) => {
412
470
  if (!isJSONObject(data)) {
413
- throw new TypeError(`Unmarshalling the type 'CreateVolumeResponse' failed as data isn't a dictionary.`);
471
+ throw new TypeError(
472
+ `Unmarshalling the type 'CreateVolumeResponse' failed as data isn't a dictionary.`
473
+ );
414
474
  }
415
475
  return {
416
- volume: data.volume ? unmarshalVolume(data.volume) : undefined
476
+ volume: data.volume ? unmarshalVolume(data.volume) : void 0
417
477
  };
418
478
  };
419
- const unmarshalDetachServerVolumeResponse = data => {
479
+ const unmarshalDetachServerVolumeResponse = (data) => {
420
480
  if (!isJSONObject(data)) {
421
- throw new TypeError(`Unmarshalling the type 'DetachServerVolumeResponse' failed as data isn't a dictionary.`);
481
+ throw new TypeError(
482
+ `Unmarshalling the type 'DetachServerVolumeResponse' failed as data isn't a dictionary.`
483
+ );
422
484
  }
423
485
  return {
424
- server: data.server ? unmarshalServer(data.server) : undefined
486
+ server: data.server ? unmarshalServer(data.server) : void 0
425
487
  };
426
488
  };
427
- const unmarshalExportSnapshotResponse = data => {
489
+ const unmarshalExportSnapshotResponse = (data) => {
428
490
  if (!isJSONObject(data)) {
429
- throw new TypeError(`Unmarshalling the type 'ExportSnapshotResponse' failed as data isn't a dictionary.`);
491
+ throw new TypeError(
492
+ `Unmarshalling the type 'ExportSnapshotResponse' failed as data isn't a dictionary.`
493
+ );
430
494
  }
431
495
  return {
432
- task: data.task ? unmarshalTask(data.task) : undefined
496
+ task: data.task ? unmarshalTask(data.task) : void 0
433
497
  };
434
498
  };
435
- const unmarshalGetBootscriptResponse = data => {
499
+ const unmarshalGetBootscriptResponse = (data) => {
436
500
  if (!isJSONObject(data)) {
437
- throw new TypeError(`Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.`);
501
+ throw new TypeError(
502
+ `Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.`
503
+ );
438
504
  }
439
505
  return {
440
- bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : undefined
506
+ bootscript: data.bootscript ? unmarshalBootscript(data.bootscript) : void 0
441
507
  };
442
508
  };
443
- const unmarshalDashboard = data => {
509
+ const unmarshalDashboard = (data) => {
444
510
  if (!isJSONObject(data)) {
445
- throw new TypeError(`Unmarshalling the type 'Dashboard' failed as data isn't a dictionary.`);
511
+ throw new TypeError(
512
+ `Unmarshalling the type 'Dashboard' failed as data isn't a dictionary.`
513
+ );
446
514
  }
447
515
  return {
448
516
  imagesCount: data.images_count,
@@ -462,41 +530,51 @@ const unmarshalDashboard = data => {
462
530
  volumesLSsdTotalSize: data.volumes_l_ssd_total_size
463
531
  };
464
532
  };
465
- const unmarshalGetDashboardResponse = data => {
533
+ const unmarshalGetDashboardResponse = (data) => {
466
534
  if (!isJSONObject(data)) {
467
- throw new TypeError(`Unmarshalling the type 'GetDashboardResponse' failed as data isn't a dictionary.`);
535
+ throw new TypeError(
536
+ `Unmarshalling the type 'GetDashboardResponse' failed as data isn't a dictionary.`
537
+ );
468
538
  }
469
539
  return {
470
- dashboard: data.dashboard ? unmarshalDashboard(data.dashboard) : undefined
540
+ dashboard: data.dashboard ? unmarshalDashboard(data.dashboard) : void 0
471
541
  };
472
542
  };
473
- const unmarshalGetImageResponse = data => {
543
+ const unmarshalGetImageResponse = (data) => {
474
544
  if (!isJSONObject(data)) {
475
- throw new TypeError(`Unmarshalling the type 'GetImageResponse' failed as data isn't a dictionary.`);
545
+ throw new TypeError(
546
+ `Unmarshalling the type 'GetImageResponse' failed as data isn't a dictionary.`
547
+ );
476
548
  }
477
549
  return {
478
- image: data.image ? unmarshalImage(data.image) : undefined
550
+ image: data.image ? unmarshalImage(data.image) : void 0
479
551
  };
480
552
  };
481
- const unmarshalGetIpResponse = data => {
553
+ const unmarshalGetIpResponse = (data) => {
482
554
  if (!isJSONObject(data)) {
483
- throw new TypeError(`Unmarshalling the type 'GetIpResponse' failed as data isn't a dictionary.`);
555
+ throw new TypeError(
556
+ `Unmarshalling the type 'GetIpResponse' failed as data isn't a dictionary.`
557
+ );
484
558
  }
485
559
  return {
486
- ip: data.ip ? unmarshalIp(data.ip) : undefined
560
+ ip: data.ip ? unmarshalIp(data.ip) : void 0
487
561
  };
488
562
  };
489
- const unmarshalGetPlacementGroupResponse = data => {
563
+ const unmarshalGetPlacementGroupResponse = (data) => {
490
564
  if (!isJSONObject(data)) {
491
- throw new TypeError(`Unmarshalling the type 'GetPlacementGroupResponse' failed as data isn't a dictionary.`);
565
+ throw new TypeError(
566
+ `Unmarshalling the type 'GetPlacementGroupResponse' failed as data isn't a dictionary.`
567
+ );
492
568
  }
493
569
  return {
494
- placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
570
+ placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
495
571
  };
496
572
  };
497
- const unmarshalPlacementGroupServer = data => {
573
+ const unmarshalPlacementGroupServer = (data) => {
498
574
  if (!isJSONObject(data)) {
499
- throw new TypeError(`Unmarshalling the type 'PlacementGroupServer' failed as data isn't a dictionary.`);
575
+ throw new TypeError(
576
+ `Unmarshalling the type 'PlacementGroupServer' failed as data isn't a dictionary.`
577
+ );
500
578
  }
501
579
  return {
502
580
  id: data.id,
@@ -504,459 +582,579 @@ const unmarshalPlacementGroupServer = data => {
504
582
  policyRespected: data.policy_respected
505
583
  };
506
584
  };
507
- const unmarshalGetPlacementGroupServersResponse = data => {
585
+ const unmarshalGetPlacementGroupServersResponse = (data) => {
508
586
  if (!isJSONObject(data)) {
509
- throw new TypeError(`Unmarshalling the type 'GetPlacementGroupServersResponse' failed as data isn't a dictionary.`);
587
+ throw new TypeError(
588
+ `Unmarshalling the type 'GetPlacementGroupServersResponse' failed as data isn't a dictionary.`
589
+ );
510
590
  }
511
591
  return {
512
- servers: unmarshalArrayOfObject(data.servers, unmarshalPlacementGroupServer)
592
+ servers: unmarshalArrayOfObject(
593
+ data.servers,
594
+ unmarshalPlacementGroupServer
595
+ )
513
596
  };
514
597
  };
515
- const unmarshalGetPrivateNICResponse = data => {
598
+ const unmarshalGetPrivateNICResponse = (data) => {
516
599
  if (!isJSONObject(data)) {
517
- throw new TypeError(`Unmarshalling the type 'GetPrivateNICResponse' failed as data isn't a dictionary.`);
600
+ throw new TypeError(
601
+ `Unmarshalling the type 'GetPrivateNICResponse' failed as data isn't a dictionary.`
602
+ );
518
603
  }
519
604
  return {
520
- privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : undefined
605
+ privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : void 0
521
606
  };
522
607
  };
523
- const unmarshalGetSecurityGroupResponse = data => {
608
+ const unmarshalGetSecurityGroupResponse = (data) => {
524
609
  if (!isJSONObject(data)) {
525
- throw new TypeError(`Unmarshalling the type 'GetSecurityGroupResponse' failed as data isn't a dictionary.`);
610
+ throw new TypeError(
611
+ `Unmarshalling the type 'GetSecurityGroupResponse' failed as data isn't a dictionary.`
612
+ );
526
613
  }
527
614
  return {
528
- securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
615
+ securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
529
616
  };
530
617
  };
531
- const unmarshalGetSecurityGroupRuleResponse = data => {
618
+ const unmarshalGetSecurityGroupRuleResponse = (data) => {
532
619
  if (!isJSONObject(data)) {
533
- throw new TypeError(`Unmarshalling the type 'GetSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
620
+ throw new TypeError(
621
+ `Unmarshalling the type 'GetSecurityGroupRuleResponse' failed as data isn't a dictionary.`
622
+ );
534
623
  }
535
624
  return {
536
- rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
625
+ rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
537
626
  };
538
627
  };
539
- const unmarshalGetServerResponse = data => {
628
+ const unmarshalGetServerResponse = (data) => {
540
629
  if (!isJSONObject(data)) {
541
- throw new TypeError(`Unmarshalling the type 'GetServerResponse' failed as data isn't a dictionary.`);
630
+ throw new TypeError(
631
+ `Unmarshalling the type 'GetServerResponse' failed as data isn't a dictionary.`
632
+ );
542
633
  }
543
634
  return {
544
- server: data.server ? unmarshalServer(data.server) : undefined
635
+ server: data.server ? unmarshalServer(data.server) : void 0
545
636
  };
546
637
  };
547
- const unmarshalGetServerTypesAvailabilityResponseAvailability = data => {
638
+ const unmarshalGetServerTypesAvailabilityResponseAvailability = (data) => {
548
639
  if (!isJSONObject(data)) {
549
- throw new TypeError(`Unmarshalling the type 'GetServerTypesAvailabilityResponseAvailability' failed as data isn't a dictionary.`);
640
+ throw new TypeError(
641
+ `Unmarshalling the type 'GetServerTypesAvailabilityResponseAvailability' failed as data isn't a dictionary.`
642
+ );
550
643
  }
551
644
  return {
552
645
  availability: data.availability
553
646
  };
554
647
  };
555
- const unmarshalGetServerTypesAvailabilityResponse = data => {
648
+ const unmarshalGetServerTypesAvailabilityResponse = (data) => {
556
649
  if (!isJSONObject(data)) {
557
- throw new TypeError(`Unmarshalling the type 'GetServerTypesAvailabilityResponse' failed as data isn't a dictionary.`);
650
+ throw new TypeError(
651
+ `Unmarshalling the type 'GetServerTypesAvailabilityResponse' failed as data isn't a dictionary.`
652
+ );
558
653
  }
559
654
  return {
560
- servers: unmarshalMapOfObject(data.servers, unmarshalGetServerTypesAvailabilityResponseAvailability),
655
+ servers: unmarshalMapOfObject(
656
+ data.servers,
657
+ unmarshalGetServerTypesAvailabilityResponseAvailability
658
+ ),
561
659
  totalCount: data.total_count
562
660
  };
563
661
  };
564
- const unmarshalGetSnapshotResponse = data => {
662
+ const unmarshalGetSnapshotResponse = (data) => {
565
663
  if (!isJSONObject(data)) {
566
- throw new TypeError(`Unmarshalling the type 'GetSnapshotResponse' failed as data isn't a dictionary.`);
664
+ throw new TypeError(
665
+ `Unmarshalling the type 'GetSnapshotResponse' failed as data isn't a dictionary.`
666
+ );
567
667
  }
568
668
  return {
569
- snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : undefined
669
+ snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0
570
670
  };
571
671
  };
572
- const unmarshalGetVolumeResponse = data => {
672
+ const unmarshalGetVolumeResponse = (data) => {
573
673
  if (!isJSONObject(data)) {
574
- throw new TypeError(`Unmarshalling the type 'GetVolumeResponse' failed as data isn't a dictionary.`);
674
+ throw new TypeError(
675
+ `Unmarshalling the type 'GetVolumeResponse' failed as data isn't a dictionary.`
676
+ );
575
677
  }
576
678
  return {
577
- volume: data.volume ? unmarshalVolume(data.volume) : undefined
679
+ volume: data.volume ? unmarshalVolume(data.volume) : void 0
578
680
  };
579
681
  };
580
- const unmarshalListBootscriptsResponse = data => {
682
+ const unmarshalListBootscriptsResponse = (data) => {
581
683
  if (!isJSONObject(data)) {
582
- throw new TypeError(`Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.`);
684
+ throw new TypeError(
685
+ `Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.`
686
+ );
583
687
  }
584
688
  return {
585
689
  bootscripts: unmarshalArrayOfObject(data.bootscripts, unmarshalBootscript),
586
690
  totalCount: data.total_count
587
691
  };
588
692
  };
589
- const unmarshalListImagesResponse = data => {
693
+ const unmarshalListImagesResponse = (data) => {
590
694
  if (!isJSONObject(data)) {
591
- throw new TypeError(`Unmarshalling the type 'ListImagesResponse' failed as data isn't a dictionary.`);
695
+ throw new TypeError(
696
+ `Unmarshalling the type 'ListImagesResponse' failed as data isn't a dictionary.`
697
+ );
592
698
  }
593
699
  return {
594
700
  images: unmarshalArrayOfObject(data.images, unmarshalImage),
595
701
  totalCount: data.total_count
596
702
  };
597
703
  };
598
- const unmarshalListIpsResponse = data => {
704
+ const unmarshalListIpsResponse = (data) => {
599
705
  if (!isJSONObject(data)) {
600
- throw new TypeError(`Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`);
706
+ throw new TypeError(
707
+ `Unmarshalling the type 'ListIpsResponse' failed as data isn't a dictionary.`
708
+ );
601
709
  }
602
710
  return {
603
711
  ips: unmarshalArrayOfObject(data.ips, unmarshalIp),
604
712
  totalCount: data.total_count
605
713
  };
606
714
  };
607
- const unmarshalListPlacementGroupsResponse = data => {
715
+ const unmarshalListPlacementGroupsResponse = (data) => {
608
716
  if (!isJSONObject(data)) {
609
- throw new TypeError(`Unmarshalling the type 'ListPlacementGroupsResponse' failed as data isn't a dictionary.`);
717
+ throw new TypeError(
718
+ `Unmarshalling the type 'ListPlacementGroupsResponse' failed as data isn't a dictionary.`
719
+ );
610
720
  }
611
721
  return {
612
- placementGroups: unmarshalArrayOfObject(data.placement_groups, unmarshalPlacementGroup),
722
+ placementGroups: unmarshalArrayOfObject(
723
+ data.placement_groups,
724
+ unmarshalPlacementGroup
725
+ ),
613
726
  totalCount: data.total_count
614
727
  };
615
728
  };
616
- const unmarshalListPrivateNICsResponse = data => {
729
+ const unmarshalListPrivateNICsResponse = (data) => {
617
730
  if (!isJSONObject(data)) {
618
- throw new TypeError(`Unmarshalling the type 'ListPrivateNICsResponse' failed as data isn't a dictionary.`);
731
+ throw new TypeError(
732
+ `Unmarshalling the type 'ListPrivateNICsResponse' failed as data isn't a dictionary.`
733
+ );
619
734
  }
620
735
  return {
621
736
  privateNics: unmarshalArrayOfObject(data.private_nics, unmarshalPrivateNIC),
622
737
  totalCount: data.total_count
623
738
  };
624
739
  };
625
- const unmarshalListSecurityGroupRulesResponse = data => {
740
+ const unmarshalListSecurityGroupRulesResponse = (data) => {
626
741
  if (!isJSONObject(data)) {
627
- throw new TypeError(`Unmarshalling the type 'ListSecurityGroupRulesResponse' failed as data isn't a dictionary.`);
742
+ throw new TypeError(
743
+ `Unmarshalling the type 'ListSecurityGroupRulesResponse' failed as data isn't a dictionary.`
744
+ );
628
745
  }
629
746
  return {
630
747
  rules: unmarshalArrayOfObject(data.rules, unmarshalSecurityGroupRule),
631
748
  totalCount: data.total_count
632
749
  };
633
750
  };
634
- const unmarshalListSecurityGroupsResponse = data => {
751
+ const unmarshalListSecurityGroupsResponse = (data) => {
635
752
  if (!isJSONObject(data)) {
636
- throw new TypeError(`Unmarshalling the type 'ListSecurityGroupsResponse' failed as data isn't a dictionary.`);
753
+ throw new TypeError(
754
+ `Unmarshalling the type 'ListSecurityGroupsResponse' failed as data isn't a dictionary.`
755
+ );
637
756
  }
638
757
  return {
639
- securityGroups: unmarshalArrayOfObject(data.security_groups, unmarshalSecurityGroup),
758
+ securityGroups: unmarshalArrayOfObject(
759
+ data.security_groups,
760
+ unmarshalSecurityGroup
761
+ ),
640
762
  totalCount: data.total_count
641
763
  };
642
764
  };
643
- const unmarshalListServerActionsResponse = data => {
765
+ const unmarshalListServerActionsResponse = (data) => {
644
766
  if (!isJSONObject(data)) {
645
- throw new TypeError(`Unmarshalling the type 'ListServerActionsResponse' failed as data isn't a dictionary.`);
767
+ throw new TypeError(
768
+ `Unmarshalling the type 'ListServerActionsResponse' failed as data isn't a dictionary.`
769
+ );
646
770
  }
647
771
  return {
648
772
  actions: data.actions
649
773
  };
650
774
  };
651
- const unmarshalListServerUserDataResponse = data => {
775
+ const unmarshalListServerUserDataResponse = (data) => {
652
776
  if (!isJSONObject(data)) {
653
- throw new TypeError(`Unmarshalling the type 'ListServerUserDataResponse' failed as data isn't a dictionary.`);
777
+ throw new TypeError(
778
+ `Unmarshalling the type 'ListServerUserDataResponse' failed as data isn't a dictionary.`
779
+ );
654
780
  }
655
781
  return {
656
782
  userData: data.user_data
657
783
  };
658
784
  };
659
- const unmarshalListServersResponse = data => {
785
+ const unmarshalListServersResponse = (data) => {
660
786
  if (!isJSONObject(data)) {
661
- throw new TypeError(`Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`);
787
+ throw new TypeError(
788
+ `Unmarshalling the type 'ListServersResponse' failed as data isn't a dictionary.`
789
+ );
662
790
  }
663
791
  return {
664
792
  servers: unmarshalArrayOfObject(data.servers, unmarshalServer),
665
793
  totalCount: data.total_count
666
794
  };
667
795
  };
668
- const unmarshalServerTypeNetworkInterface = data => {
796
+ const unmarshalServerTypeNetworkInterface = (data) => {
669
797
  if (!isJSONObject(data)) {
670
- throw new TypeError(`Unmarshalling the type 'ServerTypeNetworkInterface' failed as data isn't a dictionary.`);
798
+ throw new TypeError(
799
+ `Unmarshalling the type 'ServerTypeNetworkInterface' failed as data isn't a dictionary.`
800
+ );
671
801
  }
672
802
  return {
673
803
  internalBandwidth: data.internal_bandwidth,
674
804
  internetBandwidth: data.internet_bandwidth
675
805
  };
676
806
  };
677
- const unmarshalServerTypeVolumeConstraintSizes = data => {
807
+ const unmarshalServerTypeVolumeConstraintSizes = (data) => {
678
808
  if (!isJSONObject(data)) {
679
- throw new TypeError(`Unmarshalling the type 'ServerTypeVolumeConstraintSizes' failed as data isn't a dictionary.`);
809
+ throw new TypeError(
810
+ `Unmarshalling the type 'ServerTypeVolumeConstraintSizes' failed as data isn't a dictionary.`
811
+ );
680
812
  }
681
813
  return {
682
814
  maxSize: data.max_size,
683
815
  minSize: data.min_size
684
816
  };
685
817
  };
686
- const unmarshalServerTypeCapabilities = data => {
818
+ const unmarshalServerTypeCapabilities = (data) => {
687
819
  if (!isJSONObject(data)) {
688
- throw new TypeError(`Unmarshalling the type 'ServerTypeCapabilities' failed as data isn't a dictionary.`);
820
+ throw new TypeError(
821
+ `Unmarshalling the type 'ServerTypeCapabilities' failed as data isn't a dictionary.`
822
+ );
689
823
  }
690
824
  return {
691
825
  blockStorage: data.block_storage,
692
826
  bootTypes: data.boot_types
693
827
  };
694
828
  };
695
- const unmarshalServerTypeNetwork = data => {
829
+ const unmarshalServerTypeNetwork = (data) => {
696
830
  if (!isJSONObject(data)) {
697
- throw new TypeError(`Unmarshalling the type 'ServerTypeNetwork' failed as data isn't a dictionary.`);
831
+ throw new TypeError(
832
+ `Unmarshalling the type 'ServerTypeNetwork' failed as data isn't a dictionary.`
833
+ );
698
834
  }
699
835
  return {
700
- interfaces: unmarshalArrayOfObject(data.interfaces, unmarshalServerTypeNetworkInterface),
836
+ interfaces: unmarshalArrayOfObject(
837
+ data.interfaces,
838
+ unmarshalServerTypeNetworkInterface
839
+ ),
701
840
  ipv6Support: data.ipv6_support,
702
841
  sumInternalBandwidth: data.sum_internal_bandwidth,
703
842
  sumInternetBandwidth: data.sum_internet_bandwidth
704
843
  };
705
844
  };
706
- const unmarshalServerTypeVolumeConstraintsByType = data => {
845
+ const unmarshalServerTypeVolumeConstraintsByType = (data) => {
707
846
  if (!isJSONObject(data)) {
708
- throw new TypeError(`Unmarshalling the type 'ServerTypeVolumeConstraintsByType' failed as data isn't a dictionary.`);
847
+ throw new TypeError(
848
+ `Unmarshalling the type 'ServerTypeVolumeConstraintsByType' failed as data isn't a dictionary.`
849
+ );
709
850
  }
710
851
  return {
711
- lSsd: data.l_ssd ? unmarshalServerTypeVolumeConstraintSizes(data.l_ssd) : undefined
852
+ lSsd: data.l_ssd ? unmarshalServerTypeVolumeConstraintSizes(data.l_ssd) : void 0
712
853
  };
713
854
  };
714
- const unmarshalServerType = data => {
855
+ const unmarshalServerType = (data) => {
715
856
  if (!isJSONObject(data)) {
716
- throw new TypeError(`Unmarshalling the type 'ServerType' failed as data isn't a dictionary.`);
857
+ throw new TypeError(
858
+ `Unmarshalling the type 'ServerType' failed as data isn't a dictionary.`
859
+ );
717
860
  }
718
861
  return {
719
862
  altNames: data.alt_names,
720
863
  arch: data.arch,
721
864
  baremetal: data.baremetal,
722
- capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : undefined,
865
+ capabilities: data.capabilities ? unmarshalServerTypeCapabilities(data.capabilities) : void 0,
723
866
  gpu: data.gpu,
724
867
  hourlyPrice: data.hourly_price,
725
868
  monthlyPrice: data.monthly_price,
726
869
  ncpus: data.ncpus,
727
- network: data.network ? unmarshalServerTypeNetwork(data.network) : undefined,
728
- perVolumeConstraint: data.per_volume_constraint ? unmarshalServerTypeVolumeConstraintsByType(data.per_volume_constraint) : undefined,
870
+ network: data.network ? unmarshalServerTypeNetwork(data.network) : void 0,
871
+ perVolumeConstraint: data.per_volume_constraint ? unmarshalServerTypeVolumeConstraintsByType(data.per_volume_constraint) : void 0,
729
872
  ram: data.ram,
730
873
  scratchStorageMaxSize: data.scratch_storage_max_size,
731
- volumesConstraint: data.volumes_constraint ? unmarshalServerTypeVolumeConstraintSizes(data.volumes_constraint) : undefined
874
+ volumesConstraint: data.volumes_constraint ? unmarshalServerTypeVolumeConstraintSizes(data.volumes_constraint) : void 0
732
875
  };
733
876
  };
734
- const unmarshalListServersTypesResponse = data => {
877
+ const unmarshalListServersTypesResponse = (data) => {
735
878
  if (!isJSONObject(data)) {
736
- throw new TypeError(`Unmarshalling the type 'ListServersTypesResponse' failed as data isn't a dictionary.`);
879
+ throw new TypeError(
880
+ `Unmarshalling the type 'ListServersTypesResponse' failed as data isn't a dictionary.`
881
+ );
737
882
  }
738
883
  return {
739
884
  servers: unmarshalMapOfObject(data.servers, unmarshalServerType),
740
885
  totalCount: data.total_count
741
886
  };
742
887
  };
743
- const unmarshalListSnapshotsResponse = data => {
888
+ const unmarshalListSnapshotsResponse = (data) => {
744
889
  if (!isJSONObject(data)) {
745
- throw new TypeError(`Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`);
890
+ throw new TypeError(
891
+ `Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`
892
+ );
746
893
  }
747
894
  return {
748
895
  snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
749
896
  totalCount: data.total_count
750
897
  };
751
898
  };
752
- const unmarshalListVolumesResponse = data => {
899
+ const unmarshalListVolumesResponse = (data) => {
753
900
  if (!isJSONObject(data)) {
754
- throw new TypeError(`Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`);
901
+ throw new TypeError(
902
+ `Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`
903
+ );
755
904
  }
756
905
  return {
757
906
  totalCount: data.total_count,
758
907
  volumes: unmarshalArrayOfObject(data.volumes, unmarshalVolume)
759
908
  };
760
909
  };
761
- const unmarshalVolumeTypeCapabilities = data => {
910
+ const unmarshalVolumeTypeCapabilities = (data) => {
762
911
  if (!isJSONObject(data)) {
763
- throw new TypeError(`Unmarshalling the type 'VolumeTypeCapabilities' failed as data isn't a dictionary.`);
912
+ throw new TypeError(
913
+ `Unmarshalling the type 'VolumeTypeCapabilities' failed as data isn't a dictionary.`
914
+ );
764
915
  }
765
916
  return {
766
917
  snapshot: data.snapshot
767
918
  };
768
919
  };
769
- const unmarshalVolumeTypeConstraints = data => {
920
+ const unmarshalVolumeTypeConstraints = (data) => {
770
921
  if (!isJSONObject(data)) {
771
- throw new TypeError(`Unmarshalling the type 'VolumeTypeConstraints' failed as data isn't a dictionary.`);
922
+ throw new TypeError(
923
+ `Unmarshalling the type 'VolumeTypeConstraints' failed as data isn't a dictionary.`
924
+ );
772
925
  }
773
926
  return {
774
927
  max: data.max,
775
928
  min: data.min
776
929
  };
777
930
  };
778
- const unmarshalVolumeType = data => {
931
+ const unmarshalVolumeType = (data) => {
779
932
  if (!isJSONObject(data)) {
780
- throw new TypeError(`Unmarshalling the type 'VolumeType' failed as data isn't a dictionary.`);
933
+ throw new TypeError(
934
+ `Unmarshalling the type 'VolumeType' failed as data isn't a dictionary.`
935
+ );
781
936
  }
782
937
  return {
783
- capabilities: data.capabilities ? unmarshalVolumeTypeCapabilities(data.capabilities) : undefined,
784
- constraints: data.constraints ? unmarshalVolumeTypeConstraints(data.constraints) : undefined,
938
+ capabilities: data.capabilities ? unmarshalVolumeTypeCapabilities(data.capabilities) : void 0,
939
+ constraints: data.constraints ? unmarshalVolumeTypeConstraints(data.constraints) : void 0,
785
940
  displayName: data.display_name
786
941
  };
787
942
  };
788
- const unmarshalListVolumesTypesResponse = data => {
943
+ const unmarshalListVolumesTypesResponse = (data) => {
789
944
  if (!isJSONObject(data)) {
790
- throw new TypeError(`Unmarshalling the type 'ListVolumesTypesResponse' failed as data isn't a dictionary.`);
945
+ throw new TypeError(
946
+ `Unmarshalling the type 'ListVolumesTypesResponse' failed as data isn't a dictionary.`
947
+ );
791
948
  }
792
949
  return {
793
950
  totalCount: data.total_count,
794
951
  volumes: unmarshalMapOfObject(data.volumes, unmarshalVolumeType)
795
952
  };
796
953
  };
797
- const unmarshalMigrationPlan = data => {
954
+ const unmarshalMigrationPlan = (data) => {
798
955
  if (!isJSONObject(data)) {
799
- throw new TypeError(`Unmarshalling the type 'MigrationPlan' failed as data isn't a dictionary.`);
956
+ throw new TypeError(
957
+ `Unmarshalling the type 'MigrationPlan' failed as data isn't a dictionary.`
958
+ );
800
959
  }
801
960
  return {
802
961
  snapshots: unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
803
962
  validationKey: data.validation_key,
804
- volume: data.volume ? unmarshalVolume(data.volume) : undefined
963
+ volume: data.volume ? unmarshalVolume(data.volume) : void 0
805
964
  };
806
965
  };
807
- const unmarshalServerActionResponse = data => {
966
+ const unmarshalServerActionResponse = (data) => {
808
967
  if (!isJSONObject(data)) {
809
- throw new TypeError(`Unmarshalling the type 'ServerActionResponse' failed as data isn't a dictionary.`);
968
+ throw new TypeError(
969
+ `Unmarshalling the type 'ServerActionResponse' failed as data isn't a dictionary.`
970
+ );
810
971
  }
811
972
  return {
812
- task: data.task ? unmarshalTask(data.task) : undefined
973
+ task: data.task ? unmarshalTask(data.task) : void 0
813
974
  };
814
975
  };
815
- const unmarshalSetImageResponse = data => {
976
+ const unmarshalSetImageResponse = (data) => {
816
977
  if (!isJSONObject(data)) {
817
- throw new TypeError(`Unmarshalling the type 'SetImageResponse' failed as data isn't a dictionary.`);
978
+ throw new TypeError(
979
+ `Unmarshalling the type 'SetImageResponse' failed as data isn't a dictionary.`
980
+ );
818
981
  }
819
982
  return {
820
- image: data.image ? unmarshalImage(data.image) : undefined
983
+ image: data.image ? unmarshalImage(data.image) : void 0
821
984
  };
822
985
  };
823
- const unmarshalSetPlacementGroupResponse = data => {
986
+ const unmarshalSetPlacementGroupResponse = (data) => {
824
987
  if (!isJSONObject(data)) {
825
- throw new TypeError(`Unmarshalling the type 'SetPlacementGroupResponse' failed as data isn't a dictionary.`);
988
+ throw new TypeError(
989
+ `Unmarshalling the type 'SetPlacementGroupResponse' failed as data isn't a dictionary.`
990
+ );
826
991
  }
827
992
  return {
828
- placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
993
+ placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
829
994
  };
830
995
  };
831
- const unmarshalSetPlacementGroupServersResponse = data => {
996
+ const unmarshalSetPlacementGroupServersResponse = (data) => {
832
997
  if (!isJSONObject(data)) {
833
- throw new TypeError(`Unmarshalling the type 'SetPlacementGroupServersResponse' failed as data isn't a dictionary.`);
998
+ throw new TypeError(
999
+ `Unmarshalling the type 'SetPlacementGroupServersResponse' failed as data isn't a dictionary.`
1000
+ );
834
1001
  }
835
1002
  return {
836
- servers: unmarshalArrayOfObject(data.servers, unmarshalPlacementGroupServer)
1003
+ servers: unmarshalArrayOfObject(
1004
+ data.servers,
1005
+ unmarshalPlacementGroupServer
1006
+ )
837
1007
  };
838
1008
  };
839
- const unmarshalSetSecurityGroupResponse = data => {
1009
+ const unmarshalSetSecurityGroupResponse = (data) => {
840
1010
  if (!isJSONObject(data)) {
841
- throw new TypeError(`Unmarshalling the type 'SetSecurityGroupResponse' failed as data isn't a dictionary.`);
1011
+ throw new TypeError(
1012
+ `Unmarshalling the type 'SetSecurityGroupResponse' failed as data isn't a dictionary.`
1013
+ );
842
1014
  }
843
1015
  return {
844
- securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
1016
+ securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
845
1017
  };
846
1018
  };
847
- const unmarshalSetSecurityGroupRuleResponse = data => {
1019
+ const unmarshalSetSecurityGroupRuleResponse = (data) => {
848
1020
  if (!isJSONObject(data)) {
849
- throw new TypeError(`Unmarshalling the type 'SetSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
1021
+ throw new TypeError(
1022
+ `Unmarshalling the type 'SetSecurityGroupRuleResponse' failed as data isn't a dictionary.`
1023
+ );
850
1024
  }
851
1025
  return {
852
- rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
1026
+ rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
853
1027
  };
854
1028
  };
855
- const unmarshalSetSecurityGroupRulesResponse = data => {
1029
+ const unmarshalSetSecurityGroupRulesResponse = (data) => {
856
1030
  if (!isJSONObject(data)) {
857
- throw new TypeError(`Unmarshalling the type 'SetSecurityGroupRulesResponse' failed as data isn't a dictionary.`);
1031
+ throw new TypeError(
1032
+ `Unmarshalling the type 'SetSecurityGroupRulesResponse' failed as data isn't a dictionary.`
1033
+ );
858
1034
  }
859
1035
  return {
860
1036
  rules: unmarshalArrayOfObject(data.rules, unmarshalSecurityGroupRule)
861
1037
  };
862
1038
  };
863
- const unmarshalSetServerResponse = data => {
1039
+ const unmarshalSetServerResponse = (data) => {
864
1040
  if (!isJSONObject(data)) {
865
- throw new TypeError(`Unmarshalling the type 'SetServerResponse' failed as data isn't a dictionary.`);
1041
+ throw new TypeError(
1042
+ `Unmarshalling the type 'SetServerResponse' failed as data isn't a dictionary.`
1043
+ );
866
1044
  }
867
1045
  return {
868
- server: data.server ? unmarshalServer(data.server) : undefined
1046
+ server: data.server ? unmarshalServer(data.server) : void 0
869
1047
  };
870
1048
  };
871
- const unmarshalSetSnapshotResponse = data => {
1049
+ const unmarshalSetSnapshotResponse = (data) => {
872
1050
  if (!isJSONObject(data)) {
873
- throw new TypeError(`Unmarshalling the type 'SetSnapshotResponse' failed as data isn't a dictionary.`);
1051
+ throw new TypeError(
1052
+ `Unmarshalling the type 'SetSnapshotResponse' failed as data isn't a dictionary.`
1053
+ );
874
1054
  }
875
1055
  return {
876
- snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : undefined
1056
+ snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0
877
1057
  };
878
1058
  };
879
- const unmarshalUpdateImageResponse = data => {
1059
+ const unmarshalUpdateImageResponse = (data) => {
880
1060
  if (!isJSONObject(data)) {
881
- throw new TypeError(`Unmarshalling the type 'UpdateImageResponse' failed as data isn't a dictionary.`);
1061
+ throw new TypeError(
1062
+ `Unmarshalling the type 'UpdateImageResponse' failed as data isn't a dictionary.`
1063
+ );
882
1064
  }
883
1065
  return {
884
- image: data.image ? unmarshalImage(data.image) : undefined
1066
+ image: data.image ? unmarshalImage(data.image) : void 0
885
1067
  };
886
1068
  };
887
- const unmarshalUpdateIpResponse = data => {
1069
+ const unmarshalUpdateIpResponse = (data) => {
888
1070
  if (!isJSONObject(data)) {
889
- throw new TypeError(`Unmarshalling the type 'UpdateIpResponse' failed as data isn't a dictionary.`);
1071
+ throw new TypeError(
1072
+ `Unmarshalling the type 'UpdateIpResponse' failed as data isn't a dictionary.`
1073
+ );
890
1074
  }
891
1075
  return {
892
- ip: data.ip ? unmarshalIp(data.ip) : undefined
1076
+ ip: data.ip ? unmarshalIp(data.ip) : void 0
893
1077
  };
894
1078
  };
895
- const unmarshalUpdatePlacementGroupResponse = data => {
1079
+ const unmarshalUpdatePlacementGroupResponse = (data) => {
896
1080
  if (!isJSONObject(data)) {
897
- throw new TypeError(`Unmarshalling the type 'UpdatePlacementGroupResponse' failed as data isn't a dictionary.`);
1081
+ throw new TypeError(
1082
+ `Unmarshalling the type 'UpdatePlacementGroupResponse' failed as data isn't a dictionary.`
1083
+ );
898
1084
  }
899
1085
  return {
900
- placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
1086
+ placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : void 0
901
1087
  };
902
1088
  };
903
- const unmarshalUpdatePlacementGroupServersResponse = data => {
1089
+ const unmarshalUpdatePlacementGroupServersResponse = (data) => {
904
1090
  if (!isJSONObject(data)) {
905
- throw new TypeError(`Unmarshalling the type 'UpdatePlacementGroupServersResponse' failed as data isn't a dictionary.`);
1091
+ throw new TypeError(
1092
+ `Unmarshalling the type 'UpdatePlacementGroupServersResponse' failed as data isn't a dictionary.`
1093
+ );
906
1094
  }
907
1095
  return {
908
- servers: unmarshalArrayOfObject(data.servers, unmarshalPlacementGroupServer)
1096
+ servers: unmarshalArrayOfObject(
1097
+ data.servers,
1098
+ unmarshalPlacementGroupServer
1099
+ )
909
1100
  };
910
1101
  };
911
- const unmarshalUpdateSecurityGroupResponse = data => {
1102
+ const unmarshalUpdateSecurityGroupResponse = (data) => {
912
1103
  if (!isJSONObject(data)) {
913
- throw new TypeError(`Unmarshalling the type 'UpdateSecurityGroupResponse' failed as data isn't a dictionary.`);
1104
+ throw new TypeError(
1105
+ `Unmarshalling the type 'UpdateSecurityGroupResponse' failed as data isn't a dictionary.`
1106
+ );
914
1107
  }
915
1108
  return {
916
- securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
1109
+ securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : void 0
917
1110
  };
918
1111
  };
919
- const unmarshalUpdateSecurityGroupRuleResponse = data => {
1112
+ const unmarshalUpdateSecurityGroupRuleResponse = (data) => {
920
1113
  if (!isJSONObject(data)) {
921
- throw new TypeError(`Unmarshalling the type 'UpdateSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
1114
+ throw new TypeError(
1115
+ `Unmarshalling the type 'UpdateSecurityGroupRuleResponse' failed as data isn't a dictionary.`
1116
+ );
922
1117
  }
923
1118
  return {
924
- rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
1119
+ rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : void 0
925
1120
  };
926
1121
  };
927
- const unmarshalUpdateServerResponse = data => {
1122
+ const unmarshalUpdateServerResponse = (data) => {
928
1123
  if (!isJSONObject(data)) {
929
- throw new TypeError(`Unmarshalling the type 'UpdateServerResponse' failed as data isn't a dictionary.`);
1124
+ throw new TypeError(
1125
+ `Unmarshalling the type 'UpdateServerResponse' failed as data isn't a dictionary.`
1126
+ );
930
1127
  }
931
1128
  return {
932
- server: data.server ? unmarshalServer(data.server) : undefined
1129
+ server: data.server ? unmarshalServer(data.server) : void 0
933
1130
  };
934
1131
  };
935
- const unmarshalUpdateSnapshotResponse = data => {
1132
+ const unmarshalUpdateSnapshotResponse = (data) => {
936
1133
  if (!isJSONObject(data)) {
937
- throw new TypeError(`Unmarshalling the type 'UpdateSnapshotResponse' failed as data isn't a dictionary.`);
1134
+ throw new TypeError(
1135
+ `Unmarshalling the type 'UpdateSnapshotResponse' failed as data isn't a dictionary.`
1136
+ );
938
1137
  }
939
1138
  return {
940
- snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : undefined
1139
+ snapshot: data.snapshot ? unmarshalSnapshot(data.snapshot) : void 0
941
1140
  };
942
1141
  };
943
- const unmarshalUpdateVolumeResponse = data => {
1142
+ const unmarshalUpdateVolumeResponse = (data) => {
944
1143
  if (!isJSONObject(data)) {
945
- throw new TypeError(`Unmarshalling the type 'UpdateVolumeResponse' failed as data isn't a dictionary.`);
1144
+ throw new TypeError(
1145
+ `Unmarshalling the type 'UpdateVolumeResponse' failed as data isn't a dictionary.`
1146
+ );
946
1147
  }
947
1148
  return {
948
- volume: data.volume ? unmarshalVolume(data.volume) : undefined
1149
+ volume: data.volume ? unmarshalVolume(data.volume) : void 0
949
1150
  };
950
1151
  };
951
1152
  const marshalApplyBlockMigrationRequest = (request, defaults) => ({
952
1153
  validation_key: request.validationKey,
953
- ...resolveOneOf([{
954
- param: 'volume_id',
955
- value: request.volumeId
956
- }, {
957
- param: 'snapshot_id',
958
- value: request.snapshotId
959
- }])
1154
+ ...resolveOneOf([
1155
+ { param: "volume_id", value: request.volumeId },
1156
+ { param: "snapshot_id", value: request.snapshotId }
1157
+ ])
960
1158
  });
961
1159
  const marshalAttachServerVolumeRequest = (request, defaults) => ({
962
1160
  boot: request.boot,
@@ -968,63 +1166,72 @@ const marshalVolumeTemplate = (request, defaults) => ({
968
1166
  name: request.name,
969
1167
  size: request.size,
970
1168
  volume_type: request.volumeType,
971
- ...resolveOneOf([{
972
- param: 'project',
973
- value: request.project
974
- }, {
975
- param: 'organization',
976
- value: request.organization
977
- }])
1169
+ ...resolveOneOf([
1170
+ { param: "project", value: request.project },
1171
+ { param: "organization", value: request.organization }
1172
+ ])
978
1173
  });
979
1174
  const marshalCreateImageRequest = (request, defaults) => ({
980
1175
  arch: request.arch,
981
1176
  default_bootscript: request.defaultBootscript,
982
- extra_volumes: request.extraVolumes !== undefined ? Object.entries(request.extraVolumes).reduce((acc, [key, value]) => ({
983
- ...acc,
984
- [key]: marshalVolumeTemplate(value)
985
- }), {}) : undefined,
986
- name: request.name || randomName('img'),
1177
+ extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
1178
+ (acc, [key, value]) => ({
1179
+ ...acc,
1180
+ [key]: marshalVolumeTemplate(value)
1181
+ }),
1182
+ {}
1183
+ ) : void 0,
1184
+ name: request.name || randomName("img"),
987
1185
  public: request.public,
988
1186
  root_volume: request.rootVolume,
989
1187
  tags: request.tags,
990
- ...resolveOneOf([{
991
- default: defaults.defaultProjectId,
992
- param: 'project',
993
- value: request.project
994
- }, {
995
- default: defaults.defaultOrganizationId,
996
- param: 'organization',
997
- value: request.organization
998
- }])
1188
+ ...resolveOneOf([
1189
+ {
1190
+ default: defaults.defaultProjectId,
1191
+ param: "project",
1192
+ value: request.project
1193
+ },
1194
+ {
1195
+ default: defaults.defaultOrganizationId,
1196
+ param: "organization",
1197
+ value: request.organization
1198
+ }
1199
+ ])
999
1200
  });
1000
1201
  const marshalCreateIpRequest = (request, defaults) => ({
1001
1202
  server: request.server,
1002
1203
  tags: request.tags,
1003
1204
  type: request.type,
1004
- ...resolveOneOf([{
1005
- default: defaults.defaultProjectId,
1006
- param: 'project',
1007
- value: request.project
1008
- }, {
1009
- default: defaults.defaultOrganizationId,
1010
- param: 'organization',
1011
- value: request.organization
1012
- }])
1205
+ ...resolveOneOf([
1206
+ {
1207
+ default: defaults.defaultProjectId,
1208
+ param: "project",
1209
+ value: request.project
1210
+ },
1211
+ {
1212
+ default: defaults.defaultOrganizationId,
1213
+ param: "organization",
1214
+ value: request.organization
1215
+ }
1216
+ ])
1013
1217
  });
1014
1218
  const marshalCreatePlacementGroupRequest = (request, defaults) => ({
1015
- name: request.name || randomName('pg'),
1219
+ name: request.name || randomName("pg"),
1016
1220
  policy_mode: request.policyMode,
1017
1221
  policy_type: request.policyType,
1018
1222
  tags: request.tags,
1019
- ...resolveOneOf([{
1020
- default: defaults.defaultProjectId,
1021
- param: 'project',
1022
- value: request.project
1023
- }, {
1024
- default: defaults.defaultOrganizationId,
1025
- param: 'organization',
1026
- value: request.organization
1027
- }])
1223
+ ...resolveOneOf([
1224
+ {
1225
+ default: defaults.defaultProjectId,
1226
+ param: "project",
1227
+ value: request.project
1228
+ },
1229
+ {
1230
+ default: defaults.defaultOrganizationId,
1231
+ param: "organization",
1232
+ value: request.organization
1233
+ }
1234
+ ])
1028
1235
  });
1029
1236
  const marshalCreatePrivateNICRequest = (request, defaults) => ({
1030
1237
  ip_ids: request.ipIds,
@@ -1035,26 +1242,26 @@ const marshalCreateSecurityGroupRequest = (request, defaults) => ({
1035
1242
  description: request.description,
1036
1243
  enable_default_security: request.enableDefaultSecurity,
1037
1244
  inbound_default_policy: request.inboundDefaultPolicy,
1038
- name: request.name || randomName('sg'),
1245
+ name: request.name || randomName("sg"),
1039
1246
  outbound_default_policy: request.outboundDefaultPolicy,
1040
1247
  stateful: request.stateful,
1041
1248
  tags: request.tags,
1042
- ...resolveOneOf([{
1043
- default: defaults.defaultProjectId,
1044
- param: 'project',
1045
- value: request.project
1046
- }, {
1047
- default: defaults.defaultOrganizationId,
1048
- param: 'organization',
1049
- value: request.organization
1050
- }]),
1051
- ...resolveOneOf([{
1052
- param: 'organization_default',
1053
- value: request.organizationDefault
1054
- }, {
1055
- param: 'project_default',
1056
- value: request.projectDefault
1057
- }])
1249
+ ...resolveOneOf([
1250
+ {
1251
+ default: defaults.defaultProjectId,
1252
+ param: "project",
1253
+ value: request.project
1254
+ },
1255
+ {
1256
+ default: defaults.defaultOrganizationId,
1257
+ param: "organization",
1258
+ value: request.organization
1259
+ }
1260
+ ]),
1261
+ ...resolveOneOf([
1262
+ { param: "organization_default", value: request.organizationDefault },
1263
+ { param: "project_default", value: request.projectDefault }
1264
+ ])
1058
1265
  });
1059
1266
  const marshalCreateSecurityGroupRuleRequest = (request, defaults) => ({
1060
1267
  action: request.action,
@@ -1083,65 +1290,74 @@ const marshalCreateServerRequest = (request, defaults) => ({
1083
1290
  dynamic_ip_required: request.dynamicIpRequired,
1084
1291
  enable_ipv6: request.enableIpv6,
1085
1292
  image: request.image,
1086
- name: request.name || randomName('srv'),
1293
+ name: request.name || randomName("srv"),
1087
1294
  placement_group: request.placementGroup,
1088
1295
  public_ip: request.publicIp,
1089
1296
  public_ips: request.publicIps,
1090
1297
  routed_ip_enabled: request.routedIpEnabled,
1091
1298
  security_group: request.securityGroup,
1092
1299
  tags: request.tags,
1093
- volumes: request.volumes !== undefined ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
1094
- ...acc,
1095
- [key]: marshalVolumeServerTemplate(value)
1096
- }), {}) : undefined,
1097
- ...resolveOneOf([{
1098
- default: defaults.defaultProjectId,
1099
- param: 'project',
1100
- value: request.project
1101
- }, {
1102
- default: defaults.defaultOrganizationId,
1103
- param: 'organization',
1104
- value: request.organization
1105
- }])
1300
+ volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
1301
+ (acc, [key, value]) => ({
1302
+ ...acc,
1303
+ [key]: marshalVolumeServerTemplate(value)
1304
+ }),
1305
+ {}
1306
+ ) : void 0,
1307
+ ...resolveOneOf([
1308
+ {
1309
+ default: defaults.defaultProjectId,
1310
+ param: "project",
1311
+ value: request.project
1312
+ },
1313
+ {
1314
+ default: defaults.defaultOrganizationId,
1315
+ param: "organization",
1316
+ value: request.organization
1317
+ }
1318
+ ])
1106
1319
  });
1107
1320
  const marshalCreateSnapshotRequest = (request, defaults) => ({
1108
1321
  bucket: request.bucket,
1109
1322
  key: request.key,
1110
- name: request.name || randomName('snp'),
1323
+ name: request.name || randomName("snp"),
1111
1324
  size: request.size,
1112
1325
  tags: request.tags,
1113
1326
  volume_id: request.volumeId,
1114
1327
  volume_type: request.volumeType,
1115
- ...resolveOneOf([{
1116
- default: defaults.defaultProjectId,
1117
- param: 'project',
1118
- value: request.project
1119
- }, {
1120
- default: defaults.defaultOrganizationId,
1121
- param: 'organization',
1122
- value: request.organization
1123
- }])
1328
+ ...resolveOneOf([
1329
+ {
1330
+ default: defaults.defaultProjectId,
1331
+ param: "project",
1332
+ value: request.project
1333
+ },
1334
+ {
1335
+ default: defaults.defaultOrganizationId,
1336
+ param: "organization",
1337
+ value: request.organization
1338
+ }
1339
+ ])
1124
1340
  });
1125
1341
  const marshalCreateVolumeRequest = (request, defaults) => ({
1126
- name: request.name || randomName('vol'),
1342
+ name: request.name || randomName("vol"),
1127
1343
  tags: request.tags,
1128
1344
  volume_type: request.volumeType,
1129
- ...resolveOneOf([{
1130
- default: defaults.defaultProjectId,
1131
- param: 'project',
1132
- value: request.project
1133
- }, {
1134
- default: defaults.defaultOrganizationId,
1135
- param: 'organization',
1136
- value: request.organization
1137
- }]),
1138
- ...resolveOneOf([{
1139
- param: 'size',
1140
- value: request.size
1141
- }, {
1142
- param: 'base_snapshot',
1143
- value: request.baseSnapshot
1144
- }])
1345
+ ...resolveOneOf([
1346
+ {
1347
+ default: defaults.defaultProjectId,
1348
+ param: "project",
1349
+ value: request.project
1350
+ },
1351
+ {
1352
+ default: defaults.defaultOrganizationId,
1353
+ param: "organization",
1354
+ value: request.organization
1355
+ }
1356
+ ]),
1357
+ ...resolveOneOf([
1358
+ { param: "size", value: request.size },
1359
+ { param: "base_snapshot", value: request.baseSnapshot }
1360
+ ])
1145
1361
  });
1146
1362
  const marshalDetachServerVolumeRequest = (request, defaults) => ({
1147
1363
  volume_id: request.volumeId
@@ -1151,13 +1367,10 @@ const marshalExportSnapshotRequest = (request, defaults) => ({
1151
1367
  key: request.key
1152
1368
  });
1153
1369
  const marshalPlanBlockMigrationRequest = (request, defaults) => ({
1154
- ...resolveOneOf([{
1155
- param: 'volume_id',
1156
- value: request.volumeId
1157
- }, {
1158
- param: 'snapshot_id',
1159
- value: request.snapshotId
1160
- }])
1370
+ ...resolveOneOf([
1371
+ { param: "volume_id", value: request.volumeId },
1372
+ { param: "snapshot_id", value: request.snapshotId }
1373
+ ])
1161
1374
  });
1162
1375
  const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
1163
1376
  volume_type: request.volumeType
@@ -1165,10 +1378,15 @@ const marshalServerActionRequestVolumeBackupTemplate = (request, defaults) => ({
1165
1378
  const marshalServerActionRequest = (request, defaults) => ({
1166
1379
  action: request.action,
1167
1380
  name: request.name,
1168
- volumes: request.volumes !== undefined ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
1169
- ...acc,
1170
- [key]: marshalServerActionRequestVolumeBackupTemplate(value)
1171
- }), {}) : undefined
1381
+ volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
1382
+ (acc, [key, value]) => ({
1383
+ ...acc,
1384
+ [key]: marshalServerActionRequestVolumeBackupTemplate(
1385
+ value
1386
+ )
1387
+ }),
1388
+ {}
1389
+ ) : void 0
1172
1390
  });
1173
1391
  const marshalServerSummary = (request, defaults) => ({
1174
1392
  id: request.id,
@@ -1196,7 +1414,7 @@ const marshalVolume = (request, defaults) => ({
1196
1414
  name: request.name,
1197
1415
  organization: request.organization,
1198
1416
  project: request.project,
1199
- server: request.server !== undefined ? marshalServerSummary(request.server) : undefined,
1417
+ server: request.server !== void 0 ? marshalServerSummary(request.server) : void 0,
1200
1418
  size: request.size,
1201
1419
  state: request.state,
1202
1420
  tags: request.tags,
@@ -1212,18 +1430,21 @@ const marshalVolumeSummary = (request, defaults) => ({
1212
1430
  const marshalSetImageRequest = (request, defaults) => ({
1213
1431
  arch: request.arch,
1214
1432
  creation_date: request.creationDate,
1215
- default_bootscript: request.defaultBootscript !== undefined ? marshalBootscript(request.defaultBootscript) : undefined,
1216
- extra_volumes: request.extraVolumes !== undefined ? Object.entries(request.extraVolumes).reduce((acc, [key, value]) => ({
1217
- ...acc,
1218
- [key]: marshalVolume(value)
1219
- }), {}) : undefined,
1433
+ default_bootscript: request.defaultBootscript !== void 0 ? marshalBootscript(request.defaultBootscript) : void 0,
1434
+ extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
1435
+ (acc, [key, value]) => ({
1436
+ ...acc,
1437
+ [key]: marshalVolume(value)
1438
+ }),
1439
+ {}
1440
+ ) : void 0,
1220
1441
  from_server: request.fromServer,
1221
1442
  modification_date: request.modificationDate,
1222
1443
  name: request.name,
1223
1444
  organization: request.organization ?? defaults.defaultOrganizationId,
1224
1445
  project: request.project ?? defaults.defaultProjectId,
1225
1446
  public: request.public,
1226
- root_volume: request.rootVolume !== undefined ? marshalVolumeSummary(request.rootVolume) : undefined,
1447
+ root_volume: request.rootVolume !== void 0 ? marshalVolumeSummary(request.rootVolume) : void 0,
1227
1448
  state: request.state,
1228
1449
  tags: request.tags
1229
1450
  });
@@ -1250,7 +1471,7 @@ const marshalSetSecurityGroupRequest = (request, defaults) => ({
1250
1471
  outbound_default_policy: request.outboundDefaultPolicy,
1251
1472
  project: request.project ?? defaults.defaultProjectId,
1252
1473
  project_default: request.projectDefault,
1253
- servers: request.servers !== undefined ? request.servers.map(elt => marshalServerSummary(elt)) : undefined,
1474
+ servers: request.servers !== void 0 ? request.servers.map((elt) => marshalServerSummary(elt)) : void 0,
1254
1475
  stateful: request.stateful,
1255
1476
  tags: request.tags
1256
1477
  });
@@ -1278,16 +1499,18 @@ const marshalSetSecurityGroupRulesRequestRule = (request, defaults) => ({
1278
1499
  zone: request.zone
1279
1500
  });
1280
1501
  const marshalSetSecurityGroupRulesRequest = (request, defaults) => ({
1281
- rules: request.rules !== undefined ? request.rules.map(elt => marshalSetSecurityGroupRulesRequestRule(elt)) : undefined
1502
+ rules: request.rules !== void 0 ? request.rules.map(
1503
+ (elt) => marshalSetSecurityGroupRulesRequestRule(elt)
1504
+ ) : void 0
1282
1505
  });
1283
1506
  const marshalImage = (request, defaults) => ({
1284
1507
  arch: request.arch,
1285
1508
  creation_date: request.creationDate,
1286
- default_bootscript: request.defaultBootscript !== undefined ? marshalBootscript(request.defaultBootscript) : undefined,
1287
- extra_volumes: Object.entries(request.extraVolumes).reduce((acc, [key, value]) => ({
1288
- ...acc,
1289
- [key]: marshalVolume(value)
1290
- }), {}),
1509
+ default_bootscript: request.defaultBootscript !== void 0 ? marshalBootscript(request.defaultBootscript) : void 0,
1510
+ extra_volumes: Object.entries(request.extraVolumes).reduce(
1511
+ (acc, [key, value]) => ({ ...acc, [key]: marshalVolume(value) }),
1512
+ {}
1513
+ ),
1291
1514
  from_server: request.fromServer,
1292
1515
  id: request.id,
1293
1516
  modification_date: request.modificationDate,
@@ -1295,7 +1518,7 @@ const marshalImage = (request, defaults) => ({
1295
1518
  organization: request.organization,
1296
1519
  project: request.project,
1297
1520
  public: request.public,
1298
- root_volume: request.rootVolume !== undefined ? marshalVolumeSummary(request.rootVolume) : undefined,
1521
+ root_volume: request.rootVolume !== void 0 ? marshalVolumeSummary(request.rootVolume) : void 0,
1299
1522
  state: request.state,
1300
1523
  tags: request.tags,
1301
1524
  zone: request.zone
@@ -1352,45 +1575,48 @@ const marshalServerMaintenance = (request, defaults) => ({
1352
1575
  start_date: request.startDate
1353
1576
  });
1354
1577
  const marshalSetServerRequest = (request, defaults) => ({
1355
- allowed_actions: request.allowedActions !== undefined ? request.allowedActions : undefined,
1578
+ allowed_actions: request.allowedActions !== void 0 ? request.allowedActions : void 0,
1356
1579
  arch: request.arch,
1357
1580
  boot_type: request.bootType,
1358
- bootscript: request.bootscript !== undefined ? marshalBootscript(request.bootscript) : undefined,
1581
+ bootscript: request.bootscript !== void 0 ? marshalBootscript(request.bootscript) : void 0,
1359
1582
  commercial_type: request.commercialType,
1360
1583
  creation_date: request.creationDate,
1361
1584
  dynamic_ip_required: request.dynamicIpRequired,
1362
1585
  enable_ipv6: request.enableIpv6,
1363
1586
  hostname: request.hostname,
1364
- image: request.image !== undefined ? marshalImage(request.image) : undefined,
1365
- ipv6: request.ipv6 !== undefined ? marshalServerIpv6(request.ipv6) : undefined,
1366
- location: request.location !== undefined ? marshalServerLocation(request.location) : undefined,
1367
- maintenances: request.maintenances !== undefined ? request.maintenances.map(elt => marshalServerMaintenance(elt)) : undefined,
1587
+ image: request.image !== void 0 ? marshalImage(request.image) : void 0,
1588
+ ipv6: request.ipv6 !== void 0 ? marshalServerIpv6(request.ipv6) : void 0,
1589
+ location: request.location !== void 0 ? marshalServerLocation(request.location) : void 0,
1590
+ maintenances: request.maintenances !== void 0 ? request.maintenances.map((elt) => marshalServerMaintenance(elt)) : void 0,
1368
1591
  modification_date: request.modificationDate,
1369
1592
  name: request.name,
1370
1593
  organization: request.organization ?? defaults.defaultOrganizationId,
1371
- placement_group: request.placementGroup !== undefined ? marshalPlacementGroup(request.placementGroup) : undefined,
1594
+ placement_group: request.placementGroup !== void 0 ? marshalPlacementGroup(request.placementGroup) : void 0,
1372
1595
  private_ip: request.privateIp,
1373
- private_nics: request.privateNics !== undefined ? request.privateNics.map(elt => marshalPrivateNIC(elt)) : undefined,
1596
+ private_nics: request.privateNics !== void 0 ? request.privateNics.map((elt) => marshalPrivateNIC(elt)) : void 0,
1374
1597
  project: request.project ?? defaults.defaultProjectId,
1375
1598
  protected: request.protected,
1376
- public_ip: request.publicIp !== undefined ? marshalServerIp(request.publicIp) : undefined,
1377
- public_ips: request.publicIps !== undefined ? request.publicIps.map(elt => marshalServerIp(elt)) : undefined,
1599
+ public_ip: request.publicIp !== void 0 ? marshalServerIp(request.publicIp) : void 0,
1600
+ public_ips: request.publicIps !== void 0 ? request.publicIps.map((elt) => marshalServerIp(elt)) : void 0,
1378
1601
  routed_ip_enabled: request.routedIpEnabled,
1379
- security_group: request.securityGroup !== undefined ? marshalSecurityGroupSummary(request.securityGroup) : undefined,
1602
+ security_group: request.securityGroup !== void 0 ? marshalSecurityGroupSummary(request.securityGroup) : void 0,
1380
1603
  state: request.state,
1381
1604
  state_detail: request.stateDetail,
1382
1605
  tags: request.tags,
1383
- volumes: request.volumes !== undefined ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
1384
- ...acc,
1385
- [key]: marshalVolume(value)
1386
- }), {}) : undefined
1606
+ volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
1607
+ (acc, [key, value]) => ({
1608
+ ...acc,
1609
+ [key]: marshalVolume(value)
1610
+ }),
1611
+ {}
1612
+ ) : void 0
1387
1613
  });
1388
1614
  const marshalSnapshotBaseVolume = (request, defaults) => ({
1389
1615
  id: request.id,
1390
1616
  name: request.name
1391
1617
  });
1392
1618
  const marshalSetSnapshotRequest = (request, defaults) => ({
1393
- base_volume: request.baseVolume !== undefined ? marshalSnapshotBaseVolume(request.baseVolume) : undefined,
1619
+ base_volume: request.baseVolume !== void 0 ? marshalSnapshotBaseVolume(request.baseVolume) : void 0,
1394
1620
  creation_date: request.creationDate,
1395
1621
  id: request.id,
1396
1622
  modification_date: request.modificationDate,
@@ -1407,10 +1633,13 @@ const marshalVolumeImageUpdateTemplate = (request, defaults) => ({
1407
1633
  });
1408
1634
  const marshalUpdateImageRequest = (request, defaults) => ({
1409
1635
  arch: request.arch,
1410
- extra_volumes: request.extraVolumes !== undefined ? Object.entries(request.extraVolumes).reduce((acc, [key, value]) => ({
1411
- ...acc,
1412
- [key]: marshalVolumeImageUpdateTemplate(value)
1413
- }), {}) : undefined,
1636
+ extra_volumes: request.extraVolumes !== void 0 ? Object.entries(request.extraVolumes).reduce(
1637
+ (acc, [key, value]) => ({
1638
+ ...acc,
1639
+ [key]: marshalVolumeImageUpdateTemplate(value)
1640
+ }),
1641
+ {}
1642
+ ) : void 0,
1414
1643
  name: request.name,
1415
1644
  public: request.public,
1416
1645
  tags: request.tags
@@ -1469,12 +1698,15 @@ const marshalUpdateServerRequest = (request, defaults) => ({
1469
1698
  protected: request.protected,
1470
1699
  public_ips: request.publicIps,
1471
1700
  routed_ip_enabled: request.routedIpEnabled,
1472
- security_group: request.securityGroup !== undefined ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
1701
+ security_group: request.securityGroup !== void 0 ? marshalSecurityGroupTemplate(request.securityGroup) : void 0,
1473
1702
  tags: request.tags,
1474
- volumes: request.volumes !== undefined ? Object.entries(request.volumes).reduce((acc, [key, value]) => ({
1475
- ...acc,
1476
- [key]: marshalVolumeServerTemplate(value)
1477
- }), {}) : undefined
1703
+ volumes: request.volumes !== void 0 ? Object.entries(request.volumes).reduce(
1704
+ (acc, [key, value]) => ({
1705
+ ...acc,
1706
+ [key]: marshalVolumeServerTemplate(value)
1707
+ }),
1708
+ {}
1709
+ ) : void 0
1478
1710
  });
1479
1711
  const marshalUpdateSnapshotRequest = (request, defaults) => ({
1480
1712
  name: request.name,
@@ -1485,5 +1717,97 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
1485
1717
  size: request.size,
1486
1718
  tags: request.tags
1487
1719
  });
1488
-
1489
- export { marshalApplyBlockMigrationRequest, marshalAttachServerVolumeRequest, marshalCreateImageRequest, marshalCreateIpRequest, marshalCreatePlacementGroupRequest, marshalCreatePrivateNICRequest, marshalCreateSecurityGroupRequest, marshalCreateSecurityGroupRuleRequest, marshalCreateServerRequest, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalDetachServerVolumeRequest, marshalExportSnapshotRequest, marshalPlanBlockMigrationRequest, marshalServerActionRequest, marshalSetImageRequest, marshalSetPlacementGroupRequest, marshalSetPlacementGroupServersRequest, marshalSetSecurityGroupRequest, marshalSetSecurityGroupRuleRequest, marshalSetSecurityGroupRulesRequest, marshalSetServerRequest, marshalSetSnapshotRequest, marshalUpdateImageRequest, marshalUpdateIpRequest, marshalUpdatePlacementGroupRequest, marshalUpdatePlacementGroupServersRequest, marshalUpdatePrivateNICRequest, marshalUpdateSecurityGroupRequest, marshalUpdateSecurityGroupRuleRequest, marshalUpdateServerRequest, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalAttachServerVolumeResponse, unmarshalCreateImageResponse, unmarshalCreateIpResponse, unmarshalCreatePlacementGroupResponse, unmarshalCreatePrivateNICResponse, unmarshalCreateSecurityGroupResponse, unmarshalCreateSecurityGroupRuleResponse, unmarshalCreateServerResponse, unmarshalCreateSnapshotResponse, unmarshalCreateVolumeResponse, unmarshalDetachServerVolumeResponse, unmarshalExportSnapshotResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, unmarshalGetImageResponse, unmarshalGetIpResponse, unmarshalGetPlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, unmarshalGetPrivateNICResponse, unmarshalGetSecurityGroupResponse, unmarshalGetSecurityGroupRuleResponse, unmarshalGetServerResponse, unmarshalGetServerTypesAvailabilityResponse, unmarshalGetSnapshotResponse, unmarshalGetVolumeResponse, unmarshalListBootscriptsResponse, unmarshalListImagesResponse, unmarshalListIpsResponse, unmarshalListPlacementGroupsResponse, unmarshalListPrivateNICsResponse, unmarshalListSecurityGroupRulesResponse, unmarshalListSecurityGroupsResponse, unmarshalListServerActionsResponse, unmarshalListServerUserDataResponse, unmarshalListServersResponse, unmarshalListServersTypesResponse, unmarshalListSnapshotsResponse, unmarshalListVolumesResponse, unmarshalListVolumesTypesResponse, unmarshalMigrationPlan, unmarshalPrivateNIC, unmarshalServerActionResponse, unmarshalSetImageResponse, unmarshalSetPlacementGroupResponse, unmarshalSetPlacementGroupServersResponse, unmarshalSetSecurityGroupResponse, unmarshalSetSecurityGroupRuleResponse, unmarshalSetSecurityGroupRulesResponse, unmarshalSetServerResponse, unmarshalSetSnapshotResponse, unmarshalUpdateImageResponse, unmarshalUpdateIpResponse, unmarshalUpdatePlacementGroupResponse, unmarshalUpdatePlacementGroupServersResponse, unmarshalUpdateSecurityGroupResponse, unmarshalUpdateSecurityGroupRuleResponse, unmarshalUpdateServerResponse, unmarshalUpdateSnapshotResponse, unmarshalUpdateVolumeResponse };
1720
+ export {
1721
+ marshalApplyBlockMigrationRequest,
1722
+ marshalAttachServerVolumeRequest,
1723
+ marshalCreateImageRequest,
1724
+ marshalCreateIpRequest,
1725
+ marshalCreatePlacementGroupRequest,
1726
+ marshalCreatePrivateNICRequest,
1727
+ marshalCreateSecurityGroupRequest,
1728
+ marshalCreateSecurityGroupRuleRequest,
1729
+ marshalCreateServerRequest,
1730
+ marshalCreateSnapshotRequest,
1731
+ marshalCreateVolumeRequest,
1732
+ marshalDetachServerVolumeRequest,
1733
+ marshalExportSnapshotRequest,
1734
+ marshalPlanBlockMigrationRequest,
1735
+ marshalServerActionRequest,
1736
+ marshalSetImageRequest,
1737
+ marshalSetPlacementGroupRequest,
1738
+ marshalSetPlacementGroupServersRequest,
1739
+ marshalSetSecurityGroupRequest,
1740
+ marshalSetSecurityGroupRuleRequest,
1741
+ marshalSetSecurityGroupRulesRequest,
1742
+ marshalSetServerRequest,
1743
+ marshalSetSnapshotRequest,
1744
+ marshalUpdateImageRequest,
1745
+ marshalUpdateIpRequest,
1746
+ marshalUpdatePlacementGroupRequest,
1747
+ marshalUpdatePlacementGroupServersRequest,
1748
+ marshalUpdatePrivateNICRequest,
1749
+ marshalUpdateSecurityGroupRequest,
1750
+ marshalUpdateSecurityGroupRuleRequest,
1751
+ marshalUpdateServerRequest,
1752
+ marshalUpdateSnapshotRequest,
1753
+ marshalUpdateVolumeRequest,
1754
+ unmarshalAttachServerVolumeResponse,
1755
+ unmarshalCreateImageResponse,
1756
+ unmarshalCreateIpResponse,
1757
+ unmarshalCreatePlacementGroupResponse,
1758
+ unmarshalCreatePrivateNICResponse,
1759
+ unmarshalCreateSecurityGroupResponse,
1760
+ unmarshalCreateSecurityGroupRuleResponse,
1761
+ unmarshalCreateServerResponse,
1762
+ unmarshalCreateSnapshotResponse,
1763
+ unmarshalCreateVolumeResponse,
1764
+ unmarshalDetachServerVolumeResponse,
1765
+ unmarshalExportSnapshotResponse,
1766
+ unmarshalGetBootscriptResponse,
1767
+ unmarshalGetDashboardResponse,
1768
+ unmarshalGetImageResponse,
1769
+ unmarshalGetIpResponse,
1770
+ unmarshalGetPlacementGroupResponse,
1771
+ unmarshalGetPlacementGroupServersResponse,
1772
+ unmarshalGetPrivateNICResponse,
1773
+ unmarshalGetSecurityGroupResponse,
1774
+ unmarshalGetSecurityGroupRuleResponse,
1775
+ unmarshalGetServerResponse,
1776
+ unmarshalGetServerTypesAvailabilityResponse,
1777
+ unmarshalGetSnapshotResponse,
1778
+ unmarshalGetVolumeResponse,
1779
+ unmarshalListBootscriptsResponse,
1780
+ unmarshalListImagesResponse,
1781
+ unmarshalListIpsResponse,
1782
+ unmarshalListPlacementGroupsResponse,
1783
+ unmarshalListPrivateNICsResponse,
1784
+ unmarshalListSecurityGroupRulesResponse,
1785
+ unmarshalListSecurityGroupsResponse,
1786
+ unmarshalListServerActionsResponse,
1787
+ unmarshalListServerUserDataResponse,
1788
+ unmarshalListServersResponse,
1789
+ unmarshalListServersTypesResponse,
1790
+ unmarshalListSnapshotsResponse,
1791
+ unmarshalListVolumesResponse,
1792
+ unmarshalListVolumesTypesResponse,
1793
+ unmarshalMigrationPlan,
1794
+ unmarshalPrivateNIC,
1795
+ unmarshalServerActionResponse,
1796
+ unmarshalSetImageResponse,
1797
+ unmarshalSetPlacementGroupResponse,
1798
+ unmarshalSetPlacementGroupServersResponse,
1799
+ unmarshalSetSecurityGroupResponse,
1800
+ unmarshalSetSecurityGroupRuleResponse,
1801
+ unmarshalSetSecurityGroupRulesResponse,
1802
+ unmarshalSetServerResponse,
1803
+ unmarshalSetSnapshotResponse,
1804
+ unmarshalUpdateImageResponse,
1805
+ unmarshalUpdateIpResponse,
1806
+ unmarshalUpdatePlacementGroupResponse,
1807
+ unmarshalUpdatePlacementGroupServersResponse,
1808
+ unmarshalUpdateSecurityGroupResponse,
1809
+ unmarshalUpdateSecurityGroupRuleResponse,
1810
+ unmarshalUpdateServerResponse,
1811
+ unmarshalUpdateSnapshotResponse,
1812
+ unmarshalUpdateVolumeResponse
1813
+ };