@scaleway/sdk 2.72.0 → 2.74.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 (209) hide show
  1. package/dist/api/account/v3/api.gen.cjs +13 -32
  2. package/dist/api/account/v3/api.gen.d.ts +17 -36
  3. package/dist/api/account/v3/api.gen.js +13 -32
  4. package/dist/api/account/v3/index.gen.d.ts +1 -1
  5. package/dist/api/account/v3/marshalling.gen.cjs +94 -65
  6. package/dist/api/account/v3/marshalling.gen.js +94 -65
  7. package/dist/api/account/v3/types.gen.d.ts +224 -104
  8. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
  9. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
  10. package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
  11. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
  12. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
  13. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
  14. package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
  15. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
  16. package/dist/api/baremetal/v1/api.gen.cjs +28 -61
  17. package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
  18. package/dist/api/baremetal/v1/api.gen.js +28 -61
  19. package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
  20. package/dist/api/baremetal/v3/api.gen.cjs +7 -14
  21. package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
  22. package/dist/api/baremetal/v3/api.gen.js +7 -14
  23. package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
  24. package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
  25. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
  26. package/dist/api/billing/v2beta1/api.gen.js +11 -20
  27. package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
  28. package/dist/api/block/v1/api.gen.cjs +37 -55
  29. package/dist/api/block/v1/api.gen.d.ts +19 -37
  30. package/dist/api/block/v1/api.gen.js +37 -55
  31. package/dist/api/block/v1/types.gen.d.ts +306 -125
  32. package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
  33. package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
  34. package/dist/api/block/v1alpha1/api.gen.js +45 -64
  35. package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
  36. package/dist/api/cockpit/v1/api.gen.cjs +132 -156
  37. package/dist/api/cockpit/v1/api.gen.d.ts +66 -113
  38. package/dist/api/cockpit/v1/api.gen.js +133 -157
  39. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  40. package/dist/api/cockpit/v1/marshalling.gen.cjs +23 -0
  41. package/dist/api/cockpit/v1/marshalling.gen.d.ts +3 -1
  42. package/dist/api/cockpit/v1/marshalling.gen.js +23 -0
  43. package/dist/api/cockpit/v1/types.gen.d.ts +628 -246
  44. package/dist/api/container/v1beta1/api.gen.cjs +7 -14
  45. package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
  46. package/dist/api/container/v1beta1/api.gen.js +7 -14
  47. package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
  48. package/dist/api/dedibox/v1/api.gen.cjs +45 -69
  49. package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
  50. package/dist/api/dedibox/v1/api.gen.js +45 -69
  51. package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
  52. package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
  53. package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
  54. package/dist/api/domain/v2beta1/api.gen.js +119 -178
  55. package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
  56. package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
  57. package/dist/api/edge_services/v1beta1/api.gen.cjs +41 -22
  58. package/dist/api/edge_services/v1beta1/api.gen.d.ts +3 -2
  59. package/dist/api/edge_services/v1beta1/api.gen.js +41 -22
  60. package/dist/api/edge_services/v1beta1/index.gen.d.ts +1 -1
  61. package/dist/api/edge_services/v1beta1/types.gen.d.ts +7 -0
  62. package/dist/api/file/index.gen.cjs +4 -0
  63. package/dist/api/file/index.gen.d.ts +5 -0
  64. package/dist/api/file/index.gen.js +4 -0
  65. package/dist/api/file/v1alpha1/api.gen.cjs +142 -0
  66. package/dist/api/file/v1alpha1/api.gen.d.ts +73 -0
  67. package/dist/api/file/v1alpha1/api.gen.js +142 -0
  68. package/dist/api/file/v1alpha1/content.gen.cjs +7 -0
  69. package/dist/api/file/v1alpha1/content.gen.d.ts +3 -0
  70. package/dist/api/file/v1alpha1/content.gen.js +7 -0
  71. package/dist/api/file/v1alpha1/index.gen.cjs +8 -0
  72. package/dist/api/file/v1alpha1/index.gen.d.ts +4 -0
  73. package/dist/api/file/v1alpha1/index.gen.js +8 -0
  74. package/dist/api/file/v1alpha1/marshalling.gen.cjs +77 -0
  75. package/dist/api/file/v1alpha1/marshalling.gen.d.ts +7 -0
  76. package/dist/api/file/v1alpha1/marshalling.gen.js +77 -0
  77. package/dist/api/file/v1alpha1/types.gen.d.ts +239 -0
  78. package/dist/api/file/v1alpha1/validation-rules.gen.cjs +40 -0
  79. package/dist/api/file/v1alpha1/validation-rules.gen.d.ts +34 -0
  80. package/dist/api/file/v1alpha1/validation-rules.gen.js +40 -0
  81. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
  82. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
  83. package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
  84. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
  85. package/dist/api/function/v1beta1/types.gen.d.ts +6 -6
  86. package/dist/api/iam/v1alpha1/api.gen.cjs +4 -4
  87. package/dist/api/iam/v1alpha1/api.gen.d.ts +4 -4
  88. package/dist/api/iam/v1alpha1/api.gen.js +4 -4
  89. package/dist/api/iam/v1alpha1/types.gen.d.ts +1 -1
  90. package/dist/api/index.gen.d.ts +3 -1
  91. package/dist/api/inference/v1/api.gen.cjs +8 -11
  92. package/dist/api/inference/v1/api.gen.d.ts +6 -9
  93. package/dist/api/inference/v1/api.gen.js +8 -11
  94. package/dist/api/inference/v1/types.gen.d.ts +330 -150
  95. package/dist/api/inference/v1beta1/api.gen.cjs +9 -12
  96. package/dist/api/inference/v1beta1/api.gen.d.ts +7 -10
  97. package/dist/api/inference/v1beta1/api.gen.js +9 -12
  98. package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
  99. package/dist/api/instance/v1/api.gen.cjs +64 -113
  100. package/dist/api/instance/v1/api.gen.d.ts +54 -103
  101. package/dist/api/instance/v1/api.gen.js +64 -113
  102. package/dist/api/instance/v1/marshalling.gen.cjs +4 -1
  103. package/dist/api/instance/v1/marshalling.gen.js +4 -1
  104. package/dist/api/instance/v1/types.gen.d.ts +1368 -600
  105. package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
  106. package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
  107. package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
  108. package/dist/api/interlink/v1beta1/api.gen.js +21 -67
  109. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
  110. package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
  111. package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
  112. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
  113. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
  114. package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
  115. package/dist/api/iot/v1/api.gen.cjs +37 -70
  116. package/dist/api/iot/v1/api.gen.d.ts +34 -67
  117. package/dist/api/iot/v1/api.gen.js +37 -70
  118. package/dist/api/iot/v1/types.gen.d.ts +566 -321
  119. package/dist/api/ipam/v1/api.gen.cjs +6 -26
  120. package/dist/api/ipam/v1/api.gen.d.ts +8 -29
  121. package/dist/api/ipam/v1/api.gen.js +6 -26
  122. package/dist/api/ipam/v1/types.gen.d.ts +146 -105
  123. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
  124. package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
  125. package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
  126. package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
  127. package/dist/api/k8s/v1/api.gen.cjs +33 -78
  128. package/dist/api/k8s/v1/api.gen.d.ts +27 -72
  129. package/dist/api/k8s/v1/api.gen.js +33 -78
  130. package/dist/api/k8s/v1/types.gen.d.ts +743 -506
  131. package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
  132. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
  133. package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
  134. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
  135. package/dist/api/lb/v1/marshalling.gen.cjs +4 -2
  136. package/dist/api/lb/v1/marshalling.gen.js +4 -2
  137. package/dist/api/lb/v1/types.gen.d.ts +4 -0
  138. package/dist/api/marketplace/v2/api.gen.cjs +8 -21
  139. package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
  140. package/dist/api/marketplace/v2/api.gen.js +8 -21
  141. package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
  142. package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
  143. package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
  144. package/dist/api/mnq/v1beta1/api.gen.js +24 -76
  145. package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
  146. package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
  147. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
  148. package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
  149. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
  150. package/dist/api/product_catalog/index.gen.cjs +4 -0
  151. package/dist/api/product_catalog/index.gen.d.ts +5 -0
  152. package/dist/api/product_catalog/index.gen.js +4 -0
  153. package/dist/api/product_catalog/v2alpha1/api.gen.cjs +36 -0
  154. package/dist/api/product_catalog/v2alpha1/api.gen.d.ts +18 -0
  155. package/dist/api/product_catalog/v2alpha1/api.gen.js +36 -0
  156. package/dist/api/product_catalog/v2alpha1/index.gen.cjs +6 -0
  157. package/dist/api/product_catalog/v2alpha1/index.gen.d.ts +3 -0
  158. package/dist/api/product_catalog/v2alpha1/index.gen.js +6 -0
  159. package/dist/api/product_catalog/v2alpha1/marshalling.gen.cjs +230 -0
  160. package/dist/api/product_catalog/v2alpha1/marshalling.gen.d.ts +2 -0
  161. package/dist/api/product_catalog/v2alpha1/marshalling.gen.js +230 -0
  162. package/dist/api/product_catalog/v2alpha1/types.gen.d.ts +293 -0
  163. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.cjs +11 -0
  164. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.d.ts +8 -0
  165. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.js +11 -0
  166. package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
  167. package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
  168. package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
  169. package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
  170. package/dist/api/rdb/v1/api.gen.cjs +62 -202
  171. package/dist/api/rdb/v1/api.gen.d.ts +60 -201
  172. package/dist/api/rdb/v1/api.gen.js +62 -202
  173. package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
  174. package/dist/api/redis/v1/api.gen.cjs +23 -83
  175. package/dist/api/redis/v1/api.gen.d.ts +25 -85
  176. package/dist/api/redis/v1/api.gen.js +23 -83
  177. package/dist/api/redis/v1/types.gen.d.ts +447 -170
  178. package/dist/api/registry/v1/api.gen.cjs +12 -40
  179. package/dist/api/registry/v1/api.gen.d.ts +14 -42
  180. package/dist/api/registry/v1/api.gen.js +12 -40
  181. package/dist/api/registry/v1/types.gen.d.ts +200 -116
  182. package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
  183. package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
  184. package/dist/api/secret/v1beta1/api.gen.js +19 -47
  185. package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
  186. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
  187. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
  188. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
  189. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
  190. package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
  191. package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
  192. package/dist/api/tem/v1alpha1/api.gen.js +22 -58
  193. package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
  194. package/dist/api/test/v1/api.gen.cjs +8 -11
  195. package/dist/api/test/v1/api.gen.d.ts +6 -9
  196. package/dist/api/test/v1/api.gen.js +8 -11
  197. package/dist/api/test/v1/types.gen.d.ts +21 -10
  198. package/dist/api/vpcgw/v1/api.gen.cjs +37 -0
  199. package/dist/api/vpcgw/v1/api.gen.d.ts +37 -0
  200. package/dist/api/vpcgw/v1/api.gen.js +37 -0
  201. package/dist/client/dist/package.json.cjs +1 -1
  202. package/dist/client/dist/package.json.js +1 -1
  203. package/dist/index.cjs +36 -32
  204. package/dist/index.js +36 -32
  205. package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
  206. package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
  207. package/node_modules/@scaleway/sdk-client/package.json +1 -2
  208. package/package.json +2 -2
  209. package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
