Skip to content

Commit d4453be

Browse files
authored
Merge branch 'main' into v1.5579.0
2 parents ae5f4bb + 62c8390 commit d4453be

File tree

9 files changed

+18
-155
lines changed

9 files changed

+18
-155
lines changed

packages/clients/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
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.50.0](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2024-10-14)
7+
8+
### Features
9+
10+
- **dedibox:** add new memory type ([#1482](https://github.com/scaleway/scaleway-sdk-js/issues/1482)) ([60e5a0d](https://github.com/scaleway/scaleway-sdk-js/commit/60e5a0df24767d774d47055d4e8a91622c62059a))
11+
- **edge_services:** add GetCurrentBilling endpoint ([#1477](https://github.com/scaleway/scaleway-sdk-js/issues/1477)) ([666c9dc](https://github.com/scaleway/scaleway-sdk-js/commit/666c9dc46f5c6b5020620d087c91ec7e6309aafa))
12+
- **iam:** add deletable and managed fields ([#1476](https://github.com/scaleway/scaleway-sdk-js/issues/1476)) ([db22c49](https://github.com/scaleway/scaleway-sdk-js/commit/db22c49c2ec62a16a0f61a2769c037fcbca87c69))
13+
- **serverless_jobs:** enable sdk for secrets ([#1467](https://github.com/scaleway/scaleway-sdk-js/issues/1467)) ([4f6f981](https://github.com/scaleway/scaleway-sdk-js/commit/4f6f98190f7173d9613489ceb1170305500b3a6f))
14+
- **tem:** add auto-configuration state in domain validation ([#1466](https://github.com/scaleway/scaleway-sdk-js/issues/1466)) ([5169271](https://github.com/scaleway/scaleway-sdk-js/commit/5169271689fbbd36e6171ae70a598ed5ca3b6335))
15+
616
## [2.49.1](https://github.com/scaleway/scaleway-sdk-js/compare/@scaleway/[email protected]...@scaleway/[email protected]) (2024-10-07)
717

818
**Note:** Version bump only for package @scaleway/sdk

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.49.1",
3+
"version": "2.50.0",
44
"license": "Apache-2.0",
55
"description": "Scaleway SDK.",
66
"keywords": [

packages/clients/src/api/iam/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const unmarshalAPIKey = (data: unknown): APIKey => {
8787
createdAt: unmarshalDate(data.created_at),
8888
creationIp: data.creation_ip,
8989
defaultProjectId: data.default_project_id,
90+
deletable: data.deletable,
9091
description: data.description,
9192
editable: data.editable,
9293
expiresAt: unmarshalDate(data.expires_at),

packages/clients/src/api/iam/v1alpha1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ export interface APIKey {
169169
defaultProjectId: string
170170
/** Defines whether or not the API key is editable. */
171171
editable: boolean
172+
/** Defines whether or not the API key is deletable. */
173+
deletable: boolean
172174
/** Defines whether or not the API key is managed. */
173175
managed: boolean
174176
/** IP address of the device that created the API key. */

packages/clients/src/api/instance/v1/api.gen.ts

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ import {
5353
unmarshalCreateVolumeResponse,
5454
unmarshalDetachServerVolumeResponse,
5555
unmarshalExportSnapshotResponse,
56-
unmarshalGetBootscriptResponse,
5756
unmarshalGetDashboardResponse,
5857
unmarshalGetImageResponse,
5958
unmarshalGetIpResponse,
@@ -66,7 +65,6 @@ import {
6665
unmarshalGetServerTypesAvailabilityResponse,
6766
unmarshalGetSnapshotResponse,
6867
unmarshalGetVolumeResponse,
69-
unmarshalListBootscriptsResponse,
7068
unmarshalListImagesResponse,
7169
unmarshalListIpsResponse,
7270
unmarshalListPlacementGroupsResponse,
@@ -137,8 +135,6 @@ import type {
137135
DetachServerVolumeResponse,
138136
ExportSnapshotRequest,
139137
ExportSnapshotResponse,
140-
GetBootscriptRequest,
141-
GetBootscriptResponse,
142138
GetDashboardRequest,
143139
GetDashboardResponse,
144140
GetImageRequest,
@@ -163,8 +159,6 @@ import type {
163159
GetSnapshotResponse,
164160
GetVolumeRequest,
165161
GetVolumeResponse,
166-
ListBootscriptsRequest,
167-
ListBootscriptsResponse,
168162
ListDefaultSecurityGroupRulesRequest,
169163
ListImagesRequest,
170164
ListImagesResponse,
@@ -1520,51 +1514,6 @@ export class API extends ParentAPI {
15201514
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private_nics/${validatePathParam('privateNicId', request.privateNicId)}`,
15211515
})
15221516

1523-
protected pageOfListBootscripts = (
1524-
request: Readonly<ListBootscriptsRequest> = {},
1525-
) =>
1526-
this.client.fetch<ListBootscriptsResponse>(
1527-
{
1528-
method: 'GET',
1529-
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/bootscripts`,
1530-
urlParams: urlParams(
1531-
['arch', request.arch],
1532-
['default', request.default],
1533-
['page', request.page],
1534-
['per_page', request.perPage ?? this.client.settings.defaultPageSize],
1535-
['public', request.public],
1536-
['title', request.title],
1537-
),
1538-
},
1539-
unmarshalListBootscriptsResponse,
1540-
)
1541-
1542-
/**
1543-
* List bootscripts.
1544-
*
1545-
* @deprecated
1546-
* @param request - The request {@link ListBootscriptsRequest}
1547-
* @returns A Promise of ListBootscriptsResponse
1548-
*/
1549-
listBootscripts = (request: Readonly<ListBootscriptsRequest> = {}) =>
1550-
enrichForPagination('bootscripts', this.pageOfListBootscripts, request)
1551-
1552-
/**
1553-
* Get bootscripts. Get details of a bootscript with the specified ID.
1554-
*
1555-
* @deprecated
1556-
* @param request - The request {@link GetBootscriptRequest}
1557-
* @returns A Promise of GetBootscriptResponse
1558-
*/
1559-
getBootscript = (request: Readonly<GetBootscriptRequest>) =>
1560-
this.client.fetch<GetBootscriptResponse>(
1561-
{
1562-
method: 'GET',
1563-
path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/bootscripts/${validatePathParam('bootscriptId', request.bootscriptId)}`,
1564-
},
1565-
unmarshalGetBootscriptResponse,
1566-
)
1567-
15681517
getDashboard = (request: Readonly<GetDashboardRequest> = {}) =>
15691518
this.client.fetch<GetDashboardResponse>(
15701519
{

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

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import type {
3737
DetachServerVolumeResponse,
3838
ExportSnapshotRequest,
3939
ExportSnapshotResponse,
40-
GetBootscriptResponse,
4140
GetDashboardResponse,
4241
GetImageResponse,
4342
GetIpResponse,
@@ -53,7 +52,6 @@ import type {
5352
GetVolumeResponse,
5453
Image,
5554
Ip,
56-
ListBootscriptsResponse,
5755
ListImagesResponse,
5856
ListIpsResponse,
5957
ListPlacementGroupsResponse,
@@ -399,9 +397,6 @@ const unmarshalServer = (data: unknown): Server => {
399397
allowedActions: data.allowed_actions,
400398
arch: data.arch,
401399
bootType: data.boot_type,
402-
bootscript: data.bootscript
403-
? unmarshalBootscript(data.bootscript)
404-
: undefined,
405400
commercialType: data.commercial_type,
406401
creationDate: unmarshalDate(data.creation_date),
407402
dynamicIpRequired: data.dynamic_ip_required,
@@ -746,22 +741,6 @@ export const unmarshalExportSnapshotResponse = (
746741
} as ExportSnapshotResponse
747742
}
748743

749-
export const unmarshalGetBootscriptResponse = (
750-
data: unknown,
751-
): GetBootscriptResponse => {
752-
if (!isJSONObject(data)) {
753-
throw new TypeError(
754-
`Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.`,
755-
)
756-
}
757-
758-
return {
759-
bootscript: data.bootscript
760-
? unmarshalBootscript(data.bootscript)
761-
: undefined,
762-
} as GetBootscriptResponse
763-
}
764-
765744
const unmarshalDashboard = (data: unknown): Dashboard => {
766745
if (!isJSONObject(data)) {
767746
throw new TypeError(
@@ -993,21 +972,6 @@ export const unmarshalGetVolumeResponse = (
993972
} as GetVolumeResponse
994973
}
995974

996-
export const unmarshalListBootscriptsResponse = (
997-
data: unknown,
998-
): ListBootscriptsResponse => {
999-
if (!isJSONObject(data)) {
1000-
throw new TypeError(
1001-
`Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.`,
1002-
)
1003-
}
1004-
1005-
return {
1006-
bootscripts: unmarshalArrayOfObject(data.bootscripts, unmarshalBootscript),
1007-
totalCount: data.total_count,
1008-
} as ListBootscriptsResponse
1009-
}
1010-
1011975
export const unmarshalListImagesResponse = (
1012976
data: unknown,
1013977
): ListImagesResponse => {
@@ -1679,7 +1643,6 @@ export const marshalCreateImageRequest = (
16791643
defaults: DefaultValues,
16801644
): Record<string, unknown> => ({
16811645
arch: request.arch,
1682-
default_bootscript: request.defaultBootscript,
16831646
extra_volumes:
16841647
request.extraVolumes !== undefined
16851648
? Object.entries(request.extraVolumes).reduce(
@@ -1824,7 +1787,6 @@ export const marshalCreateServerRequest = (
18241787
): Record<string, unknown> => ({
18251788
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
18261789
boot_type: request.bootType,
1827-
bootscript: request.bootscript,
18281790
commercial_type: request.commercialType,
18291791
dynamic_ip_required: request.dynamicIpRequired,
18301792
enable_ipv6: request.enableIpv6,
@@ -2258,10 +2220,6 @@ export const marshalSetServerRequest = (
22582220
request.allowedActions !== undefined ? request.allowedActions : undefined,
22592221
arch: request.arch,
22602222
boot_type: request.bootType,
2261-
bootscript:
2262-
request.bootscript !== undefined
2263-
? marshalBootscript(request.bootscript, defaults)
2264-
: undefined,
22652223
commercial_type: request.commercialType,
22662224
creation_date: request.creationDate,
22672225
dynamic_ip_required: request.dynamicIpRequired,
@@ -2456,7 +2414,6 @@ export const marshalUpdateServerRequest = (
24562414
): Record<string, unknown> => ({
24572415
admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
24582416
boot_type: request.bootType,
2459-
bootscript: request.bootscript,
24602417
commercial_type: request.commercialType,
24612418
dynamic_ip_required: request.dynamicIpRequired,
24622419
enable_ipv6: request.enableIpv6,

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

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -137,35 +137,18 @@ export interface ServerSummary {
137137
}
138138

139139
export interface Bootscript {
140-
/** Bootscript arguments. */
140+
architecture: Arch
141141
bootcmdargs: string
142-
/**
143-
* Display if the bootscript is the default bootscript (if no other boot
144-
* option is configured).
145-
*/
146142
default: boolean
147-
/**
148-
* Provide information regarding a Device Tree Binary (DTB) for use with C1
149-
* servers.
150-
*/
151143
dtb: string
152-
/** Bootscript ID. */
153144
id: string
154-
/** Initrd (initial ramdisk) configuration. */
155145
initrd: string
156-
/** Instance kernel version. */
157146
kernel: string
158-
/** Bootscript Organization ID. */
159147
organization: string
160-
/** Bootscript Project ID. */
161-
project: string
162-
/** Provide information if the bootscript is public. */
163148
public: boolean
164-
/** Bootscript title. */
165149
title: string
166-
/** Bootscript architecture. */
167-
architecture: Arch
168-
/** Zone in which the bootscript is located. */
150+
project: string
151+
/** Zone to target. If none is passed will use default zone from the config. */
169152
zone: Zone
170153
}
171154

@@ -448,8 +431,6 @@ export interface Server {
448431
* `True`).
449432
*/
450433
ipv6?: ServerIpv6
451-
/** @deprecated Instance bootscript. */
452-
bootscript?: Bootscript
453434
/** Instance boot type. */
454435
bootType: BootType
455436
/** Instance volumes. */
@@ -824,8 +805,6 @@ export type CreateImageRequest = {
824805
rootVolume: string
825806
/** Architecture of the image. */
826807
arch: Arch
827-
/** @deprecated Default bootscript of the image. */
828-
defaultBootscript?: string
829808
/** Additional volumes of the image. */
830809
extraVolumes?: Record<string, VolumeTemplate>
831810
/**
@@ -1045,8 +1024,6 @@ export type CreateServerRequest = {
10451024
publicIps?: string[]
10461025
/** Boot type to use. */
10471026
bootType?: BootType
1048-
/** @deprecated Bootscript ID to use when `boot_type` is set to `bootscript`. */
1049-
bootscript?: string
10501027
/**
10511028
* @deprecated Instance Organization ID.
10521029
*
@@ -1256,16 +1233,6 @@ export interface ExportSnapshotResponse {
12561233
task?: Task
12571234
}
12581235

1259-
export type GetBootscriptRequest = {
1260-
/** Zone to target. If none is passed will use default zone from the config. */
1261-
zone?: Zone
1262-
bootscriptId: string
1263-
}
1264-
1265-
export interface GetBootscriptResponse {
1266-
bootscript?: Bootscript
1267-
}
1268-
12691236
export type GetDashboardRequest = {
12701237
/** Zone to target. If none is passed will use default zone from the config. */
12711238
zone?: Zone
@@ -1408,24 +1375,6 @@ export interface GetVolumeResponse {
14081375
volume?: Volume
14091376
}
14101377

1411-
export type ListBootscriptsRequest = {
1412-
/** Zone to target. If none is passed will use default zone from the config. */
1413-
zone?: Zone
1414-
arch?: string
1415-
title?: string
1416-
default?: boolean
1417-
public?: boolean
1418-
perPage?: number
1419-
page?: number
1420-
}
1421-
1422-
export interface ListBootscriptsResponse {
1423-
/** Total number of bootscripts. */
1424-
totalCount: number
1425-
/** List of bootscripts. */
1426-
bootscripts: Bootscript[]
1427-
}
1428-
14291378
export type ListDefaultSecurityGroupRulesRequest = {
14301379
/** Zone to target. If none is passed will use default zone from the config. */
14311380
zone?: Zone
@@ -2045,8 +1994,6 @@ export type UpdateServerRequest = {
20451994
/** Tags of the Instance. */
20461995
tags?: string[]
20471996
volumes?: Record<string, VolumeServerTemplate>
2048-
/** @deprecated */
2049-
bootscript?: string
20501997
dynamicIpRequired?: boolean
20511998
/**
20521999
* @deprecated True to configure the instance so it uses the new routed IP

packages/clients/src/api/instance/v1/types.private.gen.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { Zone } from '../../../bridge'
44
import type {
55
Arch,
66
BootType,
7-
Bootscript,
87
Image,
98
PlacementGroup,
109
PrivateNIC,
@@ -156,8 +155,6 @@ export type SetServerRequest = {
156155
* `True`).
157156
*/
158157
ipv6?: ServerIpv6
159-
/** @deprecated Instance bootscript. */
160-
bootscript?: Bootscript
161158
/** Instance boot type. */
162159
bootType?: BootType
163160
/** Instance volumes. */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export const version = 'v2.49.1'
1+
export const version = 'v2.50.0'
22

33
export const userAgent = `scaleway-sdk-js/${version}`

0 commit comments

Comments
 (0)