Skip to content

Commit 1c27055

Browse files
authored
Merge branch 'main' into feat/upgrade_eslint_to_v9
2 parents 0005352 + 1a96ea5 commit 1c27055

40 files changed

+2026
-72
lines changed

packages/clients/CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,45 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [2.52.1](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2024-10-28)
7+
8+
**Note:** Version bump only for package @scaleway/sdk
9+
10+
## [2.52.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2024-10-24)
11+
12+
### Features
13+
14+
- **baremetal:** add gpu in offer ([#1523](https://github.com/scaleway/scaleway-sdk-js/issues/1523)) ([664c1d2](https://github.com/scaleway/scaleway-sdk-js/commit/664c1d2bb344b14adf2e3e08ca3338d46c27f2c1))
15+
- **edge_services:** add orga id in pipeline message ([#1528](https://github.com/scaleway/scaleway-sdk-js/issues/1528)) ([785855b](https://github.com/scaleway/scaleway-sdk-js/commit/785855b594d6e3b7f42e96f3d41c499cac54478e))
16+
- **iam:** add UpdateUserPassword method ([#1514](https://github.com/scaleway/scaleway-sdk-js/issues/1514)) ([f2afda2](https://github.com/scaleway/scaleway-sdk-js/commit/f2afda20a075a491f1120a258891c0738feaeac3))
17+
- **mongodb:** add support for generated instance name ([#1513](https://github.com/scaleway/scaleway-sdk-js/issues/1513)) ([8ec5042](https://github.com/scaleway/scaleway-sdk-js/commit/8ec50423ea69e1f6441765d22357ea093e26f718))
18+
- **serverless_jobs:** add method to get jobs limits ([#1527](https://github.com/scaleway/scaleway-sdk-js/issues/1527)) ([4a9227a](https://github.com/scaleway/scaleway-sdk-js/commit/4a9227aec9eb5d9763c1b0070a1aa4ead2751f54))
19+
20+
### Bug Fixes
21+
22+
- **k8s:** empty oidc fields must be allowed ([#1518](https://github.com/scaleway/scaleway-sdk-js/issues/1518)) ([8c7c670](https://github.com/scaleway/scaleway-sdk-js/commit/8c7c670a0e7d4be1dd7eb7f5a067b50dba2dafd0))
23+
- **mongodb:** add missing UpdateSnapshot endpoint in documentation ([#1522](https://github.com/scaleway/scaleway-sdk-js/issues/1522)) ([8972ecf](https://github.com/scaleway/scaleway-sdk-js/commit/8972ecf87673be59a81f542c5e37bc78058625ae))
24+
25+
## [2.51.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2024-10-21)
26+
27+
### Features
28+
29+
- **apple_silicon:** add server delivery status ([#1493](https://github.com/scaleway/scaleway-sdk-js/issues/1493)) ([279b60a](https://github.com/scaleway/scaleway-sdk-js/commit/279b60a570219014c2e6fcc5e9a8703d7cf8b3c5))
30+
- **edge_services:** add ListPipelinesWithStages ([#1495](https://github.com/scaleway/scaleway-sdk-js/issues/1495)) ([c5aab4c](https://github.com/scaleway/scaleway-sdk-js/commit/c5aab4c6f5390ffb13ce93f0b312c9dbed3224ac))
31+
- **iam:** add visible and deletable on product api keys ([#1483](https://github.com/scaleway/scaleway-sdk-js/issues/1483)) ([e06a7a9](https://github.com/scaleway/scaleway-sdk-js/commit/e06a7a9c705b0d353330e68075ec574c37262d0a))
32+
- **instance:** add option to disable IPv6 during the migration to routed IPs ([#1507](https://github.com/scaleway/scaleway-sdk-js/issues/1507)) ([cfbfb21](https://github.com/scaleway/scaleway-sdk-js/commit/cfbfb21b0cb78f51484f4ce4f6aa05f9147c3f90))
33+
- **instance:** set CreateServerRequest.image as optional ([#1506](https://github.com/scaleway/scaleway-sdk-js/issues/1506)) ([93d949e](https://github.com/scaleway/scaleway-sdk-js/commit/93d949e7b8f3252eb51001e23ccc08c3ce8afe03))
34+
- **mongodb:** add Get Snapshot Endpoint ([#1508](https://github.com/scaleway/scaleway-sdk-js/issues/1508)) ([307c67f](https://github.com/scaleway/scaleway-sdk-js/commit/307c67f85e1b4ad48d3a8e40b9d36565d2a3df04))
35+
- **mongodb:** add v1alpha1 ([#1505](https://github.com/scaleway/scaleway-sdk-js/issues/1505)) ([7d0a7fb](https://github.com/scaleway/scaleway-sdk-js/commit/7d0a7fbdfeae59e43392fa2f0c5f09d9a1069c76))
36+
- **webhosting:** add addon domain quota warning ([#1512](https://github.com/scaleway/scaleway-sdk-js/issues/1512)) ([1578eca](https://github.com/scaleway/scaleway-sdk-js/commit/1578ecac458e7adc0ae76d1ac61226624bd8ea83))
37+
38+
### Bug Fixes
39+
40+
- **baremetal:** add bandwidth_in_bps field for PrivateNetworkOption ([#1511](https://github.com/scaleway/scaleway-sdk-js/issues/1511)) ([fadd4b5](https://github.com/scaleway/scaleway-sdk-js/commit/fadd4b5545853e7a687a7030d7c938831e046771))
41+
- **instance:** remove deprecated bootscript ([#1484](https://github.com/scaleway/scaleway-sdk-js/issues/1484)) ([62c8390](https://github.com/scaleway/scaleway-sdk-js/commit/62c8390fb3ec8780d7b171b24c0fbd67de1c8c01))
42+
- **instance:** remove deprecated bootscript documentation ([#1485](https://github.com/scaleway/scaleway-sdk-js/issues/1485)) ([d77bf41](https://github.com/scaleway/scaleway-sdk-js/commit/d77bf414842b82322a669609d461a862a40bad4f))
43+
- update validation patterns ([#1510](https://github.com/scaleway/scaleway-sdk-js/issues/1510)) ([8d23c3a](https://github.com/scaleway/scaleway-sdk-js/commit/8d23c3a62fc67eaebe8bb7b5379eb339441a223e))
44+
645
## [2.50.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2024-10-14)
746

847
### Features

packages/clients/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@scaleway/sdk",
3-
"version": "2.50.0",
3+
"version": "2.52.1",
44
"license": "Apache-2.0",
55
"description": "Scaleway SDK.",
66
"keywords": [

packages/clients/src/api/baremetal/v1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export type {
1212
DeleteOptionServerRequest,
1313
DeleteServerRequest,
1414
Disk,
15+
GPU,
1516
GetBMCAccessRequest,
1617
GetDefaultPartitioningSchemaRequest,
1718
GetOSRequest,

packages/clients/src/api/baremetal/v1/marshalling.gen.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import type {
1717
CreateServerRequest,
1818
CreateServerRequestInstall,
1919
Disk,
20+
GPU,
2021
GetServerMetricsResponse,
2122
IP,
2223
InstallServerRequest,
@@ -257,7 +258,9 @@ const unmarshalPrivateNetworkOption = (data: unknown): PrivateNetworkOption => {
257258
)
258259
}
259260

260-
return {} as PrivateNetworkOption
261+
return {
262+
bandwidthInBps: data.bandwidth_in_bps,
263+
} as PrivateNetworkOption
261264
}
262265

263266
const unmarshalPublicBandwidthOption = (
@@ -313,6 +316,19 @@ const unmarshalDisk = (data: unknown): Disk => {
313316
} as Disk
314317
}
315318

319+
const unmarshalGPU = (data: unknown): GPU => {
320+
if (!isJSONObject(data)) {
321+
throw new TypeError(
322+
`Unmarshalling the type 'GPU' failed as data isn't a dictionary.`,
323+
)
324+
}
325+
326+
return {
327+
name: data.name,
328+
vram: data.vram,
329+
} as GPU
330+
}
331+
316332
const unmarshalMemory = (data: unknown): Memory => {
317333
if (!isJSONObject(data)) {
318334
throw new TypeError(
@@ -400,6 +416,7 @@ export const unmarshalOffer = (data: unknown): Offer => {
400416
disks: unmarshalArrayOfObject(data.disks, unmarshalDisk),
401417
enable: data.enable,
402418
fee: data.fee ? unmarshalMoney(data.fee) : undefined,
419+
gpus: unmarshalArrayOfObject(data.gpus, unmarshalGPU),
403420
id: data.id,
404421
incompatibleOsIds: data.incompatible_os_ids,
405422
maxBandwidth: data.max_bandwidth,

packages/clients/src/api/baremetal/v1/types.gen.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ export interface LicenseOption {
148148
osId: string
149149
}
150150

151-
export interface PrivateNetworkOption {}
151+
export interface PrivateNetworkOption {
152+
bandwidthInBps: number
153+
}
152154

153155
export interface PublicBandwidthOption {
154156
bandwidthInBps: number
@@ -189,6 +191,13 @@ export interface Disk {
189191
type: string
190192
}
191193

194+
export interface GPU {
195+
/** Name of the GPU. */
196+
name: string
197+
/** Capacity of the vram in bytes. */
198+
vram: number
199+
}
200+
192201
export interface Memory {
193202
/** Capacity of the memory in bytes. */
194203
capacity: number
@@ -233,7 +242,7 @@ export interface OfferOptionOffer {
233242
*/
234243
publicBandwidth?: PublicBandwidthOption
235244
/**
236-
* Private_network option.
245+
* Private_network option, contains the bandwidth_in_bps.
237246
*
238247
* One-of ('option'): at most one of 'license', 'publicBandwidth',
239248
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
@@ -335,7 +344,7 @@ export interface ServerOption {
335344
*/
336345
publicBandwidth?: PublicBandwidthOption
337346
/**
338-
* Private_network option.
347+
* Private_network option, contains the bandwidth_in_bps.
339348
*
340349
* One-of ('option'): at most one of 'license', 'publicBandwidth',
341350
* 'privateNetwork', 'remoteAccess', 'certification' could be set.
@@ -468,6 +477,8 @@ export interface Offer {
468477
sharedBandwidth: boolean
469478
/** Array of tags attached to the offer. */
470479
tags: string[]
480+
/** GPU specifications of the offer. */
481+
gpus: GPU[]
471482
}
472483

473484
export interface Option {
@@ -492,7 +503,7 @@ export interface Option {
492503
*/
493504
publicBandwidth?: PublicBandwidthOption
494505
/**
495-
* Private_network option.
506+
* Private_network option, contains the bandwidth_in_bps.
496507
*
497508
* One-of ('option'): at most one of 'license', 'publicBandwidth',
498509
* 'privateNetwork', 'remoteAccess', 'certification' could be set.

packages/clients/src/api/block/v1alpha1/api.gen.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ export class API extends ParentAPI {
6262
public static readonly LOCALITIES: Zone[] = [
6363
'fr-par-1',
6464
'fr-par-2',
65+
'fr-par-3',
6566
'nl-ams-1',
6667
'nl-ams-2',
6768
'nl-ams-3',
69+
'pl-waw-1',
70+
'pl-waw-2',
6871
'pl-waw-3',
6972
]
7073

packages/clients/src/api/container/v1beta1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type {
88
ContainerPrivacy,
99
ContainerProtocol,
1010
ContainerSandbox,
11+
ContainerScalingOption,
1112
ContainerStatus,
1213
CreateContainerRequest,
1314
CreateCronRequest,

packages/clients/src/api/container/v1beta1/marshalling.gen.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import type { DefaultValues } from '../../../bridge'
1111
import type {
1212
Container,
13+
ContainerScalingOption,
1314
CreateContainerRequest,
1415
CreateCronRequest,
1516
CreateDomainRequest,
@@ -42,6 +43,20 @@ import type {
4243
UpdateTriggerRequestSqsClientConfig,
4344
} from './types.gen'
4445

46+
const unmarshalContainerScalingOption = (
47+
data: unknown,
48+
): ContainerScalingOption => {
49+
if (!isJSONObject(data)) {
50+
throw new TypeError(
51+
`Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`,
52+
)
53+
}
54+
55+
return {
56+
concurrentRequestsThreshold: data.concurrent_requests_threshold,
57+
} as ContainerScalingOption
58+
}
59+
4560
const unmarshalSecretHashedValue = (data: unknown): SecretHashedValue => {
4661
if (!isJSONObject(data)) {
4762
throw new TypeError(
@@ -64,6 +79,7 @@ export const unmarshalContainer = (data: unknown): Container => {
6479

6580
return {
6681
cpuLimit: data.cpu_limit,
82+
createdAt: unmarshalDate(data.created_at),
6783
description: data.description,
6884
domainName: data.domain_name,
6985
environmentVariables: data.environment_variables,
@@ -80,15 +96,20 @@ export const unmarshalContainer = (data: unknown): Container => {
8096
port: data.port,
8197
privacy: data.privacy,
8298
protocol: data.protocol,
99+
readyAt: unmarshalDate(data.ready_at),
83100
region: data.region,
84101
registryImage: data.registry_image,
85102
sandbox: data.sandbox,
103+
scalingOption: data.scaling_option
104+
? unmarshalContainerScalingOption(data.scaling_option)
105+
: undefined,
86106
secretEnvironmentVariables: unmarshalArrayOfObject(
87107
data.secret_environment_variables,
88108
unmarshalSecretHashedValue,
89109
),
90110
status: data.status,
91111
timeout: data.timeout,
112+
updatedAt: unmarshalDate(data.updated_at),
92113
} as Container
93114
}
94115

@@ -340,6 +361,18 @@ export const unmarshalListTriggersResponse = (
340361
} as ListTriggersResponse
341362
}
342363

364+
const marshalContainerScalingOption = (
365+
request: ContainerScalingOption,
366+
defaults: DefaultValues,
367+
): Record<string, unknown> => ({
368+
...resolveOneOf([
369+
{
370+
param: 'concurrent_requests_threshold',
371+
value: request.concurrentRequestsThreshold,
372+
},
373+
]),
374+
})
375+
343376
const marshalSecret = (
344377
request: Secret,
345378
defaults: DefaultValues,
@@ -368,6 +401,10 @@ export const marshalCreateContainerRequest = (
368401
protocol: request.protocol,
369402
registry_image: request.registryImage,
370403
sandbox: request.sandbox,
404+
scaling_option:
405+
request.scalingOption !== undefined
406+
? marshalContainerScalingOption(request.scalingOption, defaults)
407+
: undefined,
371408
secret_environment_variables:
372409
request.secretEnvironmentVariables !== undefined
373410
? request.secretEnvironmentVariables.map(elt =>
@@ -512,6 +549,10 @@ export const marshalUpdateContainerRequest = (
512549
redeploy: request.redeploy,
513550
registry_image: request.registryImage,
514551
sandbox: request.sandbox,
552+
scaling_option:
553+
request.scalingOption !== undefined
554+
? marshalContainerScalingOption(request.scalingOption, defaults)
555+
: undefined,
515556
secret_environment_variables:
516557
request.secretEnvironmentVariables !== undefined
517558
? request.secretEnvironmentVariables.map(elt =>

packages/clients/src/api/container/v1beta1/types.gen.ts

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ export type TriggerStatus =
9595
| 'creating'
9696
| 'pending'
9797

98+
export interface ContainerScalingOption {
99+
/**
100+
* One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold' could
101+
* be set.
102+
*/
103+
concurrentRequestsThreshold?: number
104+
}
105+
98106
export interface SecretHashedValue {
99107
key: string
100108
hashedValue: string
@@ -223,6 +231,19 @@ export interface Container {
223231
sandbox: ContainerSandbox
224232
/** Local storage limit of the container (in MB). */
225233
localStorageLimit: number
234+
/**
235+
* Possible values:
236+
*
237+
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
238+
* requests being processed per container instance.
239+
*/
240+
scalingOption?: ContainerScalingOption
241+
/** Creation date of the container. */
242+
createdAt?: Date
243+
/** Last update date of the container. */
244+
updatedAt?: Date
245+
/** Last date when the container was successfully deployed and set to ready. */
246+
readyAt?: Date
226247
/** Region in which the container will be deployed. */
227248
region: Region
228249
}
@@ -385,7 +406,7 @@ export type CreateContainerRequest = {
385406
* "rg.fr-par.scw.cloud/something/image:tag").
386407
*/
387408
registryImage?: string
388-
/** Number of maximum concurrent executions of the container. */
409+
/** @deprecated Number of maximum concurrent executions of the container. */
389410
maxConcurrency?: number
390411
/** Protocol the container uses. */
391412
protocol?: ContainerProtocol
@@ -405,6 +426,13 @@ export type CreateContainerRequest = {
405426
sandbox?: ContainerSandbox
406427
/** Local storage limit of the container (in MB). */
407428
localStorageLimit?: number
429+
/**
430+
* Possible values:
431+
*
432+
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
433+
* requests being processed per container instance.
434+
*/
435+
scalingOption?: ContainerScalingOption
408436
}
409437

410438
export type CreateCronRequest = {
@@ -840,7 +868,7 @@ export type UpdateContainerRequest = {
840868
* "rg.fr-par.scw.cloud/something/image:tag").
841869
*/
842870
registryImage?: string
843-
/** Number of maximum concurrent executions of the container. */
871+
/** @deprecated Number of maximum concurrent executions of the container. */
844872
maxConcurrency?: number
845873
protocol?: ContainerProtocol
846874
port?: number
@@ -857,6 +885,13 @@ export type UpdateContainerRequest = {
857885
sandbox?: ContainerSandbox
858886
/** Local storage limit of the container (in MB). */
859887
localStorageLimit?: number
888+
/**
889+
* Possible values:
890+
*
891+
* - Concurrent_requests_threshold: Scale depending on the number of concurrent
892+
* requests being processed per container instance.
893+
*/
894+
scalingOption?: ContainerScalingOption
860895
}
861896

862897
export type UpdateCronRequest = {

packages/clients/src/api/container/v1beta1/validation-rules.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33

4+
export const ContainerScalingOption = {}
5+
46
export const CreateTriggerRequest = {
57
description: {
68
maxLength: 255,

0 commit comments

Comments
 (0)