@@ -33,64 +33,15 @@ const unmarshalContractSignature = (data) => {
33
33
  signedAt: unmarshalDate(data.signed_at)
34
34
  };
35
35
  };
36
- const unmarshalProject = (data) => {
37
- if (!isJSONObject(data)) {
38
- throw new TypeError(
39
- `Unmarshalling the type 'Project' failed as data isn't a dictionary.`
40
- );
41
- }
42
- return {
43
- createdAt: unmarshalDate(data.created_at),
44
- description: data.description,
45
- id: data.id,
46
- name: data.name,
47
- organizationId: data.organization_id,
48
- updatedAt: unmarshalDate(data.updated_at)
49
- };
50
- };
51
- const unmarshalCheckContractSignatureResponse = (data) => {
52
- if (!isJSONObject(data)) {
53
- throw new TypeError(
54
- `Unmarshalling the type 'CheckContractSignatureResponse' failed as data isn't a dictionary.`
55
- );
56
- }
57
- return {
58
- created: data.created,
59
- validated: data.validated
60
- };
61
- };
62
- const unmarshalListContractSignaturesResponse = (data) => {
63
- if (!isJSONObject(data)) {
64
- throw new TypeError(
65
- `Unmarshalling the type 'ListContractSignaturesResponse' failed as data isn't a dictionary.`
66
- );
67
- }
68
- return {
69
- contractSignatures: unmarshalArrayOfObject(
70
- data.contract_signatures,
71
- unmarshalContractSignature
72
- ),
73
- totalCount: data.total_count
74
- };
75
- };
76
- const unmarshalListProjectsResponse = (data) => {
77
- if (!isJSONObject(data)) {
78
- throw new TypeError(
79
- `Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
80
- );
81
- }
82
- return {
83
- projects: unmarshalArrayOfObject(data.projects, unmarshalProject),
84
- totalCount: data.total_count
85
- };
86
- };
87
36
  const unmarshalQualificationAiMachine = (data) => {
88
37
  if (!isJSONObject(data)) {
89
38
  throw new TypeError(
90
39
  `Unmarshalling the type 'QualificationAiMachine' failed as data isn't a dictionary.`
91
40
  );
92
41
  }
93
- return {};
42
+ return {
43
+ subUseCase: data.sub_use_case
44
+ };
94
45
  };
