Skip to content

Commit a2cfd84

Browse files
committed
chore: clean generated sdk code with biome
1 parent 0d30202 commit a2cfd84

File tree

157 files changed

+1329
-2018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+1329
-2018
lines changed

packages/sdk/src/index.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ import { Testv1 } from '@scaleway/sdk-test'
4646
import { Vpcv2 } from '@scaleway/sdk-vpc'
4747
import { Vpcgwv1, Vpcgwv2 } from '@scaleway/sdk-vpcgw'
4848
import { Webhostingv1 } from '@scaleway/sdk-webhosting'
49-
export { createClient, createAdvancedClient } from '@scaleway/sdk-client'
49+
50+
export { createAdvancedClient, createClient } from '@scaleway/sdk-client'
5051

5152
/**
5253
* @deprecated Direct version exports are deprecated. Use the 'Account' namespace instead (e.g., Account.v1).
@@ -404,4 +405,3 @@ export { Webhostingv1 }
404405
export const Webhosting = {
405406
v1: Webhostingv1,
406407
}
407-

packages_generated/account/src/v3/api.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +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
import {
4-
API as ParentAPI,
54
enrichForPagination,
5+
API as ParentAPI,
66
urlParams,
77
validatePathParam,
88
} from '@scaleway/sdk-client'

packages_generated/account/src/v3/marshalling.gen.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
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
import randomName from '@scaleway/random-name'
4+
import type { DefaultValues } from '@scaleway/sdk-client'
45
import {
56
isJSONObject,
67
resolveOneOf,
78
unmarshalArrayOfObject,
89
unmarshalDate,
910
} from '@scaleway/sdk-client'
10-
import type { DefaultValues } from '@scaleway/sdk-client'
1111
import type {
1212
CheckContractSignatureResponse,
1313
Contract,
@@ -351,63 +351,63 @@ export const marshalProjectApiCreateProjectRequest = (
351351

352352
const marshalQualificationAiMachine = (
353353
request: QualificationAiMachine,
354-
defaults: DefaultValues,
354+
_defaults: DefaultValues,
355355
): Record<string, unknown> => ({
356356
sub_use_case: request.subUseCase,
357357
})
358358

359359
const marshalQualificationArchiveData = (
360360
request: QualificationArchiveData,
361-
defaults: DefaultValues,
361+
_defaults: DefaultValues,
362362
): Record<string, unknown> => ({
363363
sub_use_case: request.subUseCase,
364364
})
365365

366366
const marshalQualificationContainer = (
367367
request: QualificationContainer,
368-
defaults: DefaultValues,
368+
_defaults: DefaultValues,
369369
): Record<string, unknown> => ({
370370
sub_use_case: request.subUseCase,
371371
})
372372

373373
const marshalQualificationDeploySoftware = (
374374
request: QualificationDeploySoftware,
375-
defaults: DefaultValues,
375+
_defaults: DefaultValues,
376376
): Record<string, unknown> => ({
377377
sub_use_case: request.subUseCase,
378378
})
379379

380380
const marshalQualificationHostApplication = (
381381
request: QualificationHostApplication,
382-
defaults: DefaultValues,
382+
_defaults: DefaultValues,
383383
): Record<string, unknown> => ({
384384
sub_use_case: request.subUseCase,
385385
})
386386

387387
const marshalQualificationHostWebsite = (
388388
request: QualificationHostWebsite,
389-
defaults: DefaultValues,
389+
_defaults: DefaultValues,
390390
): Record<string, unknown> => ({
391391
sub_use_case: request.subUseCase,
392392
})
393393

394394
const marshalQualificationOtherUseCase = (
395395
request: QualificationOtherUseCase,
396-
defaults: DefaultValues,
396+
_defaults: DefaultValues,
397397
): Record<string, unknown> => ({
398398
sub_use_case: request.subUseCase,
399399
})
400400

401401
const marshalQualificationSetScalewayEnvironment = (
402402
request: QualificationSetScalewayEnvironment,
403-
defaults: DefaultValues,
403+
_defaults: DefaultValues,
404404
): Record<string, unknown> => ({
405405
sub_use_case: request.subUseCase,
406406
})
407407

408408
const marshalQualificationShareData = (
409409
request: QualificationShareData,
410-
defaults: DefaultValues,
410+
_defaults: DefaultValues,
411411
): Record<string, unknown> => ({
412412
sub_use_case: request.subUseCase,
413413
})
@@ -502,7 +502,7 @@ export const marshalProjectApiSetProjectQualificationRequest = (
502502

503503
export const marshalProjectApiUpdateProjectRequest = (
504504
request: ProjectApiUpdateProjectRequest,
505-
defaults: DefaultValues,
505+
_defaults: DefaultValues,
506506
): Record<string, unknown> => ({
507507
description: request.description,
508508
name: request.name,

packages_generated/account/src/v3/validation-rules.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ export const ProjectApiCreateProjectRequest = {
3030
name: {
3131
maxLength: 64,
3232
minLength: 1,
33-
pattern: /^[a-zA-Z0-9\._\- ]+$/,
33+
pattern: /^[a-zA-Z0-9._\- ]+$/,
3434
},
3535
}
3636

3737
export const ProjectApiListProjectsRequest = {
3838
name: {
3939
maxLength: 64,
4040
minLength: 1,
41-
pattern: /^[a-zA-Z0-9\._\- ]+$/,
41+
pattern: /^[a-zA-Z0-9._\- ]+$/,
4242
},
4343
page: {
4444
greaterThan: 0,
@@ -56,6 +56,6 @@ export const ProjectApiUpdateProjectRequest = {
5656
name: {
5757
maxLength: 64,
5858
minLength: 1,
59-
pattern: /^[a-zA-Z0-9\._\- ]+$/,
59+
pattern: /^[a-zA-Z0-9._\- ]+$/,
6060
},
6161
}

packages_generated/applesilicon/src/v1alpha1/api.gen.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3+
4+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client'
35
import {
4-
API as ParentAPI,
56
enrichForPagination,
7+
API as ParentAPI,
68
toApiLocality,
79
urlParams,
810
validatePathParam,
911
waitForResource,
1012
} from '@scaleway/sdk-client'
11-
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client'
1213
import {
1314
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES as SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON,
1415
SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_APPLESILICON,
@@ -25,8 +26,8 @@ import {
2526
unmarshalConnectivityDiagnostic,
2627
unmarshalListOSResponse,
2728
unmarshalListServerPrivateNetworksResponse,
28-
unmarshalListServerTypesResponse,
2929
unmarshalListServersResponse,
30+
unmarshalListServerTypesResponse,
3031
unmarshalOS,
3132
unmarshalServer,
3233
unmarshalServerPrivateNetwork,
@@ -47,10 +48,10 @@ import type {
4748
ListOSRequest,
4849
ListOSResponse,
4950
ListServerPrivateNetworksResponse,
50-
ListServerTypesRequest,
51-
ListServerTypesResponse,
5251
ListServersRequest,
5352
ListServersResponse,
53+
ListServerTypesRequest,
54+
ListServerTypesResponse,
5455
OS,
5556
PrivateNetworkApiAddServerPrivateNetworkRequest,
5657
PrivateNetworkApiDeleteServerPrivateNetworkRequest,
@@ -309,7 +310,7 @@ export class API extends ParentAPI {
309310
)
310311

311312
/**
312-
* Reinstall a server. Reinstall an existing Apple silicon server (specified by its server ID) from a new image (OS). All the data on the disk is deleted and all configuration is reset to the default configuration values of the image (OS).
313+
* Reinstall a server. Reinstall an existing Apple silicon server (specified by its server ID) from a new image (OS). All the data on the disk is deleted and all configuration is reset to the defailt configuration values of the image (OS).
313314
*
314315
* @param request - The request {@link ReinstallServerRequest}
315316
* @returns A Promise of Server

packages_generated/applesilicon/src/v1alpha1/index.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export type {
2727
ListOSResponse,
2828
ListServerPrivateNetworksRequestOrderBy,
2929
ListServerPrivateNetworksResponse,
30-
ListServerTypesRequest,
31-
ListServerTypesResponse,
3230
ListServersRequest,
3331
ListServersRequestOrderBy,
3432
ListServersResponse,
33+
ListServerTypesRequest,
34+
ListServerTypesResponse,
3535
OS,
3636
OSSupportedServerType,
3737
PrivateNetworkApiAddServerPrivateNetworkRequest,
@@ -53,8 +53,8 @@ export type {
5353
ServerTypeDisk,
5454
ServerTypeGPU,
5555
ServerTypeMemory,
56-
ServerTypeNPU,
5756
ServerTypeNetwork,
57+
ServerTypeNPU,
5858
ServerTypeStock,
5959
SetServerPrivateNetworksResponse,
6060
StartConnectivityDiagnosticRequest,

packages_generated/applesilicon/src/v1alpha1/marshalling.gen.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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
import randomName from '@scaleway/random-name'
4+
import type { DefaultValues } from '@scaleway/sdk-client'
45
import {
56
isJSONObject,
67
unmarshalArrayOfObject,
78
unmarshalDate,
89
} from '@scaleway/sdk-client'
9-
import type { DefaultValues } from '@scaleway/sdk-client'
1010
import type {
1111
BatchCreateServersRequest,
1212
BatchCreateServersRequestBatchInnerCreateServerRequest,
@@ -18,8 +18,8 @@ import type {
1818
CreateServerRequest,
1919
ListOSResponse,
2020
ListServerPrivateNetworksResponse,
21-
ListServerTypesResponse,
2221
ListServersResponse,
22+
ListServerTypesResponse,
2323
OS,
2424
OSSupportedServerType,
2525
PrivateNetworkApiAddServerPrivateNetworkRequest,
@@ -33,8 +33,8 @@ import type {
3333
ServerTypeDisk,
3434
ServerTypeGPU,
3535
ServerTypeMemory,
36-
ServerTypeNPU,
3736
ServerTypeNetwork,
37+
ServerTypeNPU,
3838
SetServerPrivateNetworksResponse,
3939
StartConnectivityDiagnosticRequest,
4040
StartConnectivityDiagnosticResponse,
@@ -423,7 +423,7 @@ export const unmarshalStartConnectivityDiagnosticResponse = (
423423

424424
const marshalBatchCreateServersRequestBatchInnerCreateServerRequest = (
425425
request: BatchCreateServersRequestBatchInnerCreateServerRequest,
426-
defaults: DefaultValues,
426+
_defaults: DefaultValues,
427427
): Record<string, unknown> => ({
428428
name: request.name,
429429
})
@@ -451,7 +451,7 @@ export const marshalBatchCreateServersRequest = (
451451

452452
const marshalRunnerConfiguration = (
453453
request: RunnerConfiguration,
454-
defaults: DefaultValues,
454+
_defaults: DefaultValues,
455455
): Record<string, unknown> => ({
456456
name: request.name,
457457
provider: request.provider,
@@ -478,36 +478,36 @@ export const marshalCreateServerRequest = (
478478

479479
export const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (
480480
request: PrivateNetworkApiAddServerPrivateNetworkRequest,
481-
defaults: DefaultValues,
481+
_defaults: DefaultValues,
482482
): Record<string, unknown> => ({
483483
ipam_ip_ids: request.ipamIpIds,
484484
private_network_id: request.privateNetworkId,
485485
})
486486

487487
export const marshalPrivateNetworkApiSetServerPrivateNetworksRequest = (
488488
request: PrivateNetworkApiSetServerPrivateNetworksRequest,
489-
defaults: DefaultValues,
489+
_defaults: DefaultValues,
490490
): Record<string, unknown> => ({
491491
per_private_network_ipam_ip_ids: request.perPrivateNetworkIpamIpIds,
492492
})
493493

494494
export const marshalReinstallServerRequest = (
495495
request: ReinstallServerRequest,
496-
defaults: DefaultValues,
496+
_defaults: DefaultValues,
497497
): Record<string, unknown> => ({
498498
os_id: request.osId,
499499
})
500500

501501
export const marshalStartConnectivityDiagnosticRequest = (
502502
request: StartConnectivityDiagnosticRequest,
503-
defaults: DefaultValues,
503+
_defaults: DefaultValues,
504504
): Record<string, unknown> => ({
505505
server_id: request.serverId,
506506
})
507507

508508
const marshalCommitmentTypeValue = (
509509
request: CommitmentTypeValue,
510-
defaults: DefaultValues,
510+
_defaults: DefaultValues,
511511
): Record<string, unknown> => ({
512512
commitment_type: request.commitmentType,
513513
})

packages_generated/applesilicon/src/v1alpha1/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export interface OS {
108108
*/
109109
compatibleServerTypes?: string[]
110110
/**
111-
* Url of the release notes for the OS image or software pre-installed.
111+
* Url of the release notes for the OS image or softwares pre-installed.
112112
*/
113113
releaseNotesUrl: string
114114
/**

packages_generated/audit_trail/src/v1alpha1/api.gen.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3+
4+
import type { ApiLocality } from '@scaleway/sdk-client'
35
import {
4-
API as ParentAPI,
56
enrichForPagination,
7+
API as ParentAPI,
68
toApiLocality,
79
urlParams,
810
validatePathParam,
911
} from '@scaleway/sdk-client'
10-
import type { ApiLocality } from '@scaleway/sdk-client'
1112
import {
1213
marshalCreateExportJobRequest,
1314
unmarshalExportJob,
@@ -217,7 +218,14 @@ export class API extends ParentAPI {
217218
'page_size',
218219
request.pageSize ?? this.client.settings.defaultPageSize,
219220
],
220-
['tags', request.tags],
221+
[
222+
'tags',
223+
request.tags
224+
? Object.entries(request.tags).map(
225+
([key, value]) => `${key}:${value}`,
226+
)
227+
: undefined,
228+
],
221229
),
222230
},
223231
unmarshalListExportJobsResponse,

packages_generated/audit_trail/src/v1alpha1/index.gen.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,14 @@ export type {
99
AppleSiliconServerInfo,
1010
AuthenticationEvent,
1111
AuthenticationEventFailureReason,
12-
AuthenticationEventMFAType,
1312
AuthenticationEventMethod,
13+
AuthenticationEventMFAType,
1414
AuthenticationEventOrigin,
1515
AuthenticationEventResult,
1616
BaremetalServerInfo,
1717
BaremetalSettingInfo,
1818
CreateExportJobRequest,
1919
DeleteExportJobRequest,
20-
EdgeServicesBackendStageInfo,
21-
EdgeServicesCacheStageInfo,
22-
EdgeServicesDNSStageInfo,
23-
EdgeServicesPipelineInfo,
24-
EdgeServicesPlanInfo,
25-
EdgeServicesRouteRulesInfo,
26-
EdgeServicesRouteStageInfo,
27-
EdgeServicesTLSStageInfo,
28-
EdgeServicesWAFStageInfo,
2920
Event,
3021
EventPrincipal,
3122
ExportJob,

0 commit comments

Comments
 (0)