@scaleway/sdk 2.46.0 → 2.48.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 (193) hide show
  1. package/dist/api/baremetal/v1/api.gen.cjs +36 -1
  2. package/dist/api/baremetal/v1/api.gen.d.ts +17 -1
  3. package/dist/api/baremetal/v1/api.gen.js +37 -2
  4. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  5. package/dist/api/baremetal/v1/marshalling.gen.cjs +200 -0
  6. package/dist/api/baremetal/v1/marshalling.gen.d.ts +4 -1
  7. package/dist/api/baremetal/v1/marshalling.gen.js +200 -0
  8. package/dist/api/baremetal/v1/types.gen.d.ts +74 -0
  9. package/dist/api/billing/v2alpha1/marshalling.gen.cjs +1 -0
  10. package/dist/api/billing/v2alpha1/marshalling.gen.js +1 -0
  11. package/dist/api/billing/v2alpha1/types.gen.d.ts +2 -0
  12. package/dist/api/billing/v2beta1/marshalling.gen.cjs +1 -0
  13. package/dist/api/billing/v2beta1/marshalling.gen.js +1 -0
  14. package/dist/api/billing/v2beta1/types.gen.d.ts +2 -0
  15. package/dist/api/edge_services/v1alpha1/api.gen.cjs +636 -0
  16. package/dist/api/edge_services/v1alpha1/api.gen.d.ts +5 -1
  17. package/dist/api/edge_services/v1alpha1/api.gen.js +636 -0
  18. package/dist/api/edge_services/v1alpha1/content.gen.cjs +8 -0
  19. package/dist/api/edge_services/v1alpha1/content.gen.js +8 -0
  20. package/dist/api/edge_services/v1alpha1/index.gen.cjs +7 -0
  21. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  22. package/dist/api/edge_services/v1alpha1/index.gen.js +7 -0
  23. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +474 -0
  24. package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +5 -2
  25. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +474 -0
  26. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +51 -28
  27. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +1 -0
  28. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
  29. package/dist/api/iam/v1alpha1/types.gen.d.ts +2 -0
  30. package/dist/api/index.d.ts +65 -35
  31. package/dist/api/inference/v1beta1/api.gen.cjs +306 -0
  32. package/dist/api/inference/v1beta1/api.gen.js +306 -0
  33. package/dist/api/inference/v1beta1/content.gen.cjs +8 -0
  34. package/dist/api/inference/v1beta1/content.gen.js +8 -0
  35. package/dist/api/inference/v1beta1/index.gen.cjs +8 -0
  36. package/dist/api/inference/v1beta1/index.gen.js +8 -0
  37. package/dist/api/inference/v1beta1/marshalling.gen.cjs +273 -0
  38. package/dist/api/inference/v1beta1/marshalling.gen.js +273 -0
  39. package/dist/api/inference/v1beta1/validation-rules.gen.cjs +56 -0
  40. package/dist/api/inference/v1beta1/validation-rules.gen.js +56 -0
  41. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  42. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  43. package/dist/api/k8s/v1/types.gen.d.ts +2 -0
  44. package/dist/api/k8s/v1/validation-rules.gen.cjs +63 -0
  45. package/dist/api/k8s/v1/validation-rules.gen.d.ts +60 -0
  46. package/dist/api/k8s/v1/validation-rules.gen.js +64 -1
  47. package/dist/api/mnq/index.gen.cjs +4 -0
  48. package/dist/api/mnq/index.gen.js +4 -0
  49. package/dist/api/qaas/v1alpha1/api.gen.cjs +527 -0
  50. package/dist/api/qaas/v1alpha1/api.gen.js +527 -0
  51. package/dist/api/qaas/v1alpha1/content.gen.cjs +19 -0
  52. package/dist/api/qaas/v1alpha1/content.gen.js +19 -0
  53. package/dist/api/qaas/v1alpha1/index.gen.cjs +10 -0
  54. package/dist/api/qaas/v1alpha1/index.gen.js +10 -0
  55. package/dist/api/qaas/v1alpha1/marshalling.gen.cjs +320 -0
  56. package/dist/api/qaas/v1alpha1/marshalling.gen.js +320 -0
  57. package/dist/api/qaas/v1alpha1/validation-rules.gen.cjs +14 -0
  58. package/dist/api/qaas/v1alpha1/validation-rules.gen.js +14 -0
  59. package/dist/api/tem/index.gen.cjs +4 -0
  60. package/dist/api/tem/index.gen.js +4 -0
  61. package/dist/api/tem/v1alpha1/api.gen.cjs +32 -0
  62. package/dist/api/tem/v1alpha1/api.gen.d.ts +17 -1
  63. package/dist/api/tem/v1alpha1/api.gen.js +33 -1
  64. package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
  65. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +36 -0
  66. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +3 -1
  67. package/dist/api/tem/v1alpha1/marshalling.gen.js +36 -0
  68. package/dist/api/tem/v1alpha1/types.gen.d.ts +51 -0
  69. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +11 -0
  70. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +10 -0
  71. package/dist/api/tem/v1alpha1/validation-rules.gen.js +11 -0
  72. package/dist/api/webhosting/index.gen.cjs +6 -0
  73. package/dist/api/webhosting/index.gen.js +6 -0
  74. package/dist/api/webhosting/v1/api.gen.cjs +620 -0
  75. package/dist/api/webhosting/v1/api.gen.js +620 -0
  76. package/dist/api/webhosting/v1/content.gen.cjs +14 -0
  77. package/dist/api/webhosting/v1/content.gen.js +14 -0
  78. package/dist/api/webhosting/v1/index.gen.cjs +15 -0
  79. package/dist/api/webhosting/v1/index.gen.js +15 -0
  80. package/dist/api/webhosting/v1/marshalling.gen.cjs +391 -0
  81. package/dist/api/webhosting/v1/marshalling.gen.js +391 -0
  82. package/dist/api/webhosting/v1/types.gen.d.ts +5 -0
  83. package/dist/api/webhosting/v1/validation-rules.gen.cjs +82 -0
  84. package/dist/api/webhosting/v1/validation-rules.gen.js +82 -0
  85. package/dist/index.cjs +92 -70
  86. package/dist/index.js +92 -70
  87. package/dist/scw/constants.cjs +1 -1
  88. package/dist/scw/constants.d.ts +2 -2
  89. package/dist/scw/constants.js +1 -1
  90. package/package.json +2 -2
  91. package/dist/api/account/index.d.ts +0 -2
  92. package/dist/api/applesilicon/index.d.ts +0 -1
  93. package/dist/api/baremetal/index.d.ts +0 -1
  94. package/dist/api/billing/index.d.ts +0 -2
  95. package/dist/api/block/index.d.ts +0 -1
  96. package/dist/api/cockpit/index.d.ts +0 -2
  97. package/dist/api/container/index.d.ts +0 -1
  98. package/dist/api/dedibox/index.d.ts +0 -1
  99. package/dist/api/document_db/index.d.ts +0 -1
  100. package/dist/api/domain/index.d.ts +0 -1
  101. package/dist/api/edge_services/index.d.ts +0 -1
  102. package/dist/api/flexibleip/index.d.ts +0 -1
  103. package/dist/api/function/index.d.ts +0 -1
  104. package/dist/api/iam/index.d.ts +0 -1
  105. package/dist/api/instance/index.d.ts +0 -1
  106. package/dist/api/iot/index.d.ts +0 -1
  107. package/dist/api/ipam/index.d.ts +0 -1
  108. package/dist/api/ipfs/index.d.ts +0 -1
  109. package/dist/api/jobs/index.d.ts +0 -1
  110. package/dist/api/k8s/index.d.ts +0 -1
  111. package/dist/api/key_manager/index.d.ts +0 -1
  112. package/dist/api/lb/index.d.ts +0 -1
  113. package/dist/api/llm_inference/index.d.ts +0 -1
  114. package/dist/api/marketplace/index.d.ts +0 -1
  115. package/dist/api/mnq/index.d.ts +0 -1
  116. package/dist/api/rdb/index.d.ts +0 -1
  117. package/dist/api/redis/index.d.ts +0 -1
  118. package/dist/api/registry/index.d.ts +0 -1
  119. package/dist/api/secret/index.d.ts +0 -2
  120. package/dist/api/serverless_sqldb/index.d.ts +0 -1
  121. package/dist/api/tem/index.d.ts +0 -1
  122. package/dist/api/test/index.d.ts +0 -1
  123. package/dist/api/vpc/index.d.ts +0 -2
  124. package/dist/api/vpcgw/index.d.ts +0 -1
  125. package/dist/api/webhosting/index.d.ts +0 -1
  126. /package/dist/api/account/{index.cjs → index.gen.cjs} +0 -0
  127. /package/dist/api/account/{index.js → index.gen.js} +0 -0
  128. /package/dist/api/applesilicon/{index.cjs → index.gen.cjs} +0 -0
  129. /package/dist/api/applesilicon/{index.js → index.gen.js} +0 -0
  130. /package/dist/api/baremetal/{index.cjs → index.gen.cjs} +0 -0
  131. /package/dist/api/baremetal/{index.js → index.gen.js} +0 -0
  132. /package/dist/api/billing/{index.cjs → index.gen.cjs} +0 -0
  133. /package/dist/api/billing/{index.js → index.gen.js} +0 -0
  134. /package/dist/api/block/{index.cjs → index.gen.cjs} +0 -0
  135. /package/dist/api/block/{index.js → index.gen.js} +0 -0
  136. /package/dist/api/cockpit/{index.cjs → index.gen.cjs} +0 -0
  137. /package/dist/api/cockpit/{index.js → index.gen.js} +0 -0
  138. /package/dist/api/container/{index.cjs → index.gen.cjs} +0 -0
  139. /package/dist/api/container/{index.js → index.gen.js} +0 -0
  140. /package/dist/api/dedibox/{index.cjs → index.gen.cjs} +0 -0
  141. /package/dist/api/dedibox/{index.js → index.gen.js} +0 -0
  142. /package/dist/api/document_db/{index.cjs → index.gen.cjs} +0 -0
  143. /package/dist/api/document_db/{index.js → index.gen.js} +0 -0
  144. /package/dist/api/domain/{index.cjs → index.gen.cjs} +0 -0
  145. /package/dist/api/domain/{index.js → index.gen.js} +0 -0
  146. /package/dist/api/{flexibleip/index.cjs → edge_services/index.gen.cjs} +0 -0
  147. /package/dist/api/{flexibleip/index.js → edge_services/index.gen.js} +0 -0
  148. /package/dist/api/{iam/index.cjs → flexibleip/index.gen.cjs} +0 -0
  149. /package/dist/api/{iam/index.js → flexibleip/index.gen.js} +0 -0
  150. /package/dist/api/function/{index.cjs → index.gen.cjs} +0 -0
  151. /package/dist/api/function/{index.js → index.gen.js} +0 -0
  152. /package/dist/api/{ipfs/index.cjs → iam/index.gen.cjs} +0 -0
  153. /package/dist/api/{ipfs/index.js → iam/index.gen.js} +0 -0
  154. /package/dist/api/{llm_inference/index.cjs → inference/index.gen.cjs} +0 -0
  155. /package/dist/api/{llm_inference/index.js → inference/index.gen.js} +0 -0
  156. /package/dist/api/instance/{index.cjs → index.gen.cjs} +0 -0
  157. /package/dist/api/instance/{index.js → index.gen.js} +0 -0
  158. /package/dist/api/iot/{index.cjs → index.gen.cjs} +0 -0
  159. /package/dist/api/iot/{index.js → index.gen.js} +0 -0
  160. /package/dist/api/ipam/{index.cjs → index.gen.cjs} +0 -0
  161. /package/dist/api/ipam/{index.js → index.gen.js} +0 -0
  162. /package/dist/api/{jobs/index.cjs → ipfs/index.gen.cjs} +0 -0
  163. /package/dist/api/{jobs/index.js → ipfs/index.gen.js} +0 -0
  164. /package/dist/api/{key_manager/index.cjs → jobs/index.gen.cjs} +0 -0
  165. /package/dist/api/{key_manager/index.js → jobs/index.gen.js} +0 -0
  166. /package/dist/api/k8s/{index.cjs → index.gen.cjs} +0 -0
  167. /package/dist/api/k8s/{index.js → index.gen.js} +0 -0
  168. /package/dist/api/{serverless_sqldb/index.cjs → key_manager/index.gen.cjs} +0 -0
  169. /package/dist/api/{serverless_sqldb/index.js → key_manager/index.gen.js} +0 -0
  170. /package/dist/api/lb/{index.cjs → index.gen.cjs} +0 -0
  171. /package/dist/api/lb/{index.js → index.gen.js} +0 -0
  172. /package/dist/api/{mnq/index.cjs → llm_inference/index.gen.cjs} +0 -0
  173. /package/dist/api/{mnq/index.js → llm_inference/index.gen.js} +0 -0
  174. /package/dist/api/marketplace/{index.cjs → index.gen.cjs} +0 -0
  175. /package/dist/api/marketplace/{index.js → index.gen.js} +0 -0
  176. /package/dist/api/{tem/index.cjs → qaas/index.gen.cjs} +0 -0
  177. /package/dist/api/{tem/index.js → qaas/index.gen.js} +0 -0
  178. /package/dist/api/rdb/{index.cjs → index.gen.cjs} +0 -0
  179. /package/dist/api/rdb/{index.js → index.gen.js} +0 -0
  180. /package/dist/api/redis/{index.cjs → index.gen.cjs} +0 -0
  181. /package/dist/api/redis/{index.js → index.gen.js} +0 -0
  182. /package/dist/api/registry/{index.cjs → index.gen.cjs} +0 -0
  183. /package/dist/api/registry/{index.js → index.gen.js} +0 -0
  184. /package/dist/api/secret/{index.cjs → index.gen.cjs} +0 -0
  185. /package/dist/api/secret/{index.js → index.gen.js} +0 -0
  186. /package/dist/api/{webhosting/index.cjs → serverless_sqldb/index.gen.cjs} +0 -0
  187. /package/dist/api/{webhosting/index.js → serverless_sqldb/index.gen.js} +0 -0
  188. /package/dist/api/test/{index.cjs → index.gen.cjs} +0 -0
  189. /package/dist/api/test/{index.js → index.gen.js} +0 -0
  190. /package/dist/api/vpc/{index.cjs → index.gen.cjs} +0 -0
  191. /package/dist/api/vpc/{index.js → index.gen.js} +0 -0
  192. /package/dist/api/vpcgw/{index.cjs → index.gen.cjs} +0 -0
  193. /package/dist/api/vpcgw/{index.js → index.gen.js} +0 -0