95
46
  const unmarshalQualificationArchiveData = (data) => {
96
47
  if (!isJSONObject(data)) {
@@ -98,7 +49,9 @@ const unmarshalQualificationArchiveData = (data) => {
98
49
  `Unmarshalling the type 'QualificationArchiveData' failed as data isn't a dictionary.`
99
50
  );
100
51
  }
101
- return {};
52
+ return {
53
+ subUseCase: data.sub_use_case
54
+ };
102
55
  };
103
56
  const unmarshalQualificationContainer = (data) => {
104
57
  if (!isJSONObject(data)) {
@@ -106,7 +59,9 @@ const unmarshalQualificationContainer = (data) => {
106
59
  `Unmarshalling the type 'QualificationContainer' failed as data isn't a dictionary.`
107
60
  );
108
61
  }
109
- return {};
62
+ return {
63
+ subUseCase: data.sub_use_case
64
+ };
110
65
  };
111
66
  const unmarshalQualificationDeploySoftware = (data) => {
112
67
  if (!isJSONObject(data)) {
@@ -114,7 +69,9 @@ const unmarshalQualificationDeploySoftware = (data) => {
114
69
  `Unmarshalling the type 'QualificationDeploySoftware' failed as data isn't a dictionary.`
115
70
  );
116
71
  }
117
- return {};
72
+ return {
73
+ subUseCase: data.sub_use_case
74
+ };
118
75
  };
119
76
  const unmarshalQualificationHostApplication = (data) => {
120
77
  if (!isJSONObject(data)) {
@@ -142,7 +99,9 @@ const unmarshalQualificationOtherUseCase = (data) => {
142
99
  `Unmarshalling the type 'QualificationOtherUseCase' failed as data isn't a dictionary.`
143
100
  );
144
101
  }
145
- return {};
102
+ return {
103
+ subUseCase: data.sub_use_case
104
+ };
146
105
  };
147
106
  const unmarshalQualificationSetScalewayEnvironment = (data) => {
148
107
  if (!isJSONObject(data)) {
@@ -150,7 +109,9 @@ const unmarshalQualificationSetScalewayEnvironment = (data) => {
150
109
  `Unmarshalling the type 'QualificationSetScalewayEnvironment' failed as data isn't a dictionary.`
151
110
  );
152
111
  }
153
- return {};
112
+ return {
113
+ subUseCase: data.sub_use_case
114
+ };
154
115
  };
155
116
  const unmarshalQualificationShareData = (data) => {
156
117
  if (!isJSONObject(data)) {
@@ -158,7 +119,9 @@ const unmarshalQualificationShareData = (data) => {
158
119
  `Unmarshalling the type 'QualificationShareData' failed as data isn't a dictionary.`
159
120
  );
160
121
  }
161
- return {};
122
+ return {
123
+ subUseCase: data.sub_use_case
124
+ };
162
125
  };