@@ -0,0 +1,273 @@
1
+ import randomName from "@scaleway/random-name";
2
+ import { isJSONObject } from "../../../helpers/json.js";
3
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from "../../../helpers/marshalling.js";
4
+ import "../../../vendor/base64/index.js";
5
+ const unmarshalEndpointPrivateNetworkDetails = (data) => {
6
+ if (!isJSONObject(data)) {
7
+ throw new TypeError(
8
+ `Unmarshalling the type 'EndpointPrivateNetworkDetails' failed as data isn't a dictionary.`
9
+ );
10
+ }
11
+ return {
12
+ privateNetworkId: data.private_network_id
13
+ };
14
+ };
15
+ const unmarshalEndpointPublicAccessDetails = (data) => {
16
+ if (!isJSONObject(data)) {
17
+ throw new TypeError(
18
+ `Unmarshalling the type 'EndpointPublicAccessDetails' failed as data isn't a dictionary.`
19
+ );
20
+ }
21
+ return {};
22
+ };
23
+ const unmarshalEndpoint = (data) => {
24
+ if (!isJSONObject(data)) {
25
+ throw new TypeError(
26
+ `Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`
27
+ );
28
+ }
29
+ return {
30
+ disableAuth: data.disable_auth,
31
+ id: data.id,
32
+ privateNetwork: data.private_network ? unmarshalEndpointPrivateNetworkDetails(data.private_network) : void 0,
33
+ publicAccess: data.public_access ? unmarshalEndpointPublicAccessDetails(data.public_access) : void 0,
34
+ url: data.url
35
+ };
36
+ };
37
+ const unmarshalDeployment = (data) => {
38
+ if (!isJSONObject(data)) {
39
+ throw new TypeError(
40
+ `Unmarshalling the type 'Deployment' failed as data isn't a dictionary.`
41
+ );
42
+ }
43
+ return {
44
+ createdAt: unmarshalDate(data.created_at),
45
+ endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
46
+ errorMessage: data.error_message,
47
+ id: data.id,
48
+ maxSize: data.max_size,
49
+ minSize: data.min_size,
50
+ modelId: data.model_id,
51
+ modelName: data.model_name,
52
+ name: data.name,
53
+ nodeType: data.node_type,
54
+ projectId: data.project_id,
55
+ region: data.region,
56
+ size: data.size,
57
+ status: data.status,
58
+ tags: data.tags,
59
+ updatedAt: unmarshalDate(data.updated_at)
60
+ };
61
+ };
62
+ const unmarshalModelS3Model = (data) => {
63
+ if (!isJSONObject(data)) {
64
+ throw new TypeError(
65
+ `Unmarshalling the type 'ModelS3Model' failed as data isn't a dictionary.`
66
+ );
67
+ }
68
+ return {
69
+ nodeType: data.node_type,
70
+ pythonDependencies: data.python_dependencies,
71
+ s3Url: data.s3_url,
72
+ tritonServerVersion: data.triton_server_version
73
+ };
74
+ };
75
+ const unmarshalModel = (data) => {
76
+ if (!isJSONObject(data)) {
77
+ throw new TypeError(
78
+ `Unmarshalling the type 'Model' failed as data isn't a dictionary.`
79
+ );
80
+ }
81
+ return {
82
+ compatibleNodeTypes: data.compatible_node_types,
83
+ createdAt: unmarshalDate(data.created_at),
84
+ description: data.description,
85
+ hasEula: data.has_eula,
86
+ id: data.id,
87
+ isPublic: data.is_public,
88
+ name: data.name,
89
+ projectId: data.project_id,
90
+ provider: data.provider,
91
+ quantizationLevel: data.quantization_level,
92
+ region: data.region,
93
+ s3Model: data.s3_model ? unmarshalModelS3Model(data.s3_model) : void 0,
94
+ tags: data.tags,
95
+ updatedAt: unmarshalDate(data.updated_at)
96
+ };
97
+ };
98
+ const unmarshalACLRule = (data) => {
99
+ if (!isJSONObject(data)) {
100
+ throw new TypeError(
101
+ `Unmarshalling the type 'ACLRule' failed as data isn't a dictionary.`
102
+ );
103
+ }
104
+ return {
105
+ description: data.description,
106
+ id: data.id,
107
+ ip: data.ip
108
+ };
109
+ };
110
+ const unmarshalAddDeploymentACLRulesResponse = (data) => {
111
+ if (!isJSONObject(data)) {
112
+ throw new TypeError(
113
+ `Unmarshalling the type 'AddDeploymentACLRulesResponse' failed as data isn't a dictionary.`
114
+ );
115
+ }
116
+ return {
117
+ rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule)
118
+ };
119
+ };
120
+ const unmarshalEula = (data) => {
121
+ if (!isJSONObject(data)) {
122
+ throw new TypeError(
123
+ `Unmarshalling the type 'Eula' failed as data isn't a dictionary.`
124
+ );
125
+ }
126
+ return {
127
+ content: data.content
128
+ };
129
+ };
130
+ const unmarshalListDeploymentACLRulesResponse = (data) => {
131
+ if (!isJSONObject(data)) {
132
+ throw new TypeError(
133
+ `Unmarshalling the type 'ListDeploymentACLRulesResponse' failed as data isn't a dictionary.`
134
+ );
135
+ }
136
+ return {
137
+ rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule),
138
+ totalCount: data.total_count
139
+ };
140
+ };
141
+ const unmarshalListDeploymentsResponse = (data) => {
142
+ if (!isJSONObject(data)) {
143
+ throw new TypeError(
144
+ `Unmarshalling the type 'ListDeploymentsResponse' failed as data isn't a dictionary.`
145
+ );
146
+ }
147
+ return {
148
+ deployments: unmarshalArrayOfObject(data.deployments, unmarshalDeployment),
149
+ totalCount: data.total_count
150
+ };
151
+ };
152
+ const unmarshalListModelsResponse = (data) => {
153
+ if (!isJSONObject(data)) {
154
+ throw new TypeError(
155
+ `Unmarshalling the type 'ListModelsResponse' failed as data isn't a dictionary.`
156
+ );
157
+ }
158
+ return {
159
+ models: unmarshalArrayOfObject(data.models, unmarshalModel),
160
+ totalCount: data.total_count
161
+ };
162
+ };
163
+ const unmarshalNodeType = (data) => {
164
+ if (!isJSONObject(data)) {
165
+ throw new TypeError(
166
+ `Unmarshalling the type 'NodeType' failed as data isn't a dictionary.`
167
+ );
168
+ }
169
+ return {
170
+ beta: data.beta,
171
+ createdAt: unmarshalDate(data.created_at),
172
+ description: data.description,
173
+ disabled: data.disabled,
174
+ gpus: data.gpus,
175
+ memory: data.memory,
176
+ name: data.name,
177
+ region: data.region,
178
+ stockStatus: data.stock_status,
179
+ updatedAt: unmarshalDate(data.updated_at),
180
+ vcpus: data.vcpus,
181
+ vram: data.vram
182
+ };
183
+ };
184
+ const unmarshalListNodeTypesResponse = (data) => {
185
+ if (!isJSONObject(data)) {
186
+ throw new TypeError(
187
+ `Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`
188
+ );
189
+ }
190
+ return {
191
+ nodeTypes: unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
192
+ totalCount: data.total_count
193
+ };
194
+ };
195
+ const unmarshalSetDeploymentACLRulesResponse = (data) => {
196
+ if (!isJSONObject(data)) {
197
+ throw new TypeError(
198
+ `Unmarshalling the type 'SetDeploymentACLRulesResponse' failed as data isn't a dictionary.`
199
+ );
200
+ }
201
+ return {
202
+ rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule)
203
+ };
204
+ };
205
+ const marshalACLRuleRequest = (request, defaults) => ({
206
+ description: request.description,
207
+ ip: request.ip
208
+ });
209
+ const marshalAddDeploymentACLRulesRequest = (request, defaults) => ({
210
+ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt)) : void 0
211
+ });
212
+ const marshalEndpointSpecPrivateNetwork = (request, defaults) => ({
213
+ private_network_id: request.privateNetworkId
214
+ });
215
+ const marshalEndpointSpecPublic = (request, defaults) => ({});
216
+ const marshalEndpointSpec = (request, defaults) => ({
217
+ disable_auth: request.disableAuth,
218
+ ...resolveOneOf([
219
+ {
220
+ param: "public",
221
+ value: request.public !== void 0 ? marshalEndpointSpecPublic(request.public) : void 0
222
+ },
223
+ {
224
+ param: "private_network",
225
+ value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetwork(request.privateNetwork) : void 0
226
+ }
227
+ ])
228
+ });
229
+ const marshalCreateDeploymentRequest = (request, defaults) => ({
230
+ accept_eula: request.acceptEula,
231
+ endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt)),
232
+ max_size: request.maxSize,
233
+ min_size: request.minSize,
234
+ model_name: request.modelName,
235
+ name: request.name || randomName("inference"),
236
+ node_type: request.nodeType,
237
+ project_id: request.projectId ?? defaults.defaultProjectId,
238
+ tags: request.tags
239
+ });
240
+ const marshalCreateEndpointRequest = (request, defaults) => ({
241
+ deployment_id: request.deploymentId,
242
+ endpoint: marshalEndpointSpec(request.endpoint)
243
+ });
244
+ const marshalSetDeploymentACLRulesRequest = (request, defaults) => ({
245
+ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt)) : void 0
246
+ });
247
+ const marshalUpdateDeploymentRequest = (request, defaults) => ({
248
+ max_size: request.maxSize,
249
+ min_size: request.minSize,
250
+ name: request.name,
251
+ tags: request.tags
252
+ });
253
+ const marshalUpdateEndpointRequest = (request, defaults) => ({
254
+ disable_auth: request.disableAuth
255
+ });
256
+ export {
257
+ marshalAddDeploymentACLRulesRequest,
258
+ marshalCreateDeploymentRequest,
259
+ marshalCreateEndpointRequest,
260
+ marshalSetDeploymentACLRulesRequest,
261
+ marshalUpdateDeploymentRequest,
262
+ marshalUpdateEndpointRequest,
263
+ unmarshalAddDeploymentACLRulesResponse,
264
+ unmarshalDeployment,
265
+ unmarshalEndpoint,
266
+ unmarshalEula,
267
+ unmarshalListDeploymentACLRulesResponse,
268
+ unmarshalListDeploymentsResponse,
269
+ unmarshalListModelsResponse,
270
+ unmarshalListNodeTypesResponse,
271
+ unmarshalModel,
272
+ unmarshalSetDeploymentACLRulesResponse
273
+ };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const CreateDeploymentRequest = {
4
+ maxSize: {
5
+ greaterThanOrEqual: 1,
6
+ lessThanOrEqual: 50
7
+ },
8
+ minSize: {
9
+ greaterThanOrEqual: 1,
10
+ lessThanOrEqual: 50
11
+ },
12
+ modelName: {
13
+ maxLength: 255,
14
+ minLength: 0,
15
+ pattern: /^[\w-_]+\/[\w-_.]+(:[\w]+)?$/
16
+ },
17
+ name: {
18
+ maxLength: 255,
19
+ minLength: 1,
20
+ pattern: /^[A-Za-z0-9-_]+$/
21
+ },
22
+ nodeType: {
23
+ maxLength: 64,
24
+ minLength: 1
25
+ }
26
+ };
27
+ const ListDeploymentsRequest = {
28
+ name: {
29
+ maxLength: 255,
30
+ minLength: 1
31
+ }
32
+ };
33
+ const ListModelsRequest = {
34
+ name: {
35
+ maxLength: 255,
36
+ minLength: 1
37
+ }
38
+ };
39
+ const UpdateDeploymentRequest = {
40
+ maxSize: {
41
+ greaterThanOrEqual: 1,
42
+ lessThanOrEqual: 50
43
+ },
44
+ minSize: {
45
+ greaterThanOrEqual: 1,
46
+ lessThanOrEqual: 50
47
+ },
48
+ name: {
49
+ maxLength: 255,
50
+ minLength: 1
51
+ }
52
+ };
53
+ exports.CreateDeploymentRequest = CreateDeploymentRequest;
54
+ exports.ListDeploymentsRequest = ListDeploymentsRequest;
55
+ exports.ListModelsRequest = ListModelsRequest;
56
+ exports.UpdateDeploymentRequest = UpdateDeploymentRequest;
@@ -0,0 +1,56 @@
1
+ const CreateDeploymentRequest = {
2
+ maxSize: {
3
+ greaterThanOrEqual: 1,
4
+ lessThanOrEqual: 50
5
+ },
6
+ minSize: {
7
+ greaterThanOrEqual: 1,
8
+ lessThanOrEqual: 50
9
+ },
10
+ modelName: {
11
+ maxLength: 255,
12
+ minLength: 0,
13
+ pattern: /^[\w-_]+\/[\w-_.]+(:[\w]+)?$/
14
+ },
15
+ name: {
16
+ maxLength: 255,
17
+ minLength: 1,
18
+ pattern: /^[A-Za-z0-9-_]+$/
19
+ },
20
+ nodeType: {
21
+ maxLength: 64,
22
+ minLength: 1
23
+ }
24
+ };
25
+ const ListDeploymentsRequest = {
26
+ name: {
27
+ maxLength: 255,
28
+ minLength: 1
29
+ }
30
+ };
31
+ const ListModelsRequest = {
32
+ name: {
33
+ maxLength: 255,
34
+ minLength: 1
35
+ }
36
+ };
37
+ const UpdateDeploymentRequest = {
38
+ maxSize: {
39
+ greaterThanOrEqual: 1,
40
+ lessThanOrEqual: 50
41
+ },
42
+ minSize: {
43
+ greaterThanOrEqual: 1,
44
+ lessThanOrEqual: 50
45
+ },
46
+ name: {
47
+ maxLength: 255,
48
+ minLength: 1
49
+ }
50
+ };
51
+ export {
52
+ CreateDeploymentRequest,
53
+ ListDeploymentsRequest,
54
+ ListModelsRequest,
55
+ UpdateDeploymentRequest
56
+ };
@@ -139,6 +139,7 @@ const unmarshalCluster = (data) => {
139
139
  description: data.description,
140
140
  dnsWildcard: data.dns_wildcard,
141
141
  featureGates: data.feature_gates,
142
+ fullVpcIntegratonEnabled: data.full_vpc_integraton_enabled,
142
143
  id: data.id,
143
144
  name: data.name,
144
145
  openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
@@ -137,6 +137,7 @@ const unmarshalCluster = (data) => {
137
137
  description: data.description,
138
138
  dnsWildcard: data.dns_wildcard,
139
139
  featureGates: data.feature_gates,
140
+ fullVpcIntegratonEnabled: data.full_vpc_integraton_enabled,
140
141
  id: data.id,
141
142
  name: data.name,
142
143
  openIdConnectConfig: data.open_id_connect_config ? unmarshalClusterOpenIDConnectConfig(data.open_id_connect_config) : void 0,
@@ -450,6 +450,8 @@ export interface Cluster {
450
450
  * installed on the cluster.
451
451
  */
452
452
  sbsCsiEnabled?: boolean;
453
+ /** @deprecated Defines whether VPC is fully integrated on the cluster. */
454
+ fullVpcIntegratonEnabled?: boolean;
453
455
  }
454
456
  export interface Node {
455
457
  /** Node ID. */
@@ -1,11 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const CreateClusterRequest = {
4
+ description: {
5
+ maxLength: 4096
6
+ },
4
7
  name: {
8
+ maxLength: 100,
5
9
  minLength: 1
10
+ },
11
+ type: {
12
+ maxLength: 100
13
+ },
14
+ version: {
15
+ maxLength: 10
6
16
  }
7
17
  };
8
18
  const CreateClusterRequestAutoscalerConfig = {
19
+ scaleDownDelayAfterAdd: {
20
+ maxLength: 100
21
+ },
9
22
  scaleDownUtilizationThreshold: {
10
23
  greaterThan: 0,
11
24
  lessThan: 1
@@ -13,25 +26,34 @@ const CreateClusterRequestAutoscalerConfig = {
13
26
  };
14
27
  const CreateClusterRequestOpenIDConnectConfig = {
15
28
  clientId: {
29
+ maxLength: 255,
16
30
  minLength: 1
17
31
  },
18
32
  groupsPrefix: {
33
+ maxLength: 100,
19
34
  minLength: 1
20
35
  },
36
+ issuerUrl: {
37
+ maxLength: 255
38
+ },
21
39
  usernameClaim: {
40
+ maxLength: 100,
22
41
  minLength: 1
23
42
  },
24
43
  usernamePrefix: {
44
+ maxLength: 100,
25
45
  minLength: 1
26
46
  }
27
47
  };
28
48
  const CreateClusterRequestPoolConfig = {
29
49
  name: {
50
+ maxLength: 100,
30
51
  minLength: 1
31
52
  }
32
53
  };
33
54
  const CreatePoolRequest = {
34
55
  name: {
56
+ maxLength: 100,
35
57
  minLength: 1
36
58
  }
37
59
  };
@@ -85,17 +107,55 @@ const MaintenanceWindow = {
85
107
  lessThanOrEqual: 23
86
108
  }
87
109
  };
110
+ const SetClusterTypeRequest = {
111
+ type: {
112
+ maxLength: 100
113
+ }
114
+ };
88
115
  const UpdateClusterRequest = {
116
+ description: {
117
+ maxLength: 4096
118
+ },
89
119
  name: {
120
+ maxLength: 100,
90
121
  minLength: 1
91
122
  }
92
123
  };
93
124
  const UpdateClusterRequestAutoscalerConfig = {
125
+ scaleDownDelayAfterAdd: {
126
+ maxLength: 100
127
+ },
94
128
  scaleDownUtilizationThreshold: {
95
129
  greaterThan: 0,
96
130
  lessThan: 1
97
131
  }
98
132
  };
133
+ const UpdateClusterRequestOpenIDConnectConfig = {
134
+ clientId: {
135
+ maxLength: 255,
136
+ minLength: 1
137
+ },
138
+ groupsPrefix: {
139
+ maxLength: 100,
140
+ minLength: 1
141
+ },
142
+ issuerUrl: {
143
+ maxLength: 255
144
+ },
145
+ usernameClaim: {
146
+ maxLength: 100,
147
+ minLength: 1
148
+ },
149
+ usernamePrefix: {
150
+ maxLength: 100,
151
+ minLength: 1
152
+ }
153
+ };
154
+ const UpgradeClusterRequest = {
155
+ version: {
156
+ maxLength: 10
157
+ }
158
+ };
99
159
  exports.CreateClusterRequest = CreateClusterRequest;
100
160
  exports.CreateClusterRequestAutoscalerConfig = CreateClusterRequestAutoscalerConfig;
101
161
  exports.CreateClusterRequestOpenIDConnectConfig = CreateClusterRequestOpenIDConnectConfig;
@@ -106,5 +166,8 @@ exports.ListClustersRequest = ListClustersRequest;
106
166
  exports.ListNodesRequest = ListNodesRequest;
107
167
  exports.ListPoolsRequest = ListPoolsRequest;
108
168
  exports.MaintenanceWindow = MaintenanceWindow;
169
+ exports.SetClusterTypeRequest = SetClusterTypeRequest;
109
170
  exports.UpdateClusterRequest = UpdateClusterRequest;
110
171
  exports.UpdateClusterRequestAutoscalerConfig = UpdateClusterRequestAutoscalerConfig;
172
+ exports.UpdateClusterRequestOpenIDConnectConfig = UpdateClusterRequestOpenIDConnectConfig;
173
+ exports.UpgradeClusterRequest = UpgradeClusterRequest;
@@ -1,9 +1,22 @@
1
1
  export declare const CreateClusterRequest: {
2
+ description: {
3
+ maxLength: number;
4
+ };
2
5
  name: {
6
+ maxLength: number;
3
7
  minLength: number;
4
8
  };
9
+ type: {
10
+ maxLength: number;
11
+ };
12
+ version: {
13
+ maxLength: number;
14
+ };
5
15
  };
6
16
  export declare const CreateClusterRequestAutoscalerConfig: {
17
+ scaleDownDelayAfterAdd: {
18
+ maxLength: number;
19
+ };
7
20
  scaleDownUtilizationThreshold: {
8
21
  greaterThan: number;
9
22
  lessThan: number;
@@ -11,25 +24,34 @@ export declare const CreateClusterRequestAutoscalerConfig: {
11
24
  };
12
25
  export declare const CreateClusterRequestOpenIDConnectConfig: {
13
26
  clientId: {
27
+ maxLength: number;
14
28
  minLength: number;
15
29
  };
16
30
  groupsPrefix: {
31
+ maxLength: number;
17
32
  minLength: number;
18
33
  };
34
+ issuerUrl: {
35
+ maxLength: number;
36
+ };
19
37
  usernameClaim: {
38
+ maxLength: number;
20
39
  minLength: number;
21
40
  };
22
41
  usernamePrefix: {
42
+ maxLength: number;
23
43
  minLength: number;
24
44
  };
25
45
  };
26
46
  export declare const CreateClusterRequestPoolConfig: {
27
47
  name: {
48
+ maxLength: number;
28
49
  minLength: number;
29
50
  };
30
51
  };
31
52
  export declare const CreatePoolRequest: {
32
53
  name: {
54
+ maxLength: number;
33
55
  minLength: number;
34
56
  };
35
57
  };
@@ -83,14 +105,52 @@ export declare const MaintenanceWindow: {
83
105
  lessThanOrEqual: number;
84
106
  };
85
107
  };
108
+ export declare const SetClusterTypeRequest: {
109
+ type: {
110
+ maxLength: number;
111
+ };
112
+ };
86
113
  export declare const UpdateClusterRequest: {
114
+ description: {
115
+ maxLength: number;
116
+ };
87
117
  name: {
118
+ maxLength: number;
88
119
  minLength: number;
89
120
  };
90
121
  };
91
122
  export declare const UpdateClusterRequestAutoscalerConfig: {
123
+ scaleDownDelayAfterAdd: {
124
+ maxLength: number;
125
+ };
92
126
  scaleDownUtilizationThreshold: {
93
127
  greaterThan: number;
94
128
  lessThan: number;
95
129
  };
96
130
  };
131
+ export declare const UpdateClusterRequestOpenIDConnectConfig: {
132
+ clientId: {
133
+ maxLength: number;
134
+ minLength: number;
135
+ };
136
+ groupsPrefix: {
137
+ maxLength: number;
138
+ minLength: number;
139
+ };
140
+ issuerUrl: {
141
+ maxLength: number;
142
+ };
143
+ usernameClaim: {
144
+ maxLength: number;
145
+ minLength: number;
146
+ };
147
+ usernamePrefix: {
148
+ maxLength: number;
149
+ minLength: number;
150
+ };
151
+ };
152
+ export declare const UpgradeClusterRequest: {
153
+ version: {
154
+ maxLength: number;
155
+ };
156
+ };