163
126
  const unmarshalQualification = (data) => {
164
127
  if (!isJSONObject(data)) {
@@ -181,6 +144,58 @@ const unmarshalQualification = (data) => {
181
144
  shareData: data.share_data ? unmarshalQualificationShareData(data.share_data) : void 0
182
145
  };
183
146
  };
147
+ const unmarshalProject = (data) => {
148
+ if (!isJSONObject(data)) {
149
+ throw new TypeError(
150
+ `Unmarshalling the type 'Project' failed as data isn't a dictionary.`
151
+ );
152
+ }
153
+ return {
154
+ createdAt: unmarshalDate(data.created_at),
155
+ description: data.description,
156
+ id: data.id,
157
+ name: data.name,
158
+ organizationId: data.organization_id,
159
+ qualification: data.qualification ? unmarshalQualification(data.qualification) : void 0,
160
+ updatedAt: unmarshalDate(data.updated_at)
161
+ };
162
+ };
163
+ const unmarshalCheckContractSignatureResponse = (data) => {
164
+ if (!isJSONObject(data)) {
165
+ throw new TypeError(
166
+ `Unmarshalling the type 'CheckContractSignatureResponse' failed as data isn't a dictionary.`
167
+ );
168
+ }
169
+ return {
170
+ created: data.created,
171
+ validated: data.validated
172
+ };
173
+ };
174
+ const unmarshalListContractSignaturesResponse = (data) => {
175
+ if (!isJSONObject(data)) {
176
+ throw new TypeError(
177
+ `Unmarshalling the type 'ListContractSignaturesResponse' failed as data isn't a dictionary.`
178
+ );
179
+ }
180
+ return {
181
+ contractSignatures: unmarshalArrayOfObject(
182
+ data.contract_signatures,
183
+ unmarshalContractSignature
184
+ ),
185
+ totalCount: data.total_count
186
+ };
187
+ };
188
+ const unmarshalListProjectsResponse = (data) => {
189
+ if (!isJSONObject(data)) {
190
+ throw new TypeError(
191
+ `Unmarshalling the type 'ListProjectsResponse' failed as data isn't a dictionary.`
192
+ );
193
+ }
194
+ return {
195
+ projects: unmarshalArrayOfObject(data.projects, unmarshalProject),
196
+ totalCount: data.total_count
197
+ };
198
+ };
184
199
  const unmarshalProjectQualification = (data) => {
185
200
  if (!isJSONObject(data)) {
186
201
  throw new TypeError(
@@ -208,19 +223,33 @@ const marshalProjectApiCreateProjectRequest = (request, defaults) => ({
208
223
  name: request.name || randomName("proj"),
209
224
  organization_id: request.organizationId ?? defaults.defaultOrganizationId
210
225
  });
211
- const marshalQualificationAiMachine = (request, defaults) => ({});
212
- const marshalQualificationArchiveData = (request, defaults) => ({});
213
- const marshalQualificationContainer = (request, defaults) => ({});
214
- const marshalQualificationDeploySoftware = (request, defaults) => ({});
226
+ const marshalQualificationAiMachine = (request, defaults) => ({
227
+ sub_use_case: request.subUseCase
228
+ });
229
+ const marshalQualificationArchiveData = (request, defaults) => ({
230
+ sub_use_case: request.subUseCase
231
+ });
232
+ const marshalQualificationContainer = (request, defaults) => ({
233
+ sub_use_case: request.subUseCase
234
+ });
235
+ const marshalQualificationDeploySoftware = (request, defaults) => ({
236
+ sub_use_case: request.subUseCase
237
+ });
215
238
  const marshalQualificationHostApplication = (request, defaults) => ({
216
239
  sub_use_case: request.subUseCase
217
240
  });
218
241
  const marshalQualificationHostWebsite = (request, defaults) => ({
219
242
  sub_use_case: request.subUseCase
220
243
  });
221
- const marshalQualificationOtherUseCase = (request, defaults) => ({});
222
- const marshalQualificationSetScalewayEnvironment = (request, defaults) => ({});
223
- const marshalQualificationShareData = (request, defaults) => ({});
244
+ const marshalQualificationOtherUseCase = (request, defaults) => ({
245
+ sub_use_case: request.subUseCase
246
+ });
247
+ const marshalQualificationSetScalewayEnvironment = (request, defaults) => ({
248
+ sub_use_case: request.subUseCase
249
+ });
250
+ const marshalQualificationShareData = (request, defaults) => ({
251
+ sub_use_case: request.subUseCase
252
+ });
224
253
  const marshalQualification = (request, defaults) => ({
225
254
  architecture_type: request.architectureType,
226
255
  ...resolveOneOf([
@@ -2,30 +2,27 @@ import type { LanguageCode as StdLanguageCode } from '../../std/types.gen';
2
2
  export type ContractType = 'unknown_type' | 'global' | 'k8s' | 'instance' | 'container' | 'baremetal';
3
3
  export type ListContractSignaturesRequestOrderBy = 'signed_at_asc' | 'signed_at_desc' | 'expires_at_asc' | 'expires_at_desc' | 'name_asc' | 'name_desc';
4
4
  export type ListProjectsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
5
+ export type QualificationAiMachineSubUseCase = 'unknown_sub_use_case';
5
6
  export type QualificationArchitectureType = 'unknown_architecture_type' | 'object_storage' | 'web_hosting' | 'instance' | 'elastic' | 'kubernetes' | 'serverless' | 'dedicated_server' | 'other_architecture_type';
7
+ export type QualificationArchiveDataSubUseCase = 'unknown_sub_use_case';
8
+ export type QualificationContainerSubUseCase = 'unknown_sub_use_case';
9
+ export type QualificationDeploySoftwareSubUseCase = 'unknown_sub_use_case';
6
10
  export type QualificationHostApplicationSubUseCase = 'unknown_sub_use_case' | 'saas_app' | 'government_app';
7
11
  export type QualificationHostWebsiteSubUseCase = 'unknown_sub_use_case' | 'information_website' | 'ecommerce_website' | 'high_website' | 'other_sub_use_case';
8
- export interface Contract {
9
- /** ID of the contract. */
10
- id: string;
11
- /** The type of the contract. */
12
- type: ContractType;
13
- /** The name of the contract. */
14
- name: string;
15
- /** The version of the contract. */
16
- version: number;
17
- /** The creation date of the contract. */
18
- createdAt?: Date;
19
- /** The last modification date of the contract. */
20
- updatedAt?: Date;
21
- }
12
+ export type QualificationOtherUseCaseSubUseCase = 'unknown_sub_use_case';
13
+ export type QualificationSetScalewayEnvironmentSubUseCase = 'unknown_sub_use_case';
14
+ export type QualificationShareDataSubUseCase = 'unknown_sub_use_case';
22
15
  export interface QualificationAiMachine {
16
+ subUseCase: QualificationAiMachineSubUseCase;
23
17
  }
24
18
  export interface QualificationArchiveData {
19
+ subUseCase: QualificationArchiveDataSubUseCase;
25
20
  }
26
21
  export interface QualificationContainer {
22
+ subUseCase: QualificationContainerSubUseCase;
27
23
  }
28
24
  export interface QualificationDeploySoftware {
25
+ subUseCase: QualificationDeploySoftwareSubUseCase;
29
26
  }
30
27
  export interface QualificationHostApplication {
31
28
  subUseCase: QualificationHostApplicationSubUseCase;
@@ -34,203 +31,326 @@ export interface QualificationHostWebsite {
34
31
  subUseCase: QualificationHostWebsiteSubUseCase;
35
32
  }
36
33
  export interface QualificationOtherUseCase {
34
+ subUseCase: QualificationOtherUseCaseSubUseCase;
37
35
  }
38
36
  export interface QualificationSetScalewayEnvironment {
37
+ subUseCase: QualificationSetScalewayEnvironmentSubUseCase;
39
38
  }
40
39
  export interface QualificationShareData {
40
+ subUseCase: QualificationShareDataSubUseCase;
41
41
  }
42
- export interface ContractSignature {
43
- /** ID of the contract signature. */
44
- id: string;
45
- /** The Organization ID which signed the contract. */
46
- organizationId: string;
47
- /** The creation date of the contract signature. */
48
- createdAt?: Date;
49
- /** The signing date of the contract signature. */
50
- signedAt?: Date;
51
- /** The expiration date of the contract signature. */
52
- expiresAt?: Date;
53
- /** The contract signed. */
54
- contract?: Contract;
55
- }
56
- export interface Project {
57
- /** ID of the Project. */
42
+ export interface Contract {
43
+ /**
44
+ * ID of the contract.
45
+ */
58
46
  id: string;
59
- /** Name of the Project. */
47
+ /**
48
+ * The type of the contract.
49
+ */
50
+ type: ContractType;
51
+ /**
52
+ * The name of the contract.
53
+ */
60
54
  name: string;
61
- /** Organization ID of the Project. */
62
- organizationId: string;
63
- /** Creation date of the Project. */
55
+ /**
56
+ * The version of the contract.
57
+ */
58
+ version: number;
59
+ /**
60
+ * The creation date of the contract.
61
+ */
64
62
  createdAt?: Date;
65
- /** Update date of the Project. */
63
+ /**
64
+ * The last modification date of the contract.
65
+ */
66
66
  updatedAt?: Date;
67
- /** Description of the Project. */
68
- description: string;
69
67
  }
70
68
  export interface Qualification {
71
- /** Architecture type of the qualification. */
69
+ /**
70
+ * Architecture type of the qualification.
71
+ */
72
72
  architectureType: QualificationArchitectureType;
73
73
  /**
74
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
75
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
76
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
74
+ *
75
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
77
76
  */
78
77
  hostWebsite?: QualificationHostWebsite;
79
78
  /**
80
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
81
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
82
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
79
+ *
80
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
83
81
  */
84
82
  hostApplication?: QualificationHostApplication;
85
83
  /**
86
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
87
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
88
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
84
+ *
85
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
89
86
  */
90
87
  deploySoftware?: QualificationDeploySoftware;
91
88
  /**
92
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
93
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
94
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
89
+ *
90
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
95
91
  */
96
92
  setScalewayEnvironment?: QualificationSetScalewayEnvironment;
97
93
  /**
98
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
99
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
100
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
94
+ *
95
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
101
96
  */
102
97
  aiMachine?: QualificationAiMachine;
103
98
  /**
104
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
105
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
106
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
99
+ *
100
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
107
101
  */
108
102
  container?: QualificationContainer;
109
103
  /**
110
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
111
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
112
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
104
+ *
105
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
113
106
  */
114
107
  archiveData?: QualificationArchiveData;
115
108
  /**
116
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
117
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
118
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
109
+ *
110
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
119
111
  */
120
112
  shareData?: QualificationShareData;
121
113
  /**
122
- * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication',
123
- * 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container',
124
- * 'archiveData', 'shareData', 'otherUseCase' could be set.
114
+ *
115
+ * One-of ('useCase'): at most one of 'hostWebsite', 'hostApplication', 'deploySoftware', 'setScalewayEnvironment', 'aiMachine', 'container', 'archiveData', 'shareData', 'otherUseCase' could be set.
125
116
  */
126
117
  otherUseCase?: QualificationOtherUseCase;
127
118
  }
119
+ export interface ContractSignature {
120
+ /**
121
+ * ID of the contract signature.
122
+ */
123
+ id: string;
124
+ /**
125
+ * The Organization ID which signed the contract.
126
+ */
127
+ organizationId: string;
128
+ /**
129
+ * The creation date of the contract signature.
130
+ */
131
+ createdAt?: Date;
132
+ /**
133
+ * The signing date of the contract signature.
134
+ */
135
+ signedAt?: Date;
136
+ /**
137
+ * The expiration date of the contract signature.
138
+ */
139
+ expiresAt?: Date;
140
+ /**
141
+ * The contract signed.
142
+ */
143
+ contract?: Contract;
144
+ }
145
+ export interface Project {
146
+ /**
147
+ * ID of the Project.
148
+ */
149
+ id: string;
150
+ /**
151
+ * Name of the Project.
152
+ */
153
+ name: string;
154
+ /**
155
+ * Organization ID of the Project.
156
+ */
157
+ organizationId: string;
158
+ /**
159
+ * Creation date of the Project.
160
+ */
161
+ createdAt?: Date;
162
+ /**
163
+ * Update date of the Project.
164
+ */
165
+ updatedAt?: Date;
166
+ /**
167
+ * Description of the Project.
168
+ */
169
+ description: string;
170
+ /**
171
+ * Qualification of the Project.
172
+ */
173
+ qualification?: Qualification;
174
+ }
128
175
  export interface CheckContractSignatureResponse {
129
- /** Whether a signature has been requested for this contract. */
176
+ /**
177
+ * Whether a signature has been requested for this contract.
178
+ */
130
179
  created: boolean;
131
- /** Whether the signature for this contract has been validated. */
180
+ /**
181
+ * Whether the signature for this contract has been validated.
182
+ */
132
183
  validated: boolean;
133
184
  }
134
185
  export type ContractApiCheckContractSignatureRequest = {
135
- /** ID of the Organization to check the contract signature for. */
186
+ /**
187
+ * ID of the Organization to check the contract signature for.
188
+ */
136
189
  organizationId?: string;
137
- /** Filter on contract type. */
190
+ /**
191
+ * Filter on contract type.
192
+ */
138
193
  contractType?: ContractType;
139
- /** Filter on contract name. */
194
+ /**
195
+ * Filter on contract name.
196
+ */
140
197
  contractName: string;
141
198
  };
142
199
  export type ContractApiCreateContractSignatureRequest = {
143
- /** The type of the contract. */
200
+ /**
201
+ * The type of the contract.
202
+ */
144
203
  contractType?: ContractType;
145
- /** The name of the contract. */
204
+ /**
205
+ * The name of the contract.
206
+ */
146
207
  contractName: string;
147
- /** Whether the contract is validated at creation. */
208
+ /**
209
+ * Whether the contract is validated at creation.
210
+ */
148
211
  validated: boolean;
149
- /** ID of the Organization. */
212
+ /**
213
+ * ID of the Organization.
214
+ */
150
215
  organizationId?: string;
151
216
  };
152
217
  export type ContractApiDownloadContractSignatureRequest = {
153
- /** The contract signature ID. */
218
+ /**
219
+ * The contract signature ID.
220
+ */
154
221
  contractSignatureId: string;
155
- /** The locale requested for the content of the contract. */
222
+ /**
223
+ * The locale requested for the content of the contract.
224
+ */
156
225
  locale?: StdLanguageCode;
157
226
  };
158
227
  export type ContractApiListContractSignaturesRequest = {
159
- /** The page number for the returned contracts. */
228
+ /**
229
+ * The page number for the returned contracts.
230
+ */
160
231
  page?: number;
161
- /** The maximum number of contracts per page. */
232
+ /**
233
+ * The maximum number of contracts per page.
234
+ */
162
235
  pageSize?: number;
163
- /** How the contracts are ordered in the response. */
236
+ /**
237
+ * How the contracts are ordered in the response.
238
+ */
164
239
  orderBy?: ListContractSignaturesRequestOrderBy;
165
- /** Filter on Organization ID. */
240
+ /**
241
+ * Filter on Organization ID.
242
+ */
166
243
  organizationId?: string;
167
244
  };
168
245
  export type ContractApiValidateContractSignatureRequest = {
169
- /** The contract linked to your Organization you want to sign. */
246
+ /**
247
+ * The contract linked to your Organization you want to sign.
248
+ */
170
249
  contractSignatureId: string;
171
250
  };
172
251
  export interface ListContractSignaturesResponse {
173
- /** The total number of contract signatures. */
252
+ /**
253
+ * The total number of contract signatures.
254
+ */
174
255
  totalCount: number;
175
- /** The paginated returned contract signatures. */
256
+ /**
257
+ * The paginated returned contract signatures.
258
+ */
176
259
  contractSignatures: ContractSignature[];
177
260
  }
178
261
  export interface ListProjectsResponse {
179
- /** Total number of Projects. */
262
+ /**
263
+ * Total number of Projects.
264
+ */
180
265
  totalCount: number;
181
- /** Paginated returned Projects. */
266
+ /**
267
+ * Paginated returned Projects.
268
+ */
182
269
  projects: Project[];
183
270
  }
184
271
  export type ProjectApiCreateProjectRequest = {
185
- /** Name of the Project. */
272
+ /**
273
+ * Name of the Project.
274
+ */
186
275
  name?: string;
187
- /** Organization ID of the Project. */
276
+ /**
277
+ * Organization ID of the Project.
278
+ */
188
279
  organizationId?: string;
189
- /** Description of the Project. */
280
+ /**
281
+ * Description of the Project.
282
+ */
190
283
  description: string;
191
284
  };
192
285
  export type ProjectApiDeleteProjectRequest = {
193
- /** Project ID of the Project. */
286
+ /**
287
+ * Project ID of the Project.
288
+ */
194
289
  projectId?: string;
195
290
  };
196
291
  export type ProjectApiGetProjectRequest = {
197
- /** Project ID of the Project. */
292
+ /**
293
+ * Project ID of the Project.
294
+ */
198
295
  projectId?: string;
199
296
  };
200
297
  export type ProjectApiListProjectsRequest = {
201
- /** Organization ID of the Project. */
298
+ /**
299
+ * Organization ID of the Project.
300
+ */
202
301
  organizationId?: string;
203
- /** Name of the Project. */
302
+ /**
303
+ * Name of the Project.
304
+ */
204
305
  name?: string;
205
- /** Page number for the returned Projects. */
306
+ /**
307
+ * Page number for the returned Projects.
308
+ */
206
309
  page?: number;
207
- /** Maximum number of Project per page. */
310
+ /**
311
+ * Maximum number of Project per page.
312
+ */
208
313
  pageSize?: number;
209
- /** Sort order of the returned Projects. */
314
+ /**
315
+ * Sort order of the returned Projects.
316
+ */
210
317
  orderBy?: ListProjectsRequestOrderBy;
211
318
  /**
212
- * Project IDs to filter for. The results will be limited to any Projects with
213
- * an ID in this array.
319
+ * Project IDs to filter for. The results will be limited to any Projects with an ID in this array.
214
320
  */
215
321
  projectIds?: string[];
216
322
  };
217
323
  export type ProjectApiSetProjectQualificationRequest = {
218
- /** Project ID. */
324
+ /**
325
+ * Project ID.
326
+ */
219
327
  projectId?: string;
220
- /** Use case chosen for the Project. */
328
+ /**
329
+ * Use case chosen for the Project.
330
+ */
221
331
  qualification?: Qualification;
222
332
  };
223
333
  export type ProjectApiUpdateProjectRequest = {
224
- /** Project ID of the Project. */
334
+ /**
335
+ * Project ID of the Project.
336
+ */
225
337
  projectId?: string;
226
- /** Name of the Project. */
338
+ /**
339
+ * Name of the Project.
340
+ */
227
341
  name?: string;
228
- /** Description of the Project. */
342
+ /**
343
+ * Description of the Project.
344
+ */
229
345
  description?: string;
230
346
  };
231
347
  export interface ProjectQualification {
232
- /** Project ID. */
348
+ /**
349
+ * Project ID.
350
+ */
233
351
  projectId: string;
234
- /** Qualification of the Project. */
352
+ /**
353
+ * Qualification of the Project.
354
+ */
235
355
  qualification?: Qualification;
236
356
  }